Closed dctucker closed 3 years ago
Wait, I thought ld hl , sp - expr
was handled too!?
I could be wrong, I'm working on Catalina with rgbds version 0.5.0 as distributed via Homebrew, so feel free to close if this has been addressed more recently 🙂.
I'm compiling this for reference, and it indeed compiles fine with a bulk search/replace adding the plus sign.
Nope, you're right, it's not handled. https://github.com/gbdev/rgbds/blob/8e4ba8d2e436a985c77e08212b65dd31157dea3f/src/asm/parser.y#L1866
We need a test case, too.
It seems introducing the requirement of
T_OP_ADD
to theld hl, sp + <e8>
instruction causes the parser to identify as a syntax error expressions such asld hl, sp-$72
which may have previously been valid and must now be rewritten asld hl, sp+-$72
.Related issue: https://github.com/gbdev/rgbds/issues/810