small code optimization

This commit is contained in:
FeralChild64 committed 2020-07-09 22:27:04 +02:00
1 parent defd079b2e
commit 4871abd79b
1 file changed
+8 -15
+8 -15
View File
@@ -8,25 +8,18 @@
end_of_statement:
jsr fetch_character
cmp #$3A // check for colon
beq end_of_statement_next
cmp #$00 // check for end of the line
beq_16 execute_statements_end_of_line
cmp #$20 // check for space
beq end_of_statement
// Unexpectyed character
cmp #$3A // check for colon
beq_16 execute_statements
cmp #$00 // check for end of the line
beq_16 execute_statements_end_of_line
// Unexpected character
jmp do_SYNTAX_error
end_of_statement_next:
// Go to next statement
// XXX this should be speed-optimized, so that no unconsume is necessary
jsr unconsume_character
jmp execute_statements