beebasm
beebasm copied to clipboard
Support complex expressions in instruction parameters
A line like lda (P% + 7) AND &FF00,y
produces an "Incorrectly formed indirect instruction" error.
Adding brackets to fix this changes the addressing mode to "zp indirect,y", as expected.
There is no way to use the "indexed,y" addressing mode with an expression that starts with a (
.