STOP key now terminates loading, some cleanups

This commit is contained in:
FeralChild64 committed 2019-10-30 21:26:26 +01:00
1 parent 18dc9d9b61
commit 1065930539
5 files changed
+36 -16

No files matched your search

+6 -4
View File
@@ -97,16 +97,18 @@ got_loadaddress:
jsr print_return
pla
plp
bcc !+
bcc load_no_error
// A = KERNAL error code, which also almost match
// basic ERROR codes, so we can just copy the
// error code to X, decrement, and handle normally
// basic ERROR codes
tax
dex
bpl !+
ldx #B_ERR_BREAK
!:
jmp do_basic_error
!:
load_no_error:
// $YYXX is the last loaded address, so store it
stx VARTAB+0
sty VARTAB+1