honour length of packed keyword table
This commit is contained in:
1 parent
11392d883c
commit
df55ff6d25
3 files changed
+3
-1
No files matched your search
@@ -120,3 +120,4 @@ packed_keywords:
|
||||
.byte $f6,$2f,$24,$00,$f2,$5b,$f9,$00
|
||||
.byte $f1
|
||||
.byte $30
|
||||
.alias packed_keyword_table_len $DA
|
||||
@@ -137,7 +137,7 @@ next_kw_offset:
|
||||
;; Advance offset in compressed token list, and stop at the end
|
||||
inc tokenise_work3
|
||||
lda tokenise_work3
|
||||
cmp #$ff
|
||||
cmp #packed_keyword_table_len
|
||||
bne next_in_match
|
||||
jmp done_searching_for_token
|
||||
next_in_match:
|
||||
|
||||
@@ -472,6 +472,7 @@ int main(void)
|
||||
} else
|
||||
printf("\t.byte $%02x\n",packed_keywords[i]);
|
||||
}
|
||||
printf("\t.alias packed_keyword_table_len $%X\n",packedkey_len);
|
||||
|
||||
fprintf(stderr,"Error list takes %d bytes raw.\n",raw_size);
|
||||
fprintf(stderr,"%d token bytes used to encode all messages.\n",token_count);
|
||||
|
||||
Reference in new issue
Block a user