Lex $ff00+c without needing large peek lookahead

This also allows arbitrary amounts of whitespace in `$ff00 + c`,
instead of needing to fit in the 42-byte LEXER_BUF_SIZE
This commit is contained in:
Rangi
2021-03-23 13:54:23 -04:00
committed by Eldred Habert
parent 4e1b0ce793
commit 260d372acd
5 changed files with 22 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
SECTION "test", ROM0[0]
ld [ $ff00 + c ], a
; 257 spaces exceeds both LEXER_BUF_SIZE (42) and uint8_t limit (255)
ld [ $ff00 + c ], a
ld [ $ff00 + c ], a
View File
View File
+1
View File
@@ -0,0 +1 @@