added defaults for LOAD when no tape support is present

This commit is contained in:
FeralChild64 committed 2020-06-01 15:37:17 +02:00
1 parent 5d45c166e7
commit 7a92eb2e62
1 file changed
+10 -3
+10 -3
View File
@@ -40,10 +40,17 @@ cmd_load:
#else
// Without tape support, LOAD must have a filename
// (This also skips any leading spaces)
// Without tape support, try to load the first file from disk
jmp do_MISSING_FILENAME_error
lda #$01 // name length
ldx #<cmd_load_default_filename
ldy #>cmd_load_default_filename
jsr JSETNAM
jmp got_filename
cmd_load_default_filename:
.text "*"
#endif