Coding Questions and other Quandaries
#37
Step-In = Step one instruction executing it normally
Skip = Nop
Step-Over = Skip any function calls (bl's, bctrl's, etc)
Step-Out = Appears to jump back in a way to some previous function calls but not exactly??, can't really tell tbh.

Afaik there's no literal step back function. There is an option for "Set PC" and you can set the next address that will execute, that could help for some things.

There's also the call stack (top left of code view), that can help. It shows the recent addresses that are responsible for calling the previous 'parent' functions. The most recent functions are listed from top to bottom. Thread on function calls - https://mariokartwii.com/showthread.php?tid=1052

Current Bit map from what I gathered from reading your post:
  • Bits 0 thru 15 = Unused
  • Bits 16 thru 28 = ??
  • Bit 29 = Flips low then gets flipped high for Attack
  • Bit 30 = Finished Jump or Finished Attack. Flips off and on while idle
  • Bit 31 = Flips high then gets flipped low when a Jump is preformed 



Dumb question, apologies if you have already tried this, but have you simply tried adding a second code (C2 ASM) at "8017951C sth r0, 0x28 (r3) #ASM r0 = 0xD08 (the program is expecting there to be 0xD0C)" Like this..


Code:
li r0, 0xD0C #Force Bit 29 high
sth r0, 0x28 (r3) #Default Instruction




If that doesn't work, nopping the "andi." at "80179A10 andi. r0, r0, 0xFFFB#ASM r0 = 0xD08" might.
Reply


Messages In This Thread
RE: Coding Questions and other Quandaries - by Vega - 12-15-2021, 02:56 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)