Skip to content

Commit 3fa7f6d

Browse files
committed
New entries in e000
1 parent ce6459a commit 3fa7f6d

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

E000.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,72 @@ The code after the string (starting with $20 after the $00 in bold):
127127
</pre>
128128

129129
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+
<a name="FF68"></a>
132+
133+
## 65493 $FF68 JSETBNK
134+
135+
<span class="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+
<a name="FFBA"></a>
145+
146+
## 65493 $FFBA JSETLFS
147+
148+
<span class="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+
<a name="FFBD"></a>
159+
160+
## 65493 $FFBD JSETNAM
161+
162+
<span class="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+
<a name="FFD5"></a>
175+
176+
## 65493 $FFD5 JLOAD
177+
178+
<span class="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

Comments
 (0)