Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose save ram to the API #9

Open
wendigojaeger opened this issue Jan 3, 2020 · 1 comment
Open

Expose save ram to the API #9

wendigojaeger opened this issue Jan 3, 2020 · 1 comment
Assignees
Labels
feature New feature
Milestone

Comments

@wendigojaeger
Copy link
Owner

Memory map: 0E000000-0E00FFFF Game Pak SRAM (max 64 KBytes) - 8bit Bus width

  • Maybe simple SaveRam.save(saveRamType: comptime type, saveRam: saveRamType)
@wendigojaeger wendigojaeger added the feature New feature label Jan 3, 2020
@wendigojaeger wendigojaeger added this to the 1.0 milestone Jan 3, 2020
@wendigojaeger wendigojaeger self-assigned this Jan 3, 2020
@ketsuban
Copy link

It's worth noting that the specific behaviour of the SRAM memory block depends on the makeup of the game cartridge - you can pretend it's flat memory and emulators will (probably - autodetection is fickle) oblige you, since battery-backed or ferroelectric RAM were possible configurations, but a more complex API would let you handle cases where the cartridge contains flash memory (which is commanded via a JEDEC protocol written to magic addresses in the 0x0E00xxxx region) or an EEPROM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants