Skip to content

Allow "lda (label+1)-1,x"#108

Merged
mungre merged 3 commits into
stardot:masterfrom
TobyLobster:master
Mar 12, 2026
Merged

Allow "lda (label+1)-1,x"#108
mungre merged 3 commits into
stardot:masterfrom
TobyLobster:master

Conversation

@TobyLobster

Copy link
Copy Markdown
Contributor
lda (label+1)-1,x

This instruction currently throws an error because it is misidentified as a badly formed indirect addressing mode.

The parsing code has been fixed to fall through to check the remaining addressing modes (e.g. absolute addressing modes) if the indirect addressing mode fails to parse properly.

… open bracket without them being mis-identified as a badly formed indirect addressing mode.
@mungre

mungre commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

Cheers, this looks good and it fixes #103. Can you add a file to the test\4-assembler directory with a few tests like your example above and the example from #103. Thank you.

(The Windows test has done nothing for nearly an hour but it works on my computer.)

…a in indirect addressing mode e.g. "lda (&70),x" is invalid as is "lda (&70,y)"
@mungre

mungre commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

Final nitpick - can you remove the indirect-addressing-parsing.ssd file please, it seems to be redundant. Thanks again.

@TobyLobster

Copy link
Copy Markdown
Contributor Author

Done.

@mungre mungre merged commit fdc2248 into stardot:master Mar 12, 2026
6 of 7 checks passed
@mungre

mungre commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

Nice one, that's merged now. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants