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

Underscore labels not working in macro arguments #11

Closed
svallee-dev opened this issue Nov 27, 2021 · 2 comments
Closed

Underscore labels not working in macro arguments #11

svallee-dev opened this issue Nov 27, 2021 · 2 comments

Comments

@svallee-dev
Copy link

svallee-dev commented Nov 27, 2021

I have a bit of code mutation going on in my project, which requires me to pass the address of code into a macro. It used to work when I passed underscore-prefixed labels (local scoped labels), but it's not working anymore.

Example of my code:
Screen Shot 2021-11-26 at 4 02 56 PM

Error: Symbol "_hackReadAddr_d" is not defined.

I can easily fix it by removing the underscores and it works again, but making these labels global is of course not ideal.

Thanks!

@informedcitizenry
Copy link
Owner

I think it might something in your macro. I tried it myself with something like this and it worked fine:


foo .macro bar
    ldx \bar
    .endmacro


_bazz_bazz_
    lda $dead, y
    .foo _bazz_bazz_
 

@informedcitizenry
Copy link
Owner

I believe this is fixed now, can you confirm?

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

No branches or pull requests

2 participants