dasm-assembler / dasm-assembler/dasm
Access to REPEAT counter
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- C
- Stars
- 257
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
Currently I am doing this:
_VAL SET 0
REPEAT 5
.byte _VAL * 10
_VAL SET _VAL + 1
REPEND
With access to the repeat counter (e.g. REPCNT), one could do this:
REPEAT 5
.byte REPCNT * 10
REPEND
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 implementation file or test is named. Start by locating the assembler's REPEAT and REPEND handling, then trace how expressions are evaluated inside the repeated block. Done means the REPCNT example assembles successfully and produces the expected counter-based bytes, with coverage for the new syntax.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100