Skip to content

Commit c22780b

Browse files
committed
JSave
1 parent f9218bf commit c22780b

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

E000.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,27 @@ Loads or verifies a program file from tape or disk into a specified area of memo
196196
* clear if data has been loaded succesfully
197197
* set in case of error or if RUN/STOP has been pressed and .A contains error code
198198
* .A could be 4 (file not found), 8 (no name specified), 9 (illegal device number specificied), 16 (load extended over address $FEFF).
199+
200+
<a name="FFD8"></a>
201+
202+
## 65493 $FFD8 JSAVE
203+
204+
<span class="badge badge-info">Entry point for the SAVE routine, currently at [$F53E](#F53E)</span>
205+
206+
Saves the contents of a block of memory to disk or tape.
207+
208+
### Input
209+
210+
* JSETLFS at [$FFBA](#FFBA) must be called to establish device number and the secondary address.
211+
* JSETNAM at [$FFBD](#FFBD) must be called to specify the length and the address of the filename
212+
* JSETBNK 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 saved
213+
* .A must contain the address of zero-page pointer to the starting address to save
214+
* .X must contain the lo-byte of the ending address plus 1 for the save
215+
* .Y must contain the hi-byte of the ending address plus 1 for the save
216+
217+
### Output
218+
219+
* Carry bit will be affected:
220+
* clear if data has been loaded succesfully
221+
* set in case of error or if RUN/STOP has been pressed and .A contains error code
222+
* .A could be 5 (serial device was not present), 9 (illegal device number specificied).

0 commit comments

Comments
 (0)