;References:
;swi - vector_handler_forward
;swi_OS_Module - vector_handler_trap

;R12, R14 are on the stack

.os_spriteop_36				;PRM1-815
 ADR     R6, _scaling			;force 1:1 scaling

 #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, #&380 << 8		;RO3.8 or below?
 BHI     vector_handler_forward		;NO, pass to RISCOS

; CMN     R6, #1				;does R6=-1
; MOVEQ   R6, #0				;YES, correct to R6=0

 CMN     R7, #1				;does R7=-1
 MOVEQ   R7, #0				;YES, correct to R7=0
B       vector_handler_forward		;hand back to OS

 ._scaling DCD 1, 1, 1, 1