diff --git a/c64/basic/basic_execute_line.s b/c64/basic/basic_execute_line.s index e88a57c4..f5b5605a 100644 --- a/c64/basic/basic_execute_line.s +++ b/c64/basic/basic_execute_line.s @@ -7,6 +7,13 @@ basic_end_of_statement_check: ldy #0 jsr peek_under_roms + ;; Consume any spaces + cmp #$20 + bne no_space_to_skip + jsr basic_consume_character + jmp basic_end_of_statement_check + +no_space_to_skip: cmp #$00 beq + cmp #$3a