;vector_handler_40142
;--------------------
;Allows sound to be forced to left or right audio channel

.vector_handler_40142
 ADR     R12, stereo_position
 SUB     R14, R0, #1
 AND     R14, R14, #7			;ensure its within limits
 TEQ     R1, #128			;read request?
 LDREQB  R1, [R12, R14]			;YES,
 EXITSWIEQ ""				; |+  return old value

 STRB    R1, [R12, R14]			;store position
 LDR     R12, force_mono
 TEQ     R12, #0			;are we forcing mono?
 MOVNE   R1, R12			;YES
B     vector_handler_forward