(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-06-24 04:03 PM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - How do you hack ASM? New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
Andy

Zora


 





Since: 11-17-05

Last post: 6616 days
Last view: 6616 days
Posted on 12-04-05 08:07 PM Link | Quote
I want to hack rhe ASM of an NES rom. Can anyone tell me how?
Ice Ranger

Grizzo








Since: 11-24-05

Last post: 6296 days
Last view: 6286 days
Posted on 12-04-05 09:46 PM Link | Quote
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

Zora


 





Since: 11-17-05

Last post: 6616 days
Last view: 6616 days
Posted on 12-04-05 09:50 PM Link | Quote
Thank you
spel werdz rite









Since: 11-19-05

Last post: 6287 days
Last view: 6286 days
Posted on 12-05-05 01:58 AM Link | Quote
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.
beneficii

Broom Hatter


 





Since: 11-18-05

Last post: 6290 days
Last view: 6286 days
Posted on 12-05-05 02:47 AM Link | Quote
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?
DtTvB the Yoshi

Red Paragoomba


 





Since: 12-02-05
From: Thailand

Last post: 6532 days
Last view: 6532 days
Posted on 12-05-05 04:55 AM Link | Quote
Wow, great documentation:
http://www.geocities.com/bjb138/rockmanXasm/asm1.html

Thank you so much, Ice Ranger!;;;
Add to favorites | Next newer thread | Next older thread
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.022 seconds; used 367.71 kB (max 439.41 kB)