peteym5 Posted June 18, 2008 Share Posted June 18, 2008 Hey I am working on a cartridge image and wondering if its possible to compile with an offset to compile something that will save in location, but all of its addresses are offset to another location. I have some code that will be self-modifying and needs to be saved in a cartridge bank, and will be moved to a specific ram location. I remember .set 6 did the trick for MAC 65, but cannot figure out get it to go on MADS. I am trying to use a translated MADS document, but cannot find anything specific on this subject. Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted June 18, 2008 Share Posted June 18, 2008 isn't something like ORG adress1,adress2 ORG Pseudo rozkaz ORG ustawia nowy adres asemblacji, a więc i lokalizację zasemblowanych danych w pamięci RAM. adr asembluj od adresu ADR, ustaw adres w nagłówku pliku na ADR adr,adr2 asembluj od adresu ADR, ustaw adres w nagłówku pliku na ADR2 [b($ff,$fe)] zmień nagłówek na $FFFE (zostaną wygenerowane 2 bajty) [$ff,$fe],adr zmień nagłówek na $FFFE, ustaw adres w nagłówku pliku na ADR [$d0,$fe],adr,adr2 zmień nagłówek na $D0FE, asembluj od adresu ADR, ustaw adres w nagłówku pliku na ADR2 [a($FFFA)],adr nagłówek SpartaDOS $FAFF, ustaw adres w nagłówku pliku na ADR Quote Link to comment Share on other sites More sharing options...
peteym5 Posted June 18, 2008 Author Share Posted June 18, 2008 I tried it and it works. Thank you. You have to pardon me because most of the documentation is in Polish and I attempted to have Google translate it. However it seems to have an issue on large pages. Quote Link to comment Share on other sites More sharing options...
Heaven/TQA Posted June 20, 2008 Share Posted June 20, 2008 Pete, i csn not speak polish either... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.