Bond697

party pkm addressing

Jan 23rd, 2012
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. RAM_ARM9:0201AB44 @ =============== S U B R O U T I N E =======================================
  2. RAM_ARM9:0201AB44
  3. RAM_ARM9:0201AB44
  4. RAM_ARM9:0201AB44 @ unsigned int __fastcall getNextPartyPKMAdr__(void *pCurrent, int partyPos)
  5. RAM_ARM9:0201AB44 getNextPartyPKMAdr__: @ CODE XREF: sub_2007C34+1Ap
  6. RAM_ARM9:0201AB44 @ sub_200B2A4+1Cp ...
  7. RAM_ARM9:0201AB44 DC 22 MOVS R2, #0xDC @ '_' @ 220, size of pkm
  8. RAM_ARM9:0201AB46 08 30 ADDS R0, #8 @ r0 += 8
  9. RAM_ARM9:0201AB48 4A 43 MULS R2, R1 @ pkm # * 220 to give position
  10. RAM_ARM9:0201AB4A 80 18 ADDS R0, R0, R2 @ add r2 to current pos to get new pkm
  11. RAM_ARM9:0201AB4C 70 47 BX LR
  12. RAM_ARM9:0201AB4C @ End of function getNextPartyPKMAdr__
Advertisement
Add Comment
Please, Sign In to add comment