home *** CD-ROM | disk | FTP | other *** search
- c:\drdos\oscli.com Disassembled and edited 12th August 1994
-
- Purpose: To send a string to "OS_CLI" from the PC Emulator
- Author : Andrew Bower, August 1994.
-
- 0100 PUSH DS ;
- 0101 MOV AX,0000 ; save return address on stack
- 0104 PUSH AX ;
- 0105 MOV AX,0000
- 0108 MOV AL,DS:[0080]
- 010C ADD AX,0081
- 010F PUSH DS
- 0110 POP ES
- 0111 MOV BX,AX
- 0113 MOV BYTE ES:[BX],00
- 0117 MOV BX,0081 ; point to parameter
- 011A dc.w FFFF,0101 ; SVC 257 trapped: translates address ES:BX
- 011E MOV BX,0050 in PC to ARM address (DX:AX)
- 0121 PUSH CS
- 0122 POP ES
- 0123 MOV ES:[0054],AX
- 0127 MOV ES:[0056],DX
- 012C MOV WORD ES:[0050],0005 SWI 5 = "OS_CLI"
- 0133 MOV WORD ES:[0052],0000
- 013A MOV DX,7361
- 013D MOV AX,6665
- 0140 dc.w FFFF,0102 ; SVC 258 trapped: issues SWI to ARM
- 0144 RETF
-
- 0180 ds.b 128 ; reserve space for SWI parameters
-
- NB: This differs from VDUS.COM only in the number of the SWI called.
-