• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Research: Memory allocation system

knizz

192
Posts
16
Years
    • Seen Oct 28, 2020
    Game Freak removed all debug-strings from the final game except those for malloc/free. I found out that allocated blocks have this format:

    0x00 / Halfword / Flag / 01 00 = used, 00 00 = unused
    0x02 / Halfword / Magic-number / Always A3 A3
    0x04 / Word / Idk but not a pointer, probably the size of the data
    0x08 / Word / Pointer to the previous block
    0x0C / Word / Pointer to the next block
    0x10 / Depends / Data
     
    Last edited:

    knizz

    192
    Posts
    16
    Years
    • Seen Oct 28, 2020
    Update: I'm pretty sure that 08002B9C is "malloc", that 08002BB0 is "malloc_and_clear", and that 08002A08 is "free".
     
    Back
    Top