-
Notifications
You must be signed in to change notification settings - Fork 4
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
Different scopes for addresses and hex values #10
Comments
Sounds like something that could be implemented. I'll run some tests to determine if it's actually possible to do and post the results here. |
Thanks, it's worth noting that defines complicate this further since |
Yeah, I thought about it and it's hard, if not impossible, to determine with regex alone, not to mention that TextMate only works per line and matching several lines is pretty much a guaranteed headache. I think I'll just detect if they're after an operator or asar directive to treat them as values. That should cover most cases. |
Yeah I think that's probably the most reasonable solution. |
Good enough, I guess. I'll push the changes once I'm done with other minor stuff that popped up with other changes I made. |
Ty ty, looks nice! |
Addressed in 2c3370e I will leave the issue open until the proper release of version 0.0.2 in case there's something wrong with the implementation of this feature. |
Doesn't seem to be broken.... but SPC700 and GSU mnemonics might not work fine due to how the initial implementation works and looks like it'd be too annoying to add. |
Are there any plans for differentiating between addresses ($80) and literal hex values (#$80) when it comes to their usage with opcodes? I know this is probably sort of difficult since in
LDA $80
$80 would be an address but indb $80
orif !def == $80
it is actually just a hex value. I just personally find it a lot easier to understand code at a glance when the $80 inLDA $80
and the #$80 inLDA #$80
are highlighted in different colors and would love this feature if it's at all feasible.The text was updated successfully, but these errors were encountered: