;References:
;swi - vector_handler_forward
;swi_OS_Module - vector_handler_trap

;R12, R14 are on the stack

.os_spriteop_3
 #if JIT_WIMP_support == 1
   BL      check_task_ID		;is the task supported?
   BNE     vector_handler_forward	;NO, call directly
 #endif

 LDR     R12, emulate_RISCOS
 CMP     R12, #&350 << 8		;below RO3.50?
 BHS     vector_handler_forward		;NO, pass to RISCOS

 ADR     R12, _SPSR
 BL      pre_SWI_veneer			;call SWI that follows
 SWI     XOS_SpriteOp			;PRM1-792
 BL      post_SWI_veneer
 SWIVC   XOS_RemoveCursors		;PRM1-739

B       exit_SWI_veneer

 ._SPSR     DBD 4

