(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-19-24 06:30 AM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - How do you hack ASM?
  
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
DtTvB the Yoshi
Posts: 22/60
Wow, great documentation:
http://www.geocities.com/bjb138/rockmanXasm/asm1.html

Thank you so much, Ice Ranger!;;;
beneficii
Posts: 1/310
Are you referring to the JSR statement? Essentially, what it does is puts the RAM address of the statement following it into the stack, then it changes the control to whatever the JSR statement points to. You will then use RTS to get the RAM address back out of the stack in order to continue from the JSR.

For example:

@8456:
LDA #$45
JSR $9123
STA $6543

////
@9123:
CLC
ADC $6100
RTS

You start with LDA #$45, then it goes down to the JSR statement, it jumps to 9123 and executes there until it gets to the RTS and then goes back to the statement immediately following the JSR statement, the STA $6543 statement.

Got it?
spel werdz rite
Posts: 137/1796
Might as well ask a question myself. How does the "Jump to subroutine" work? I have no idea and it's the last thing I need to figure out in ASM.
Andy
Posts: 181/517
Thank you
Ice Ranger
Posts: 2/85
Since it is NES, you want to download FCEUXDSP (currently the best NES hacker emulator).

1. Find data in the RAM (or look it up using various resources)
2. Figure out how to use FCEUXD or FCEUXDSP (break points and everything that goes along with it)
3. Use the RAM addresses in combination with breakpoints.
4. Keep track of the address the break occurs.
5. Go into the ROM (not RAM) to find the bytes in the order they appear at the breakpoint (using the lines above and below the operation break should narrow it down, however, this is not always the case).
6. The harder part comes next. With the brief information above, all you might muster together is changing a value of something, not really ASM, but it gives you an idea. Learn 6502 programming. Learning how to convert the code to hexidecimal is the most important part.
7. Combine the 6502 language with hacking (very difficult, don't expect anything like Mario vs. Luigi your first try; it all comes in progression, start small and work your way up).

Documents you might find more helpful than the crap I just listed from rockman (it's what I used):

http://www.geocities.com/bjb138/rockmanXasm/asm1.html
http://www.geocities.com/bjb138/rockmanXasm/asm2.html
Andy
Posts: 178/517
I want to hack rhe ASM of an NES rom. Can anyone tell me how?
Acmlm's Board - I3 Archive - ROM Hacking - How do you hack ASM?


ABII

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

Page rendered in 0.003 seconds; used 350.97 kB (max 386.95 kB)