fixed 2-byte tokens in tokenizer
This commit is contained in:
1 parent
9846b69c71
commit
92fd4552c4
3 files changed
+11
-9
No files matched your search
@@ -8,12 +8,19 @@
|
||||
//
|
||||
|
||||
|
||||
tk_cut_away:
|
||||
tk_cut_away_2: // for two-bytes tokenized keywords
|
||||
|
||||
dec tk__len_unpacked
|
||||
|
||||
// FALLTROUGH
|
||||
|
||||
tk_cut_away_1: // for single-byte tokenized keywords
|
||||
|
||||
dec tk__len_unpacked // keyword length, afterwards number of bytes to cut away
|
||||
|
||||
inc tk__offset
|
||||
ldy tk__offset
|
||||
|
||||
dec tk__len_unpacked // keyword length, afterwards number of bytes to cut away
|
||||
lda tk__len_unpacked
|
||||
clc
|
||||
adc tk__offset
|
||||
|
||||
Reference in new issue
Block a user