more BASIC cleanup

This commit is contained in:
FeralChild64 committed 2020-06-06 23:10:45 +02:00
1 parent cdeaf05ccd
commit 08f6fe9ed7
14 files changed
+142 -182

No files matched your search

+3 -3
View File
@@ -7,6 +7,6 @@ cmd_clr:
jsr basic_do_clr
// CLR command does not stop execution
// (Cconfirmed on a c64)
jmp basic_execute_statement
// CLR command does not stop execution (confirmed on a C64)
jmp execute_statements
+2 -2
View File
@@ -65,7 +65,7 @@ cmd_load_no_error:
// For VERIFY - this is it
lda VERCKB
bne_16 basic_execute_statement
bne_16 execute_statements
// C64 BASIC apparently does not clear variables after a LOAD in the
// middle of a program. For safety, we do.
@@ -89,7 +89,7 @@ cmd_load_no_error:
inx
beq cmd_load_end // branch if direct mode
jmp basic_execute_from_current_line
jmp execute_line
cmd_load_end:
+2 -2
View File
@@ -7,6 +7,6 @@ cmd_new:
jsr basic_do_new
// NEW command terminates execution
// (Confirmed on a C64)
// NEW command terminates execution (confirmed on a C64)
jmp basic_main_loop
+1 -1
View File
@@ -85,4 +85,4 @@ cmd_print_new_line_done:
cmd_print_done:
jmp basic_execute_statement
jmp execute_statements
+2 -1
View File
@@ -6,4 +6,5 @@
// REM statement just skips to the next line
cmd_rem:
jmp basic_end_of_line
jmp execute_statements_end_of_line
+1 -1
View File
@@ -24,4 +24,4 @@ cmd_goto:
jmp do_UNDEFD_STATEMENT_error
!:
// Run it!
jmp basic_execute_from_current_line
jmp execute_line
+1 -1
View File
@@ -36,4 +36,4 @@ cmd_save:
// The end
jmp basic_execute_statement
jmp execute_statements
+1 -1
View File
@@ -62,7 +62,7 @@ cmd_sys_setup_call:
// Call the routine.
jsr USRPOK
jmp basic_execute_statement
jmp execute_statements
//
+3
View File
@@ -7,6 +7,9 @@
//
// XXX use separate jumptables for commands and functions
.const command_list = List().add(
// $80 - $8F