Coding Questions and other Quandaries
My Sims Sky Heroes (U) Wii

Press (-) for x3 Turbo Boost (All Modes)

C2978C68 00000006
3D608059 616BC720
A18B0000 2C0C1000
40A20014 3D608000
3D804381 918B03B0
C38B03B0 D383001C
60000000 00000000


[Original Source]

0x80978C68 stfs f28, 0x1C (r3)     #ASM This line is used for P1 and AI's speed value write

[Insert]
  
  lis r11, 0x8059          #ASM Load upper half-word button activator address
  ori r11, r11, 0xC720   #ASM Load lower half-word button activator address
  lhz r12, 0(r11)           #ASM Load current button activator address value
  cmpwi r12, 0x1000    #ASM See if (-) button has been pressed
  bne+ default_inst      #ASM If not, carry out the default instruction
  lis r11, 0x8000          #ASM If equal, load r11 with upper half of EVA address
  lis r12, 0x4381          #ASM Load x3 speed boost value into upper half of r12; customizable
  stw r12, 0x3B0 (r11)  #ASM Store x3 speed boost value to EVA 0x800003B0
  lfs f28, 0x3B0 (r11)    #ASM Load floating speed boost value into f28; and then...

default_inst:
  stfs f28, 28(r3)          #ASM Default instruction; store boost value
Reply


Messages In This Thread
RE: Coding Questions and other Quandaries - by Hackwiz - 07-04-2022, 05:51 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)