fixed crash in BASIC when trying to incorrectly execute operator
This commit is contained in:
1 parent
74bdbd7930
commit
164b29bab8
2 files changed
+5
-4
No files matched your search
@@ -55,14 +55,12 @@
|
|||||||
cmd_tab, // XXX this token probably does not belong here
|
cmd_tab, // XXX this token probably does not belong here
|
||||||
do_SYNTAX_error, // 'TO' is not a standalone command
|
do_SYNTAX_error, // 'TO' is not a standalone command
|
||||||
do_SYNTAX_error, // 'FN' is not a standalone command
|
do_SYNTAX_error, // 'FN' is not a standalone command
|
||||||
cmd_spc, // XXX this token probably does not belong here
|
cmd_spc // XXX this token probably does not belong here
|
||||||
|
|
||||||
// 'THEN' ($A7) and 'STEP' ($A9) are not standalone commands
|
// 'THEN' ($A7) and 'STEP' ($A9) are not standalone commands
|
||||||
// 'NOT' ($A8) is an operator, not a command
|
// 'NOT' ($A8) is an operator, not a command
|
||||||
|
|
||||||
// $CB, but remapped to $A7
|
// 'GO' ($CB) is handled separately
|
||||||
|
|
||||||
cmd_go
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,9 @@ execute_statements:
|
|||||||
cpx #$7F
|
cpx #$7F
|
||||||
bcc_16 execute_statements_var_assign // not a token - try variable assign
|
bcc_16 execute_statements_var_assign // not a token - try variable assign
|
||||||
|
|
||||||
|
cpx #$A7
|
||||||
|
bcs_16 do_SYNTAX_error
|
||||||
|
|
||||||
#if !HAS_OPCODES_65C02
|
#if !HAS_OPCODES_65C02
|
||||||
|
|
||||||
// Get the jump table entry for it, push it on the stack, and then RTS to start it.
|
// Get the jump table entry for it, push it on the stack, and then RTS to start it.
|
||||||
|
|||||||
Reference in new issue
Block a user