mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fixes #881 by moving the task from the lexer to the parser. This both alleviates the need for backtracking in the lexer, removing what is (was) arguably a hack, and causes tokenization boundaries to be properly respected, fixing the issue mentioned above. Co-authored-by: Rangi <remy.oukaour+rangi42@gmail.com>
12 lines
186 B
NASM
12 lines
186 B
NASM
CONSTANT equ 42
|
|
PRINTLN $ff00 + CONSTANT
|
|
|
|
SECTION "Overreading much?", ROM0[0]
|
|
|
|
jp $ff00 + CONSTANT
|
|
jp $ff00 + carryOnPlease
|
|
jp $ff00+CONSTANT
|
|
jp $ff00+carryOnPlease
|
|
|
|
carryOnPlease:
|