;References:
;swi - vector_handler_forward

;R12, R14 are on the stack

.os_word_handler
 TEQ     R0, #21			;OS_Word 21?
 BEQ     os_word_21			;YES

 #if JIT_debug == 1 AND compile_IOMD == 1
   TEQ     R0, #22			;OS_Word 22?
   BNE     vector_handler_forward	;NO
  
   LDRB    R12, [R1, #1]
   LDRB    R14, [R1, #2]
   ORR     R12, R12, R14, LSL #8
   LDRB    R14, [R1, #3]
   ORR     R12, R12, R14, LSL #16
   LDRB    R14, [R1, #4]
   ORR     R12, R12, R14, LSL #24
   TEMP    R14
   STR     R12, MEMC_Vinit
   LOCK    R14
 #endif

B       vector_handler_forward		;hand back to OS
