Home » CEEFAX disks » telesoftware1.adl » Utils/DISAS1

Utils/DISAS1

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 » CEEFAX disks » telesoftware1.adl
Filename: Utils/DISAS1
Read OK:
File size: 1788 bytes
Load address: 1900
Exec address: 8023
File contents
   10REM CMOS disassembler source
   20REM By Kevin Edwards
   30REM (c) The Micro User
   40IF PAGE<&1900 VDU7:PRINT"PAGE must be &1900 or greater!":END
   50:
   60REM zero page usage
   70mem_loc=&70
   80opcode=&72
   90instruction_size=&73
  100temp=&74
  110tempx=&75
  120rom_number=&76
  130tube_io_flag=&77
  140tube_present=&78
  150rom_address=&F6
  160:
  170REM MOS addresses
  180osrdrm=&FFB9
  190osnewl=&FFE7
  200oswrch=&FFEE
  210osword=&FFF1
  220:
  230FOR pass=0 TO 2 STEP2
  240RESTORE
  250P%=&1100
  260[OPT pass
  270.main_loop
  280 JSR osnewl
  290 LDA mem_loc+1
  300 JSR phex
  310 LDA mem_loc
  320 JSR phex
  330 JSR one_space
  340 LDY #0
  350 JSR read_memory
  360 STA opcode
  370 TAX
  380 LDY addr_mode,X
  390 LDX addr_mode_size,Y
  400 STX instruction_size
  410 LDY #0
  420.print_op_bytes
  430 JSR read_memory
  440 JSR phex
  450 JSR one_space
  460 INY
  470 DEX
  480 BNE print_op_bytes
  490.print_gap
  500 LDX #3
  510 JSR multi_space
  520 INY
  530 CPY #4
  540 BCC print_gap
  550 LDY #0
  560.print_ascii
  570 JSR read_memory
  580 CMP #ASC" "
  590 BCC bad_ascii
  600 CMP #ASC"~"
  610 BCC final_ascii
  620.bad_ascii
  630 LDA #ASC"."
  640.final_ascii
  650 JSR oswrch
  660 INY
  670 CPY instruction_size 
  680 BNE print_ascii
  690.to_mnemonic_tab
  700 JSR one_space
  710 INY
  720 CPY #6
  730 BNE to_mnemonic_tab
  740 LDY opcode
  750 LDA mnemonic_type,Y
  760 STA temp
  770 ASL A
  780 ADC temp
  790 TAX
  800 LDY #3
  810.print_mnemonic
  820 LDA mnemonics,X
  830 JSR oswrch
  840 INX
  850 DEY
  860 BNE print_mnemonic
  870 LDX #2
  880 JSR multi_space
  890 LDX opcode
  900 LDY addr_mode,X
  910 BEQ next_instruction
  920 CPY #14
  930 BNE not_a_branch
  940 JSR relative_branch
  950 JMP next_instruction
  960.not_a_branch
  970 LDX text_pointers-1,Y
  980.print_addr_mode
  990 INX
 1000 LDA addr_mode_text-1,X
 1010 PHP
 1020 AND #&7F
 1030 CMP #3
 1040 BCS print_char
 1050 TAY
 1060 JSR read_memory
 1070 JSR phex
 1080 JMP check_last_char
 1090.print_char
 1100 JSR oswrch
 1110.check_last_char
 1120 PLP
 1130 BPL print_addr_mode
 1140.next_instruction
 1150 LDA instruction_size
 1160 CLC
 1170 ADC mem_loc
 1180 STA mem_loc
 1190 BCC next_instr2
 1200 INC mem_loc+1
 1210.next_instr2
 1220 RTS
 1230:
 1240.relative_branch
 1250 LDA #ASC"&"
 1260 JSR oswrch
 1270 LDX mem_loc+1
 1280 LDY #1
 1290 JSR read_memory
 1300 SEC
 1310 PHP
 1320 ADC #0
 1330 BCC not_high
 1340 INX
 1350.not_high
 1360 PLP
 1370 BMI back_branch
 1380 ADC #0
 1390 ADC mem_loc
 1400 BCC print_ea
 1410 INX
 1420 BCS print_ea
 1430.back_branch
 1440 EOR #&FF
 1450 STA temp
 1460 LDA mem_loc
 1470 SBC temp
 1480 BCS print_ea
 1490 DEX
 1500.print_ea
 1510 TAY
 1520 TXA
 1530 JSR phex
 1540 TYA
 1550.phex
 1560 PHA
 1570 LSR A
 1580 LSR A
 1590 LSR A
 1600 LSR A
 1610 JSR pdigit
 1620 PLA
 1630 AND #&F
 1640.pdigit
 1650 CMP #10
 1660 BCC numeric
 1670 ADC #6
 1680.numeric
 1690 ADC #ASC"0"
 1700 JMP oswrch
 1710.one_space
 1720 LDA #ASC" "
 1730 JMP oswrch
 1740.multi_space
 1750 LDA #ASC" "
 1760.space2
 1770 JSR oswrch
 1780 DEX
 1790 BNE space2
 1800 RTS
 1810.read_memory
 1820 STY temp
 1830 STX tempx
 1840 LDX mem_loc+1
 1850 TYA
 1860 CLC
 1870 ADC mem_loc
 1880 BCC read_mem2
 1890 INX
 1900.read_mem2
 1910 BIT tube_present
 1920 BMI tube_routines
 1930 STA rom_address
 1940 STX rom_address+1
 1950 LDY rom_number
 1960 JSR osrdrm
 1970.exit_mem_read
 1980 PHA
 1990 LDX tempx
 2000 LDY temp
 2010 PLA
 2020 RTS
 2030.tube_routines
 2040 BIT tube_io_flag
 2050 BMI read_tube_memory
 2060 STA read_io_data
 2070 STX read_io_data+1
 2080 LDA #5
 2090 LDX #read_io_data MOD 256
 2100 LDY #read_io_data DIV 256
 2110 JSR osword
 2120 LDA read_io_data+4
 2130 JMP exit_mem_read
 2140.read_tube_memory
 2150 LDA (mem_loc),Y
 2160 JMP exit_mem_read
 2170:
 2180.read_io_data
 2190 OPT FNequb(5)
 2200.mnemonics
 2210 OPT FNequs
 2220.addr_mode_text
 2230 OPT FNread_string(13)
 2240.text_pointers
 2250 OPT FNequb(13)
 2260.addr_mode_size
 2270 OPT FNequb(15)
 2280.mnemonic_type
 2290 OPT FNequb(256)
 2300.addr_mode
 2310 OPT FNequb(256)
 2320]NEXT
 2330IF P%<>&155D VDU7:PRINT"Object code incorrect length"'"check program!":END
 2340*SAVE cmosdis 1100 155D
 2350END
 2360:
 2370DEF FNequb(num%)
 2380FOR loop%=0 TO num%-1
 2390READA%:?(P%+loop%)=A%
 2400NEXT
 2410P%=P%+num%
 2420=pass
 2430:
 2440DEF FNequs
 2450READ text$
 2460$P%=text$
 2470P%=P%+LEN$P%
 2480=pass
 2490:
 2500DEF FNread_string(end%)
 2510FOR modes%=1 TO end%
 2520READ addrmde$
 2530FOR letter%=1 TO LENaddrmde$
 2540A%=ASC(MID$(addrmde$,letter%,1))
 2550IF A%=ASC("L") A%=1 ELSE IF A%=ASC("H") A%=2
 2560A%=A%+(letter%=LENaddrmde$)*-&80
 2570?P%=A%:P%=P%+1
 2580NEXT
 2590PRINT~P%
 2600NEXT
 2610=pass
 2620:
 2630DATA 0,0,&FF,&FF,0
 2640:
 2650DATA ADCANDASLBCCBCSBEQBITBMIBNEBPLBRABRKBVCBVSCLCCLDCLICLVCMPCPXCPYDECDEXDEYEORINCINXINYJMPJSRLDALDXLDYLSRNOPORAPHAPHPPHXPHYPLAPLPPLXPLYROLRORRTIRTSSBCSECSEDSEISTASTXSTYSTZTAXTAYTRBTSBTSXTXATXSTYA???
 2660DATA "A"
 2670DATA "#&L"
 2680DATA "&L"
 2690DATA "&L,X"
 2700DATA "&L,Y"
 2710DATA "(&L)"
 2720DATA "(&L),Y"
 2730DATA "(&L,X)"
 2740DATA "(&HL)"
 2750DATA "(&HL,X)"
 2760DATA "&HL"
 2770DATA "&HL,X"
 2780DATA "&HL,Y"
 2790:
 2800DATA0,1,4,6,&A,&E,&12,&18,&1E
 2810DATA&23,&2A,&2D,&32
 2820:
 2830DATA1,1,2,2,2,2,2,2,2
 2840DATA3,3,3,3,3,2
 2850:
 2860DATA11,35,64,64,59,35,2,64,37,35,2,64,59,35,2,64
 2870DATA9,35,35,64,58,35,2,64,14,35,25,64,58,35,2,64
 2880DATA29,1,64,64,6,1,44,64,41,1,44,64,6,1,44,64
 2890DATA7,1,1,64,6,1,44,64,49,1,21,64,6,1,44,64
 2900DATA46,24,64,64,64,24,33,64,36,24,33,64,28,24,33,64
 2910DATA12,24,24,64,64,24,33,64,16,24,39,64,64,24,33,64
 2920DATA47,0,64,64,55,0,45,64,40,0,45,64,28,0,45,64
 2930DATA13,0,0,64,55,0,45,64,51,0,43,64,28,0,45,64
 2940DATA10,52,64,64,54,52,53,64,23,6,61,64,54,52,53,64
 2950DATA3,52,52,64,54,52,53,64,63,52,62,64,55,52,55,64
 2960DATA32,30,31,64,32,30,31,64,57,30,56,64,32,30,31,64
 2970DATA4,30,30,64,32,30,31,64,17,30,60,64,32,30,31,64
 2980DATA20,18,64,64,20,18,21,64,27,18,22,64,20,18,21,64
 2990DATA8,18,18,64,64,18,21,64,15,18,38,64,64,18,21,64
 3000DATA19,48,64,64,19,48,25,64,26,48,34,64,19,48,25,64
 3010DATA5,48,48,64,64,48,25,64,50,48,42,64,64,48,25,64
 3020:
 3030DATA0,8,0,0,3,3,3,0,0,2,1,0,11,11,11,0
 3040DATA14,7,6,0,3,4,4,0,0,13,1,0,11,12,12,0
 3050DATA11,8,0,0,3,3,3,0,0,2,1,0,11,11,11,0
 3060DATA14,7,6,0,4,4,4,0,0,13,1,0,12,12,12,0
 3070DATA0,8,0,0,0,3,3,0,0,2,1,0,11,11,11,0
 3080DATA14,7,6,0,0,4,4,0,0,13,0,0,0,12,12,0
 3090DATA0,8,0,0,3,3,3,0,0,2,1,0,9,11,11,0
 3100DATA14,7,6,0,4,4,4,0,0,13,0,0,10,12,12,0
 3110DATA14,8,0,0,3,3,3,0,0,2,0,0,11,11,11,0
 3120DATA14,7,6,0,4,4,5,0,0,13,0,0,11,12,12,0
 3130DATA2,8,2,0,3,3,3,0,0,2,0,0,11,11,11,0
 3140DATA14,7,6,0,4,4,5,0,0,13,0,0,12,12,13,0
 3150DATA2,8,0,0,3,3,3,0,0,2,0,0,11,11,11,0
 3160DATA14,7,6,0,0,4,4,0,0,13,0,0,0,12,12,0
 3170DATA2,8,0,0,3,3,3,0,0,2,0,0,11,11,11,0
 3180DATA14,7,6,0,0,4,4,0,0,13,0,0,0,12,12,0

