Jump to content
IGNORED

issues with e7-style bank switching


deater78

Recommended Posts

so I've been working on Myst which uses E7 bank-switching.  It works great under Stella, but it turns out it doesn't work elsewhere.

 

Mame: the ROM and 1k bank switches seem to work, but the 256 byte RAM at $1800/$1900 doesn't seem to work right

javatari: works for a bit but at some point things get corrupted, so badly that a power cycle doesn't fix it

harmony cartridge: appears to just lock up on the first bank switch (I've named the rom file with an .e7 extension)

 

has anyone else successfully used the E7 bank-switch method before?

Link to comment
Share on other sites

3 hours ago, deater78 said:

 

Mame: the ROM and 1k bank switches seem to work, but the 256 byte RAM at $1800/$1900 doesn't seem to work right

 

OK, after adding a lot of printf()s to the MAME code I figured out that it just ignores "-cartslot a26_e7" on the command line and tries to auto-detect anyway.  So I put one of the E7 magic numbers into the rom image and now things work on MAME at least.

 

I'm using LDA to switch banks, but looking at the MAME code it looks like using STA might be preferred?  I can try that I guess, though I thought the r/w signal didn't make it to the cartridge

Link to comment
Share on other sites

I made a lot of changes to my code while trying to sort things out, and the Harmony cartridge appears to be working now!

 

javatari is still broken.  I'm not sure if there's a good way to debug it.  You can save the game state, but I'm not sure if there's a way to turn that into a hexdump style memory dump to try to figure out what's going on.

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...