;Entry_ADFInsertModule
;---------------------
;Inserts a Module into the RMA

;Entry:
; R0 - commandline
; R1 - number of parameters

.Entry_ADFInsertModule
 STMFD   R13!, {R1-R3, R14}
 LDR     R12, [R12, #0]

 MOV     R1, R0				;command tail
 MOV     R0, #16			;base 16 number
 SWI     XOS_ReadUnsigned		;read the value PRM1-460
 MOVVC   R3, R2				;R3=start
 SWIVC   XOS_ReadUnsigned		;read the value PRM1-460

 MOVVC   R1, R3				;R1=start, E2=size
 MOVVC   R0, #Module_InsertFromMemoryToRMA
 SWIVC   XOS_Module
LDMFD   R13!, {R1-R3, PC}
