Hacking Help with AR code (RAM dumping)

froggestspirit

Aspiring Game Dev
OP
Member
Joined
Jul 28, 2011
Messages
1,281
Trophies
1
XP
1,561
Country
United States
I'm working on hacking the pokewalker, and I need to dump some RAM. I can't do this in an emulator since it cannot use the IR functions for the pokewalker. Right now I have this code, which should dump a 0x8000 byte block starting at the address from the specified pointer. For some reason, it appears to write one byte to the save file instead of all 0x8000. This has worked for dumping static addresses and 0x0800 byte blocks (that's how I dumped some of the pointers. If anyone knows a way to fix this code, please let me know.
Also note this uses addresses 0x02000000 for the source pointer, and 0x02000004 for the dest pointer. These areas do seem safe to use.
Press start
023FE4D8 0A000003 //AR hack 0 (fix DB)
94000130 FFF70000 //When start is pressed
D3000000 00000000 //Set offset to 0
02000004 0A000000 //write dest address
D9000000 021FFAAC //load address from pointer, change this to change the pointer
D6000000 02000000 //write source address
C0000000 00008000 //start loop
D3000000 00000000 //Set offset to 0
B2000000 00000000 //set offset to the source
DB000000 00000000 //read a byte into dxdata
D3000000 00000000 //Set offset to 0
B2000004 00000000 //set offset to the dest
D8000000 00000000 //write dxdata to dest
D3000000 00000000 //Set offset to 0
D9000000 02000000 //read source address to dxdata
D4000000 00000001 //add 1 to dxdata
D6000000 02000000 //write dxdata back to source address and increase offset by 4
D9000000 02000000 //read dest offset to dxdata
D4000000 00000001 //add 1 to dxdata
D6000000 02000000 //write dxdata back to dest address and increase offset by 4
D1000000 00000000 //end loop
D2000000 00000000 //end code
 
Last edited by froggestspirit,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtu.be/MddR6PTmGKg?si=mU2EO5hoE7XXSbSr