dasm-assembler / dasm-assembler/dasm
Macro parameters ignore conditionals
Open
Nobody has claimed this yet.
bug
- Dominant language
- C
- Stars
- 257
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
The following code does not assemble:
CHECK = 0
MAC TEST
.byte {1}
IF CHECK > 0
.byte {2}
ENDIF
ENDM
ORG $f000
TEST 1
testmac.asm (12): error: Not enough args passed to Macro.
Unrecoverable error(s) in pass, aborting assembly!
Complete.
It seems like the CHECK condition is not evaluated before checking the number of parameters required by the macro.
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
No source file or test is named in the report. Reproduce the example in a small assembly test, then trace macro argument-count validation alongside conditional evaluation; done means the shown TEST 1 assembles successfully when CHECK is 0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100