From 0436b5c62e7faa75665511763b85e30f2d67bcdf Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Fri, 5 Jun 2020 22:26:08 +0200 Subject: [PATCH] small cleanup in BASIC --- Makefile | 4 +- c64/basic/basic_execute_line.s | 180 +--------------------- c64/basic/commands/cmd_load_verify.s | 91 +---------- c64/basic/commands/cmd_run.s | 2 +- c64/basic/commands/cmd_save.s | 8 +- c64/basic/commands/cmd_sys.s | 2 +- c64/basic/commands/command_jumptable.s | 155 +++++++++++++++++++ c64/basic/engine/end_of_statement_check.s | 41 +++++ c64/basic/engine/fetch_device_secondary.s | 44 ++++++ c64/basic/engine/fetch_file_name.s | 58 +++++++ c64/basic/{ => engine}/injest_comma.s | 12 +- c64/basic/{ => wedge}/wedge_dos.s | 0 c64/basic/{ => wedge}/wedge_tape.s | 0 13 files changed, 319 insertions(+), 278 deletions(-) create mode 100644 c64/basic/commands/command_jumptable.s create mode 100644 c64/basic/engine/end_of_statement_check.s create mode 100644 c64/basic/engine/fetch_device_secondary.s create mode 100644 c64/basic/engine/fetch_file_name.s rename c64/basic/{ => engine}/injest_comma.s (53%) rename c64/basic/{ => wedge}/wedge_dos.s (100%) rename c64/basic/{ => wedge}/wedge_tape.s (100%) diff --git a/Makefile b/Makefile index 8581ffa6..7730af5e 100644 --- a/Makefile +++ b/Makefile @@ -16,12 +16,14 @@ SRCDIR_BASIC = $(SRCDIR_COMMON) \ c64/basic/board_m65 \ c64/basic/board_x16 \ c64/basic/commands \ + c64/basic/engine \ c64/basic/init \ c64/basic/math \ c64/basic/math_consts \ c64/basic/math_mov \ c64/basic/print \ - c64/basic/rom_revision + c64/basic/rom_revision \ + c64/basic/wedge SRCDIR_KERNAL = $(SRCDIR_COMMON) \ c64/kernal \ diff --git a/c64/basic/basic_execute_line.s b/c64/basic/basic_execute_line.s index 9268327a..b7b6196c 100644 --- a/c64/basic/basic_execute_line.s +++ b/c64/basic/basic_execute_line.s @@ -6,34 +6,6 @@ // after first checking that we have a colon // or $00 char -basic_end_of_statement_check: - ldy #0 - -#if CONFIG_MEMORY_MODEL_60K - ldx #