Code Monkey home page Code Monkey logo

goombacolor's Introduction

Goomba Color

Originally created by Flubba and Dwedit
Source code imported from https://www.dwedit.org/gba/goombacolor.php

Modifications

Batteryless saving

This allows Goomba Color to save its SRAM data on most modern reproduction/bootleg flash cartridges that have an SRAM chip but no battery installed. This works by writing the SRAM data into Flash ROM memory and restoring the data from Flash ROM into SRAM when booting.

The Flash ROM is updated in the following instances:

  • Pressing L+R to bring up the main menu (with a prompt)
  • Writing a Save State or Quick Save State by pressing R+SELECT
  • Deleting a Save State or SRAM
  • Exiting

The batteryless Goomba Color SRAM storage area in Flash ROM is dynamically determined and depends on the maximum ROM size of the flash cartridge. In case you need to extract/inject/edit something, you will find the data at ROM address flash_size - 0x40000 and the length is 0x10000 bytes. Emulators should also be able to extract the SRAM data into a .sav file from a re-dumped compilation.

If you need to manually specify the save data location in ROM, you can append the compiled ROM with 53 56 4C 43 (SVLC) followed by the address in little endian (00 00 0C 00 would be offset 0xC0000 on the flash chip). Make sure the address is correctly aligned to your flash chip’s sector size and that it’s accessible from the GBA ROM space (max. 32 MB).

Holding SELECT+UP+B on startup will wipe the save data in case something is not working right.

Tested repro cartridge flash chips: 128W30B, 256L30B, 29LV128DT, M36L0R7050T, M36L0R8060T, GL128S, M29W128FH, MSP55LV128M

goombacolor's People

Contributors

lesserkuma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.