Home » Archimedes archive » Acorn User » AU 1995-02.adf » !StarInfo_StarInfo » Bower/PCEmUtils/Disassem/VDUS
Bower/PCEmUtils/Disassem/VDUS
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1995-02.adf » !StarInfo_StarInfo |
Filename: | Bower/PCEmUtils/Disassem/VDUS |
Read OK: | ✔ |
File size: | 040C bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
c:\drdos\vdus.com Disassembled and edited 12th August 1994 Purpose: To print a string in RISC OS 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],0002 SWI 2 = "OS_Write0" 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 OSCLI.COM only in the number of the SWI called.
00000000 63 3a 5c 64 72 64 6f 73 5c 76 64 75 73 2e 63 6f |c:\drdos\vdus.co| 00000010 6d 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |m | 00000020 20 20 20 20 44 69 73 61 73 73 65 6d 62 6c 65 64 | Disassembled| 00000030 20 61 6e 64 20 65 64 69 74 65 64 20 31 32 74 68 | and edited 12th| 00000040 20 41 75 67 75 73 74 20 31 39 39 34 0a 0a 50 75 | August 1994..Pu| 00000050 72 70 6f 73 65 3a 20 54 6f 20 70 72 69 6e 74 20 |rpose: To print | 00000060 61 20 73 74 72 69 6e 67 20 69 6e 20 52 49 53 43 |a string in RISC| 00000070 20 4f 53 20 66 72 6f 6d 20 74 68 65 20 50 43 20 | OS from the PC | 00000080 45 6d 75 6c 61 74 6f 72 0a 41 75 74 68 6f 72 20 |Emulator.Author | 00000090 3a 20 41 6e 64 72 65 77 20 42 6f 77 65 72 2c 20 |: Andrew Bower, | 000000a0 20 41 75 67 75 73 74 20 31 39 39 34 2e 0a 0a 30 | August 1994...0| 000000b0 31 30 30 20 50 55 53 48 20 20 20 44 53 20 20 20 |100 PUSH DS | 000000c0 20 20 20 20 20 20 20 20 20 20 20 3b 0a 30 31 30 | ;.010| 000000d0 31 20 4d 4f 56 20 20 20 20 41 58 2c 30 30 30 30 |1 MOV AX,0000| 000000e0 20 20 20 20 20 20 20 20 20 3b 20 73 61 76 65 20 | ; save | 000000f0 72 65 74 75 72 6e 20 61 64 64 72 65 73 73 20 6f |return address o| 00000100 6e 20 73 74 61 63 6b 0a 30 31 30 34 20 50 55 53 |n stack.0104 PUS| 00000110 48 20 20 20 41 58 20 20 20 20 20 20 20 20 20 20 |H AX | 00000120 20 20 20 20 3b 0a 30 31 30 35 20 4d 4f 56 20 20 | ;.0105 MOV | 00000130 20 20 41 58 2c 30 30 30 30 0a 30 31 30 38 20 4d | AX,0000.0108 M| 00000140 4f 56 20 20 20 20 41 4c 2c 44 53 3a 5b 30 30 38 |OV AL,DS:[008| 00000150 30 5d 0a 30 31 30 43 20 41 44 44 20 20 20 20 41 |0].010C ADD A| 00000160 58 2c 30 30 38 31 0a 30 31 30 46 20 50 55 53 48 |X,0081.010F PUSH| 00000170 20 20 20 44 53 0a 30 31 31 30 20 50 4f 50 20 20 | DS.0110 POP | 00000180 20 20 45 53 0a 30 31 31 31 20 4d 4f 56 20 20 20 | ES.0111 MOV | 00000190 20 42 58 2c 41 58 0a 30 31 31 33 20 4d 4f 56 20 | BX,AX.0113 MOV | 000001a0 20 20 20 42 59 54 45 20 45 53 3a 5b 42 58 5d 2c | BYTE ES:[BX],| 000001b0 30 30 0a 30 31 31 37 20 4d 4f 56 20 20 20 20 42 |00.0117 MOV B| 000001c0 58 2c 30 30 38 31 20 20 3b 20 70 6f 69 6e 74 20 |X,0081 ; point | 000001d0 74 6f 20 70 61 72 61 6d 65 74 65 72 0a 30 31 31 |to parameter.011| 000001e0 41 20 64 63 2e 77 20 20 20 46 46 46 46 2c 30 31 |A dc.w FFFF,01| 000001f0 30 31 20 20 20 20 20 20 3b 20 53 56 43 20 32 35 |01 ; SVC 25| 00000200 37 20 74 72 61 70 70 65 64 3a 20 74 72 61 6e 73 |7 trapped: trans| 00000210 6c 61 74 65 73 20 61 64 64 72 65 73 73 20 20 45 |lates address E| 00000220 53 3a 42 58 0a 30 31 31 45 20 4d 4f 56 20 20 20 |S:BX.011E MOV | 00000230 20 42 58 2c 30 30 35 30 20 20 20 20 20 20 20 20 | BX,0050 | 00000240 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000250 20 20 20 69 6e 20 50 43 20 74 6f 20 41 52 4d 20 | in PC to ARM | 00000260 61 64 64 72 65 73 73 20 28 44 58 3a 41 58 29 0a |address (DX:AX).| 00000270 30 31 32 31 20 50 55 53 48 20 20 20 43 53 0a 30 |0121 PUSH CS.0| 00000280 31 32 32 20 50 4f 50 20 20 20 20 45 53 0a 30 31 |122 POP ES.01| 00000290 32 33 20 4d 4f 56 20 20 20 20 45 53 3a 5b 30 30 |23 MOV ES:[00| 000002a0 35 34 5d 2c 41 58 0a 30 31 32 37 20 4d 4f 56 20 |54],AX.0127 MOV | 000002b0 20 20 20 45 53 3a 5b 30 30 35 36 5d 2c 44 58 0a | ES:[0056],DX.| 000002c0 30 31 32 43 20 4d 4f 56 20 20 20 20 57 4f 52 44 |012C MOV WORD| 000002d0 20 45 53 3a 5b 30 30 35 30 5d 2c 30 30 30 32 20 | ES:[0050],0002 | 000002e0 20 53 57 49 20 32 20 3d 20 22 4f 53 5f 57 72 69 | SWI 2 = "OS_Wri| 000002f0 74 65 30 22 0a 30 31 33 33 20 4d 4f 56 20 20 20 |te0".0133 MOV | 00000300 20 57 4f 52 44 20 45 53 3a 5b 30 30 35 32 5d 2c | WORD ES:[0052],| 00000310 30 30 30 30 0a 30 31 33 41 20 4d 4f 56 20 20 20 |0000.013A MOV | 00000320 20 44 58 2c 37 33 36 31 0a 30 31 33 44 20 4d 4f | DX,7361.013D MO| 00000330 56 20 20 20 20 41 58 2c 36 36 36 35 0a 30 31 34 |V AX,6665.014| 00000340 30 20 64 63 2e 77 20 20 20 46 46 46 46 2c 30 31 |0 dc.w FFFF,01| 00000350 30 32 20 20 20 20 20 20 20 20 20 20 3b 20 53 56 |02 ; SV| 00000360 43 20 32 35 38 20 74 72 61 70 70 65 64 3a 20 69 |C 258 trapped: i| 00000370 73 73 75 65 73 20 53 57 49 20 74 6f 20 41 52 4d |ssues SWI to ARM| 00000380 0a 30 31 34 34 20 52 45 54 46 0a 0a 30 31 38 30 |.0144 RETF..0180| 00000390 20 64 73 2e 62 20 20 20 31 32 38 20 20 20 20 20 | ds.b 128 | 000003a0 20 20 3b 20 72 65 73 65 72 76 65 20 73 70 61 63 | ; reserve spac| 000003b0 65 20 66 6f 72 20 53 57 49 20 70 61 72 61 6d 65 |e for SWI parame| 000003c0 74 65 72 73 0a 0a 4e 42 3a 20 54 68 69 73 20 64 |ters..NB: This d| 000003d0 69 66 66 65 72 73 20 66 72 6f 6d 20 4f 53 43 4c |iffers from OSCL| 000003e0 49 2e 43 4f 4d 20 6f 6e 6c 79 20 69 6e 20 74 68 |I.COM only in th| 000003f0 65 20 6e 75 6d 62 65 72 20 6f 66 20 74 68 65 20 |e number of the | 00000400 53 57 49 20 63 61 6c 6c 65 64 2e 0a |SWI called..| 0000040c