set end of loaded memory pointer in BASIC LOAD routine. Other small fixes.

This commit is contained in:
Paul Gardner-Stephen committed 2019-05-04 23:52:48 +09:30
1 parent 0a97a16552
commit 6d74679a5c
3 files changed
+59 -21

No files matched your search

+10 -2
View File
@@ -154,13 +154,21 @@ load_done:
jsr iec_tx_byte
jsr iec_release_atn
;; FALL THROUGH
;; Return last address written to +1
;; (Even though Compute's Mapping the 64 says without the +1.
;; I'm suspicious. Will have to check behavour on an original C64)
ldx load_save_start_ptr+0
ldy load_save_start_ptr+1
clc
cli
rts
load_error:
;; XXX - Indicate KERNAL (not BASIC) LOAD error condtion
sec
;; Re-enable interrupts and return
cli
;; (iec_tx_byte will have set/cleared C flag and put result code