fixed NEW/CLR commands, implemented RESTORE

This commit is contained in:
FeralChild64 committed 2020-06-28 11:35:29 +02:00
1 parent 2ddfacd8e9
commit 0460777fe9
15 files changed
+191 -115

No files matched your search

@@ -27,8 +27,6 @@ cmd_let:
nop
cmd_if:
nop
cmd_restore:
nop
cmd_gosub:
nop
cmd_return:
+1 -1
View File
@@ -5,7 +5,7 @@
cmd_clr:
jsr basic_do_clr
jsr do_clr
// CLR command does not stop execution (confirmed on a C64)
+1 -1
View File
@@ -56,7 +56,7 @@ cmd_load_no_error:
// C64 BASIC apparently does not clear variables after a LOAD in the
// middle of a program. For safety, we do.
jsr basic_do_clr
jsr do_clr
// Now relink the loaded program, as we cannot trust the line
// links supplied. For example, the VICE virtual drive emulation
+1 -1
View File
@@ -5,7 +5,7 @@
cmd_new:
jsr basic_do_new
jsr do_new
// NEW command terminates execution (confirmed on a C64)
+12
View File
@@ -0,0 +1,12 @@
// #LAYOUT# STD * #TAKE
// #LAYOUT# * BASIC_0 #TAKE
// #LAYOUT# * * #IGNORE
cmd_restore:
jsr do_restore
// RESTORE command does not stop execution (confirmed on a C64)
jmp execute_statements
+1 -1
View File
@@ -5,7 +5,7 @@
cmd_run:
// RUN clears all variables
jsr basic_do_clr
jsr do_clr
cmd_goto:
// Disable Kernal messages
lda #$00