Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape20a_acorn_eu_1991_march.wav » AdvTrce
AdvTrce
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 » Personal collection » Acorn tapes » Electron_User » Electron_User_tape20a_acorn_eu_1991_march.wav |
Filename: | AdvTrce |
Read OK: | ✔ |
File size: | 06B5 bytes |
Load address: | FFFF1A00 |
Exec address: | FFFF8023 |
Duplicates
There are 3 duplicate copies of this file in the archive:
- AEW website » mu » mu_5_25_discs_Micro_User_09_01_D-MU09_01.ssd » AdvTrce
- AEW website » mu » mu_Micro_User_09_01_MU9-1_B.uef » AdvTrce
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape20a_acorn_eu_1991_march.wav » AdvTrce
- Personal collection » Acorn tapes » Electron_User » Electron_User_tape20b_acorn_eu_1991_march.wav » AdvTrce
File contents
10REM Advanced TRACE 20REM By Stephen Ramplin 30REM (c) The Micro User 40ON ERROR MODE7:REPORT:PRINT" at line ";ERL:END 50MODE135 60*FX200 70*KEY10 OLD|MRUN|M 80flag=&70:stepflag=&71:chr=&72 90pos=&73:vpos=&74:store=&80 100brkv=&202:traceflag=&20 110wrchv=&20E:oldbrk=!brkv AND&FFFF 120oldwrch=!wrchv AND&FFFF 130IF oldbrk=&91B CALL!-4 ELSE*FX18 140osrdch=&FFE0:osbyte=&FFF4 150input=&700:steptkn=&88 160ontkn=&EE:offtkn=&87 170FORpass%=0TO3STEP3:P%=&900 180[OPTpass%:.intcpt LDA#newbrk MOD256:LDX#newbrk DIV256:LDY#newwrch MOD256 190SEI:STAbrkv:STXbrkv+1:STYwrchv:STXwrchv+1:CLI:LDA#0 200STAflag:STAstepflag:RTS 210.newbrk PHA:TYA:PHA:TXA:PHA:LDY#0:LDA(&FD),Y:CMP#16:BEQcheck 220.not PLA:TAX:PLA:TAY:PLA 230JMPoldbrk:.check JSRspaces:CMP#steptkn:BNEnot:JSRspc:TAX:JSRspc 240CMP#13:BNEnot:CPX#ontkn:BEQon:CPX#offtkn:BNEnot:LDA#0:BEQsetflg 250.on LDA#&FF:.setflg STAstepflag:PLA:TAX:PLA:TAY:PLA:RTS 260.spc INY:.spaces LDAinput,Y:CMP#32:BEQspc:RTS 270.newwrch STAchr:TYA:PHA:TXA:PHA:LDAtraceflag:BEQexit 280LDAchr:LDYflag:BEQchecksqbrac:CPY#7:BEQreset:CMP#ASC"]" 290BEQdo:CMP#ASC"0":BCCreset:CMP#ASC"9"+1:BCSreset:BCCdostore 300.checksqbrac CMP#ASC"[":BNEexit 310.dostore STAstore,Y:INCflag:LDA#0 320STAchr:.exit PLA:TAX:PLA:TAY:LDAchr:JMPoldwrch 330.reset STAstore,Y:LDX#&FF 340.loop LDAstore+1,X:JSRoldwrch:INX:CPXflag:BNEloop 350LDA#0:STAflag:STAchr:BEQexit 360.do STAstore,Y:LDA#134:JSRosbyte:STXpos:STYvpos 370LDX#0:LDY#0:JSRtab:STYflag:STYchr 380.loopB LDAstore,Y:JSRoldwrch:CMP#ASC"]":BEQdone:INY:BNEloopB 390.done LDAstepflag:BEQnopause 400.pause JSRosrdch:BCSexit:CMP#32:BNEpause:.nopause 410LDXpos:LDYvpos:JSRtab:JMPexit 420.tab LDA#31:JSRoldwrch:TXA:JSRoldwrch:TYA:JMPoldwrch 430]:NEXTpass% 440PRINT"Press Return To Save the Machine Code":REPEATUNTILGET=13 450*SAVE AT 900 9FF
� Advanced TRACE � By Stephen Ramplin � (c) The Micro User (� � �7:�:�" at line ";�:� 2�135 < *FX200 F*KEY10 OLD|MRUN|M P!flag=&70:stepflag=&71:chr=&72 Zpos=&73:vpos=&74:store=&80 dbrkv=&202:traceflag=&20 n"wrchv=&20E:oldbrk=!brkv �&FFFF xoldwrch=!wrchv �&FFFF �� oldbrk=&91B �!-4 �*FX18 �osrdch=&FFE0:osbyte=&FFF4 �input=&700:steptkn=&88 �ontkn=&EE:offtkn=&87 ��pass%=0�3�3:P%=&900 �F[OPTpass%:.intcpt LDA#newbrk �256:LDX#newbrk �256:LDY#newwrch �256 �7SEI:STAbrkv:STXbrkv+1:STYwrchv:STXwrchv+1:CLI:LDA#0 �STAflag:STAstepflag:RTS �@.newbrk PHA:TYA:PHA:TXA:PHA:LDY#0:LDA(&FD),Y:CMP#16:BEQcheck �.not PLA:TAX:PLA:TAY:PLA �CJMPoldbrk:.check JSRspaces:CMP#steptkn:BNEnot:JSRspc:TAX:JSRspc �CCMP#13:BNEnot:CPX#ontkn:BEQon:CPX#offtkn:BNEnot:LDA#0:BEQsetflg �;.on LDA#&FF:.setflg STAstepflag:PLA:TAX:PLA:TAY:PLA:RTS 1.spc INY:.spaces LDAinput,Y:CMP#32:BEQspc:RTS 8.newwrch STAchr:TYA:PHA:TXA:PHA:LDAtraceflag:BEQexit 9LDAchr:LDYflag:BEQchecksqbrac:CPY#7:BEQreset:CMP#�"]" ":BEQdo:CMP#�"0":BCCreset:CMP#�"9"+1:BCSreset:BCCdostore ,!.checksqbrac CMP#�"[":BNEexit 6%.dostore STAstore,Y:INCflag:LDA#0 @2STAchr:.exit PLA:TAX:PLA:TAY:LDAchr:JMPoldwrch J.reset STAstore,Y:LDX#&FF T5.loop LDAstore+1,X:JSRoldwrch:INX:CPXflag:BNEloop ^ LDA#0:STAflag:STAchr:BEQexit h3.do STAstore,Y:LDA#134:JSRosbyte:STXpos:STYvpos r%LDX#0:LDY#0:JSRtab:STYflag:STYchr |>.loopB LDAstore,Y:JSRoldwrch:CMP#�"]":BEQdone:INY:BNEloopB � .done LDAstepflag:BEQnopause �5.pause JSRosrdch:BCSexit:CMP#32:BNEpause:.nopause �!LDXpos:LDYvpos:JSRtab:JMPexit �8.tab LDA#31:JSRoldwrch:TXA:JSRoldwrch:TYA:JMPoldwrch �]:�pass% �3�"Press Return To Save the Machine Code":���=13 �*SAVE AT 900 9FF �
00000000 0d 00 0a 14 f4 20 41 64 76 61 6e 63 65 64 20 54 |..... Advanced T| 00000010 52 41 43 45 0d 00 14 18 f4 20 42 79 20 53 74 65 |RACE..... By Ste| 00000020 70 68 65 6e 20 52 61 6d 70 6c 69 6e 0d 00 1e 18 |phen Ramplin....| 00000030 f4 20 28 63 29 20 54 68 65 20 4d 69 63 72 6f 20 |. (c) The Micro | 00000040 55 73 65 72 0d 00 28 1d ee 20 85 20 eb 37 3a f6 |User..(.. . .7:.| 00000050 3a f1 22 20 61 74 20 6c 69 6e 65 20 22 3b 9e 3a |:." at line ";.:| 00000060 e0 0d 00 32 08 eb 31 33 35 0d 00 3c 0a 2a 46 58 |...2..135..<.*FX| 00000070 32 30 30 0d 00 46 15 2a 4b 45 59 31 30 20 4f 4c |200..F.*KEY10 OL| 00000080 44 7c 4d 52 55 4e 7c 4d 0d 00 50 21 66 6c 61 67 |D|MRUN|M..P!flag| 00000090 3d 26 37 30 3a 73 74 65 70 66 6c 61 67 3d 26 37 |=&70:stepflag=&7| 000000a0 31 3a 63 68 72 3d 26 37 32 0d 00 5a 1e 70 6f 73 |1:chr=&72..Z.pos| 000000b0 3d 26 37 33 3a 76 70 6f 73 3d 26 37 34 3a 73 74 |=&73:vpos=&74:st| 000000c0 6f 72 65 3d 26 38 30 0d 00 64 1b 62 72 6b 76 3d |ore=&80..d.brkv=| 000000d0 26 32 30 32 3a 74 72 61 63 65 66 6c 61 67 3d 26 |&202:traceflag=&| 000000e0 32 30 0d 00 6e 22 77 72 63 68 76 3d 26 32 30 45 |20..n"wrchv=&20E| 000000f0 3a 6f 6c 64 62 72 6b 3d 21 62 72 6b 76 20 80 26 |:oldbrk=!brkv .&| 00000100 46 46 46 46 0d 00 78 19 6f 6c 64 77 72 63 68 3d |FFFF..x.oldwrch=| 00000110 21 77 72 63 68 76 20 80 26 46 46 46 46 0d 00 82 |!wrchv .&FFFF...| 00000120 1d e7 20 6f 6c 64 62 72 6b 3d 26 39 31 42 20 d6 |.. oldbrk=&91B .| 00000130 21 2d 34 20 8b 2a 46 58 31 38 0d 00 8c 1d 6f 73 |!-4 .*FX18....os| 00000140 72 64 63 68 3d 26 46 46 45 30 3a 6f 73 62 79 74 |rdch=&FFE0:osbyt| 00000150 65 3d 26 46 46 46 34 0d 00 96 1a 69 6e 70 75 74 |e=&FFF4....input| 00000160 3d 26 37 30 30 3a 73 74 65 70 74 6b 6e 3d 26 38 |=&700:steptkn=&8| 00000170 38 0d 00 a0 18 6f 6e 74 6b 6e 3d 26 45 45 3a 6f |8....ontkn=&EE:o| 00000180 66 66 74 6b 6e 3d 26 38 37 0d 00 aa 18 e3 70 61 |fftkn=&87.....pa| 00000190 73 73 25 3d 30 b8 33 88 33 3a 50 25 3d 26 39 30 |ss%=0.3.3:P%=&90| 000001a0 30 0d 00 b4 46 5b 4f 50 54 70 61 73 73 25 3a 2e |0...F[OPTpass%:.| 000001b0 69 6e 74 63 70 74 20 4c 44 41 23 6e 65 77 62 72 |intcpt LDA#newbr| 000001c0 6b 20 83 32 35 36 3a 4c 44 58 23 6e 65 77 62 72 |k .256:LDX#newbr| 000001d0 6b 20 81 32 35 36 3a 4c 44 59 23 6e 65 77 77 72 |k .256:LDY#newwr| 000001e0 63 68 20 83 32 35 36 0d 00 be 37 53 45 49 3a 53 |ch .256...7SEI:S| 000001f0 54 41 62 72 6b 76 3a 53 54 58 62 72 6b 76 2b 31 |TAbrkv:STXbrkv+1| 00000200 3a 53 54 59 77 72 63 68 76 3a 53 54 58 77 72 63 |:STYwrchv:STXwrc| 00000210 68 76 2b 31 3a 43 4c 49 3a 4c 44 41 23 30 0d 00 |hv+1:CLI:LDA#0..| 00000220 c8 1b 53 54 41 66 6c 61 67 3a 53 54 41 73 74 65 |..STAflag:STAste| 00000230 70 66 6c 61 67 3a 52 54 53 0d 00 d2 40 2e 6e 65 |pflag:RTS...@.ne| 00000240 77 62 72 6b 20 50 48 41 3a 54 59 41 3a 50 48 41 |wbrk PHA:TYA:PHA| 00000250 3a 54 58 41 3a 50 48 41 3a 4c 44 59 23 30 3a 4c |:TXA:PHA:LDY#0:L| 00000260 44 41 28 26 46 44 29 2c 59 3a 43 4d 50 23 31 36 |DA(&FD),Y:CMP#16| 00000270 3a 42 45 51 63 68 65 63 6b 0d 00 dc 1c 2e 6e 6f |:BEQcheck.....no| 00000280 74 20 50 4c 41 3a 54 41 58 3a 50 4c 41 3a 54 41 |t PLA:TAX:PLA:TA| 00000290 59 3a 50 4c 41 0d 00 e6 43 4a 4d 50 6f 6c 64 62 |Y:PLA...CJMPoldb| 000002a0 72 6b 3a 2e 63 68 65 63 6b 20 4a 53 52 73 70 61 |rk:.check JSRspa| 000002b0 63 65 73 3a 43 4d 50 23 73 74 65 70 74 6b 6e 3a |ces:CMP#steptkn:| 000002c0 42 4e 45 6e 6f 74 3a 4a 53 52 73 70 63 3a 54 41 |BNEnot:JSRspc:TA| 000002d0 58 3a 4a 53 52 73 70 63 0d 00 f0 43 43 4d 50 23 |X:JSRspc...CCMP#| 000002e0 31 33 3a 42 4e 45 6e 6f 74 3a 43 50 58 23 6f 6e |13:BNEnot:CPX#on| 000002f0 74 6b 6e 3a 42 45 51 6f 6e 3a 43 50 58 23 6f 66 |tkn:BEQon:CPX#of| 00000300 66 74 6b 6e 3a 42 4e 45 6e 6f 74 3a 4c 44 41 23 |ftkn:BNEnot:LDA#| 00000310 30 3a 42 45 51 73 65 74 66 6c 67 0d 00 fa 3b 2e |0:BEQsetflg...;.| 00000320 6f 6e 20 4c 44 41 23 26 46 46 3a 2e 73 65 74 66 |on LDA#&FF:.setf| 00000330 6c 67 20 53 54 41 73 74 65 70 66 6c 61 67 3a 50 |lg STAstepflag:P| 00000340 4c 41 3a 54 41 58 3a 50 4c 41 3a 54 41 59 3a 50 |LA:TAX:PLA:TAY:P| 00000350 4c 41 3a 52 54 53 0d 01 04 31 2e 73 70 63 20 49 |LA:RTS...1.spc I| 00000360 4e 59 3a 2e 73 70 61 63 65 73 20 4c 44 41 69 6e |NY:.spaces LDAin| 00000370 70 75 74 2c 59 3a 43 4d 50 23 33 32 3a 42 45 51 |put,Y:CMP#32:BEQ| 00000380 73 70 63 3a 52 54 53 0d 01 0e 38 2e 6e 65 77 77 |spc:RTS...8.neww| 00000390 72 63 68 20 53 54 41 63 68 72 3a 54 59 41 3a 50 |rch STAchr:TYA:P| 000003a0 48 41 3a 54 58 41 3a 50 48 41 3a 4c 44 41 74 72 |HA:TXA:PHA:LDAtr| 000003b0 61 63 65 66 6c 61 67 3a 42 45 51 65 78 69 74 0d |aceflag:BEQexit.| 000003c0 01 18 39 4c 44 41 63 68 72 3a 4c 44 59 66 6c 61 |..9LDAchr:LDYfla| 000003d0 67 3a 42 45 51 63 68 65 63 6b 73 71 62 72 61 63 |g:BEQchecksqbrac| 000003e0 3a 43 50 59 23 37 3a 42 45 51 72 65 73 65 74 3a |:CPY#7:BEQreset:| 000003f0 43 4d 50 23 97 22 5d 22 0d 01 22 3a 42 45 51 64 |CMP#."]"..":BEQd| 00000400 6f 3a 43 4d 50 23 97 22 30 22 3a 42 43 43 72 65 |o:CMP#."0":BCCre| 00000410 73 65 74 3a 43 4d 50 23 97 22 39 22 2b 31 3a 42 |set:CMP#."9"+1:B| 00000420 43 53 72 65 73 65 74 3a 42 43 43 64 6f 73 74 6f |CSreset:BCCdosto| 00000430 72 65 0d 01 2c 21 2e 63 68 65 63 6b 73 71 62 72 |re..,!.checksqbr| 00000440 61 63 20 43 4d 50 23 97 22 5b 22 3a 42 4e 45 65 |ac CMP#."[":BNEe| 00000450 78 69 74 0d 01 36 25 2e 64 6f 73 74 6f 72 65 20 |xit..6%.dostore | 00000460 53 54 41 73 74 6f 72 65 2c 59 3a 49 4e 43 66 6c |STAstore,Y:INCfl| 00000470 61 67 3a 4c 44 41 23 30 0d 01 40 32 53 54 41 63 |ag:LDA#0..@2STAc| 00000480 68 72 3a 2e 65 78 69 74 20 50 4c 41 3a 54 41 58 |hr:.exit PLA:TAX| 00000490 3a 50 4c 41 3a 54 41 59 3a 4c 44 41 63 68 72 3a |:PLA:TAY:LDAchr:| 000004a0 4a 4d 50 6f 6c 64 77 72 63 68 0d 01 4a 1d 2e 72 |JMPoldwrch..J..r| 000004b0 65 73 65 74 20 53 54 41 73 74 6f 72 65 2c 59 3a |eset STAstore,Y:| 000004c0 4c 44 58 23 26 46 46 0d 01 54 35 2e 6c 6f 6f 70 |LDX#&FF..T5.loop| 000004d0 20 4c 44 41 73 74 6f 72 65 2b 31 2c 58 3a 4a 53 | LDAstore+1,X:JS| 000004e0 52 6f 6c 64 77 72 63 68 3a 49 4e 58 3a 43 50 58 |Roldwrch:INX:CPX| 000004f0 66 6c 61 67 3a 42 4e 45 6c 6f 6f 70 0d 01 5e 20 |flag:BNEloop..^ | 00000500 4c 44 41 23 30 3a 53 54 41 66 6c 61 67 3a 53 54 |LDA#0:STAflag:ST| 00000510 41 63 68 72 3a 42 45 51 65 78 69 74 0d 01 68 33 |Achr:BEQexit..h3| 00000520 2e 64 6f 20 53 54 41 73 74 6f 72 65 2c 59 3a 4c |.do STAstore,Y:L| 00000530 44 41 23 31 33 34 3a 4a 53 52 6f 73 62 79 74 65 |DA#134:JSRosbyte| 00000540 3a 53 54 58 70 6f 73 3a 53 54 59 76 70 6f 73 0d |:STXpos:STYvpos.| 00000550 01 72 25 4c 44 58 23 30 3a 4c 44 59 23 30 3a 4a |.r%LDX#0:LDY#0:J| 00000560 53 52 74 61 62 3a 53 54 59 66 6c 61 67 3a 53 54 |SRtab:STYflag:ST| 00000570 59 63 68 72 0d 01 7c 3e 2e 6c 6f 6f 70 42 20 4c |Ychr..|>.loopB L| 00000580 44 41 73 74 6f 72 65 2c 59 3a 4a 53 52 6f 6c 64 |DAstore,Y:JSRold| 00000590 77 72 63 68 3a 43 4d 50 23 97 22 5d 22 3a 42 45 |wrch:CMP#."]":BE| 000005a0 51 64 6f 6e 65 3a 49 4e 59 3a 42 4e 45 6c 6f 6f |Qdone:INY:BNEloo| 000005b0 70 42 0d 01 86 20 2e 64 6f 6e 65 20 4c 44 41 73 |pB... .done LDAs| 000005c0 74 65 70 66 6c 61 67 3a 42 45 51 6e 6f 70 61 75 |tepflag:BEQnopau| 000005d0 73 65 0d 01 90 35 2e 70 61 75 73 65 20 4a 53 52 |se...5.pause JSR| 000005e0 6f 73 72 64 63 68 3a 42 43 53 65 78 69 74 3a 43 |osrdch:BCSexit:C| 000005f0 4d 50 23 33 32 3a 42 4e 45 70 61 75 73 65 3a 2e |MP#32:BNEpause:.| 00000600 6e 6f 70 61 75 73 65 0d 01 9a 21 4c 44 58 70 6f |nopause...!LDXpo| 00000610 73 3a 4c 44 59 76 70 6f 73 3a 4a 53 52 74 61 62 |s:LDYvpos:JSRtab| 00000620 3a 4a 4d 50 65 78 69 74 0d 01 a4 38 2e 74 61 62 |:JMPexit...8.tab| 00000630 20 4c 44 41 23 33 31 3a 4a 53 52 6f 6c 64 77 72 | LDA#31:JSRoldwr| 00000640 63 68 3a 54 58 41 3a 4a 53 52 6f 6c 64 77 72 63 |ch:TXA:JSRoldwrc| 00000650 68 3a 54 59 41 3a 4a 4d 50 6f 6c 64 77 72 63 68 |h:TYA:JMPoldwrch| 00000660 0d 01 ae 0c 5d 3a ed 70 61 73 73 25 0d 01 b8 33 |....]:.pass%...3| 00000670 f1 22 50 72 65 73 73 20 52 65 74 75 72 6e 20 54 |."Press Return T| 00000680 6f 20 53 61 76 65 20 74 68 65 20 4d 61 63 68 69 |o Save the Machi| 00000690 6e 65 20 43 6f 64 65 22 3a f5 fd a5 3d 31 33 0d |ne Code":...=13.| 000006a0 01 c2 14 2a 53 41 56 45 20 41 54 20 39 30 30 20 |...*SAVE AT 900 | 000006b0 39 46 46 0d ff |9FF..| 000006b5