improved error handling in BASIC

This commit is contained in:
FeralChild64 committed 2020-07-12 11:04:45 +02:00
1 parent d1ac8ac371
commit 8b629816d7
8 files changed
+144 -95

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ cmd_goto:
bcs !+
jsr fetch_line_number
bcs_16 do_SYNTAX_error
jsr find_line
bcc !+
// Line does not exist, so report error
+3 -1
View File
@@ -41,7 +41,9 @@ cmd_sys_hack_not_needed:
// XXX End of hack
//
jsr fetch_line_number
lda #IDX__EV2_0B // 'SYNTAX ERROR'
jsr fetch_uint16
bcs_16 do_SYNTAX_error
cmd_sys_setup_call:
lda #$4C // JMP opcode