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

Feature Request: Option to specify offsets based on other labels. #100

Open
OxyMauron opened this issue Jan 8, 2024 · 0 comments
Open

Comments

@OxyMauron
Copy link

Sample code from current disassembly:

LDA.L enemy_names,X                  ;CCED20|BF0065CC|CC6500;
STA.W $94A0                          ;CCED24|8DA094  |7E94A0;
LDA.L TEXT_CC6502,X                  ;CCED27|BF0265CC|CC6502;
STA.W $94A2                          ;CCED2B|8DA294  |7E94A2;

Sample data:

 enemy_names:
            db $AD, $CE                          ;CC6500|        |      ;
 TEXT_CC6502:
            db $EF, $EF                          ;CC6502|        |      ;

Ideally Diz would allow an offset value, and interpret the second LDA as LDA.L enemy_names+2,X . This could avoid generating the second label in the sample data, simplifying that to the following:

 enemy_names:
            db $AD, $CE,$EF, $EF              ;CC6500|        |      ;
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

1 participant