Wiimote Speaker Sound Player Cycler [Ro]
#1
Wiimote Speaker Sound Player & Cycler [Ro]

This code is an idea i had earlier today - it allows cycling thru every sound & music of the game and have it play on the wiimote speaker. Most of the sounds do play in game too, but some don't, only playing on the wiimote itself. This is just an experimental code, thus it isn't ported for other regions and more of a proof of concept. JoshuaMK's millisecond timer modifier code is used to display the current sound index ID that is selected. The code only works in game.

This code makes uses address 0x800016FC thru 0x800016FE. Make sure no other codes use these addresses.

Here's a small demonstration of the code: https://www.youtube.com/shorts/aiNJ7njQfS4

NTSC-U

NTSC-U
C2705C0C 00000011
81830000 9421FF80
BC610008 3CA08034
A0C51462 3FE08000
70CB000C 41820058
889F16FE 2C040001
41820044 A09F16FC
70CB0008 4082000C
38840001 48000008
3884FFFF B09F16FC
3D808070 618C1934
7D8903A6 4E800421
38800003 3D808070
618CC1DC 7D8903A6
4E800421 39600001
41820008 39600000
997F16FE B8610008
38210080 00000000
C27ED9F8 00000002
3D808000 A38C16FC
60000000 00000000
lwz r12,0(r3)
stwu r1,-128(r1)
stmw r3,8(r1)
lis r5, 0x8034
lhz r6, 0x1462 (r5)
lis r31, 0x8000
andi. r11, r6, 0xC
beq no
lbz r4, 0x16FE (r31)
cmpwi r4, 1
beq skip
lhz r4, 0x16FC (r31)
andi. r11, r6, 0x8
bne sub
addi r4, r4, 1
b str
sub:
subi r4, r4, 1
str:
sth r4, 0x16FC (r31)
lis r12, 0x8070
ori r12, r12, 0x1934
mtctr r12
bctrl - Call play sound function
li r4, 3
lis r12, 0x8070
ori r12, r12, 0xC1DC
mtctr r12
bctrl - Call wiimote play sound function
skip:
li r11, 1
beq skip2
no:
li r11, 0
skip2:
stb r11, 0x16FE (r31)
lmw r3,8(r1)
addi r1,r1,128

Code creator: Ro
Code credits: JoshuaMK (Millisecond Timer Modifier - to display current sound index)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)