From 7a92eb2e62c63efba6ec2b69232b9d97ce1a305d Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Mon, 1 Jun 2020 15:37:17 +0200 Subject: [PATCH] added defaults for LOAD when no tape support is present --- c64/basic/commands/cmd_load.s | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/c64/basic/commands/cmd_load.s b/c64/basic/commands/cmd_load.s index 756da06b..08d2b93c 100644 --- a/c64/basic/commands/cmd_load.s +++ b/c64/basic/commands/cmd_load.s @@ -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 + jsr JSETNAM + jmp got_filename + +cmd_load_default_filename: + + .text "*" #endif