;vector_handler_66
;-----------------
;Returns the RO3.1 address for DA2

.vector_handler_66
 TEQ     R0, #2				;Return info?
 TEQEQ   R1, #2				;YES, Screen memory?
 BLEQ    check_taskID			;YES, is the task supported?
 BLEQ    check_SWI_in_appspace_or_JIT	;YES, is it within appspace?
 BNE     vector_handler_forward		;NO, pass call onto OS
 LDR     R12, is_screen_remapped
 TEQ     R12, #0			;is screen memory remapped?
 BEQ     vector_handler_forward		;NO, pass call onto OS

 ADR     R12, _SPSR			;buffer for C/SPSR (pre_swi_veneer)
 BL      pre_SWI_veneer			;call SWI that follows
 SWI     XOS_DynamicArea		;PRM5a-53

 MOV     R3, #&2000000			;RO3.1 DA2 end
 LDR     R2, DA2_size			;DA2 size
 SUB     R3, R3, R2			;RO3.1 DA2 start
 MOV     R5, #480 * 1024		;max DA2 size on RO3.1
B       exit_SWI_veneer			;return to original caller

 ._SPSR		DBD 4
