Coding Questions and other Quandaries
Monster Mayhem: Build and Battle Wii (U)

First item picked up gives you a quantity of 999 for all items

C20C187C 00000004
39800019 7D8903A6
3D8080B5 618C882C
380003E7 940C0004
4200FFF8 00000000

Source

Original code at insert:

0x800C187C stwx, r0, r4, r5

Changed to:

li r12, 0x19 #ASM there are 25 item addresses to write to
mtctr r12
lis r12, 0x80B5 #ASM Upper half word of item address block
ori r12, r12, 0x882C Lower half of item address block -0x4
the_loop:
li r0, 0x3E7 #ASM Loads 999 into register to be stored from
stwu r0, 0x4 (r12) #ASM store it 25 times
bdnz+ the_loop
Reply


Messages In This Thread
RE: Coding Questions and other Quandaries - by Hackwiz - 05-26-2022, 12:17 AM

Forum Jump:


Users browsing this thread: 35 Guest(s)