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

+23
View File
@@ -0,0 +1,23 @@
//
// LOAD preparation routine
//
//
// Input (according to http://sta.c64.org/cbm64krnfunc.html)
// .A - 0 for load, non-0 for verify
// .X and .Y - load address (if secondary address is 0)
//
//
// Note: Although the vector at $330 points to $F4A5, the Kernal jump table points to $F49E
// (see also Mapping the C64, page 76). By experimenting I have discovered that $F49E performs
// indirect jump via ($0330) vector, after setting MEMUSS.
//
LOAD_PREP:
sty MEMUSS+1
stx MEMUSS+0
jmp (ILOAD)