Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_37.ADF » P/DA2Disk
P/DA2Disk
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 ADFS disks » Electron_User_Group » EUG_37.ADF |
Filename: | P/DA2Disk |
Read OK: | ✔ |
File size: | 19B3 bytes |
Load address: | FFFF0E00 |
Exec address: | FFFF802B |
Duplicates
There is 1 duplicate copy of this file in the archive:
- Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_37.ADF » P/DA2Disk
- Personal collection » Acorn hard disk » zipped_disks » elk03 » eug37/P/DA2Disk
File contents
10REM Semi-automatic Disassembler with Disk Output 20REM (c) Mark Bellis 1997, 1998 30: 40REM Most 8-bit Acorn programmers who have a use for this program will know 50REM many of the opcodes already, and will have a good idea from a *DUMP 60REM listing whether something is code or data. This program merely speeds 70REM up disassembly of machine code programs by a factor of about 20. 80: 90REM V1.0 Sep 1997. *DUMP is just not sufficient! I want to eliminate 100REM the hours of disassembly by hand to decode routines 110REM in games etc... Voila! One disassembler! 120REM V1.1 Dec 1997. Nifty input routine added to eliminate some errors. 130REM V1.2 Dec 1997. Mode change added for Elk compatibility. 140REM V1.3 Mar 1998. EXEC output added to enable code reconstruction. 150REM (high speed reverse-engineering or what?!) 160: 170REM Possible Improvements: 180REM 1. Add BBR and BBS instructions for Rockwell R65C02 in Master Turbo 190REM and 6502 Second Processors. 200REM 2. Add option to relocate absolute addresses in EXEC mode. 210REM This would involve writing decoding functions for all five types 220REM of 3-byte instructions, but would not be difficult. 230: 240REM N.B. The author takes no responsibility for how this program is used. 250REM It is up to the user to use it responsibly and not steal or 260REM illegally reverse-engineer code for commercial gain. 270: 280mode%=6 290REM Mode 6 and variables to be compatible with Elk 300REM Mode 7 and od%=&7000, db%=&6000 can be used with Beeb/Master 310od%=&5000 320db%=&4000 330num$="0123456789" 340hex$="0123456789ABCDEF" 350alphaup$="ABCDEFGHIJKLMNOPQRSTUVWXYZ" 360alphalo$="abcdefghijklmnopqrstuvwxyz" 370sym$="!$%&'(),./<>?;:+[]{}_`-^\=~|" 380MODEmode% 390OSCLI("L. OPCDATA "+STR$~od%) 400: 410VDU31,0,0 420PRINT"Name of program to disassemble:"'"?"; 430prog$=FNinput(num$+alphaup$+alphalo$+sym$,39) 440VDU31,0,2 450PRINT"Name of output file for listing:"'"?"; 460outfile$=FNinput(num$+alphaup$+alphalo$+sym$,39) 470VDU31,0,4 480PRINT"Program load address :&"; 490load$=FNinput(hex$,4) 500load%=EVAL("&"+load$) 510prog%=OPENIN(prog$) 520outfile%=OPENOUT(outfile$) 530: 540REPEAT 550VDU31,0,5 560PRINT"Disassembly start address :&"; 570start$=FNinput(hex$,4) 580start%=EVAL("&"+start$) 590off%=start%-load% 600UNTILoff%>=0 610: 620VDU31,0,6 630PRINT"(P)rinter, (E)XEC or (W)P Output?"; 640d$=FNinput("EPW",1) 650: 660MODEmode% 670floc%=start% 680line%=10 690IF d$<>"E" THEN 830 700PROCoutput(" 10 FOR pass%=0 TO 3 STEP 3") 710line%=line%+10 720FORI%=0TO2500:NEXT 730VDU31,0,10 740PRINTSTRING$(39," "); 750PROCoutput(" 20 P%= &"+start$) 760line%=line%+10 770FORI%=0TO2500:NEXT 780VDU31,0,10 790PRINTSTRING$(39," "); 800PROCoutput(" 30 [OPT pass%") 810line%=line%+10 820: 830REPEAT 840pptr%=floc%-load% 850IFpptr%<=(EXT#prog%) THEN PTR#prog%=pptr% 860VDU31,0,4 870FORJ%=0TO24STEP8 880loc%=(floc%+J%) MOD&10000 890ll%=LEN(STR$~loc%) 900loc$=MID$("0000",0,4-ll%)+STR$~loc% 910PRINTloc$;" "; 920FORI%=db%TOdb%+7 930IFEOF#prog% b$="**":?(I%+J%)=32:GOTO970 940?(I%+J%)=BGET#prog% 950bl%=LEN(STR$~?(I%+J%)) 960b$=MID$("00",0,2-bl%)+STR$~?(I%+J%) 970PRINTb$;" "; 980IF(I%+J%)=db% c$=b$:sloc$=loc$ 990NEXTI% 1000FORI%=db%TOdb%+7 1010byte%=?(I%+J%) 1020IFbyte%<32 byte%=46 1030IFbyte%>126 byte%=46 1040VDUbyte% 1050NEXTI% 1060VDU10,13 1070NEXTJ% 1080IFc$="**" THEN 1280 1090VDU30 1100PRINT"(O)pcode / (S)tring / (B)yte /" 1110PRINT"(W)ord / (D)ouble word / (E)nd?"; 1120a$=GET$ 1130IFa$="E" THEN 1230 1140VDU31,0,10 1150PRINTSTRING$(39," "); 1160IFa$="O" opl%=FNdisassem 1170IFa$="S" opl%=FNstring 1180IFa$="B" opl%=FNbyte 1190IFa$="W" opl%=FNword 1200IFa$="D" opl%=FNdouble 1210floc%=floc%+opl% 1220line%=line%+10 1230UNTILa$="E" 1240: 1250IF d$<>"E" THEN 1340 1260VDU31,0,10 1270PRINTSTRING$(39," "); 1280PROCoutput(" ]") 1290line%=line%+10 1300FORI%=0TO2500:NEXT 1310VDU31,0,10 1320PRINTSTRING$(39," "); 1330PROCoutput(" NEXT pass%") 1340CLOSE#0 1350VDU31,0,12 1360PRINT"Disassembly complete." 1370IF d$="W" THEN PRINT"You can now load "+outfile$+" into your Wordprocessor." 1380IF d$="P" THEN PRINT"Type ""*PRINT "+outfile$+"<Ctrl-B>"" to print." 1390IF d$="E" THEN PRINT"Type ""NEW"" then ""*EXEC "+outfile$+""" to load the program." 1400END 1410: 1420REM Disassembly Function 1430DEFFNdisassem 1440LOCALpa$ 1450op$=$(od%+10*?db%) 1460am$=$(od%+4+10*?db%) 1470IFam$="" THEN ol%=0:a$="D":=0 1480p1$=MID$("00",0,2-LEN(STR$~db%?1))+STR$~db%?1 1490p2$=MID$("00",0,2-LEN(STR$~db%?2))+STR$~db%?2 1500pa$=CHR$(db%?1) 1510IFdb%?1 <32 pa$="." 1520IFdb%?1 >126 pa$="." 1530IFam$="IMP" ol%=1:i$="" 1540IFam$="A" ol%=1:i$="A" 1550IFam$="IMM" ol%=2:i$="#&"+p1$+" """+pa$+"""" 1560IFam$="ZPG" ol%=2:i$="&"+p1$ 1570IFam$="ZPG,X" ol%=2:i$="&"+p1$+",X" 1580IFam$="ZPG,Y" ol%=2:i$="&"+p1$+",Y" 1590IFam$="IND" ol%=2:i$="(&"+p1$+")" 1600IFam$="IND,X" ol%=2:i$="(&"+p1$+",X)" 1610IFam$="IND,Y" ol%=2:i$="(&"+p1$+"),Y" 1620IFam$="REL" ol%=2:i$=FNrel(db%?1,p1$) 1630IFam$="ABS" ol%=3:i$="&"+p2$+p1$ 1640IFam$="ABS,X" ol%=3:i$="&"+p2$+p1$+",X" 1650IFam$="ABS,Y" ol%=3:i$="&"+p2$+p1$+",Y" 1660IFam$="LND" ol%=3:i$="(&"+p2$+p1$+")" 1670IFam$="LND,X" ol%=3:i$="(&"+p2$+p1$+",X)" 1680out$=sloc$+" "+op$+" "+i$ 1690IFam$="IMP" out$=LEFT$(out$,LEN(out$)-1) 1700PROCoutput(out$) 1710=ol% 1720: 1730REM Relative Address Calculation 1740DEFFNrel(data%,data$) 1750IFd$<>"E" THEN ="&"+data$ 1760IFdata%>&7F THEN ="P%-254+&"+data$ 1770="P%+2+&"+data$ 1780: 1790REM String Function 1800DEFFNstring 1810ol%=0 1820pb$="" 1830VDU31,0,2 1840INPUT"How long is the string";sl% 1850op$="EQUS" 1860REPEAT 1870pa$=CHR$(?(db%+ol%)) 1880IF?db% <32 pa$="." 1890IF?db% >126 pa$="." 1900pb$=pb$+pa$ 1910ol%=ol%+1 1920UNTILol%=sl% 1930out$=sloc$+" "+op$+" """+pb$+"""" 1940PROCoutput(out$) 1950VDU31,0,2 1960PRINT" "; 1970=ol% 1980: 1990REM Byte Function 2000DEFFNbyte 2010ol%=1 2020op$="EQUB" 2030p0$=MID$("00",0,2-LEN(STR$~db%?0))+STR$~db%?0 2040pa$=CHR$(?db%) 2050IF?db% <32 pa$="." 2060IF?db% >126 pa$="." 2070i$="&"+p0$+" """+pa$+"""" 2080out$=sloc$+" "+op$+" "+i$ 2090PROCoutput(out$) 2100=ol% 2110: 2120REM Word Function 2130DEFFNword 2140ol%=2 2150op$="EQUW" 2160p0$=MID$("00",0,2-LEN(STR$~db%?0))+STR$~db%?0 2170p1$=MID$("00",0,2-LEN(STR$~db%?1))+STR$~db%?1 2180out$=sloc$+" "+op$+" &"+p1$+p0$ 2190PROCoutput(out$) 2200=ol% 2210: 2220REM Double Word Function 2230DEFFNdouble 2240ol%=4 2250op$="EQUD" 2260p0$=MID$("00",0,2-LEN(STR$~db%?0))+STR$~db%?0 2270p1$=MID$("00",0,2-LEN(STR$~db%?1))+STR$~db%?1 2280p2$=MID$("00",0,2-LEN(STR$~db%?2))+STR$~db%?2 2290p3$=MID$("00",0,2-LEN(STR$~db%?3))+STR$~db%?3 2300out$=sloc$+" "+op$+" &"+p3$+p2$+p1$+p0$ 2310PROCoutput(out$) 2320=ol% 2330: 2340REM Output procedure 2350DEFPROCoutput(a$) 2360LOCALk%,lennum% 2370IF d$="E" lennum%=LEN(STR$(line%)) 2380IF d$="E" a$=MID$(" ",0,4-lennum%)+STR$(line%)+RIGHT$(a$,LEN(a$)-4) 2390VDU31,0,10 2400PRINTa$ 2410FORk%=1TOLEN(a$) 2420BPUT#outfile%,ASC(MID$(a$,k%,1)) 2430NEXTk% 2440IF d$="P" THEN BPUT#outfile%,10 2450BPUT#outfile%,13 2460ENDPROC 2470: 2480REM Input Function 2490DEFFNinput(legal$,maxlen%) 2500LOCALa%,a$,b$ 2510REPEAT 2520REPEAT 2530a%=GET 2540UNTIL INSTR(legal$,CHR$(a%)) >0 OR a%=13 OR a%=127 2550legal%=(INSTR(legal$,CHR$(a%)) >0) 2560mlnex%=(LEN(a$) < maxlen%) 2570IF legal% AND mlnex% THEN a$=a$+CHR$(a%) 2580IF legal% AND mlnex% THEN VDUa% 2590IF a%=127 AND LEN(a$) >0 THEN VDUa% 2600IF a%=127 THEN a$=LEFT$(a$,LEN(a$)-1) 2610UNTIL a%=13 2620=a$
2� Semi-automatic Disassembler with Disk Output � (c) Mark Bellis 1997, 1998 : (L� Most 8-bit Acorn programmers who have a use for this program will know 2I� many of the opcodes already, and will have a good idea from a *DUMP <L� listing whether something is code or data. This program merely speeds FF� up disassembly of machine code programs by a factor of about 20. P: ZG� V1.0 Sep 1997. *DUMP is just not sufficient! I want to eliminate dH� the hours of disassembly by hand to decode routines n>� in games etc... Voila! One disassembler! xH� V1.1 Dec 1997. Nifty input routine added to eliminate some errors. �=� V1.2 Dec 1997. Mode change added for Elk compatibility. �E� V1.3 Mar 1998. EXEC output added to enable code reconstruction. �?� (high speed reverse-engineering or what?!) �: �� Possible Improvements: �I� 1. Add BBR and BBS instructions for Rockwell R65C02 in Master Turbo �$� and 6502 Second Processors. �@� 2. Add option to relocate absolute addresses in EXEC mode. �I� This would involve writing decoding functions for all five types �<� of 3-byte instructions, but would not be difficult. �: �K� N.B. The author takes no responsibility for how this program is used. �F� It is up to the user to use it responsibly and not steal or ?� illegally reverse-engineer code for commercial gain. : mode%=6 "4� Mode 6 and variables to be compatible with Elk ,B� Mode 7 and od%=&7000, db%=&6000 can be used with Beeb/Master 6 od%=&5000 @ db%=&4000 Jnum$="0123456789" Thex$="0123456789ABCDEF" ^)alphaup$="ABCDEFGHIJKLMNOPQRSTUVWXYZ" h)alphalo$="abcdefghijklmnopqrstuvwxyz" r'sym$="!$%&'(),./<>?;:+[]{}_`-^\=~|" | �mode% ��("L. OPCDATA "+�~od%) �: ��31,0,0 �+�"Name of program to disassemble:"'"?"; �0prog$=�input(num$+alphaup$+alphalo$+sym$,39) ��31,0,2 �,�"Name of output file for listing:"'"?"; �3outfile$=�input(num$+alphaup$+alphalo$+sym$,39) ��31,0,4 �$�"Program load address :&"; �load$=�input(hex$,4) �load%=�("&"+load$) �prog%=�(prog$) outfile%=�(outfile$) : � &�31,0,5 0$�"Disassembly start address :&"; :start$=�input(hex$,4) Dstart%=�("&"+start$) Noff%=start%-load% X�off%>=0 b: l�31,0,6 v)�"(P)rinter, (E)XEC or (W)P Output?"; �d$=�input("EPW",1) �: � �mode% �floc%=start% �line%=10 �� d$<>"E" � �T~C �+�output(" 10 FOR pass%=0 TO 3 STEP 3") �line%=line%+10 ��I%=0�2500:� ��31,0,10 ���39," "); � �output(" 20 P%= &"+start$) �line%=line%+10 �I%=0�2500:� �31,0,10 ��39," "); �output(" 30 [OPT pass%") *line%=line%+10 4: >� Hpptr%=floc%-load% R%�pptr%<=(�#prog%) � �#prog%=pptr% \�31,0,4 f�J%=0�24�8 ploc%=(floc%+J%) �&10000 zll%=�(�~loc%) � loc$=�"0000",0,4-ll%)+�~loc% ��loc$;" "; ��I%=db%�db%+7 �&��#prog% b$="**":?(I%+J%)=32:�dJC �?(I%+J%)=�#prog% �bl%=�(�~?(I%+J%)) � b$=�"00",0,2-bl%)+�~?(I%+J%) ��b$;" "; �!�(I%+J%)=db% c$=b$:sloc$=loc$ ��I% ��I%=db%�db%+7 �byte%=?(I%+J%) ��byte%<32 byte%=46 �byte%>126 byte%=46 �byte% �I% $ �10,13 .�J% 8�c$="**" � �T@E B�30 L%�"(O)pcode / (S)tring / (B)yte /" V'�"(W)ord / (D)ouble word / (E)nd?"; `a$=� j�a$="E" � �dND t�31,0,10 ~��39," "); ��a$="O" opl%=�disassem ��a$="S" opl%=�string ��a$="B" opl%=�byte ��a$="W" opl%=�word ��a$="D" opl%=�double �floc%=floc%+opl% �line%=line%+10 ��a$="E" �: �� d$<>"E" � �T|E ��31,0,10 ���39," "); �output(" ]") line%=line%+10 �I%=0�2500:� �31,0,10 (��39," "); 2�output(" NEXT pass%") <�#0 F�31,0,12 P�"Disassembly complete." ZH� d$="W" � �"You can now load "+outfile$+" into your Wordprocessor." d@� d$="P" � �"Type ""*PRINT "+outfile$+"<Ctrl-B>"" to print." nO� d$="E" � �"Type ""NEW"" then ""*EXEC "+outfile$+""" to load the program." x� �: �� Disassembly Function �ݤdisassem ��pa$ �op$=$(od%+10*?db%) �am$=$(od%+4+10*?db%) ��am$="" � ol%=0:a$="D":=0 �%p1$=�"00",0,2-�(�~db%?1))+�~db%?1 �%p2$=�"00",0,2-�(�~db%?2))+�~db%?2 �pa$=�(db%?1) ��db%?1 <32 pa$="." ��db%?1 >126 pa$="." ��am$="IMP" ol%=1:i$="" �am$="A" ol%=1:i$="A" 1�am$="IMM" ol%=2:i$="#&"+p1$+" """+pa$+"""" !�am$="ZPG" ol%=2:i$="&"+p1$ "&�am$="ZPG,X" ol%=2:i$="&"+p1$+",X" ,&�am$="ZPG,Y" ol%=2:i$="&"+p1$+",Y" 6&�am$="IND" ol%=2:i$="(&"+p1$+")" @(�am$="IND,X" ol%=2:i$="(&"+p1$+",X)" J(�am$="IND,Y" ol%=2:i$="(&"+p1$+"),Y" T)�am$="REL" ol%=2:i$=�rel(db%?1,p1$) ^%�am$="ABS" ol%=3:i$="&"+p2$+p1$ h*�am$="ABS,X" ol%=3:i$="&"+p2$+p1$+",X" r*�am$="ABS,Y" ol%=3:i$="&"+p2$+p1$+",Y" |*�am$="LND" ol%=3:i$="(&"+p2$+p1$+")" �,�am$="LND,X" ol%=3:i$="(&"+p2$+p1$+",X)" �out$=sloc$+" "+op$+" "+i$ �&�am$="IMP" out$=�out$,�(out$)-1) ��output(out$) �=ol% �: �"� Relative Address Calculation �ݤrel(data%,data$) ��d$<>"E" � ="&"+data$ �"�data%>&7F � ="P%-254+&"+data$ �="P%+2+&"+data$ �: �� String Function ݤstring ol%=0 pb$="" &�31,0,2 0!�"How long is the string";sl% :op$="EQUS" D� Npa$=�(?(db%+ol%)) X�?db% <32 pa$="." b�?db% >126 pa$="." lpb$=pb$+pa$ v ol%=ol%+1 ��ol%=sl% �%out$=sloc$+" "+op$+" """+pb$+"""" ��output(out$) ��31,0,2 �#�" "; �=ol% �: �� Byte Function � ݤbyte � ol%=1 �op$="EQUB" �%p0$=�"00",0,2-�(�~db%?0))+�~db%?0 �pa$=�(?db%) �?db% <32 pa$="." �?db% >126 pa$="." i$="&"+p0$+" """+pa$+"""" out$=sloc$+" "+op$+" "+i$ *�output(out$) 4=ol% >: H� Word Function R ݤword \ ol%=2 fop$="EQUW" p%p0$=�"00",0,2-�(�~db%?0))+�~db%?0 z%p1$=�"00",0,2-�(�~db%?1))+�~db%?1 �#out$=sloc$+" "+op$+" &"+p1$+p0$ ��output(out$) �=ol% �: �� Double Word Function �ݤdouble � ol%=4 �op$="EQUD" �%p0$=�"00",0,2-�(�~db%?0))+�~db%?0 �%p1$=�"00",0,2-�(�~db%?1))+�~db%?1 �%p2$=�"00",0,2-�(�~db%?2))+�~db%?2 �%p3$=�"00",0,2-�(�~db%?3))+�~db%?3 �+out$=sloc$+" "+op$+" &"+p3$+p2$+p1$+p0$ �output(out$) =ol% : $� Output procedure .��output(a$) 8�k%,lennum% B � d$="E" lennum%=�(�(line%)) L:� d$="E" a$=�" ",0,4-lennum%)+�(line%)+�a$,�(a$)-4) V�31,0,10 `�a$ j�k%=1��(a$) t�#outfile%,�(�a$,k%,1)) ~�k% �� d$="P" � �#outfile%,10 ��#outfile%,13 �� �: �� Input Function �ݤinput(legal$,maxlen%) � �a%,a$,b$ �� �� �a%=� �(� �legal$,�(a%)) >0 � a%=13 � a%=127 �legal%=(�legal$,�(a%)) >0) mlnex%=(�(a$) < maxlen%) #� legal% � mlnex% � a$=a$+�(a%) � legal% � mlnex% � �a% � a%=127 � �(a$) >0 � �a% (� a%=127 � a$=�a$,�(a$)-1) 2� a%=13 <=a$ �
00000000 0d 00 0a 32 f4 20 53 65 6d 69 2d 61 75 74 6f 6d |...2. Semi-autom| 00000010 61 74 69 63 20 44 69 73 61 73 73 65 6d 62 6c 65 |atic Disassemble| 00000020 72 20 77 69 74 68 20 44 69 73 6b 20 4f 75 74 70 |r with Disk Outp| 00000030 75 74 0d 00 14 20 f4 20 28 63 29 20 4d 61 72 6b |ut... . (c) Mark| 00000040 20 42 65 6c 6c 69 73 20 31 39 39 37 2c 20 31 39 | Bellis 1997, 19| 00000050 39 38 0d 00 1e 05 3a 0d 00 28 4c f4 20 4d 6f 73 |98....:..(L. Mos| 00000060 74 20 38 2d 62 69 74 20 41 63 6f 72 6e 20 70 72 |t 8-bit Acorn pr| 00000070 6f 67 72 61 6d 6d 65 72 73 20 77 68 6f 20 68 61 |ogrammers who ha| 00000080 76 65 20 61 20 75 73 65 20 66 6f 72 20 74 68 69 |ve a use for thi| 00000090 73 20 70 72 6f 67 72 61 6d 20 77 69 6c 6c 20 6b |s program will k| 000000a0 6e 6f 77 0d 00 32 49 f4 20 6d 61 6e 79 20 6f 66 |now..2I. many of| 000000b0 20 74 68 65 20 6f 70 63 6f 64 65 73 20 61 6c 72 | the opcodes alr| 000000c0 65 61 64 79 2c 20 61 6e 64 20 77 69 6c 6c 20 68 |eady, and will h| 000000d0 61 76 65 20 61 20 67 6f 6f 64 20 69 64 65 61 20 |ave a good idea | 000000e0 66 72 6f 6d 20 61 20 2a 44 55 4d 50 0d 00 3c 4c |from a *DUMP..<L| 000000f0 f4 20 6c 69 73 74 69 6e 67 20 77 68 65 74 68 65 |. listing whethe| 00000100 72 20 73 6f 6d 65 74 68 69 6e 67 20 69 73 20 63 |r something is c| 00000110 6f 64 65 20 6f 72 20 64 61 74 61 2e 20 20 54 68 |ode or data. Th| 00000120 69 73 20 70 72 6f 67 72 61 6d 20 6d 65 72 65 6c |is program merel| 00000130 79 20 73 70 65 65 64 73 0d 00 46 46 f4 20 75 70 |y speeds..FF. up| 00000140 20 64 69 73 61 73 73 65 6d 62 6c 79 20 6f 66 20 | disassembly of | 00000150 6d 61 63 68 69 6e 65 20 63 6f 64 65 20 70 72 6f |machine code pro| 00000160 67 72 61 6d 73 20 62 79 20 61 20 66 61 63 74 6f |grams by a facto| 00000170 72 20 6f 66 20 61 62 6f 75 74 20 32 30 2e 0d 00 |r of about 20...| 00000180 50 05 3a 0d 00 5a 47 f4 20 56 31 2e 30 20 53 65 |P.:..ZG. V1.0 Se| 00000190 70 20 31 39 39 37 2e 20 2a 44 55 4d 50 20 69 73 |p 1997. *DUMP is| 000001a0 20 6a 75 73 74 20 6e 6f 74 20 73 75 66 66 69 63 | just not suffic| 000001b0 69 65 6e 74 21 20 20 49 20 77 61 6e 74 20 74 6f |ient! I want to| 000001c0 20 65 6c 69 6d 69 6e 61 74 65 0d 00 64 48 f4 20 | eliminate..dH. | 000001d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 | t| 000001e0 68 65 20 68 6f 75 72 73 20 6f 66 20 64 69 73 61 |he hours of disa| 000001f0 73 73 65 6d 62 6c 79 20 62 79 20 68 61 6e 64 20 |ssembly by hand | 00000200 74 6f 20 64 65 63 6f 64 65 20 72 6f 75 74 69 6e |to decode routin| 00000210 65 73 0d 00 6e 3e f4 20 20 20 20 20 20 20 20 20 |es..n>. | 00000220 20 20 20 20 20 20 20 69 6e 20 67 61 6d 65 73 20 | in games | 00000230 65 74 63 2e 2e 2e 20 20 56 6f 69 6c 61 21 20 4f |etc... Voila! O| 00000240 6e 65 20 64 69 73 61 73 73 65 6d 62 6c 65 72 21 |ne disassembler!| 00000250 0d 00 78 48 f4 20 56 31 2e 31 20 44 65 63 20 31 |..xH. V1.1 Dec 1| 00000260 39 39 37 2e 20 4e 69 66 74 79 20 69 6e 70 75 74 |997. Nifty input| 00000270 20 72 6f 75 74 69 6e 65 20 61 64 64 65 64 20 74 | routine added t| 00000280 6f 20 65 6c 69 6d 69 6e 61 74 65 20 73 6f 6d 65 |o eliminate some| 00000290 20 65 72 72 6f 72 73 2e 0d 00 82 3d f4 20 56 31 | errors....=. V1| 000002a0 2e 32 20 44 65 63 20 31 39 39 37 2e 20 4d 6f 64 |.2 Dec 1997. Mod| 000002b0 65 20 63 68 61 6e 67 65 20 61 64 64 65 64 20 66 |e change added f| 000002c0 6f 72 20 45 6c 6b 20 63 6f 6d 70 61 74 69 62 69 |or Elk compatibi| 000002d0 6c 69 74 79 2e 0d 00 8c 45 f4 20 56 31 2e 33 20 |lity....E. V1.3 | 000002e0 4d 61 72 20 31 39 39 38 2e 20 45 58 45 43 20 6f |Mar 1998. EXEC o| 000002f0 75 74 70 75 74 20 61 64 64 65 64 20 74 6f 20 65 |utput added to e| 00000300 6e 61 62 6c 65 20 63 6f 64 65 20 72 65 63 6f 6e |nable code recon| 00000310 73 74 72 75 63 74 69 6f 6e 2e 0d 00 96 3f f4 20 |struction....?. | 00000320 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 | (| 00000330 68 69 67 68 20 73 70 65 65 64 20 72 65 76 65 72 |high speed rever| 00000340 73 65 2d 65 6e 67 69 6e 65 65 72 69 6e 67 20 6f |se-engineering o| 00000350 72 20 77 68 61 74 3f 21 29 0d 00 a0 05 3a 0d 00 |r what?!)....:..| 00000360 aa 1c f4 20 50 6f 73 73 69 62 6c 65 20 49 6d 70 |... Possible Imp| 00000370 72 6f 76 65 6d 65 6e 74 73 3a 0d 00 b4 49 f4 20 |rovements:...I. | 00000380 31 2e 20 41 64 64 20 42 42 52 20 61 6e 64 20 42 |1. Add BBR and B| 00000390 42 53 20 69 6e 73 74 72 75 63 74 69 6f 6e 73 20 |BS instructions | 000003a0 66 6f 72 20 52 6f 63 6b 77 65 6c 6c 20 52 36 35 |for Rockwell R65| 000003b0 43 30 32 20 69 6e 20 4d 61 73 74 65 72 20 54 75 |C02 in Master Tu| 000003c0 72 62 6f 0d 00 be 24 f4 20 20 20 20 61 6e 64 20 |rbo...$. and | 000003d0 36 35 30 32 20 53 65 63 6f 6e 64 20 50 72 6f 63 |6502 Second Proc| 000003e0 65 73 73 6f 72 73 2e 0d 00 c8 40 f4 20 32 2e 20 |essors....@. 2. | 000003f0 41 64 64 20 6f 70 74 69 6f 6e 20 74 6f 20 72 65 |Add option to re| 00000400 6c 6f 63 61 74 65 20 61 62 73 6f 6c 75 74 65 20 |locate absolute | 00000410 61 64 64 72 65 73 73 65 73 20 69 6e 20 45 58 45 |addresses in EXE| 00000420 43 20 6d 6f 64 65 2e 0d 00 d2 49 f4 20 20 20 20 |C mode....I. | 00000430 54 68 69 73 20 77 6f 75 6c 64 20 69 6e 76 6f 6c |This would invol| 00000440 76 65 20 77 72 69 74 69 6e 67 20 64 65 63 6f 64 |ve writing decod| 00000450 69 6e 67 20 66 75 6e 63 74 69 6f 6e 73 20 66 6f |ing functions fo| 00000460 72 20 61 6c 6c 20 66 69 76 65 20 74 79 70 65 73 |r all five types| 00000470 0d 00 dc 3c f4 20 20 20 20 6f 66 20 33 2d 62 79 |...<. of 3-by| 00000480 74 65 20 69 6e 73 74 72 75 63 74 69 6f 6e 73 2c |te instructions,| 00000490 20 62 75 74 20 77 6f 75 6c 64 20 6e 6f 74 20 62 | but would not b| 000004a0 65 20 64 69 66 66 69 63 75 6c 74 2e 0d 00 e6 05 |e difficult.....| 000004b0 3a 0d 00 f0 4b f4 20 4e 2e 42 2e 20 54 68 65 20 |:...K. N.B. The | 000004c0 61 75 74 68 6f 72 20 74 61 6b 65 73 20 6e 6f 20 |author takes no | 000004d0 72 65 73 70 6f 6e 73 69 62 69 6c 69 74 79 20 66 |responsibility f| 000004e0 6f 72 20 68 6f 77 20 74 68 69 73 20 70 72 6f 67 |or how this prog| 000004f0 72 61 6d 20 69 73 20 75 73 65 64 2e 0d 00 fa 46 |ram is used....F| 00000500 f4 20 20 20 20 20 20 49 74 20 69 73 20 75 70 20 |. It is up | 00000510 74 6f 20 74 68 65 20 75 73 65 72 20 74 6f 20 75 |to the user to u| 00000520 73 65 20 69 74 20 72 65 73 70 6f 6e 73 69 62 6c |se it responsibl| 00000530 79 20 61 6e 64 20 6e 6f 74 20 73 74 65 61 6c 20 |y and not steal | 00000540 6f 72 0d 01 04 3f f4 20 20 20 20 20 20 69 6c 6c |or...?. ill| 00000550 65 67 61 6c 6c 79 20 72 65 76 65 72 73 65 2d 65 |egally reverse-e| 00000560 6e 67 69 6e 65 65 72 20 63 6f 64 65 20 66 6f 72 |ngineer code for| 00000570 20 63 6f 6d 6d 65 72 63 69 61 6c 20 67 61 69 6e | commercial gain| 00000580 2e 0d 01 0e 05 3a 0d 01 18 0b 6d 6f 64 65 25 3d |.....:....mode%=| 00000590 36 0d 01 22 34 f4 20 4d 6f 64 65 20 36 20 61 6e |6.."4. Mode 6 an| 000005a0 64 20 76 61 72 69 61 62 6c 65 73 20 74 6f 20 62 |d variables to b| 000005b0 65 20 63 6f 6d 70 61 74 69 62 6c 65 20 77 69 74 |e compatible wit| 000005c0 68 20 45 6c 6b 0d 01 2c 42 f4 20 4d 6f 64 65 20 |h Elk..,B. Mode | 000005d0 37 20 61 6e 64 20 6f 64 25 3d 26 37 30 30 30 2c |7 and od%=&7000,| 000005e0 20 64 62 25 3d 26 36 30 30 30 20 63 61 6e 20 62 | db%=&6000 can b| 000005f0 65 20 75 73 65 64 20 77 69 74 68 20 42 65 65 62 |e used with Beeb| 00000600 2f 4d 61 73 74 65 72 0d 01 36 0d 6f 64 25 3d 26 |/Master..6.od%=&| 00000610 35 30 30 30 0d 01 40 0d 64 62 25 3d 26 34 30 30 |5000..@.db%=&400| 00000620 30 0d 01 4a 15 6e 75 6d 24 3d 22 30 31 32 33 34 |0..J.num$="01234| 00000630 35 36 37 38 39 22 0d 01 54 1b 68 65 78 24 3d 22 |56789"..T.hex$="| 00000640 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 |0123456789ABCDEF| 00000650 22 0d 01 5e 29 61 6c 70 68 61 75 70 24 3d 22 41 |"..^)alphaup$="A| 00000660 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 |BCDEFGHIJKLMNOPQ| 00000670 52 53 54 55 56 57 58 59 5a 22 0d 01 68 29 61 6c |RSTUVWXYZ"..h)al| 00000680 70 68 61 6c 6f 24 3d 22 61 62 63 64 65 66 67 68 |phalo$="abcdefgh| 00000690 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 77 78 |ijklmnopqrstuvwx| 000006a0 79 7a 22 0d 01 72 27 73 79 6d 24 3d 22 21 24 25 |yz"..r'sym$="!$%| 000006b0 26 27 28 29 2c 2e 2f 3c 3e 3f 3b 3a 2b 5b 5d 7b |&'(),./<>?;:+[]{| 000006c0 7d 5f 60 2d 5e 5c 3d 7e 7c 22 0d 01 7c 0a eb 6d |}_`-^\=~|"..|..m| 000006d0 6f 64 65 25 0d 01 86 1a ff 28 22 4c 2e 20 4f 50 |ode%.....("L. OP| 000006e0 43 44 41 54 41 20 22 2b c3 7e 6f 64 25 29 0d 01 |CDATA "+.~od%)..| 000006f0 90 05 3a 0d 01 9a 0b ef 33 31 2c 30 2c 30 0d 01 |..:.....31,0,0..| 00000700 a4 2b f1 22 4e 61 6d 65 20 6f 66 20 70 72 6f 67 |.+."Name of prog| 00000710 72 61 6d 20 74 6f 20 64 69 73 61 73 73 65 6d 62 |ram to disassemb| 00000720 6c 65 3a 22 27 22 3f 22 3b 0d 01 ae 30 70 72 6f |le:"'"?";...0pro| 00000730 67 24 3d a4 69 6e 70 75 74 28 6e 75 6d 24 2b 61 |g$=.input(num$+a| 00000740 6c 70 68 61 75 70 24 2b 61 6c 70 68 61 6c 6f 24 |lphaup$+alphalo$| 00000750 2b 73 79 6d 24 2c 33 39 29 0d 01 b8 0b ef 33 31 |+sym$,39).....31| 00000760 2c 30 2c 32 0d 01 c2 2c f1 22 4e 61 6d 65 20 6f |,0,2...,."Name o| 00000770 66 20 6f 75 74 70 75 74 20 66 69 6c 65 20 66 6f |f output file fo| 00000780 72 20 6c 69 73 74 69 6e 67 3a 22 27 22 3f 22 3b |r listing:"'"?";| 00000790 0d 01 cc 33 6f 75 74 66 69 6c 65 24 3d a4 69 6e |...3outfile$=.in| 000007a0 70 75 74 28 6e 75 6d 24 2b 61 6c 70 68 61 75 70 |put(num$+alphaup| 000007b0 24 2b 61 6c 70 68 61 6c 6f 24 2b 73 79 6d 24 2c |$+alphalo$+sym$,| 000007c0 33 39 29 0d 01 d6 0b ef 33 31 2c 30 2c 34 0d 01 |39).....31,0,4..| 000007d0 e0 24 f1 22 50 72 6f 67 72 61 6d 20 6c 6f 61 64 |.$."Program load| 000007e0 20 61 64 64 72 65 73 73 20 20 20 20 20 20 3a 26 | address :&| 000007f0 22 3b 0d 01 ea 18 6c 6f 61 64 24 3d a4 69 6e 70 |";....load$=.inp| 00000800 75 74 28 68 65 78 24 2c 34 29 0d 01 f4 16 6c 6f |ut(hex$,4)....lo| 00000810 61 64 25 3d a0 28 22 26 22 2b 6c 6f 61 64 24 29 |ad%=.("&"+load$)| 00000820 0d 01 fe 12 70 72 6f 67 25 3d 8e 28 70 72 6f 67 |....prog%=.(prog| 00000830 24 29 0d 02 08 18 6f 75 74 66 69 6c 65 25 3d ae |$)....outfile%=.| 00000840 28 6f 75 74 66 69 6c 65 24 29 0d 02 12 05 3a 0d |(outfile$)....:.| 00000850 02 1c 05 f5 0d 02 26 0b ef 33 31 2c 30 2c 35 0d |......&..31,0,5.| 00000860 02 30 24 f1 22 44 69 73 61 73 73 65 6d 62 6c 79 |.0$."Disassembly| 00000870 20 73 74 61 72 74 20 61 64 64 72 65 73 73 20 3a | start address :| 00000880 26 22 3b 0d 02 3a 19 73 74 61 72 74 24 3d a4 69 |&";..:.start$=.i| 00000890 6e 70 75 74 28 68 65 78 24 2c 34 29 0d 02 44 18 |nput(hex$,4)..D.| 000008a0 73 74 61 72 74 25 3d a0 28 22 26 22 2b 73 74 61 |start%=.("&"+sta| 000008b0 72 74 24 29 0d 02 4e 15 6f 66 66 25 3d 73 74 61 |rt$)..N.off%=sta| 000008c0 72 74 25 2d 6c 6f 61 64 25 0d 02 58 0c fd 6f 66 |rt%-load%..X..of| 000008d0 66 25 3e 3d 30 0d 02 62 05 3a 0d 02 6c 0b ef 33 |f%>=0..b.:..l..3| 000008e0 31 2c 30 2c 36 0d 02 76 29 f1 22 28 50 29 72 69 |1,0,6..v)."(P)ri| 000008f0 6e 74 65 72 2c 20 28 45 29 58 45 43 20 6f 72 20 |nter, (E)XEC or | 00000900 28 57 29 50 20 4f 75 74 70 75 74 3f 22 3b 0d 02 |(W)P Output?";..| 00000910 80 16 64 24 3d a4 69 6e 70 75 74 28 22 45 50 57 |..d$=.input("EPW| 00000920 22 2c 31 29 0d 02 8a 05 3a 0d 02 94 0a eb 6d 6f |",1)....:.....mo| 00000930 64 65 25 0d 02 9e 10 66 6c 6f 63 25 3d 73 74 61 |de%....floc%=sta| 00000940 72 74 25 0d 02 a8 0c 6c 69 6e 65 25 3d 31 30 0d |rt%....line%=10.| 00000950 02 b2 14 e7 20 64 24 3c 3e 22 45 22 20 8c 20 8d |.... d$<>"E" . .| 00000960 54 7e 43 0d 02 bc 2b f2 6f 75 74 70 75 74 28 22 |T~C...+.output("| 00000970 20 20 31 30 20 46 4f 52 20 70 61 73 73 25 3d 30 | 10 FOR pass%=0| 00000980 20 54 4f 20 33 20 53 54 45 50 20 33 22 29 0d 02 | TO 3 STEP 3")..| 00000990 c6 12 6c 69 6e 65 25 3d 6c 69 6e 65 25 2b 31 30 |..line%=line%+10| 000009a0 0d 02 d0 10 e3 49 25 3d 30 b8 32 35 30 30 3a ed |.....I%=0.2500:.| 000009b0 0d 02 da 0c ef 33 31 2c 30 2c 31 30 0d 02 e4 0e |.....31,0,10....| 000009c0 f1 c4 33 39 2c 22 20 22 29 3b 0d 02 ee 20 f2 6f |..39," ");... .o| 000009d0 75 74 70 75 74 28 22 20 20 32 30 20 50 25 3d 20 |utput(" 20 P%= | 000009e0 26 22 2b 73 74 61 72 74 24 29 0d 02 f8 12 6c 69 |&"+start$)....li| 000009f0 6e 65 25 3d 6c 69 6e 65 25 2b 31 30 0d 03 02 10 |ne%=line%+10....| 00000a00 e3 49 25 3d 30 b8 32 35 30 30 3a ed 0d 03 0c 0c |.I%=0.2500:.....| 00000a10 ef 33 31 2c 30 2c 31 30 0d 03 16 0e f1 c4 33 39 |.31,0,10......39| 00000a20 2c 22 20 22 29 3b 0d 03 20 1e f2 6f 75 74 70 75 |," ");.. ..outpu| 00000a30 74 28 22 20 20 33 30 20 5b 4f 50 54 20 70 61 73 |t(" 30 [OPT pas| 00000a40 73 25 22 29 0d 03 2a 12 6c 69 6e 65 25 3d 6c 69 |s%")..*.line%=li| 00000a50 6e 65 25 2b 31 30 0d 03 34 05 3a 0d 03 3e 05 f5 |ne%+10..4.:..>..| 00000a60 0d 03 48 15 70 70 74 72 25 3d 66 6c 6f 63 25 2d |..H.pptr%=floc%-| 00000a70 6c 6f 61 64 25 0d 03 52 25 e7 70 70 74 72 25 3c |load%..R%.pptr%<| 00000a80 3d 28 a2 23 70 72 6f 67 25 29 20 8c 20 cf 23 70 |=(.#prog%) . .#p| 00000a90 72 6f 67 25 3d 70 70 74 72 25 0d 03 5c 0b ef 33 |rog%=pptr%..\..3| 00000aa0 31 2c 30 2c 34 0d 03 66 0e e3 4a 25 3d 30 b8 32 |1,0,4..f..J%=0.2| 00000ab0 34 88 38 0d 03 70 1b 6c 6f 63 25 3d 28 66 6c 6f |4.8..p.loc%=(flo| 00000ac0 63 25 2b 4a 25 29 20 83 26 31 30 30 30 30 0d 03 |c%+J%) .&10000..| 00000ad0 7a 11 6c 6c 25 3d a9 28 c3 7e 6c 6f 63 25 29 0d |z.ll%=.(.~loc%).| 00000ae0 03 84 20 6c 6f 63 24 3d c1 22 30 30 30 30 22 2c |.. loc$=."0000",| 00000af0 30 2c 34 2d 6c 6c 25 29 2b c3 7e 6c 6f 63 25 0d |0,4-ll%)+.~loc%.| 00000b00 03 8e 0e f1 6c 6f 63 24 3b 22 20 22 3b 0d 03 98 |....loc$;" ";...| 00000b10 11 e3 49 25 3d 64 62 25 b8 64 62 25 2b 37 0d 03 |..I%=db%.db%+7..| 00000b20 a2 26 e7 c5 23 70 72 6f 67 25 20 62 24 3d 22 2a |.&..#prog% b$="*| 00000b30 2a 22 3a 3f 28 49 25 2b 4a 25 29 3d 33 32 3a e5 |*":?(I%+J%)=32:.| 00000b40 8d 64 4a 43 0d 03 ac 14 3f 28 49 25 2b 4a 25 29 |.dJC....?(I%+J%)| 00000b50 3d 9a 23 70 72 6f 67 25 0d 03 b6 15 62 6c 25 3d |=.#prog%....bl%=| 00000b60 a9 28 c3 7e 3f 28 49 25 2b 4a 25 29 29 0d 03 c0 |.(.~?(I%+J%))...| 00000b70 20 62 24 3d c1 22 30 30 22 2c 30 2c 32 2d 62 6c | b$=."00",0,2-bl| 00000b80 25 29 2b c3 7e 3f 28 49 25 2b 4a 25 29 0d 03 ca |%)+.~?(I%+J%)...| 00000b90 0c f1 62 24 3b 22 20 22 3b 0d 03 d4 21 e7 28 49 |..b$;" ";...!.(I| 00000ba0 25 2b 4a 25 29 3d 64 62 25 20 63 24 3d 62 24 3a |%+J%)=db% c$=b$:| 00000bb0 73 6c 6f 63 24 3d 6c 6f 63 24 0d 03 de 07 ed 49 |sloc$=loc$.....I| 00000bc0 25 0d 03 e8 11 e3 49 25 3d 64 62 25 b8 64 62 25 |%.....I%=db%.db%| 00000bd0 2b 37 0d 03 f2 12 62 79 74 65 25 3d 3f 28 49 25 |+7....byte%=?(I%| 00000be0 2b 4a 25 29 0d 03 fc 16 e7 62 79 74 65 25 3c 33 |+J%).....byte%<3| 00000bf0 32 20 62 79 74 65 25 3d 34 36 0d 04 06 17 e7 62 |2 byte%=46.....b| 00000c00 79 74 65 25 3e 31 32 36 20 62 79 74 65 25 3d 34 |yte%>126 byte%=4| 00000c10 36 0d 04 10 0a ef 62 79 74 65 25 0d 04 1a 07 ed |6.....byte%.....| 00000c20 49 25 0d 04 24 0a ef 31 30 2c 31 33 0d 04 2e 07 |I%..$..10,13....| 00000c30 ed 4a 25 0d 04 38 13 e7 63 24 3d 22 2a 2a 22 20 |.J%..8..c$="**" | 00000c40 8c 20 8d 54 40 45 0d 04 42 07 ef 33 30 0d 04 4c |. .T@E..B..30..L| 00000c50 25 f1 22 28 4f 29 70 63 6f 64 65 20 2f 20 28 53 |%."(O)pcode / (S| 00000c60 29 74 72 69 6e 67 20 2f 20 28 42 29 79 74 65 20 |)tring / (B)yte | 00000c70 2f 22 0d 04 56 27 f1 22 28 57 29 6f 72 64 20 2f |/"..V'."(W)ord /| 00000c80 20 28 44 29 6f 75 62 6c 65 20 77 6f 72 64 20 2f | (D)ouble word /| 00000c90 20 28 45 29 6e 64 3f 22 3b 0d 04 60 08 61 24 3d | (E)nd?";..`.a$=| 00000ca0 be 0d 04 6a 12 e7 61 24 3d 22 45 22 20 8c 20 8d |...j..a$="E" . .| 00000cb0 64 4e 44 0d 04 74 0c ef 33 31 2c 30 2c 31 30 0d |dND..t..31,0,10.| 00000cc0 04 7e 0e f1 c4 33 39 2c 22 20 22 29 3b 0d 04 88 |.~...39," ");...| 00000cd0 1a e7 61 24 3d 22 4f 22 20 6f 70 6c 25 3d a4 64 |..a$="O" opl%=.d| 00000ce0 69 73 61 73 73 65 6d 0d 04 92 18 e7 61 24 3d 22 |isassem.....a$="| 00000cf0 53 22 20 6f 70 6c 25 3d a4 73 74 72 69 6e 67 0d |S" opl%=.string.| 00000d00 04 9c 16 e7 61 24 3d 22 42 22 20 6f 70 6c 25 3d |....a$="B" opl%=| 00000d10 a4 62 79 74 65 0d 04 a6 16 e7 61 24 3d 22 57 22 |.byte.....a$="W"| 00000d20 20 6f 70 6c 25 3d a4 77 6f 72 64 0d 04 b0 18 e7 | opl%=.word.....| 00000d30 61 24 3d 22 44 22 20 6f 70 6c 25 3d a4 64 6f 75 |a$="D" opl%=.dou| 00000d40 62 6c 65 0d 04 ba 14 66 6c 6f 63 25 3d 66 6c 6f |ble....floc%=flo| 00000d50 63 25 2b 6f 70 6c 25 0d 04 c4 12 6c 69 6e 65 25 |c%+opl%....line%| 00000d60 3d 6c 69 6e 65 25 2b 31 30 0d 04 ce 0b fd 61 24 |=line%+10.....a$| 00000d70 3d 22 45 22 0d 04 d8 05 3a 0d 04 e2 14 e7 20 64 |="E"....:..... d| 00000d80 24 3c 3e 22 45 22 20 8c 20 8d 54 7c 45 0d 04 ec |$<>"E" . .T|E...| 00000d90 0c ef 33 31 2c 30 2c 31 30 0d 04 f6 0e f1 c4 33 |..31,0,10......3| 00000da0 39 2c 22 20 22 29 3b 0d 05 00 15 f2 6f 75 74 70 |9," ");.....outp| 00000db0 75 74 28 22 20 20 20 20 20 5d 22 29 0d 05 0a 12 |ut(" ]")....| 00000dc0 6c 69 6e 65 25 3d 6c 69 6e 65 25 2b 31 30 0d 05 |line%=line%+10..| 00000dd0 14 10 e3 49 25 3d 30 b8 32 35 30 30 3a ed 0d 05 |...I%=0.2500:...| 00000de0 1e 0c ef 33 31 2c 30 2c 31 30 0d 05 28 0e f1 c4 |...31,0,10..(...| 00000df0 33 39 2c 22 20 22 29 3b 0d 05 32 1e f2 6f 75 74 |39," ");..2..out| 00000e00 70 75 74 28 22 20 20 20 20 20 4e 45 58 54 20 70 |put(" NEXT p| 00000e10 61 73 73 25 22 29 0d 05 3c 07 d9 23 30 0d 05 46 |ass%")..<..#0..F| 00000e20 0c ef 33 31 2c 30 2c 31 32 0d 05 50 1c f1 22 44 |..31,0,12..P.."D| 00000e30 69 73 61 73 73 65 6d 62 6c 79 20 63 6f 6d 70 6c |isassembly compl| 00000e40 65 74 65 2e 22 0d 05 5a 48 e7 20 64 24 3d 22 57 |ete."..ZH. d$="W| 00000e50 22 20 8c 20 f1 22 59 6f 75 20 63 61 6e 20 6e 6f |" . ."You can no| 00000e60 77 20 6c 6f 61 64 20 22 2b 6f 75 74 66 69 6c 65 |w load "+outfile| 00000e70 24 2b 22 20 69 6e 74 6f 20 79 6f 75 72 20 57 6f |$+" into your Wo| 00000e80 72 64 70 72 6f 63 65 73 73 6f 72 2e 22 0d 05 64 |rdprocessor."..d| 00000e90 40 e7 20 64 24 3d 22 50 22 20 8c 20 f1 22 54 79 |@. d$="P" . ."Ty| 00000ea0 70 65 20 22 22 2a 50 52 49 4e 54 20 22 2b 6f 75 |pe ""*PRINT "+ou| 00000eb0 74 66 69 6c 65 24 2b 22 3c 43 74 72 6c 2d 42 3e |tfile$+"<Ctrl-B>| 00000ec0 22 22 20 74 6f 20 70 72 69 6e 74 2e 22 0d 05 6e |"" to print."..n| 00000ed0 4f e7 20 64 24 3d 22 45 22 20 8c 20 f1 22 54 79 |O. d$="E" . ."Ty| 00000ee0 70 65 20 22 22 4e 45 57 22 22 20 74 68 65 6e 20 |pe ""NEW"" then | 00000ef0 22 22 2a 45 58 45 43 20 22 2b 6f 75 74 66 69 6c |""*EXEC "+outfil| 00000f00 65 24 2b 22 22 22 20 74 6f 20 6c 6f 61 64 20 74 |e$+""" to load t| 00000f10 68 65 20 70 72 6f 67 72 61 6d 2e 22 0d 05 78 05 |he program."..x.| 00000f20 e0 0d 05 82 05 3a 0d 05 8c 1a f4 20 44 69 73 61 |.....:..... Disa| 00000f30 73 73 65 6d 62 6c 79 20 46 75 6e 63 74 69 6f 6e |ssembly Function| 00000f40 0d 05 96 0e dd a4 64 69 73 61 73 73 65 6d 0d 05 |......disassem..| 00000f50 a0 08 ea 70 61 24 0d 05 aa 16 6f 70 24 3d 24 28 |...pa$....op$=$(| 00000f60 6f 64 25 2b 31 30 2a 3f 64 62 25 29 0d 05 b4 18 |od%+10*?db%)....| 00000f70 61 6d 24 3d 24 28 6f 64 25 2b 34 2b 31 30 2a 3f |am$=$(od%+4+10*?| 00000f80 64 62 25 29 0d 05 be 1d e7 61 6d 24 3d 22 22 20 |db%).....am$="" | 00000f90 8c 20 6f 6c 25 3d 30 3a 61 24 3d 22 44 22 3a 3d |. ol%=0:a$="D":=| 00000fa0 30 0d 05 c8 25 70 31 24 3d c1 22 30 30 22 2c 30 |0...%p1$=."00",0| 00000fb0 2c 32 2d a9 28 c3 7e 64 62 25 3f 31 29 29 2b c3 |,2-.(.~db%?1))+.| 00000fc0 7e 64 62 25 3f 31 0d 05 d2 25 70 32 24 3d c1 22 |~db%?1...%p2$=."| 00000fd0 30 30 22 2c 30 2c 32 2d a9 28 c3 7e 64 62 25 3f |00",0,2-.(.~db%?| 00000fe0 32 29 29 2b c3 7e 64 62 25 3f 32 0d 05 dc 10 70 |2))+.~db%?2....p| 00000ff0 61 24 3d bd 28 64 62 25 3f 31 29 0d 05 e6 17 e7 |a$=.(db%?1).....| 00001000 64 62 25 3f 31 20 3c 33 32 20 20 70 61 24 3d 22 |db%?1 <32 pa$="| 00001010 2e 22 0d 05 f0 17 e7 64 62 25 3f 31 20 3e 31 32 |.".....db%?1 >12| 00001020 36 20 70 61 24 3d 22 2e 22 0d 05 fa 1c e7 61 6d |6 pa$=".".....am| 00001030 24 3d 22 49 4d 50 22 20 20 20 6f 6c 25 3d 31 3a |$="IMP" ol%=1:| 00001040 69 24 3d 22 22 0d 06 04 1d e7 61 6d 24 3d 22 41 |i$="".....am$="A| 00001050 22 20 20 20 20 20 6f 6c 25 3d 31 3a 69 24 3d 22 |" ol%=1:i$="| 00001060 41 22 0d 06 0e 31 e7 61 6d 24 3d 22 49 4d 4d 22 |A"...1.am$="IMM"| 00001070 20 20 20 6f 6c 25 3d 32 3a 69 24 3d 22 23 26 22 | ol%=2:i$="#&"| 00001080 2b 70 31 24 2b 22 20 22 22 22 2b 70 61 24 2b 22 |+p1$+" """+pa$+"| 00001090 22 22 22 0d 06 18 21 e7 61 6d 24 3d 22 5a 50 47 |"""...!.am$="ZPG| 000010a0 22 20 20 20 6f 6c 25 3d 32 3a 69 24 3d 22 26 22 |" ol%=2:i$="&"| 000010b0 2b 70 31 24 0d 06 22 26 e7 61 6d 24 3d 22 5a 50 |+p1$.."&.am$="ZP| 000010c0 47 2c 58 22 20 6f 6c 25 3d 32 3a 69 24 3d 22 26 |G,X" ol%=2:i$="&| 000010d0 22 2b 70 31 24 2b 22 2c 58 22 0d 06 2c 26 e7 61 |"+p1$+",X"..,&.a| 000010e0 6d 24 3d 22 5a 50 47 2c 59 22 20 6f 6c 25 3d 32 |m$="ZPG,Y" ol%=2| 000010f0 3a 69 24 3d 22 26 22 2b 70 31 24 2b 22 2c 59 22 |:i$="&"+p1$+",Y"| 00001100 0d 06 36 26 e7 61 6d 24 3d 22 49 4e 44 22 20 20 |..6&.am$="IND" | 00001110 20 6f 6c 25 3d 32 3a 69 24 3d 22 28 26 22 2b 70 | ol%=2:i$="(&"+p| 00001120 31 24 2b 22 29 22 0d 06 40 28 e7 61 6d 24 3d 22 |1$+")"..@(.am$="| 00001130 49 4e 44 2c 58 22 20 6f 6c 25 3d 32 3a 69 24 3d |IND,X" ol%=2:i$=| 00001140 22 28 26 22 2b 70 31 24 2b 22 2c 58 29 22 0d 06 |"(&"+p1$+",X)"..| 00001150 4a 28 e7 61 6d 24 3d 22 49 4e 44 2c 59 22 20 6f |J(.am$="IND,Y" o| 00001160 6c 25 3d 32 3a 69 24 3d 22 28 26 22 2b 70 31 24 |l%=2:i$="(&"+p1$| 00001170 2b 22 29 2c 59 22 0d 06 54 29 e7 61 6d 24 3d 22 |+"),Y"..T).am$="| 00001180 52 45 4c 22 20 20 20 6f 6c 25 3d 32 3a 69 24 3d |REL" ol%=2:i$=| 00001190 a4 72 65 6c 28 64 62 25 3f 31 2c 70 31 24 29 0d |.rel(db%?1,p1$).| 000011a0 06 5e 25 e7 61 6d 24 3d 22 41 42 53 22 20 20 20 |.^%.am$="ABS" | 000011b0 6f 6c 25 3d 33 3a 69 24 3d 22 26 22 2b 70 32 24 |ol%=3:i$="&"+p2$| 000011c0 2b 70 31 24 0d 06 68 2a e7 61 6d 24 3d 22 41 42 |+p1$..h*.am$="AB| 000011d0 53 2c 58 22 20 6f 6c 25 3d 33 3a 69 24 3d 22 26 |S,X" ol%=3:i$="&| 000011e0 22 2b 70 32 24 2b 70 31 24 2b 22 2c 58 22 0d 06 |"+p2$+p1$+",X"..| 000011f0 72 2a e7 61 6d 24 3d 22 41 42 53 2c 59 22 20 6f |r*.am$="ABS,Y" o| 00001200 6c 25 3d 33 3a 69 24 3d 22 26 22 2b 70 32 24 2b |l%=3:i$="&"+p2$+| 00001210 70 31 24 2b 22 2c 59 22 0d 06 7c 2a e7 61 6d 24 |p1$+",Y"..|*.am$| 00001220 3d 22 4c 4e 44 22 20 20 20 6f 6c 25 3d 33 3a 69 |="LND" ol%=3:i| 00001230 24 3d 22 28 26 22 2b 70 32 24 2b 70 31 24 2b 22 |$="(&"+p2$+p1$+"| 00001240 29 22 0d 06 86 2c e7 61 6d 24 3d 22 4c 4e 44 2c |)"...,.am$="LND,| 00001250 58 22 20 6f 6c 25 3d 33 3a 69 24 3d 22 28 26 22 |X" ol%=3:i$="(&"| 00001260 2b 70 32 24 2b 70 31 24 2b 22 2c 58 29 22 0d 06 |+p2$+p1$+",X)"..| 00001270 90 1d 6f 75 74 24 3d 73 6c 6f 63 24 2b 22 20 22 |..out$=sloc$+" "| 00001280 2b 6f 70 24 2b 22 20 22 2b 69 24 0d 06 9a 26 e7 |+op$+" "+i$...&.| 00001290 61 6d 24 3d 22 49 4d 50 22 20 20 20 6f 75 74 24 |am$="IMP" out$| 000012a0 3d c0 6f 75 74 24 2c a9 28 6f 75 74 24 29 2d 31 |=.out$,.(out$)-1| 000012b0 29 0d 06 a4 11 f2 6f 75 74 70 75 74 28 6f 75 74 |).....output(out| 000012c0 24 29 0d 06 ae 08 3d 6f 6c 25 0d 06 b8 05 3a 0d |$)....=ol%....:.| 000012d0 06 c2 22 f4 20 52 65 6c 61 74 69 76 65 20 41 64 |..". Relative Ad| 000012e0 64 72 65 73 73 20 43 61 6c 63 75 6c 61 74 69 6f |dress Calculatio| 000012f0 6e 0d 06 cc 16 dd a4 72 65 6c 28 64 61 74 61 25 |n......rel(data%| 00001300 2c 64 61 74 61 24 29 0d 06 d6 19 e7 64 24 3c 3e |,data$).....d$<>| 00001310 22 45 22 20 8c 20 3d 22 26 22 2b 64 61 74 61 24 |"E" . ="&"+data$| 00001320 0d 06 e0 22 e7 64 61 74 61 25 3e 26 37 46 20 8c |...".data%>&7F .| 00001330 20 3d 22 50 25 2d 32 35 34 2b 26 22 2b 64 61 74 | ="P%-254+&"+dat| 00001340 61 24 0d 06 ea 13 3d 22 50 25 2b 32 2b 26 22 2b |a$....="P%+2+&"+| 00001350 64 61 74 61 24 0d 06 f4 05 3a 0d 06 fe 15 f4 20 |data$....:..... | 00001360 53 74 72 69 6e 67 20 46 75 6e 63 74 69 6f 6e 0d |String Function.| 00001370 07 08 0c dd a4 73 74 72 69 6e 67 0d 07 12 09 6f |.....string....o| 00001380 6c 25 3d 30 0d 07 1c 0a 70 62 24 3d 22 22 0d 07 |l%=0....pb$=""..| 00001390 26 0b ef 33 31 2c 30 2c 32 0d 07 30 21 e8 22 48 |&..31,0,2..0!."H| 000013a0 6f 77 20 6c 6f 6e 67 20 69 73 20 74 68 65 20 73 |ow long is the s| 000013b0 74 72 69 6e 67 22 3b 73 6c 25 0d 07 3a 0e 6f 70 |tring";sl%..:.op| 000013c0 24 3d 22 45 51 55 53 22 0d 07 44 05 f5 0d 07 4e |$="EQUS"..D....N| 000013d0 15 70 61 24 3d bd 28 3f 28 64 62 25 2b 6f 6c 25 |.pa$=.(?(db%+ol%| 000013e0 29 29 0d 07 58 16 e7 3f 64 62 25 20 3c 33 32 20 |))..X..?db% <32 | 000013f0 20 70 61 24 3d 22 2e 22 0d 07 62 16 e7 3f 64 62 | pa$="."..b..?db| 00001400 25 20 3e 31 32 36 20 70 61 24 3d 22 2e 22 0d 07 |% >126 pa$="."..| 00001410 6c 0f 70 62 24 3d 70 62 24 2b 70 61 24 0d 07 76 |l.pb$=pb$+pa$..v| 00001420 0d 6f 6c 25 3d 6f 6c 25 2b 31 0d 07 80 0c fd 6f |.ol%=ol%+1.....o| 00001430 6c 25 3d 73 6c 25 0d 07 8a 25 6f 75 74 24 3d 73 |l%=sl%...%out$=s| 00001440 6c 6f 63 24 2b 22 20 22 2b 6f 70 24 2b 22 20 22 |loc$+" "+op$+" "| 00001450 22 22 2b 70 62 24 2b 22 22 22 22 0d 07 94 11 f2 |""+pb$+"""".....| 00001460 6f 75 74 70 75 74 28 6f 75 74 24 29 0d 07 9e 0b |output(out$)....| 00001470 ef 33 31 2c 30 2c 32 0d 07 a8 23 f1 22 20 20 20 |.31,0,2...#." | 00001480 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00001490 20 20 20 20 20 20 20 20 22 3b 0d 07 b2 08 3d 6f | ";....=o| 000014a0 6c 25 0d 07 bc 05 3a 0d 07 c6 13 f4 20 42 79 74 |l%....:..... Byt| 000014b0 65 20 46 75 6e 63 74 69 6f 6e 0d 07 d0 0a dd a4 |e Function......| 000014c0 62 79 74 65 0d 07 da 09 6f 6c 25 3d 31 0d 07 e4 |byte....ol%=1...| 000014d0 0e 6f 70 24 3d 22 45 51 55 42 22 0d 07 ee 25 70 |.op$="EQUB"...%p| 000014e0 30 24 3d c1 22 30 30 22 2c 30 2c 32 2d a9 28 c3 |0$=."00",0,2-.(.| 000014f0 7e 64 62 25 3f 30 29 29 2b c3 7e 64 62 25 3f 30 |~db%?0))+.~db%?0| 00001500 0d 07 f8 0f 70 61 24 3d bd 28 3f 64 62 25 29 0d |....pa$=.(?db%).| 00001510 08 02 16 e7 3f 64 62 25 20 3c 33 32 20 20 70 61 |....?db% <32 pa| 00001520 24 3d 22 2e 22 0d 08 0c 16 e7 3f 64 62 25 20 3e |$=".".....?db% >| 00001530 31 32 36 20 70 61 24 3d 22 2e 22 0d 08 16 1d 69 |126 pa$="."....i| 00001540 24 3d 22 26 22 2b 70 30 24 2b 22 20 22 22 22 2b |$="&"+p0$+" """+| 00001550 70 61 24 2b 22 22 22 22 0d 08 20 1d 6f 75 74 24 |pa$+"""".. .out$| 00001560 3d 73 6c 6f 63 24 2b 22 20 22 2b 6f 70 24 2b 22 |=sloc$+" "+op$+"| 00001570 20 22 2b 69 24 0d 08 2a 11 f2 6f 75 74 70 75 74 | "+i$..*..output| 00001580 28 6f 75 74 24 29 0d 08 34 08 3d 6f 6c 25 0d 08 |(out$)..4.=ol%..| 00001590 3e 05 3a 0d 08 48 13 f4 20 57 6f 72 64 20 46 75 |>.:..H.. Word Fu| 000015a0 6e 63 74 69 6f 6e 0d 08 52 0a dd a4 77 6f 72 64 |nction..R...word| 000015b0 0d 08 5c 09 6f 6c 25 3d 32 0d 08 66 0e 6f 70 24 |..\.ol%=2..f.op$| 000015c0 3d 22 45 51 55 57 22 0d 08 70 25 70 30 24 3d c1 |="EQUW"..p%p0$=.| 000015d0 22 30 30 22 2c 30 2c 32 2d a9 28 c3 7e 64 62 25 |"00",0,2-.(.~db%| 000015e0 3f 30 29 29 2b c3 7e 64 62 25 3f 30 0d 08 7a 25 |?0))+.~db%?0..z%| 000015f0 70 31 24 3d c1 22 30 30 22 2c 30 2c 32 2d a9 28 |p1$=."00",0,2-.(| 00001600 c3 7e 64 62 25 3f 31 29 29 2b c3 7e 64 62 25 3f |.~db%?1))+.~db%?| 00001610 31 0d 08 84 23 6f 75 74 24 3d 73 6c 6f 63 24 2b |1...#out$=sloc$+| 00001620 22 20 22 2b 6f 70 24 2b 22 20 26 22 2b 70 31 24 |" "+op$+" &"+p1$| 00001630 2b 70 30 24 0d 08 8e 11 f2 6f 75 74 70 75 74 28 |+p0$.....output(| 00001640 6f 75 74 24 29 0d 08 98 08 3d 6f 6c 25 0d 08 a2 |out$)....=ol%...| 00001650 05 3a 0d 08 ac 1a f4 20 44 6f 75 62 6c 65 20 57 |.:..... Double W| 00001660 6f 72 64 20 46 75 6e 63 74 69 6f 6e 0d 08 b6 0c |ord Function....| 00001670 dd a4 64 6f 75 62 6c 65 0d 08 c0 09 6f 6c 25 3d |..double....ol%=| 00001680 34 0d 08 ca 0e 6f 70 24 3d 22 45 51 55 44 22 0d |4....op$="EQUD".| 00001690 08 d4 25 70 30 24 3d c1 22 30 30 22 2c 30 2c 32 |..%p0$=."00",0,2| 000016a0 2d a9 28 c3 7e 64 62 25 3f 30 29 29 2b c3 7e 64 |-.(.~db%?0))+.~d| 000016b0 62 25 3f 30 0d 08 de 25 70 31 24 3d c1 22 30 30 |b%?0...%p1$=."00| 000016c0 22 2c 30 2c 32 2d a9 28 c3 7e 64 62 25 3f 31 29 |",0,2-.(.~db%?1)| 000016d0 29 2b c3 7e 64 62 25 3f 31 0d 08 e8 25 70 32 24 |)+.~db%?1...%p2$| 000016e0 3d c1 22 30 30 22 2c 30 2c 32 2d a9 28 c3 7e 64 |=."00",0,2-.(.~d| 000016f0 62 25 3f 32 29 29 2b c3 7e 64 62 25 3f 32 0d 08 |b%?2))+.~db%?2..| 00001700 f2 25 70 33 24 3d c1 22 30 30 22 2c 30 2c 32 2d |.%p3$=."00",0,2-| 00001710 a9 28 c3 7e 64 62 25 3f 33 29 29 2b c3 7e 64 62 |.(.~db%?3))+.~db| 00001720 25 3f 33 0d 08 fc 2b 6f 75 74 24 3d 73 6c 6f 63 |%?3...+out$=sloc| 00001730 24 2b 22 20 22 2b 6f 70 24 2b 22 20 26 22 2b 70 |$+" "+op$+" &"+p| 00001740 33 24 2b 70 32 24 2b 70 31 24 2b 70 30 24 0d 09 |3$+p2$+p1$+p0$..| 00001750 06 11 f2 6f 75 74 70 75 74 28 6f 75 74 24 29 0d |...output(out$).| 00001760 09 10 08 3d 6f 6c 25 0d 09 1a 05 3a 0d 09 24 16 |...=ol%....:..$.| 00001770 f4 20 4f 75 74 70 75 74 20 70 72 6f 63 65 64 75 |. Output procedu| 00001780 72 65 0d 09 2e 10 dd f2 6f 75 74 70 75 74 28 61 |re......output(a| 00001790 24 29 0d 09 38 0f ea 6b 25 2c 6c 65 6e 6e 75 6d |$)..8..k%,lennum| 000017a0 25 0d 09 42 20 e7 20 64 24 3d 22 45 22 20 6c 65 |%..B . d$="E" le| 000017b0 6e 6e 75 6d 25 3d a9 28 c3 28 6c 69 6e 65 25 29 |nnum%=.(.(line%)| 000017c0 29 0d 09 4c 3a e7 20 64 24 3d 22 45 22 20 61 24 |)..L:. d$="E" a$| 000017d0 3d c1 22 20 20 20 20 22 2c 30 2c 34 2d 6c 65 6e |=." ",0,4-len| 000017e0 6e 75 6d 25 29 2b c3 28 6c 69 6e 65 25 29 2b c2 |num%)+.(line%)+.| 000017f0 61 24 2c a9 28 61 24 29 2d 34 29 0d 09 56 0c ef |a$,.(a$)-4)..V..| 00001800 33 31 2c 30 2c 31 30 0d 09 60 07 f1 61 24 0d 09 |31,0,10..`..a$..| 00001810 6a 0f e3 6b 25 3d 31 b8 a9 28 61 24 29 0d 09 74 |j..k%=1..(a$)..t| 00001820 1b d5 23 6f 75 74 66 69 6c 65 25 2c 97 28 c1 61 |..#outfile%,.(.a| 00001830 24 2c 6b 25 2c 31 29 29 0d 09 7e 07 ed 6b 25 0d |$,k%,1))..~..k%.| 00001840 09 88 1c e7 20 64 24 3d 22 50 22 20 8c 20 d5 23 |.... d$="P" . .#| 00001850 6f 75 74 66 69 6c 65 25 2c 31 30 0d 09 92 11 d5 |outfile%,10.....| 00001860 23 6f 75 74 66 69 6c 65 25 2c 31 33 0d 09 9c 05 |#outfile%,13....| 00001870 e1 0d 09 a6 05 3a 0d 09 b0 14 f4 20 49 6e 70 75 |.....:..... Inpu| 00001880 74 20 46 75 6e 63 74 69 6f 6e 0d 09 ba 1b dd a4 |t Function......| 00001890 69 6e 70 75 74 28 6c 65 67 61 6c 24 2c 6d 61 78 |input(legal$,max| 000018a0 6c 65 6e 25 29 0d 09 c4 0d ea 61 25 2c 61 24 2c |len%).....a%,a$,| 000018b0 62 24 0d 09 ce 05 f5 0d 09 d8 05 f5 0d 09 e2 08 |b$..............| 000018c0 61 25 3d a5 0d 09 ec 28 fd 20 a7 6c 65 67 61 6c |a%=....(. .legal| 000018d0 24 2c bd 28 61 25 29 29 20 3e 30 20 84 20 61 25 |$,.(a%)) >0 . a%| 000018e0 3d 31 33 20 84 20 61 25 3d 31 32 37 0d 09 f6 1e |=13 . a%=127....| 000018f0 6c 65 67 61 6c 25 3d 28 a7 6c 65 67 61 6c 24 2c |legal%=(.legal$,| 00001900 bd 28 61 25 29 29 20 3e 30 29 0d 0a 00 1c 6d 6c |.(a%)) >0)....ml| 00001910 6e 65 78 25 3d 28 a9 28 61 24 29 20 3c 20 6d 61 |nex%=(.(a$) < ma| 00001920 78 6c 65 6e 25 29 0d 0a 0a 23 e7 20 6c 65 67 61 |xlen%)...#. lega| 00001930 6c 25 20 80 20 6d 6c 6e 65 78 25 20 8c 20 61 24 |l% . mlnex% . a$| 00001940 3d 61 24 2b bd 28 61 25 29 0d 0a 14 1b e7 20 6c |=a$+.(a%)..... l| 00001950 65 67 61 6c 25 20 80 20 6d 6c 6e 65 78 25 20 8c |egal% . mlnex% .| 00001960 20 ef 61 25 0d 0a 1e 1d e7 20 61 25 3d 31 32 37 | .a%..... a%=127| 00001970 20 80 20 a9 28 61 24 29 20 3e 30 20 8c 20 ef 61 | . .(a$) >0 . .a| 00001980 25 0d 0a 28 1e e7 20 61 25 3d 31 32 37 20 8c 20 |%..(.. a%=127 . | 00001990 61 24 3d c0 61 24 2c a9 28 61 24 29 2d 31 29 0d |a$=.a$,.(a$)-1).| 000019a0 0a 32 0b fd 20 61 25 3d 31 33 0d 0a 3c 07 3d 61 |.2.. a%=13..<.=a| 000019b0 24 0d ff |$..| 000019b3