26
26
27
27
def msxbios_begin (rom , beg , end ):
28
28
"""."""
29
- rom .add_line_comment (addr = beg , comment = [
29
+ rom .add_comment_line (addr = beg , comment = [
30
30
'MSX BIOS' ,
31
31
'========' ,
32
32
'' ,
33
- '. Symbol table by MSX.BIOS by ASCII Corp., 1983 (v3.44)' ,
33
+ '. Symbol table by MSX.BIOS, ASCII Corp., 1983 (v3.44)' ,
34
34
'' ,
35
35
' file : BIOHDR.MAC' ,
36
36
' use : Restart calls and ROM entries table' ,
@@ -44,18 +44,22 @@ def msxbios_begin(rom, beg, end):
44
44
'. Disassembled by Ximenes R. Resende ([email protected] )' ,
45
45
' file : EXPERT10.ROM' ,
46
46
'' ,
47
+ '' ,
48
+ 'The following RST\' s (RST 0 thru RST 5) are reserved for BASIC' ,
49
+ 'interpreter, RST 6 for inter-slot calls, and RST 7 for' ,
50
+ 'hardware interrupt' ,
47
51
])
48
- rom .add_line_comment (0x0006 , comment = [
52
+ rom .add_comment_line (0x0006 , comment = [
49
53
'** VDP Information **' ,
50
54
'Any program that access the VDP hardware directly' ,
51
55
'should read the I/O port address found here, to be certain' ,
52
56
'the software is compatible with future versions of the VDP' ,
53
57
])
54
58
55
- rom .add_ins_comment (addr = 0x0000 , comment = 'Fail safe' )
56
- rom .add_ins_comment (addr = 0x0001 , comment = 'Find all connected RAM' )
57
- rom .add_ins_comment (addr = 0x0006 , comment = 'Port address for VDP data read' )
58
- rom .add_ins_comment (addr = 0x0007 , comment = 'Port address for VDP data write' )
59
+ rom .add_comment_ins (addr = 0x0000 , comment = 'Fail safe' )
60
+ rom .add_comment_ins (addr = 0x0001 , comment = 'Find all connected RAM' )
61
+ rom .add_comment_ins (addr = 0x0006 , comment = 'Port address for VDP data read' )
62
+ rom .add_comment_ins (addr = 0x0007 , comment = 'Port address for VDP data write' )
59
63
rom .add_dw (0x0004 )
60
64
rom .add_db ([
61
65
0x0006 , 0x0007 , 0x000B , 0x000F , 0x0013 ,
@@ -67,7 +71,7 @@ def msxbios_begin(rom, beg, end):
67
71
68
72
def msxbios_ioinij (rom , beg , end ):
69
73
70
- rom .add_line_comment (addr = beg , comment = [
74
+ rom .add_comment_line (addr = beg , comment = [
71
75
'' ,
72
76
'Following are used for I/O initializations' ,
73
77
'' ,
@@ -77,7 +81,7 @@ def msxbios_ioinij(rom, beg, end):
77
81
78
82
def msxbios_vdprmc (rom , beg , end ):
79
83
80
- rom .add_line_comment (addr = beg , comment = [
84
+ rom .add_comment_line (addr = beg , comment = [
81
85
'' ,
82
86
'The following entry points provide control of the ' ,
83
87
'VDP\' s registers, screen mode settings, and memory block' ,
@@ -89,7 +93,7 @@ def msxbios_vdprmc(rom, beg, end):
89
93
90
94
def msxbios_psgini (rom , beg , end ):
91
95
92
- rom .add_line_comment (addr = beg , comment = [
96
+ rom .add_comment_line (addr = beg , comment = [
93
97
'' ,
94
98
'The following entry points are used for PSG initialization, ' ,
95
99
'read and write PSG registers, and PLAY statement execution.' ,
@@ -99,7 +103,7 @@ def msxbios_psgini(rom, beg, end):
99
103
100
104
def msxbios_inpprt (rom , beg , end ):
101
105
102
- rom .add_line_comment (addr = beg , comment = [
106
+ rom .add_comment_line (addr = beg , comment = [
103
107
'' ,
104
108
'General INPUT and PRINT utilities.' ,
105
109
'' ,
@@ -109,7 +113,7 @@ def msxbios_inpprt(rom, beg, end):
109
113
110
114
def msxbios_joystk (rom , beg , end ):
111
115
112
- rom .add_line_comment (addr = beg , comment = [
116
+ rom .add_comment_line (addr = beg , comment = [
113
117
'' ,
114
118
'General INPUT and PRINT utilities.' ,
115
119
'' ,
@@ -119,7 +123,7 @@ def msxbios_joystk(rom, beg, end):
119
123
120
124
def msxbios_tapect (rom , beg , end ):
121
125
122
- rom .add_line_comment (addr = beg , comment = [
126
+ rom .add_comment_line (addr = beg , comment = [
123
127
'' ,
124
128
'Following are used to access the cassette tape, ' ,
125
129
'data read/write, and motor on/off' ,
@@ -130,7 +134,7 @@ def msxbios_tapect(rom, beg, end):
130
134
131
135
def msxbios_basicq (rom , beg , end ):
132
136
133
- rom .add_line_comment (addr = beg , comment = [
137
+ rom .add_comment_line (addr = beg , comment = [
134
138
'' ,
135
139
'BASIC queues' ,
136
140
'' ,
@@ -140,20 +144,20 @@ def msxbios_basicq(rom, beg, end):
140
144
141
145
def msxbios_basgrp (rom , beg , end ):
142
146
143
- rom .add_line_comment (addr = beg , comment = [
147
+ rom .add_comment_line (addr = beg , comment = [
144
148
'' ,
145
149
'For BASIC interpreter\' s GENGRP and ADVGRP modules use' ,
146
150
'' ,
147
151
])
148
- rom .add_ins_comment (addr = 0x015C , comment = 'RESERVED FOR EXPANSION - start' )
149
- rom .add_ins_comment (addr = 0x01B5 , comment = 'RESERVED FOR EXPANSION - end' )
152
+ rom .add_comment_ins (addr = 0x015C , comment = 'RESERVED FOR EXPANSION - start' )
153
+ rom .add_comment_ins (addr = 0x01B5 , comment = 'RESERVED FOR EXPANSION - end' )
150
154
rom .add_db (0x015C , 0x01B5 )
151
155
rom .disassemble (pc = beg , lastpc = end , nrbytes = None , print_addr = True )
152
156
153
157
154
158
def msxbios_slotsm (rom , beg , end ):
155
159
156
- rom .add_line_comment (addr = beg , comment = [
160
+ rom .add_comment_line (addr = beg , comment = [
157
161
'' ,
158
162
'SLOTS' ,
159
163
'' ,
@@ -214,7 +218,7 @@ def msxbios():
214
218
215
219
# rom.disassemble(pc=0x0000, lastpc=0x008D, nrbytes=None, print_addr=True)
216
220
217
- # rom.add_ins_comment (addr=0x01B6, comment='Calculate bit pattern and mask code')
221
+ # rom.add_comment_ins (addr=0x01B6, comment='Calculate bit pattern and mask code')
218
222
219
223
# rom.disassemble(pc='RDSLT', lastpc=0x01C5, nrbytes=None, print_addr=True)
220
224
# rom.disassemble(pc='RDESLT', lastpc=0x01CF, nrbytes=None, print_addr=True)
@@ -230,8 +234,8 @@ def msxbios():
230
234
# rom.disassemble(pc='SELPRM', lastpc=0x02A2, nrbytes=None, print_addr=True)
231
235
# rom.disassemble(pc='SELEXP', lastpc=0x02D6, nrbytes=None, print_addr=True)
232
236
233
- # rom.add_skip ('0x033B') # avoid replacing 0x0000 <-> _CHKRAM
234
- # rom.add_skip ('0x039E') # avoid replacing 0x0000 <-> _CHKRAM
237
+ # rom.add_symbol_skip ('0x033B') # avoid replacing 0x0000 <-> _CHKRAM
238
+ # rom.add_symbol_skip ('0x039E') # avoid replacing 0x0000 <-> _CHKRAM
235
239
# rom.disassemble(pc='CHKRAM', lastpc=0x03F8, nrbytes=None, print_addr=True)
236
240
237
241
0 commit comments