some error message improvements
This commit is contained in:
1 parent
4ac36931b0
commit
5cdd71b3fc
2 files changed
+21
-1
No files matched your search
@@ -40,6 +40,8 @@ do_kernal_error: // .A = KERNAL error code, also almost ma
|
||||
// Convert to BASIC error code
|
||||
|
||||
tax
|
||||
beq do_BREAK_error // XXX is 0 really a proper error code?
|
||||
|
||||
dex
|
||||
bpl do_basic_error // branch always
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ execute_statements:
|
||||
// Check if token is valid for execution
|
||||
|
||||
cmp #$7F
|
||||
bcc_16 do_SYNTAX_error // branch if not a token XXX here we should handle variable assignments
|
||||
bcc_16 execute_statements_var_assign // not a token - try variable assign
|
||||
|
||||
cmp #$A6
|
||||
bcs execute_statements_extended
|
||||
@@ -224,3 +224,21 @@ execute_line:
|
||||
sta CURLIN+1
|
||||
|
||||
jmp execute_statements
|
||||
|
||||
|
||||
execute_statements_var_assign:
|
||||
|
||||
// XXX here we should handle variable assignments, probably in a separate file
|
||||
|
||||
// Prevent wedges from being executed within a program
|
||||
|
||||
#if CONFIG_TAPE_WEDGE
|
||||
cmp #$40
|
||||
beq_16 do_DIRECT_MODE_ONLY_error
|
||||
#endif
|
||||
#if CONFIG_DOS_WEDGE
|
||||
cmp #$5F
|
||||
beq_16 do_DIRECT_MODE_ONLY_error
|
||||
#endif
|
||||
|
||||
jmp do_SYNTAX_error
|
||||
Reference in new issue
Block a user