View Single Post
Old March 24th, 2012 (6:27 PM).
knizz's Avatar
knizz knizz is offline
Join Date: Aug 2007
Posts: 192
Originally Posted by sonic1 View Post

Well, actually that's the routine that retrieves the pokemon data.

The one that i'm talking about is at 804037C, name's 'set_pokemon_data'

Pass adress at r0, pass index number r1, and the address which is located the data to set at r2. Thats why i was asking you about the stack. Game usually passes SP to R2, and the game uses the data present at the stack.
I updated my DB to include this and an enumeration with all numbers get/set_pokemon_data uses and the pokemon-properties they represent.

Also smaller changes and fixes.

Download link in the signature.
Firered IDA 6.5 DB:
VBA-M with lua scripting support
Reply With Quote