fixed VARTAB handling, tokenizer now needs sloghtly less memory

This commit is contained in:
FeralChild64 committed 2020-06-28 09:14:06 +02:00
1 parent 996327b335
commit 2ddfacd8e9
7 files changed
+21 -21

No files matched your search

+4 -10
View File
@@ -21,22 +21,20 @@ tokenise_line:
#else
// Reuse the CPU stack - addresses above $101 are used by 'tk_pack.s'
// Reuse the CPU stack - addresses above $100 are used by 'tk_pack.s'
.label tk__offset = $100 // offset into string
.label tk__length = $101 // length of the raw string XXX reuse __tokenise_work1?
.label tk__length = __tokenise_work1 // length of the raw string
// Initialize variables
lda #$00
sta tk__offset
ldx __tokenise_work1
stx tk__length
// Terminate input string with $00
// XXX do we need this?
ldx tk__length
sta BUF, x
// FALLTROUGH
@@ -123,7 +121,6 @@ tokenise_line_keyword_V2:
sta BUF, x
// Cut away unnecessary bytes
jsr tk_cut_away_1
// Special handling for REM command - after this one nothing more should be tokenised
@@ -136,10 +133,7 @@ tokenise_line_keyword_V2:
tokenise_line_done:
// Update line length and quit
lda tk__length
sta __tokenise_work1
// Quit
rts