dasm-assembler / dasm-assembler/dasm
#immediate - 'error' in parser
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 257
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
Although this does not generate an error, I think it should.
I have a double-# in the immediate....
; immediate
processor 6502
org $1000
lda ##0 ; should be an error?
Does not seem to complain, and binary is as expected.
I'd prefer to see this flagged - but at the very least perhaps worth a check of the code to make sure it's not doing anything unexpected with this strange format.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided 6502 example, especially lda ##0, and trace how the parser handles the double immediate marker. Determine whether this syntax should produce an error or remain valid, then define regression coverage for the chosen behavior and verify that the resulting diagnostic or binary output is correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100