Skip to content

Some RAM addresses I found screwing around in mGBA #32

@rboninsegna

Description

@rboninsegna
02000030: spare balls (0-9)
02000040-3: score increment/decrement
02000044-7: score
02000192: coins
020001C6: spinner turns (00-A8)
020001C8: Pikachu charge? gets continuously incremented and capped to spinner value?
02000296-7: clock time remaining (catch, evo, bonus)
02000306: (Sapphire) Pelipper status (0 idle, 1 cocked, 3-6 starting Spheal game, ?-9 ending Spheal game)
02000308-9: bumper hits (resets on new ball, after Spheal bonus, etc)
0200062A-E: end of ball bonus counters (pokemon caught, evolved, travel count, slots played, pikachu saves) (00-FF work fine, unsure if there's a soft cap)
0200070E: bonus multiplier
02000724-5: Ball Saver time remaining
0200072E: EVO loops (0-3)
0200072F: GET loops (0-3)
0200B0C0: what you apparently call gMain
0200B0CF: 2 pause | 4 debug
0200B134-200: pokedex (01 seen = blacked and no data, 02 traded? = dimmed and description only, 03 traded? = dimmed and no h/w, 04 caught) (you apparently call this gMain_saveData.pokedexFlags[])
0200B201: language (EUR: 0-4, invalid values cause graphics corruption)
0200B204: button layout preset (0-4)
0200B206-19: custom button layout (2 bytes per button, up to 2 ANDed buttons per action in on-screen order, nonstandard scancodes)
0200B21C-39B: highscore table (4 bytes (!) per character, 8 bytes for score)

Don't take the multibyte ones for granted (32 bit score and 64 bit highscore? yet it works...)

Hope you'll find them useful though :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions