Jump to content
IGNORED

mads question. compile with an offset


Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...