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

?label becomes 0, but or misuse? #39

Open
42Bastian opened this issue Jun 20, 2024 · 0 comments
Open

?label becomes 0, but or misuse? #39

42Bastian opened this issue Jun 20, 2024 · 0 comments

Comments

@42Bastian
Copy link

42Bastian commented Jun 20, 2024

Hi,

at first: pre-built MADS for macos_aarch64 2.1.7

I am trying to create Lynx cart images, for this I need overlays and maintain a cart-PC.
In other assembler there are labels which can be changed.
I see ?LABEL can be changed.

?ROM_PC EQU $1000
start ; $100
; some code
end   ; $200
?ROM_PC += $100

The issue is ?ROM_PC becomes 0 instead of $1100.
Attached a file which build. Labels created:

mads 2.1.7
Label table:
00      0000    ?ROM_PC
00      0202    print
00      0208    end
00      2000    end.?ROM_PC
00      2000    ROM_overlay1
00      0208    start_overlay1
00      0210    info1
00      0219    end_overlay1
00      0011    size_overlay1
00      02A0    info1.OVERLAY_END.OVERLAY_END0.size_overlay1.?ROM_PC
00      0000    ROM_overlay2
00      0208    start_overlay2
00      0210    info2
00      0219    end_overlay2
00      0011    size_overlay2
00      02A0    info2.OVERLAY_END.OVERLAY_END1.size_overlay2.?ROM_PC

ROM_overlay1 and ROM_overlay2 are the labels of interest.

test.zip

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