� CMOS disassembler source
� By Kevin Edwards
� (c) The Micro User
(4� �<&1900 �7:�"PAGE must be &1900 or greater!":�
2:
<� zero page usage
Fmem_loc=&70
Popcode=&72
Zinstruction_size=&73
dtemp=&74
n
tempx=&75
xrom_number=&76
�tube_io_flag=&77
�tube_present=&78
�rom_address=&F6
�:
�� MOS addresses
�osrdrm=&FFB9
�osnewl=&FFE7
�oswrch=&FFEE
�osword=&FFF1
�:
�� pass=0 � 2 �2
��
�P%=&1100

[OPT pass
.main_loop
 JSR osnewl
" LDA mem_loc+1
,
 JSR phex
6 LDA mem_loc
@
 JSR phex
J JSR one_space
T LDY #0
^ JSR read_memory
h STA opcode
r TAX
| LDY addr_mode,X
� LDX addr_mode_size,Y
� STX instruction_size
� LDY #0
�.print_op_bytes
� JSR read_memory
�
 JSR phex
� JSR one_space
� INY
� DEX
� BNE print_op_bytes
�.print_gap
� LDX #3
� JSR multi_space
 INY
 CPY #4
 BCC print_gap
& LDY #0
0.print_ascii
: JSR read_memory
D CMP #�" "
N BCC bad_ascii
X CMP #�"~"
b BCC final_ascii
l.bad_ascii
v LDA #�"."
�.final_ascii
� JSR oswrch
� INY
� CPY instruction_size 
� BNE print_ascii
�.to_mnemonic_tab
� JSR one_space
� INY
� CPY #6
� BNE to_mnemonic_tab
� LDY opcode
� LDA mnemonic_type,Y
�
 STA temp

 ASL A

 ADC temp
 TAX
  LDY #3
*.print_mnemonic
4 LDA mnemonics,X
> JSR oswrch
H INX
R DEY
\ BNE print_mnemonic
f LDX #2
p JSR multi_space
z LDX opcode
� LDY addr_mode,X
� BEQ next_instruction
� CPY #14
� BNE not_a_branch
� JSR relative_branch
� JMP next_instruction
�.not_a_branch
� LDX text_pointers-1,Y
�.print_addr_mode
� INX
� LDA addr_mode_text-1,X
� PHP
� � #&7F
 CMP #3
 BCS print_char
 TAY
$ JSR read_memory
.
 JSR phex
8 JMP check_last_char
B.print_char
L JSR oswrch
V.check_last_char
` PLP
j BPL print_addr_mode
t.next_instruction
~ LDA instruction_size
� CLC
� ADC mem_loc
� STA mem_loc
� BCC next_instr2
� INC mem_loc+1
�.next_instr2
� RTS
�:
�.relative_branch
� LDA #�"&"
� JSR oswrch
� LDX mem_loc+1
 LDY #1

 JSR read_memory
 SEC
 PHP
( ADC #0
2 BCC not_high
< INX
F
.not_high
P PLP
Z BMI back_branch
d ADC #0
n ADC mem_loc
x BCC print_ea
� INX
� BCS print_ea
�.back_branch
� � #&FF
�
 STA temp
� LDA mem_loc
�
 SBC temp
� BCS print_ea
� DEX
�
.print_ea
� TAY
� TXA
�
 JSR phex
 TYA
	.phex
 PHA
"
 LSR A
,
 LSR A
6
 LSR A
@
 LSR A
J JSR pdigit
T PLA
^
 � #&F
h.pdigit
r CMP #10
| BCC numeric
� ADC #6
�.numeric
� ADC #�"0"
� JMP oswrch
�.one_space
� LDA #�" "
� JMP oswrch
�.multi_space
� LDA #�" "
�.space2
� JSR oswrch
� DEX
� BNE space2
 RTS
.read_memory

 STY temp
& STX tempx
0 LDX mem_loc+1
: TYA
D CLC
N ADC mem_loc
X BCC read_mem2
b INX
l.read_mem2
v BIT tube_present
� BMI tube_routines
� STA rom_address
� STX rom_address+1
� LDY rom_number
� JSR osrdrm
�.exit_mem_read
� PHA
� LDX tempx
�
 LDY temp
� PLA
� RTS
�.tube_routines
� BIT tube_io_flag
 BMI read_tube_memory
 STA read_io_data
 STX read_io_data+1
  LDA #5
* LDX #read_io_data � 256
4 LDY #read_io_data � 256
> JSR osword
H LDA read_io_data+4
R JMP exit_mem_read
\.read_tube_memory
f LDA (mem_loc),Y
p JMP exit_mem_read
z:
�.read_io_data
� OPT �equb(5)
�.mnemonics
� OPT �equs
�.addr_mode_text
� OPT �read_string(13)
�.text_pointers
� OPT �equb(13)
�.addr_mode_size
� OPT �equb(15)
�.mnemonic_type
� OPT �equb(256)
�.addr_mode
	 OPT �equb(256)
	]�
	E� P%<>&155D �7:�"Object code incorrect length"'"check program!":�
	$*SAVE cmosdis 1100 155D
	.�
	8:
	B� �equb(num%)
	L� loop%=0 � num%-1
	V�A%:?(P%+loop%)=A%
	`�
	jP%=P%+num%
	t	=pass
	~:
	�� �equs
	�� text$
	�
$P%=text$
	�P%=P%+�$P%
	�	=pass
	�:
	�� �read_string(end%)
	�� modes%=1 � end%
	�� addrmde$
	�� letter%=1 � �addrmde$
	�A%=�(�addrmde$,letter%,1))
	�'� A%=�("L") A%=1 � � A%=�("H") A%=2
"A%=A%+(letter%=�addrmde$)*-&80

?P%=A%:P%=P%+1
�
�~P%
(�
2	=pass
<:
F� 0,0,&FF,&FF,0
P:
Z�� ADCANDASLBCCBCSBEQBITBMIBNEBPLBRABRKBVCBVSCLCCLDCLICLVCMPCPXCPYDECDEXDEYEORINCINXINYJMPJSRLDALDXLDYLSRNOPORAPHAPHPPHXPHYPLAPLPPLXPLYROLRORRTIRTSSBCSECSEDSEISTASTXSTYSTZTAXTAYTRBTSBTSXTXATXSTYA???
d	� "A"
n� "#&L"
x
� "&L"
�� "&L,X"
�� "&L,Y"
�� "(&L)"
�� "(&L),Y"
�� "(&L,X)"
�
� "(&HL)"
�� "(&HL,X)"
�� "&HL"
�
� "&HL,X"
�
� "&HL,Y"
�:
��0,1,4,6,&A,&E,&12,&18,&1E
��&23,&2A,&2D,&32
:
�1,1,2,2,2,2,2,2,2
�3,3,3,3,3,2
":
,1�11,35,64,64,59,35,2,64,37,35,2,64,59,35,2,64
61�9,35,35,64,58,35,2,64,14,35,25,64,58,35,2,64
@.�29,1,64,64,6,1,44,64,41,1,44,64,6,1,44,64
J,�7,1,1,64,6,1,44,64,49,1,21,64,6,1,44,64
T4�46,24,64,64,64,24,33,64,36,24,33,64,28,24,33,64
^4�12,24,24,64,64,24,33,64,16,24,39,64,64,24,33,64
h0�47,0,64,64,55,0,45,64,40,0,45,64,28,0,45,64
r/�13,0,0,64,55,0,45,64,51,0,43,64,28,0,45,64
|3�10,52,64,64,54,52,53,64,23,6,61,64,54,52,53,64
�3�3,52,52,64,54,52,53,64,63,52,62,64,55,52,55,64
�4�32,30,31,64,32,30,31,64,57,30,56,64,32,30,31,64
�3�4,30,30,64,32,30,31,64,17,30,60,64,32,30,31,64
�4�20,18,64,64,20,18,21,64,27,18,22,64,20,18,21,64
�3�8,18,18,64,64,18,21,64,15,18,38,64,64,18,21,64
�4�19,48,64,64,19,48,25,64,26,48,34,64,19,48,25,64
�3�5,48,48,64,64,48,25,64,50,48,42,64,64,48,25,64
�:
�'�0,8,0,0,3,3,3,0,0,2,1,0,11,11,11,0
�)�14,7,6,0,3,4,4,0,0,13,1,0,11,12,12,0
�(�11,8,0,0,3,3,3,0,0,2,1,0,11,11,11,0
�)�14,7,6,0,4,4,4,0,0,13,1,0,12,12,12,0
�'�0,8,0,0,0,3,3,0,0,2,1,0,11,11,11,0
(�14,7,6,0,0,4,4,0,0,13,0,0,0,12,12,0
&�0,8,0,0,3,3,3,0,0,2,1,0,9,11,11,0
)�14,7,6,0,4,4,4,0,0,13,0,0,10,12,12,0
&(�14,8,0,0,3,3,3,0,0,2,0,0,11,11,11,0
0)�14,7,6,0,4,4,5,0,0,13,0,0,11,12,12,0
:'�2,8,2,0,3,3,3,0,0,2,0,0,11,11,11,0
D)�14,7,6,0,4,4,5,0,0,13,0,0,12,12,13,0
N'�2,8,0,0,3,3,3,0,0,2,0,0,11,11,11,0
X(�14,7,6,0,0,4,4,0,0,13,0,0,0,12,12,0
b'�2,8,0,0,3,3,3,0,0,2,0,0,11,11,11,0
l(�14,7,6,0,0,4,4,0,0,13,0,0,0,12,12,0
�
00000000  0d 00 0a 1e f4 20 43 4d  4f 53 20 64 69 73 61 73  |..... CMOS disas|
00000010  73 65 6d 62 6c 65 72 20  73 6f 75 72 63 65 0d 00  |sembler source..|
00000020  14 16 f4 20 42 79 20 4b  65 76 69 6e 20 45 64 77  |... By Kevin Edw|
00000030  61 72 64 73 0d 00 1e 18  f4 20 28 63 29 20 54 68  |ards..... (c) Th|
00000040  65 20 4d 69 63 72 6f 20  55 73 65 72 0d 00 28 34  |e Micro User..(4|
00000050  e7 20 90 3c 26 31 39 30  30 20 ef 37 3a f1 22 50  |. .<&1900 .7:."P|
00000060  41 47 45 20 6d 75 73 74  20 62 65 20 26 31 39 30  |AGE must be &190|
00000070  30 20 6f 72 20 67 72 65  61 74 65 72 21 22 3a e0  |0 or greater!":.|
00000080  0d 00 32 05 3a 0d 00 3c  15 f4 20 7a 65 72 6f 20  |..2.:..<.. zero |
00000090  70 61 67 65 20 75 73 61  67 65 0d 00 46 0f 6d 65  |page usage..F.me|
000000a0  6d 5f 6c 6f 63 3d 26 37  30 0d 00 50 0e 6f 70 63  |m_loc=&70..P.opc|
000000b0  6f 64 65 3d 26 37 32 0d  00 5a 18 69 6e 73 74 72  |ode=&72..Z.instr|
000000c0  75 63 74 69 6f 6e 5f 73  69 7a 65 3d 26 37 33 0d  |uction_size=&73.|
000000d0  00 64 0c 74 65 6d 70 3d  26 37 34 0d 00 6e 0d 74  |.d.temp=&74..n.t|
000000e0  65 6d 70 78 3d 26 37 35  0d 00 78 12 72 6f 6d 5f  |empx=&75..x.rom_|
000000f0  6e 75 6d 62 65 72 3d 26  37 36 0d 00 82 14 74 75  |number=&76....tu|
00000100  62 65 5f 69 6f 5f 66 6c  61 67 3d 26 37 37 0d 00  |be_io_flag=&77..|
00000110  8c 14 74 75 62 65 5f 70  72 65 73 65 6e 74 3d 26  |..tube_present=&|
00000120  37 38 0d 00 96 13 72 6f  6d 5f 61 64 64 72 65 73  |78....rom_addres|
00000130  73 3d 26 46 36 0d 00 a0  05 3a 0d 00 aa 13 f4 20  |s=&F6....:..... |
00000140  4d 4f 53 20 61 64 64 72  65 73 73 65 73 0d 00 b4  |MOS addresses...|
00000150  10 6f 73 72 64 72 6d 3d  26 46 46 42 39 0d 00 be  |.osrdrm=&FFB9...|
00000160  10 6f 73 6e 65 77 6c 3d  26 46 46 45 37 0d 00 c8  |.osnewl=&FFE7...|
00000170  10 6f 73 77 72 63 68 3d  26 46 46 45 45 0d 00 d2  |.oswrch=&FFEE...|
00000180  10 6f 73 77 6f 72 64 3d  26 46 46 46 31 0d 00 dc  |.osword=&FFF1...|
00000190  05 3a 0d 00 e6 13 e3 20  70 61 73 73 3d 30 20 b8  |.:..... pass=0 .|
000001a0  20 32 20 88 32 0d 00 f0  05 f7 0d 00 fa 0c 50 25  | 2 .2.........P%|
000001b0  3d 26 31 31 30 30 0d 01  04 0d 5b 4f 50 54 20 70  |=&1100....[OPT p|
000001c0  61 73 73 0d 01 0e 0e 2e  6d 61 69 6e 5f 6c 6f 6f  |ass.....main_loo|
000001d0  70 0d 01 18 0f 20 4a 53  52 20 6f 73 6e 65 77 6c  |p.... JSR osnewl|
000001e0  0d 01 22 12 20 4c 44 41  20 6d 65 6d 5f 6c 6f 63  |..". LDA mem_loc|
000001f0  2b 31 0d 01 2c 0d 20 4a  53 52 20 70 68 65 78 0d  |+1..,. JSR phex.|
00000200  01 36 10 20 4c 44 41 20  6d 65 6d 5f 6c 6f 63 0d  |.6. LDA mem_loc.|
00000210  01 40 0d 20 4a 53 52 20  70 68 65 78 0d 01 4a 12  |.@. JSR phex..J.|
00000220  20 4a 53 52 20 6f 6e 65  5f 73 70 61 63 65 0d 01  | JSR one_space..|
00000230  54 0b 20 4c 44 59 20 23  30 0d 01 5e 14 20 4a 53  |T. LDY #0..^. JS|
00000240  52 20 72 65 61 64 5f 6d  65 6d 6f 72 79 0d 01 68  |R read_memory..h|
00000250  0f 20 53 54 41 20 6f 70  63 6f 64 65 0d 01 72 08  |. STA opcode..r.|
00000260  20 54 41 58 0d 01 7c 14  20 4c 44 59 20 61 64 64  | TAX..|. LDY add|
00000270  72 5f 6d 6f 64 65 2c 58  0d 01 86 19 20 4c 44 58  |r_mode,X.... LDX|
00000280  20 61 64 64 72 5f 6d 6f  64 65 5f 73 69 7a 65 2c  | addr_mode_size,|
00000290  59 0d 01 90 19 20 53 54  58 20 69 6e 73 74 72 75  |Y.... STX instru|
000002a0  63 74 69 6f 6e 5f 73 69  7a 65 0d 01 9a 0b 20 4c  |ction_size.... L|
000002b0  44 59 20 23 30 0d 01 a4  13 2e 70 72 69 6e 74 5f  |DY #0.....print_|
000002c0  6f 70 5f 62 79 74 65 73  0d 01 ae 14 20 4a 53 52  |op_bytes.... JSR|
000002d0  20 72 65 61 64 5f 6d 65  6d 6f 72 79 0d 01 b8 0d  | read_memory....|
000002e0  20 4a 53 52 20 70 68 65  78 0d 01 c2 12 20 4a 53  | JSR phex.... JS|
000002f0  52 20 6f 6e 65 5f 73 70  61 63 65 0d 01 cc 08 20  |R one_space.... |
00000300  49 4e 59 0d 01 d6 08 20  44 45 58 0d 01 e0 17 20  |INY.... DEX.... |
00000310  42 4e 45 20 70 72 69 6e  74 5f 6f 70 5f 62 79 74  |BNE print_op_byt|
00000320  65 73 0d 01 ea 0e 2e 70  72 69 6e 74 5f 67 61 70  |es.....print_gap|
00000330  0d 01 f4 0b 20 4c 44 58  20 23 33 0d 01 fe 14 20  |.... LDX #3.... |
00000340  4a 53 52 20 6d 75 6c 74  69 5f 73 70 61 63 65 0d  |JSR multi_space.|
00000350  02 08 08 20 49 4e 59 0d  02 12 0b 20 43 50 59 20  |... INY.... CPY |
00000360  23 34 0d 02 1c 12 20 42  43 43 20 70 72 69 6e 74  |#4.... BCC print|
00000370  5f 67 61 70 0d 02 26 0b  20 4c 44 59 20 23 30 0d  |_gap..&. LDY #0.|
00000380  02 30 10 2e 70 72 69 6e  74 5f 61 73 63 69 69 0d  |.0..print_ascii.|
00000390  02 3a 14 20 4a 53 52 20  72 65 61 64 5f 6d 65 6d  |.:. JSR read_mem|
000003a0  6f 72 79 0d 02 44 0e 20  43 4d 50 20 23 97 22 20  |ory..D. CMP #." |
000003b0  22 0d 02 4e 12 20 42 43  43 20 62 61 64 5f 61 73  |"..N. BCC bad_as|
000003c0  63 69 69 0d 02 58 0e 20  43 4d 50 20 23 97 22 7e  |cii..X. CMP #."~|
000003d0  22 0d 02 62 14 20 42 43  43 20 66 69 6e 61 6c 5f  |"..b. BCC final_|
000003e0  61 73 63 69 69 0d 02 6c  0e 2e 62 61 64 5f 61 73  |ascii..l..bad_as|
000003f0  63 69 69 0d 02 76 0e 20  4c 44 41 20 23 97 22 2e  |cii..v. LDA #.".|
00000400  22 0d 02 80 10 2e 66 69  6e 61 6c 5f 61 73 63 69  |".....final_asci|
00000410  69 0d 02 8a 0f 20 4a 53  52 20 6f 73 77 72 63 68  |i.... JSR oswrch|
00000420  0d 02 94 08 20 49 4e 59  0d 02 9e 1a 20 43 50 59  |.... INY.... CPY|
00000430  20 69 6e 73 74 72 75 63  74 69 6f 6e 5f 73 69 7a  | instruction_siz|
00000440  65 20 0d 02 a8 14 20 42  4e 45 20 70 72 69 6e 74  |e .... BNE print|
00000450  5f 61 73 63 69 69 0d 02  b2 14 2e 74 6f 5f 6d 6e  |_ascii.....to_mn|
00000460  65 6d 6f 6e 69 63 5f 74  61 62 0d 02 bc 12 20 4a  |emonic_tab.... J|
00000470  53 52 20 6f 6e 65 5f 73  70 61 63 65 0d 02 c6 08  |SR one_space....|
00000480  20 49 4e 59 0d 02 d0 0b  20 43 50 59 20 23 36 0d  | INY.... CPY #6.|
00000490  02 da 18 20 42 4e 45 20  74 6f 5f 6d 6e 65 6d 6f  |... BNE to_mnemo|
000004a0  6e 69 63 5f 74 61 62 0d  02 e4 0f 20 4c 44 59 20  |nic_tab.... LDY |
000004b0  6f 70 63 6f 64 65 0d 02  ee 18 20 4c 44 41 20 6d  |opcode.... LDA m|
000004c0  6e 65 6d 6f 6e 69 63 5f  74 79 70 65 2c 59 0d 02  |nemonic_type,Y..|
000004d0  f8 0d 20 53 54 41 20 74  65 6d 70 0d 03 02 0a 20  |.. STA temp.... |
000004e0  41 53 4c 20 41 0d 03 0c  0d 20 41 44 43 20 74 65  |ASL A.... ADC te|
000004f0  6d 70 0d 03 16 08 20 54  41 58 0d 03 20 0b 20 4c  |mp.... TAX.. . L|
00000500  44 59 20 23 33 0d 03 2a  13 2e 70 72 69 6e 74 5f  |DY #3..*..print_|
00000510  6d 6e 65 6d 6f 6e 69 63  0d 03 34 14 20 4c 44 41  |mnemonic..4. LDA|
00000520  20 6d 6e 65 6d 6f 6e 69  63 73 2c 58 0d 03 3e 0f  | mnemonics,X..>.|
00000530  20 4a 53 52 20 6f 73 77  72 63 68 0d 03 48 08 20  | JSR oswrch..H. |
00000540  49 4e 58 0d 03 52 08 20  44 45 59 0d 03 5c 17 20  |INX..R. DEY..\. |
00000550  42 4e 45 20 70 72 69 6e  74 5f 6d 6e 65 6d 6f 6e  |BNE print_mnemon|
00000560  69 63 0d 03 66 0b 20 4c  44 58 20 23 32 0d 03 70  |ic..f. LDX #2..p|
00000570  14 20 4a 53 52 20 6d 75  6c 74 69 5f 73 70 61 63  |. JSR multi_spac|
00000580  65 0d 03 7a 0f 20 4c 44  58 20 6f 70 63 6f 64 65  |e..z. LDX opcode|
00000590  0d 03 84 14 20 4c 44 59  20 61 64 64 72 5f 6d 6f  |.... LDY addr_mo|
000005a0  64 65 2c 58 0d 03 8e 19  20 42 45 51 20 6e 65 78  |de,X.... BEQ nex|
000005b0  74 5f 69 6e 73 74 72 75  63 74 69 6f 6e 0d 03 98  |t_instruction...|
000005c0  0c 20 43 50 59 20 23 31  34 0d 03 a2 15 20 42 4e  |. CPY #14.... BN|
000005d0  45 20 6e 6f 74 5f 61 5f  62 72 61 6e 63 68 0d 03  |E not_a_branch..|
000005e0  ac 18 20 4a 53 52 20 72  65 6c 61 74 69 76 65 5f  |.. JSR relative_|
000005f0  62 72 61 6e 63 68 0d 03  b6 19 20 4a 4d 50 20 6e  |branch.... JMP n|
00000600  65 78 74 5f 69 6e 73 74  72 75 63 74 69 6f 6e 0d  |ext_instruction.|
00000610  03 c0 11 2e 6e 6f 74 5f  61 5f 62 72 61 6e 63 68  |....not_a_branch|
00000620  0d 03 ca 1a 20 4c 44 58  20 74 65 78 74 5f 70 6f  |.... LDX text_po|
00000630  69 6e 74 65 72 73 2d 31  2c 59 0d 03 d4 14 2e 70  |inters-1,Y.....p|
00000640  72 69 6e 74 5f 61 64 64  72 5f 6d 6f 64 65 0d 03  |rint_addr_mode..|
00000650  de 08 20 49 4e 58 0d 03  e8 1b 20 4c 44 41 20 61  |.. INX.... LDA a|
00000660  64 64 72 5f 6d 6f 64 65  5f 74 65 78 74 2d 31 2c  |ddr_mode_text-1,|
00000670  58 0d 03 f2 08 20 50 48  50 0d 03 fc 0b 20 80 20  |X.... PHP.... . |
00000680  23 26 37 46 0d 04 06 0b  20 43 4d 50 20 23 33 0d  |#&7F.... CMP #3.|
00000690  04 10 13 20 42 43 53 20  70 72 69 6e 74 5f 63 68  |... BCS print_ch|
000006a0  61 72 0d 04 1a 08 20 54  41 59 0d 04 24 14 20 4a  |ar.... TAY..$. J|
000006b0  53 52 20 72 65 61 64 5f  6d 65 6d 6f 72 79 0d 04  |SR read_memory..|
000006c0  2e 0d 20 4a 53 52 20 70  68 65 78 0d 04 38 18 20  |.. JSR phex..8. |
000006d0  4a 4d 50 20 63 68 65 63  6b 5f 6c 61 73 74 5f 63  |JMP check_last_c|
000006e0  68 61 72 0d 04 42 0f 2e  70 72 69 6e 74 5f 63 68  |har..B..print_ch|
000006f0  61 72 0d 04 4c 0f 20 4a  53 52 20 6f 73 77 72 63  |ar..L. JSR oswrc|
00000700  68 0d 04 56 14 2e 63 68  65 63 6b 5f 6c 61 73 74  |h..V..check_last|
00000710  5f 63 68 61 72 0d 04 60  08 20 50 4c 50 0d 04 6a  |_char..`. PLP..j|
00000720  18 20 42 50 4c 20 70 72  69 6e 74 5f 61 64 64 72  |. BPL print_addr|
00000730  5f 6d 6f 64 65 0d 04 74  15 2e 6e 65 78 74 5f 69  |_mode..t..next_i|
00000740  6e 73 74 72 75 63 74 69  6f 6e 0d 04 7e 19 20 4c  |nstruction..~. L|
00000750  44 41 20 69 6e 73 74 72  75 63 74 69 6f 6e 5f 73  |DA instruction_s|
00000760  69 7a 65 0d 04 88 08 20  43 4c 43 0d 04 92 10 20  |ize.... CLC.... |
00000770  41 44 43 20 6d 65 6d 5f  6c 6f 63 0d 04 9c 10 20  |ADC mem_loc.... |
00000780  53 54 41 20 6d 65 6d 5f  6c 6f 63 0d 04 a6 14 20  |STA mem_loc.... |
00000790  42 43 43 20 6e 65 78 74  5f 69 6e 73 74 72 32 0d  |BCC next_instr2.|
000007a0  04 b0 12 20 49 4e 43 20  6d 65 6d 5f 6c 6f 63 2b  |... INC mem_loc+|
000007b0  31 0d 04 ba 10 2e 6e 65  78 74 5f 69 6e 73 74 72  |1.....next_instr|
000007c0  32 0d 04 c4 08 20 52 54  53 0d 04 ce 05 3a 0d 04  |2.... RTS....:..|
000007d0  d8 14 2e 72 65 6c 61 74  69 76 65 5f 62 72 61 6e  |...relative_bran|
000007e0  63 68 0d 04 e2 0e 20 4c  44 41 20 23 97 22 26 22  |ch.... LDA #."&"|
000007f0  0d 04 ec 0f 20 4a 53 52  20 6f 73 77 72 63 68 0d  |.... JSR oswrch.|
00000800  04 f6 12 20 4c 44 58 20  6d 65 6d 5f 6c 6f 63 2b  |... LDX mem_loc+|
00000810  31 0d 05 00 0b 20 4c 44  59 20 23 31 0d 05 0a 14  |1.... LDY #1....|
00000820  20 4a 53 52 20 72 65 61  64 5f 6d 65 6d 6f 72 79  | JSR read_memory|
00000830  0d 05 14 08 20 53 45 43  0d 05 1e 08 20 50 48 50  |.... SEC.... PHP|
00000840  0d 05 28 0b 20 41 44 43  20 23 30 0d 05 32 11 20  |..(. ADC #0..2. |
00000850  42 43 43 20 6e 6f 74 5f  68 69 67 68 0d 05 3c 08  |BCC not_high..<.|
00000860  20 49 4e 58 0d 05 46 0d  2e 6e 6f 74 5f 68 69 67  | INX..F..not_hig|
00000870  68 0d 05 50 08 20 50 4c  50 0d 05 5a 14 20 42 4d  |h..P. PLP..Z. BM|
00000880  49 20 62 61 63 6b 5f 62  72 61 6e 63 68 0d 05 64  |I back_branch..d|
00000890  0b 20 41 44 43 20 23 30  0d 05 6e 10 20 41 44 43  |. ADC #0..n. ADC|
000008a0  20 6d 65 6d 5f 6c 6f 63  0d 05 78 11 20 42 43 43  | mem_loc..x. BCC|
000008b0  20 70 72 69 6e 74 5f 65  61 0d 05 82 08 20 49 4e  | print_ea.... IN|
000008c0  58 0d 05 8c 11 20 42 43  53 20 70 72 69 6e 74 5f  |X.... BCS print_|
000008d0  65 61 0d 05 96 10 2e 62  61 63 6b 5f 62 72 61 6e  |ea.....back_bran|
000008e0  63 68 0d 05 a0 0b 20 82  20 23 26 46 46 0d 05 aa  |ch.... . #&FF...|
000008f0  0d 20 53 54 41 20 74 65  6d 70 0d 05 b4 10 20 4c  |. STA temp.... L|
00000900  44 41 20 6d 65 6d 5f 6c  6f 63 0d 05 be 0d 20 53  |DA mem_loc.... S|
00000910  42 43 20 74 65 6d 70 0d  05 c8 11 20 42 43 53 20  |BC temp.... BCS |
00000920  70 72 69 6e 74 5f 65 61  0d 05 d2 08 20 44 45 58  |print_ea.... DEX|
00000930  0d 05 dc 0d 2e 70 72 69  6e 74 5f 65 61 0d 05 e6  |.....print_ea...|
00000940  08 20 54 41 59 0d 05 f0  08 20 54 58 41 0d 05 fa  |. TAY.... TXA...|
00000950  0d 20 4a 53 52 20 70 68  65 78 0d 06 04 08 20 54  |. JSR phex.... T|
00000960  59 41 0d 06 0e 09 2e 70  68 65 78 0d 06 18 08 20  |YA.....phex.... |
00000970  50 48 41 0d 06 22 0a 20  4c 53 52 20 41 0d 06 2c  |PHA..". LSR A..,|
00000980  0a 20 4c 53 52 20 41 0d  06 36 0a 20 4c 53 52 20  |. LSR A..6. LSR |
00000990  41 0d 06 40 0a 20 4c 53  52 20 41 0d 06 4a 0f 20  |A..@. LSR A..J. |
000009a0  4a 53 52 20 70 64 69 67  69 74 0d 06 54 08 20 50  |JSR pdigit..T. P|
000009b0  4c 41 0d 06 5e 0a 20 80  20 23 26 46 0d 06 68 0b  |LA..^. . #&F..h.|
000009c0  2e 70 64 69 67 69 74 0d  06 72 0c 20 43 4d 50 20  |.pdigit..r. CMP |
000009d0  23 31 30 0d 06 7c 10 20  42 43 43 20 6e 75 6d 65  |#10..|. BCC nume|
000009e0  72 69 63 0d 06 86 0b 20  41 44 43 20 23 36 0d 06  |ric.... ADC #6..|
000009f0  90 0c 2e 6e 75 6d 65 72  69 63 0d 06 9a 0e 20 41  |...numeric.... A|
00000a00  44 43 20 23 97 22 30 22  0d 06 a4 0f 20 4a 4d 50  |DC #."0".... JMP|
00000a10  20 6f 73 77 72 63 68 0d  06 ae 0e 2e 6f 6e 65 5f  | oswrch.....one_|
00000a20  73 70 61 63 65 0d 06 b8  0e 20 4c 44 41 20 23 97  |space.... LDA #.|
00000a30  22 20 22 0d 06 c2 0f 20  4a 4d 50 20 6f 73 77 72  |" ".... JMP oswr|
00000a40  63 68 0d 06 cc 10 2e 6d  75 6c 74 69 5f 73 70 61  |ch.....multi_spa|
00000a50  63 65 0d 06 d6 0e 20 4c  44 41 20 23 97 22 20 22  |ce.... LDA #." "|
00000a60  0d 06 e0 0b 2e 73 70 61  63 65 32 0d 06 ea 0f 20  |.....space2.... |
00000a70  4a 53 52 20 6f 73 77 72  63 68 0d 06 f4 08 20 44  |JSR oswrch.... D|
00000a80  45 58 0d 06 fe 0f 20 42  4e 45 20 73 70 61 63 65  |EX.... BNE space|
00000a90  32 0d 07 08 08 20 52 54  53 0d 07 12 10 2e 72 65  |2.... RTS.....re|
00000aa0  61 64 5f 6d 65 6d 6f 72  79 0d 07 1c 0d 20 53 54  |ad_memory.... ST|
00000ab0  59 20 74 65 6d 70 0d 07  26 0e 20 53 54 58 20 74  |Y temp..&. STX t|
00000ac0  65 6d 70 78 0d 07 30 12  20 4c 44 58 20 6d 65 6d  |empx..0. LDX mem|
00000ad0  5f 6c 6f 63 2b 31 0d 07  3a 08 20 54 59 41 0d 07  |_loc+1..:. TYA..|
00000ae0  44 08 20 43 4c 43 0d 07  4e 10 20 41 44 43 20 6d  |D. CLC..N. ADC m|
00000af0  65 6d 5f 6c 6f 63 0d 07  58 12 20 42 43 43 20 72  |em_loc..X. BCC r|
00000b00  65 61 64 5f 6d 65 6d 32  0d 07 62 08 20 49 4e 58  |ead_mem2..b. INX|
00000b10  0d 07 6c 0e 2e 72 65 61  64 5f 6d 65 6d 32 0d 07  |..l..read_mem2..|
00000b20  76 15 20 42 49 54 20 74  75 62 65 5f 70 72 65 73  |v. BIT tube_pres|
00000b30  65 6e 74 0d 07 80 16 20  42 4d 49 20 74 75 62 65  |ent.... BMI tube|
00000b40  5f 72 6f 75 74 69 6e 65  73 0d 07 8a 14 20 53 54  |_routines.... ST|
00000b50  41 20 72 6f 6d 5f 61 64  64 72 65 73 73 0d 07 94  |A rom_address...|
00000b60  16 20 53 54 58 20 72 6f  6d 5f 61 64 64 72 65 73  |. STX rom_addres|
00000b70  73 2b 31 0d 07 9e 13 20  4c 44 59 20 72 6f 6d 5f  |s+1.... LDY rom_|
00000b80  6e 75 6d 62 65 72 0d 07  a8 0f 20 4a 53 52 20 6f  |number.... JSR o|
00000b90  73 72 64 72 6d 0d 07 b2  12 2e 65 78 69 74 5f 6d  |srdrm.....exit_m|
00000ba0  65 6d 5f 72 65 61 64 0d  07 bc 08 20 50 48 41 0d  |em_read.... PHA.|
00000bb0  07 c6 0e 20 4c 44 58 20  74 65 6d 70 78 0d 07 d0  |... LDX tempx...|
00000bc0  0d 20 4c 44 59 20 74 65  6d 70 0d 07 da 08 20 50  |. LDY temp.... P|
00000bd0  4c 41 0d 07 e4 08 20 52  54 53 0d 07 ee 12 2e 74  |LA.... RTS.....t|
00000be0  75 62 65 5f 72 6f 75 74  69 6e 65 73 0d 07 f8 15  |ube_routines....|
00000bf0  20 42 49 54 20 74 75 62  65 5f 69 6f 5f 66 6c 61  | BIT tube_io_fla|
00000c00  67 0d 08 02 19 20 42 4d  49 20 72 65 61 64 5f 74  |g.... BMI read_t|
00000c10  75 62 65 5f 6d 65 6d 6f  72 79 0d 08 0c 15 20 53  |ube_memory.... S|
00000c20  54 41 20 72 65 61 64 5f  69 6f 5f 64 61 74 61 0d  |TA read_io_data.|
00000c30  08 16 17 20 53 54 58 20  72 65 61 64 5f 69 6f 5f  |... STX read_io_|
00000c40  64 61 74 61 2b 31 0d 08  20 0b 20 4c 44 41 20 23  |data+1.. . LDA #|
00000c50  35 0d 08 2a 1c 20 4c 44  58 20 23 72 65 61 64 5f  |5..*. LDX #read_|
00000c60  69 6f 5f 64 61 74 61 20  83 20 32 35 36 0d 08 34  |io_data . 256..4|
00000c70  1c 20 4c 44 59 20 23 72  65 61 64 5f 69 6f 5f 64  |. LDY #read_io_d|
00000c80  61 74 61 20 81 20 32 35  36 0d 08 3e 0f 20 4a 53  |ata . 256..>. JS|
00000c90  52 20 6f 73 77 6f 72 64  0d 08 48 17 20 4c 44 41  |R osword..H. LDA|
00000ca0  20 72 65 61 64 5f 69 6f  5f 64 61 74 61 2b 34 0d  | read_io_data+4.|
00000cb0  08 52 16 20 4a 4d 50 20  65 78 69 74 5f 6d 65 6d  |.R. JMP exit_mem|
00000cc0  5f 72 65 61 64 0d 08 5c  15 2e 72 65 61 64 5f 74  |_read..\..read_t|
00000cd0  75 62 65 5f 6d 65 6d 6f  72 79 0d 08 66 14 20 4c  |ube_memory..f. L|
00000ce0  44 41 20 28 6d 65 6d 5f  6c 6f 63 29 2c 59 0d 08  |DA (mem_loc),Y..|
00000cf0  70 16 20 4a 4d 50 20 65  78 69 74 5f 6d 65 6d 5f  |p. JMP exit_mem_|
00000d00  72 65 61 64 0d 08 7a 05  3a 0d 08 84 11 2e 72 65  |read..z.:.....re|
00000d10  61 64 5f 69 6f 5f 64 61  74 61 0d 08 8e 11 20 4f  |ad_io_data.... O|
00000d20  50 54 20 a4 65 71 75 62  28 35 29 0d 08 98 0e 2e  |PT .equb(5).....|
00000d30  6d 6e 65 6d 6f 6e 69 63  73 0d 08 a2 0e 20 4f 50  |mnemonics.... OP|
00000d40  54 20 a4 65 71 75 73 0d  08 ac 13 2e 61 64 64 72  |T .equs.....addr|
00000d50  5f 6d 6f 64 65 5f 74 65  78 74 0d 08 b6 19 20 4f  |_mode_text.... O|
00000d60  50 54 20 a4 72 65 61 64  5f 73 74 72 69 6e 67 28  |PT .read_string(|
00000d70  31 33 29 0d 08 c0 12 2e  74 65 78 74 5f 70 6f 69  |13).....text_poi|
00000d80  6e 74 65 72 73 0d 08 ca  12 20 4f 50 54 20 a4 65  |nters.... OPT .e|
00000d90  71 75 62 28 31 33 29 0d  08 d4 13 2e 61 64 64 72  |qub(13).....addr|
00000da0  5f 6d 6f 64 65 5f 73 69  7a 65 0d 08 de 12 20 4f  |_mode_size.... O|
00000db0  50 54 20 a4 65 71 75 62  28 31 35 29 0d 08 e8 12  |PT .equb(15)....|
00000dc0  2e 6d 6e 65 6d 6f 6e 69  63 5f 74 79 70 65 0d 08  |.mnemonic_type..|
00000dd0  f2 13 20 4f 50 54 20 a4  65 71 75 62 28 32 35 36  |.. OPT .equb(256|
00000de0  29 0d 08 fc 0e 2e 61 64  64 72 5f 6d 6f 64 65 0d  |).....addr_mode.|
00000df0  09 06 13 20 4f 50 54 20  a4 65 71 75 62 28 32 35  |... OPT .equb(25|
00000e00  36 29 0d 09 10 06 5d ed  0d 09 1a 45 e7 20 50 25  |6)....]....E. P%|
00000e10  3c 3e 26 31 35 35 44 20  ef 37 3a f1 22 4f 62 6a  |<>&155D .7:."Obj|
00000e20  65 63 74 20 63 6f 64 65  20 69 6e 63 6f 72 72 65  |ect code incorre|
00000e30  63 74 20 6c 65 6e 67 74  68 22 27 22 63 68 65 63  |ct length"'"chec|
00000e40  6b 20 70 72 6f 67 72 61  6d 21 22 3a e0 0d 09 24  |k program!":...$|
00000e50  1b 2a 53 41 56 45 20 63  6d 6f 73 64 69 73 20 31  |.*SAVE cmosdis 1|
00000e60  31 30 30 20 31 35 35 44  0d 09 2e 05 e0 0d 09 38  |100 155D.......8|
00000e70  05 3a 0d 09 42 11 dd 20  a4 65 71 75 62 28 6e 75  |.:..B.. .equb(nu|
00000e80  6d 25 29 0d 09 4c 16 e3  20 6c 6f 6f 70 25 3d 30  |m%)..L.. loop%=0|
00000e90  20 b8 20 6e 75 6d 25 2d  31 0d 09 56 16 f3 41 25  | . num%-1..V..A%|
00000ea0  3a 3f 28 50 25 2b 6c 6f  6f 70 25 29 3d 41 25 0d  |:?(P%+loop%)=A%.|
00000eb0  09 60 05 ed 0d 09 6a 0e  50 25 3d 50 25 2b 6e 75  |.`....j.P%=P%+nu|
00000ec0  6d 25 0d 09 74 09 3d 70  61 73 73 0d 09 7e 05 3a  |m%..t.=pass..~.:|
00000ed0  0d 09 88 0b dd 20 a4 65  71 75 73 0d 09 92 0b f3  |..... .equs.....|
00000ee0  20 74 65 78 74 24 0d 09  9c 0d 24 50 25 3d 74 65  | text$....$P%=te|
00000ef0  78 74 24 0d 09 a6 0e 50  25 3d 50 25 2b a9 24 50  |xt$....P%=P%+.$P|
00000f00  25 0d 09 b0 09 3d 70 61  73 73 0d 09 ba 05 3a 0d  |%....=pass....:.|
00000f10  09 c4 18 dd 20 a4 72 65  61 64 5f 73 74 72 69 6e  |.... .read_strin|
00000f20  67 28 65 6e 64 25 29 0d  09 ce 15 e3 20 6d 6f 64  |g(end%)..... mod|
00000f30  65 73 25 3d 31 20 b8 20  65 6e 64 25 0d 09 d8 0e  |es%=1 . end%....|
00000f40  f3 20 61 64 64 72 6d 64  65 24 0d 09 e2 1b e3 20  |. addrmde$..... |
00000f50  6c 65 74 74 65 72 25 3d  31 20 b8 20 a9 61 64 64  |letter%=1 . .add|
00000f60  72 6d 64 65 24 0d 09 ec  1e 41 25 3d 97 28 c1 61  |rmde$....A%=.(.a|
00000f70  64 64 72 6d 64 65 24 2c  6c 65 74 74 65 72 25 2c  |ddrmde$,letter%,|
00000f80  31 29 29 0d 09 f6 27 e7  20 41 25 3d 97 28 22 4c  |1))...'. A%=.("L|
00000f90  22 29 20 41 25 3d 31 20  8b 20 e7 20 41 25 3d 97  |") A%=1 . . A%=.|
00000fa0  28 22 48 22 29 20 41 25  3d 32 0d 0a 00 22 41 25  |("H") A%=2..."A%|
00000fb0  3d 41 25 2b 28 6c 65 74  74 65 72 25 3d a9 61 64  |=A%+(letter%=.ad|
00000fc0  64 72 6d 64 65 24 29 2a  2d 26 38 30 0d 0a 0a 12  |drmde$)*-&80....|
00000fd0  3f 50 25 3d 41 25 3a 50  25 3d 50 25 2b 31 0d 0a  |?P%=A%:P%=P%+1..|
00000fe0  14 05 ed 0d 0a 1e 08 f1  7e 50 25 0d 0a 28 05 ed  |........~P%..(..|
00000ff0  0d 0a 32 09 3d 70 61 73  73 0d 0a 3c 05 3a 0d 0a  |..2.=pass..<.:..|
00001000  46 13 dc 20 30 2c 30 2c  26 46 46 2c 26 46 46 2c  |F.. 0,0,&FF,&FF,|
00001010  30 0d 0a 50 05 3a 0d 0a  5a c9 dc 20 41 44 43 41  |0..P.:..Z.. ADCA|
00001020  4e 44 41 53 4c 42 43 43  42 43 53 42 45 51 42 49  |NDASLBCCBCSBEQBI|
00001030  54 42 4d 49 42 4e 45 42  50 4c 42 52 41 42 52 4b  |TBMIBNEBPLBRABRK|
00001040  42 56 43 42 56 53 43 4c  43 43 4c 44 43 4c 49 43  |BVCBVSCLCCLDCLIC|
00001050  4c 56 43 4d 50 43 50 58  43 50 59 44 45 43 44 45  |LVCMPCPXCPYDECDE|
00001060  58 44 45 59 45 4f 52 49  4e 43 49 4e 58 49 4e 59  |XDEYEORINCINXINY|
00001070  4a 4d 50 4a 53 52 4c 44  41 4c 44 58 4c 44 59 4c  |JMPJSRLDALDXLDYL|
00001080  53 52 4e 4f 50 4f 52 41  50 48 41 50 48 50 50 48  |SRNOPORAPHAPHPPH|
00001090  58 50 48 59 50 4c 41 50  4c 50 50 4c 58 50 4c 59  |XPHYPLAPLPPLXPLY|
000010a0  52 4f 4c 52 4f 52 52 54  49 52 54 53 53 42 43 53  |ROLRORRTIRTSSBCS|
000010b0  45 43 53 45 44 53 45 49  53 54 41 53 54 58 53 54  |ECSEDSEISTASTXST|
000010c0  59 53 54 5a 54 41 58 54  41 59 54 52 42 54 53 42  |YSTZTAXTAYTRBTSB|
000010d0  54 53 58 54 58 41 54 58  53 54 59 41 3f 3f 3f 0d  |TSXTXATXSTYA???.|
000010e0  0a 64 09 dc 20 22 41 22  0d 0a 6e 0b dc 20 22 23  |.d.. "A"..n.. "#|
000010f0  26 4c 22 0d 0a 78 0a dc  20 22 26 4c 22 0d 0a 82  |&L"..x.. "&L"...|
00001100  0c dc 20 22 26 4c 2c 58  22 0d 0a 8c 0c dc 20 22  |.. "&L,X"..... "|
00001110  26 4c 2c 59 22 0d 0a 96  0c dc 20 22 28 26 4c 29  |&L,Y"..... "(&L)|
00001120  22 0d 0a a0 0e dc 20 22  28 26 4c 29 2c 59 22 0d  |"..... "(&L),Y".|
00001130  0a aa 0e dc 20 22 28 26  4c 2c 58 29 22 0d 0a b4  |.... "(&L,X)"...|
00001140  0d dc 20 22 28 26 48 4c  29 22 0d 0a be 0f dc 20  |.. "(&HL)"..... |
00001150  22 28 26 48 4c 2c 58 29  22 0d 0a c8 0b dc 20 22  |"(&HL,X)"..... "|
00001160  26 48 4c 22 0d 0a d2 0d  dc 20 22 26 48 4c 2c 58  |&HL"..... "&HL,X|
00001170  22 0d 0a dc 0d dc 20 22  26 48 4c 2c 59 22 0d 0a  |"..... "&HL,Y"..|
00001180  e6 05 3a 0d 0a f0 1e dc  30 2c 31 2c 34 2c 36 2c  |..:.....0,1,4,6,|
00001190  26 41 2c 26 45 2c 26 31  32 2c 26 31 38 2c 26 31  |&A,&E,&12,&18,&1|
000011a0  45 0d 0a fa 14 dc 26 32  33 2c 26 32 41 2c 26 32  |E.....&23,&2A,&2|
000011b0  44 2c 26 33 32 0d 0b 04  05 3a 0d 0b 0e 16 dc 31  |D,&32....:.....1|
000011c0  2c 31 2c 32 2c 32 2c 32  2c 32 2c 32 2c 32 2c 32  |,1,2,2,2,2,2,2,2|
000011d0  0d 0b 18 10 dc 33 2c 33  2c 33 2c 33 2c 33 2c 32  |.....3,3,3,3,3,2|
000011e0  0d 0b 22 05 3a 0d 0b 2c  31 dc 31 31 2c 33 35 2c  |..".:..,1.11,35,|
000011f0  36 34 2c 36 34 2c 35 39  2c 33 35 2c 32 2c 36 34  |64,64,59,35,2,64|
00001200  2c 33 37 2c 33 35 2c 32  2c 36 34 2c 35 39 2c 33  |,37,35,2,64,59,3|
00001210  35 2c 32 2c 36 34 0d 0b  36 31 dc 39 2c 33 35 2c  |5,2,64..61.9,35,|
00001220  33 35 2c 36 34 2c 35 38  2c 33 35 2c 32 2c 36 34  |35,64,58,35,2,64|
00001230  2c 31 34 2c 33 35 2c 32  35 2c 36 34 2c 35 38 2c  |,14,35,25,64,58,|
00001240  33 35 2c 32 2c 36 34 0d  0b 40 2e dc 32 39 2c 31  |35,2,64..@..29,1|
00001250  2c 36 34 2c 36 34 2c 36  2c 31 2c 34 34 2c 36 34  |,64,64,6,1,44,64|
00001260  2c 34 31 2c 31 2c 34 34  2c 36 34 2c 36 2c 31 2c  |,41,1,44,64,6,1,|
00001270  34 34 2c 36 34 0d 0b 4a  2c dc 37 2c 31 2c 31 2c  |44,64..J,.7,1,1,|
00001280  36 34 2c 36 2c 31 2c 34  34 2c 36 34 2c 34 39 2c  |64,6,1,44,64,49,|
00001290  31 2c 32 31 2c 36 34 2c  36 2c 31 2c 34 34 2c 36  |1,21,64,6,1,44,6|
000012a0  34 0d 0b 54 34 dc 34 36  2c 32 34 2c 36 34 2c 36  |4..T4.46,24,64,6|
000012b0  34 2c 36 34 2c 32 34 2c  33 33 2c 36 34 2c 33 36  |4,64,24,33,64,36|
000012c0  2c 32 34 2c 33 33 2c 36  34 2c 32 38 2c 32 34 2c  |,24,33,64,28,24,|
000012d0  33 33 2c 36 34 0d 0b 5e  34 dc 31 32 2c 32 34 2c  |33,64..^4.12,24,|
000012e0  32 34 2c 36 34 2c 36 34  2c 32 34 2c 33 33 2c 36  |24,64,64,24,33,6|
000012f0  34 2c 31 36 2c 32 34 2c  33 39 2c 36 34 2c 36 34  |4,16,24,39,64,64|
00001300  2c 32 34 2c 33 33 2c 36  34 0d 0b 68 30 dc 34 37  |,24,33,64..h0.47|
00001310  2c 30 2c 36 34 2c 36 34  2c 35 35 2c 30 2c 34 35  |,0,64,64,55,0,45|
00001320  2c 36 34 2c 34 30 2c 30  2c 34 35 2c 36 34 2c 32  |,64,40,0,45,64,2|
00001330  38 2c 30 2c 34 35 2c 36  34 0d 0b 72 2f dc 31 33  |8,0,45,64..r/.13|
00001340  2c 30 2c 30 2c 36 34 2c  35 35 2c 30 2c 34 35 2c  |,0,0,64,55,0,45,|
00001350  36 34 2c 35 31 2c 30 2c  34 33 2c 36 34 2c 32 38  |64,51,0,43,64,28|
00001360  2c 30 2c 34 35 2c 36 34  0d 0b 7c 33 dc 31 30 2c  |,0,45,64..|3.10,|
00001370  35 32 2c 36 34 2c 36 34  2c 35 34 2c 35 32 2c 35  |52,64,64,54,52,5|
00001380  33 2c 36 34 2c 32 33 2c  36 2c 36 31 2c 36 34 2c  |3,64,23,6,61,64,|
00001390  35 34 2c 35 32 2c 35 33  2c 36 34 0d 0b 86 33 dc  |54,52,53,64...3.|
000013a0  33 2c 35 32 2c 35 32 2c  36 34 2c 35 34 2c 35 32  |3,52,52,64,54,52|
000013b0  2c 35 33 2c 36 34 2c 36  33 2c 35 32 2c 36 32 2c  |,53,64,63,52,62,|
000013c0  36 34 2c 35 35 2c 35 32  2c 35 35 2c 36 34 0d 0b  |64,55,52,55,64..|
000013d0  90 34 dc 33 32 2c 33 30  2c 33 31 2c 36 34 2c 33  |.4.32,30,31,64,3|
000013e0  32 2c 33 30 2c 33 31 2c  36 34 2c 35 37 2c 33 30  |2,30,31,64,57,30|
000013f0  2c 35 36 2c 36 34 2c 33  32 2c 33 30 2c 33 31 2c  |,56,64,32,30,31,|
00001400  36 34 0d 0b 9a 33 dc 34  2c 33 30 2c 33 30 2c 36  |64...3.4,30,30,6|
00001410  34 2c 33 32 2c 33 30 2c  33 31 2c 36 34 2c 31 37  |4,32,30,31,64,17|
00001420  2c 33 30 2c 36 30 2c 36  34 2c 33 32 2c 33 30 2c  |,30,60,64,32,30,|
00001430  33 31 2c 36 34 0d 0b a4  34 dc 32 30 2c 31 38 2c  |31,64...4.20,18,|
00001440  36 34 2c 36 34 2c 32 30  2c 31 38 2c 32 31 2c 36  |64,64,20,18,21,6|
00001450  34 2c 32 37 2c 31 38 2c  32 32 2c 36 34 2c 32 30  |4,27,18,22,64,20|
00001460  2c 31 38 2c 32 31 2c 36  34 0d 0b ae 33 dc 38 2c  |,18,21,64...3.8,|
00001470  31 38 2c 31 38 2c 36 34  2c 36 34 2c 31 38 2c 32  |18,18,64,64,18,2|
00001480  31 2c 36 34 2c 31 35 2c  31 38 2c 33 38 2c 36 34  |1,64,15,18,38,64|
00001490  2c 36 34 2c 31 38 2c 32  31 2c 36 34 0d 0b b8 34  |,64,18,21,64...4|
000014a0  dc 31 39 2c 34 38 2c 36  34 2c 36 34 2c 31 39 2c  |.19,48,64,64,19,|
000014b0  34 38 2c 32 35 2c 36 34  2c 32 36 2c 34 38 2c 33  |48,25,64,26,48,3|
000014c0  34 2c 36 34 2c 31 39 2c  34 38 2c 32 35 2c 36 34  |4,64,19,48,25,64|
000014d0  0d 0b c2 33 dc 35 2c 34  38 2c 34 38 2c 36 34 2c  |...3.5,48,48,64,|
000014e0  36 34 2c 34 38 2c 32 35  2c 36 34 2c 35 30 2c 34  |64,48,25,64,50,4|
000014f0  38 2c 34 32 2c 36 34 2c  36 34 2c 34 38 2c 32 35  |8,42,64,64,48,25|
00001500  2c 36 34 0d 0b cc 05 3a  0d 0b d6 27 dc 30 2c 38  |,64....:...'.0,8|
00001510  2c 30 2c 30 2c 33 2c 33  2c 33 2c 30 2c 30 2c 32  |,0,0,3,3,3,0,0,2|
00001520  2c 31 2c 30 2c 31 31 2c  31 31 2c 31 31 2c 30 0d  |,1,0,11,11,11,0.|
00001530  0b e0 29 dc 31 34 2c 37  2c 36 2c 30 2c 33 2c 34  |..).14,7,6,0,3,4|
00001540  2c 34 2c 30 2c 30 2c 31  33 2c 31 2c 30 2c 31 31  |,4,0,0,13,1,0,11|
00001550  2c 31 32 2c 31 32 2c 30  0d 0b ea 28 dc 31 31 2c  |,12,12,0...(.11,|
00001560  38 2c 30 2c 30 2c 33 2c  33 2c 33 2c 30 2c 30 2c  |8,0,0,3,3,3,0,0,|
00001570  32 2c 31 2c 30 2c 31 31  2c 31 31 2c 31 31 2c 30  |2,1,0,11,11,11,0|
00001580  0d 0b f4 29 dc 31 34 2c  37 2c 36 2c 30 2c 34 2c  |...).14,7,6,0,4,|
00001590  34 2c 34 2c 30 2c 30 2c  31 33 2c 31 2c 30 2c 31  |4,4,0,0,13,1,0,1|
000015a0  32 2c 31 32 2c 31 32 2c  30 0d 0b fe 27 dc 30 2c  |2,12,12,0...'.0,|
000015b0  38 2c 30 2c 30 2c 30 2c  33 2c 33 2c 30 2c 30 2c  |8,0,0,0,3,3,0,0,|
000015c0  32 2c 31 2c 30 2c 31 31  2c 31 31 2c 31 31 2c 30  |2,1,0,11,11,11,0|
000015d0  0d 0c 08 28 dc 31 34 2c  37 2c 36 2c 30 2c 30 2c  |...(.14,7,6,0,0,|
000015e0  34 2c 34 2c 30 2c 30 2c  31 33 2c 30 2c 30 2c 30  |4,4,0,0,13,0,0,0|
000015f0  2c 31 32 2c 31 32 2c 30  0d 0c 12 26 dc 30 2c 38  |,12,12,0...&.0,8|
00001600  2c 30 2c 30 2c 33 2c 33  2c 33 2c 30 2c 30 2c 32  |,0,0,3,3,3,0,0,2|
00001610  2c 31 2c 30 2c 39 2c 31  31 2c 31 31 2c 30 0d 0c  |,1,0,9,11,11,0..|
00001620  1c 29 dc 31 34 2c 37 2c  36 2c 30 2c 34 2c 34 2c  |.).14,7,6,0,4,4,|
00001630  34 2c 30 2c 30 2c 31 33  2c 30 2c 30 2c 31 30 2c  |4,0,0,13,0,0,10,|
00001640  31 32 2c 31 32 2c 30 0d  0c 26 28 dc 31 34 2c 38  |12,12,0..&(.14,8|
00001650  2c 30 2c 30 2c 33 2c 33  2c 33 2c 30 2c 30 2c 32  |,0,0,3,3,3,0,0,2|
00001660  2c 30 2c 30 2c 31 31 2c  31 31 2c 31 31 2c 30 0d  |,0,0,11,11,11,0.|
00001670  0c 30 29 dc 31 34 2c 37  2c 36 2c 30 2c 34 2c 34  |.0).14,7,6,0,4,4|
00001680  2c 35 2c 30 2c 30 2c 31  33 2c 30 2c 30 2c 31 31  |,5,0,0,13,0,0,11|
00001690  2c 31 32 2c 31 32 2c 30  0d 0c 3a 27 dc 32 2c 38  |,12,12,0..:'.2,8|
000016a0  2c 32 2c 30 2c 33 2c 33  2c 33 2c 30 2c 30 2c 32  |,2,0,3,3,3,0,0,2|
000016b0  2c 30 2c 30 2c 31 31 2c  31 31 2c 31 31 2c 30 0d  |,0,0,11,11,11,0.|
000016c0  0c 44 29 dc 31 34 2c 37  2c 36 2c 30 2c 34 2c 34  |.D).14,7,6,0,4,4|
000016d0  2c 35 2c 30 2c 30 2c 31  33 2c 30 2c 30 2c 31 32  |,5,0,0,13,0,0,12|
000016e0  2c 31 32 2c 31 33 2c 30  0d 0c 4e 27 dc 32 2c 38  |,12,13,0..N'.2,8|
000016f0  2c 30 2c 30 2c 33 2c 33  2c 33 2c 30 2c 30 2c 32  |,0,0,3,3,3,0,0,2|
00001700  2c 30 2c 30 2c 31 31 2c  31 31 2c 31 31 2c 30 0d  |,0,0,11,11,11,0.|
00001710  0c 58 28 dc 31 34 2c 37  2c 36 2c 30 2c 30 2c 34  |.X(.14,7,6,0,0,4|
00001720  2c 34 2c 30 2c 30 2c 31  33 2c 30 2c 30 2c 30 2c  |,4,0,0,13,0,0,0,|
00001730  31 32 2c 31 32 2c 30 0d  0c 62 27 dc 32 2c 38 2c  |12,12,0..b'.2,8,|
00001740  30 2c 30 2c 33 2c 33 2c  33 2c 30 2c 30 2c 32 2c  |0,0,3,3,3,0,0,2,|
00001750  30 2c 30 2c 31 31 2c 31  31 2c 31 31 2c 30 0d 0c  |0,0,11,11,11,0..|
00001760  6c 28 dc 31 34 2c 37 2c  36 2c 30 2c 30 2c 34 2c  |l(.14,7,6,0,0,4,|
00001770  34 2c 30 2c 30 2c 31 33  2c 30 2c 30 2c 30 2c 31  |4,0,0,13,0,0,0,1|
00001780  32 2c 31 32 2c 30 0d ff                           |2,12,0..|
00001788
Utils/DISAS1.m0
Utils/DISAS1.m1
Utils/DISAS1.m2
Utils/DISAS1.m4
Utils/DISAS1.m5