Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Bankswitching: Making a 64k game

Reply to topic Goto page Previous  1, 2
Author Message
  • Joined: 06 Sep 2015
  • Posts: 263
  • Location: United States
Reply with quote
Post Posted: Tue May 08, 2018 8:59 am
So I guess the question now is how can I tell a bank to move into a certain slot then?
  View user's profile Send private message Visit poster's website
  • Joined: 06 Sep 2015
  • Posts: 263
  • Location: United States
Reply with quote
Post Posted: Tue May 08, 2018 9:02 am
Never mind. I figured it out.
.bank 1 slot 1 would tell bank 1 to be in slot 1.
The reason I was having trouble was I was trying to tell the game to use something when it wasn't in the correct place.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14690
  • Location: London
Reply with quote
Post Posted: Tue May 08, 2018 9:30 am
The bank directive tells the assembler which place to put the data (or code) in the ROM (which tape to record onto in the tape decks analogy), and the slot parameter (or directive) tells it where the data will be put at runtime (which tape deck). This part is important because the data at $10000 needs to be referred to with an address of $8000 at runtime (for slot 2).
  View user's profile Send private message Visit poster's website
Reply to topic Goto page Previous  1, 2



Back to the top of this page

Back to SMS Power!