Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,553,907
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 05-07-24 06:39 AM
Guest: Register | Login

Main - Posts by BigJohnBoy


BigJohnBoy
Posted on 01-29-10 01:37 AM, in 6502 ASM freespace, banks, and stuff Link | Quote | ID: 126258

Newcomer
Level: 4

Posts: 1/2
EXP: 204
Next: 75

Since: 01-29-10

Last post: 5212 days
Last view: 5212 days
Well, I'm getting around to trying an ASM hack for SMB3 NES. I have a small code which will change the music. (I'm using JaSp's music tool) The hijack will need to take place at 0x0007C8F7(PC). And all I need is to insert a JSR there. The problem is I have no idea which banks are which and all that. The major question here is what do I need to do to calculate the offset to JSL to? (Or I may not be using the right freespace areas, I really don't know)

The simple code I wanted to put into freespace:
LDA #$22
STA $04F5
RTS

BigJohnBoy
Posted on 01-29-10 02:09 AM, in 6502 ASM freespace, banks, and stuff (rev. 2 of 01-29-10 02:14 AM) Link | Quote | ID: 126260

Newcomer
Level: 4

Posts: 2/2
EXP: 204
Next: 75

Since: 01-29-10

Last post: 5212 days
Last view: 5212 days
Eh, somewhere along the music inserting process the rom became expanded 640kb. And, I also screwed, the offset (which is surronded mostly by 0's) is 422FE according to Hex Workshop. Also I've heard that there has to be some kind of converting to get the PC address to CPU or something, does that even apply here?

Main - Posts by BigJohnBoy

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 3.675 seconds. (327KB of memory used)
MySQL - queries: 36, rows: 50/50, time: 3.672 seconds.