If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
Mega Man 4/Tutorials: Difference between revisions
Jump to navigation
Jump to search
m (moved Mega Man 4:Tutorials to Mega Man IV:Tutorials) |
mNo edit summary |
||
Line 5: | Line 5: | ||
Written by Insectduel | Written by Insectduel | ||
In the memory where the ROM offset is located at | In the memory where the ROM offset is located at <tt>0x78010</tt> to <tt>0x7A00F</tt> (Bank <tt>$3C</tt> by <tt>$2000</tt>). | ||
RAM $8000 to $9FFF | RAM <tt>$8000 to $9FFF</tt> | ||
Change $992A and $996C to the JSR initial code to the location where the empty unused memory is. Then enter the following below. | Change <tt>$992A</tt> and <tt>$996C</tt> to the JSR initial code to the location where the empty unused memory is. Then enter the following below. | ||
*20 XX XX JSR $XXXX ; Location to the Sound ID Code. | *<tt>20 XX XX JSR $XXXX</tt> ; Location to the Sound ID Code. | ||
*AD 38 01 LDA $0138 | *<tt>AD 38 01 LDA $0138</tt> | ||
*60 RTS | *<tt>60 RTS</tt> | ||
*A9 2E LDA #$2E ; Sound ID to play | *<tt>A9 2E LDA #$2E</tt> ; Sound ID to play | ||
*4C BE F6 JMP $F6BE ; Init Sound | *<tt>4C BE F6 JMP $F6BE</tt> ; Init Sound | ||
That way the sound will always hear when you choosing the weapon menu. | That way the sound will always hear when you choosing the weapon menu. |
Revision as of 21:22, 30 September 2013
I will add a few ASM tutorials that you will need for your Mega Man IV hacking experience.
Sound Initial Code while choosing the weapon
Written by Insectduel
In the memory where the ROM offset is located at 0x78010 to 0x7A00F (Bank $3C by $2000). RAM $8000 to $9FFF
Change $992A and $996C to the JSR initial code to the location where the empty unused memory is. Then enter the following below.
- 20 XX XX JSR $XXXX ; Location to the Sound ID Code.
- AD 38 01 LDA $0138
- 60 RTS
- A9 2E LDA #$2E ; Sound ID to play
- 4C BE F6 JMP $F6BE ; Init Sound
That way the sound will always hear when you choosing the weapon menu.