Thread: Hack Series: Pokémon Throwback: Kanto Refined
View Single Post
Old October 2nd, 2012 (10:13 AM). Edited October 3rd, 2012 by Jambo51.
Jambo51's Avatar
Jambo51 Jambo51 is offline
Glory To Arstotzka
Join Date: Jun 2009
Gender: Male
Nature: Quiet
Posts: 732
Originally Posted by RichterSnipes View Post
Just through my various searches alone I would have never found out that a hack for it does exist, or if it had ever been posted, so this is great news!
I never released it, that's why.

.align 2
.global battlemusichackleg

main:	push {r2,r3}
	ldr r0, tableloc
there:	ldrh r2, [r0, #0x0]
	cmp r1, r2
	beq loadmusic
	ldr r3, end
	cmp r2, r3
	beq loadnormal
	add r0, #0x4
	b there
loadnormal:	mov r1, #0xAA
	lsl r1, r1, #0x1
	add r1, #0x1
return:	pop {r2,r3}
	ldr r0, goback
	bx r0
loadmusic:	ldrh r1, [r0, #0x2]
	b return
end:	.word 0x0000FEFE
goback:	.word 0x0807FA3F
tableloc:	.word 0x08FFFFFF
Change the code at 0x7F9F4 to:
01 1C 00 00 00 48 00 47 XX XX XX 08
Where, once again, your insert location + 1 replaces the XX's. Easy stuff. Now, using it means you have to create a new table in your ROM, the format for said table is:

[Pokémon Species - Half-Word][Song ID to Play - Half-Word]
With an FE FE 00 00 at the end of it to signify to the routine that the table is finished.

Then, point the tableloc to this new table, and you should be good to go. Remember, of course, to keep everything correctly aligned. Major note: I only tested this with special 0x138. It does NOT work with wildbattle or special 0x137.
Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
Reply With Quote