(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-15-24 07:31 AM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - RAM to ROM
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
KeiiChi Kun
Posts: 46/190
Thanks a lot
interdpth
Posts: 192/362
Who knows you could get lucky and find DMA calls or such you could just swap byte the mem address and search for it if your lucky

like 8123456 becomes 56341208 same goes for mem addresses try that
Ryusui
Posts: 25/58
There's probably a simpler way, but here's how I'd do it.

1. Get VBA-SDL-H.

2. Open the ROM and set a write breakpoint for the RAM address where the number of lives is stored.

3. When it breaks, go to vanilla VBA, open the disassembler and go to the line that VBA-SDL-H broke on. Look in the few lines of code above (VBA-SDL-H actually breaks on the line after the write) and see what line loads the number of lives. If it's a simple "mov rX #0x3" or some such, thank you Mario, your quest is over. Open the ROM, go to that position and change the instruction to the number of lives you want.

4. If it's not, though, find the load instruction that gets the number from the ROM. Go back to VBA-SDL-H, reset and set a THUMB breakpoint for that line. When it breaks, note the register values: the offset used by the load instruction should be the address you're looking for in the ROM. If it's not, odds are the routine is used for multiple purposes. Keep breaking until it gets the right value.
KeiiChi Kun
Posts: 45/190
I'm not sure whether this is actually possible, but I'm sure I recall someone writing a script for it somewhere. Right then, you know when you change something in the Memory Viewer in VBA, and it, say, changes the amount of lives you have? Is there any simple way of finding the ROM address for this value? You know, so you could change the amount of lives you start a game with?
Acmlm's Board - I3 Archive - ROM Hacking - RAM to ROM


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.004 seconds; used 348.77 kB (max 385.46 kB)