You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: E000.md
+69Lines changed: 69 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,3 +127,72 @@ The code after the string (starting with $20 after the $00 in bold):
127
127
</pre>
128
128
129
129
The loading of sequential sectors is designed primarily for specialized applications (such as CP/M or games) that do not need a disk directory entry.
130
+
131
+
<aname="FF68"></a>
132
+
133
+
## 65493 $FF68 JSETBNK
134
+
135
+
<spanclass="badge badge-info">Entry point for the SETBNK routine, currently at [$F73F](#F73F)</span>
136
+
137
+
Establishes the current bank from which the data will be read or to which data will be written during load/save operation, as well as the bank where the filename for the I/O operations can be found.
138
+
139
+
### Input
140
+
141
+
* .A must contain the bank number for the data
142
+
* .X must contain the bank number for the filename
143
+
144
+
<aname="FFBA"></a>
145
+
146
+
## 65493 $FFBA JSETLFS
147
+
148
+
<spanclass="badge badge-info">Entry point for the SETLFS routine, currently at [$F7E8](#F7E8)</span>
149
+
150
+
Assigns the logical file number, device number and secondary address for an I/O operation.
151
+
152
+
### Input
153
+
154
+
* .A must contain the logical file number
155
+
* .X must contain the device number
156
+
* .Y must contain the secondary address
157
+
158
+
<aname="FFBD"></a>
159
+
160
+
## 65493 $FFBD JSETNAM
161
+
162
+
<spanclass="badge badge-info">Entry point for the SETNAM routine, currently at [$F731](#F731)</span>
163
+
164
+
Assigns the length and the address of filename for a I/O operation
165
+
166
+
### Input
167
+
168
+
* .A must contain the length of the filename
169
+
* .X must contain the lo-byte of the address of the first character of the filename
170
+
* .T must contain the hi-byte of the address of the first character of the filename
171
+
172
+
If no name is used for this operation, load .A with 0 so .X .Y are irrelevant.
173
+
174
+
<aname="FFD5"></a>
175
+
176
+
## 65493 $FFD5 JLOAD
177
+
178
+
<spanclass="badge badge-info">Entry point for the LOAD routine, currently at [$F265](#F265)</span>
179
+
180
+
Loads or verifies a program file from tape or disk into a specified area of memory.
181
+
182
+
### Input
183
+
184
+
* JSETLFS at [$FFBA](#FFBA) must be called to establish device number and the secondary address.
185
+
* JSETNAM at [$FFBD](#FFBD) must be called to specify the length and the address of the filename
186
+
* JSETBKN at [$FF68](#FF68) must be called to specify the bank number where the filename can be found and the bank where the data is to be loaded
187
+
* .A must contain the operation type
188
+
* 0 for load
189
+
* !=0 for verify
190
+
* if bit 0 of the secondary address is 0, the file will be loaded starting at the address specified in .X (lo-byte) and .Y registers (hi-byte). It's called a relocation load.
191
+
* if bit 0 of the secondary address is 1, the file will be loaded at the address specified in the file itself. It's called an absolute load.
192
+
193
+
### Output
194
+
195
+
* Carry bit will be affected:
196
+
* clear if data has been loaded succesfully
197
+
* set in case of error or if RUN/STOP has been pressed and .A contains error code
198
+
* .A could be 4 (file not found), 8 (no name specified), 9 (illegal device number specificied), 16 (load extended over address $FEFF).
0 commit comments