Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pioasm: allow optional target for .wrap #2163

Open
magy00 opened this issue Jan 6, 2025 · 0 comments
Open

pioasm: allow optional target for .wrap #2163

magy00 opened this issue Jan 6, 2025 · 0 comments
Labels
enhancement New feature or request pioasm
Milestone

Comments

@magy00
Copy link

magy00 commented Jan 6, 2025

It could sometimes be convenient (and possibly allow more descriptive source code) if .wrap would optionally accept the same target expressions as jmp (with .wrap_target as the default):

.wrap (<target>)

E.g.

loop:
    mov osr, rxfifo[y]
    ...
    jmp y--, loop
    .wrap loop

would be equivalent to

.wrap_target
loop:
    mov osr, rxfifo[y]
    ...
    jmp y--, loop
    .wrap

@lurch lurch added enhancement New feature or request pioasm labels Jan 6, 2025
@kilograham kilograham added this to the 2.2.0 milestone Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pioasm
Projects
None yet
Development

No branches or pull requests

3 participants