From dec1ce257d80fe14a9cfa799693ce72fbef1aacd Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Mon, 29 Apr 2019 23:10:10 +0930 Subject: [PATCH] simplify BASIC execution logic --- c64/basic/basic_execute_line.s | 10 ++++------ c64/basic/basic_main_loop.s | 2 +- c64/basic/cmd_new.s | 2 +- c64/basic/cmd_sys.s | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/c64/basic/basic_execute_line.s b/c64/basic/basic_execute_line.s index f5b5605a..86c26936 100644 --- a/c64/basic/basic_execute_line.s +++ b/c64/basic/basic_execute_line.s @@ -26,9 +26,9 @@ no_space_to_skip: sec rts -basic_run_next_statement: +basic_execute_statement: + ;; Skip over any white space and : jsr basic_end_of_statement_check - bcc basic_execute_line ;; Go through the line until its end is reached. ;; If we reach the end are in direct mode, then @@ -37,8 +37,6 @@ basic_run_next_statement: ;; return to READY prompt because we have run out ;; of program. -basic_execute_line: - ;; Get next char of program text, even if it is hiding under a ROM or the ;; IO area. ldx #