;References:
;swi - vector_handler_forward
;swi_OS_Module - vector_handler_trap

;R12, R14 are on the stack

.os_spriteop_handler
 AND     R12, R0, #&FF			;get op
 TEQ     R12, #36			;OS_SpriteOp 36?
 BEQ     os_spriteop_36			;YES

 TEQ     R12, #3			;OS_SpriteOp 3?
 BEQ     os_spriteop_3			;YES

 TEQ     R12, #52			;OS_SpriteOp 52?
 BNE     vector_handler_forward		;NO

 #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, #&500 << 8		;below RO5.00?
 BHS     vector_handler_forward		;NO, pass to RISCOS

 CMN     R7, #1				;is the translation table valid?
 MOVEQ   R7, #0				;NO, correct it

B       vector_handler_forward		;hand back to OS
