Feat: 8M Memory Pack support for slotted carts - #301
Open
ludufre wants to merge 3 commits into
Open
Conversation
Program skips $FF so AND-writes keep the slot name. Erase takes the block from the $D0 confirm address, not $20, so deleting one slot no longer wipes another. LoROM and HiROM.
Pack read through the SuperMMC, flash FSM mirrors the base core (erase by $D0 address). Write stays synchronous since SA-1 slotted carts are read-only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello!
This PR add support to 8M Memory Pack slot carts and enable Derby Stallion 96 and Sound Novel Tsukuru
Only the SA-1 carts are left out of memory pack support at the moment.
The currently already working slotted games area checked during boot for the presense of a pack (.mpk file, just .bs renamed to .mpk inside /sd2snes/saves/) and if found, the game is scanned for the vendor probe to detect if it's a real slotted cart. If so, the pack is loaded into PSRAM and mapped to the correct address range depending on the cart type (LoROM or HiROM). The pack is also flash memory, so it can be written to by the game, and these writes are saved back to the .mpk file on disk.
Derby Stallion 96 and Sound Novel Tsukuru are 3 MB LoROM carts with one odd thing: banks $80-$9F point at the top 1 MB
of the ROM (file $200000+) instead of mirroring $00-$1F so they can fit the pack window there.