LOAD/SAVE preparation routines should be OK now

This commit is contained in:
FeralChild64 committed 2019-10-29 22:15:44 +01:00
1 parent 7eca8ea05b
commit 73f1e24e3c
6 files changed
+47 -19

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
//
// SAVE preparation routine
//
//
// Input (according to http://sta.c64.org/cbm64krnfunc.html)
// .A - address of zero page register holding start address of memory area to save
// .X and .Y - end address of memory area plus 1
//
//
// Note: Experimenting can easily confirm that SAVE preparation routine does similar
// actions as LOAD preparation routine.
//
SAVE_PREP:
sty EAL+1
stx EAL+0
tax
lda $01, x
sta STAL+1
lda $00, x
sta STAL+0
jmp (ISAVE)