Coding Questions and other Quandaries
SpongeBob's Truth or Square - Wii (USA) "Moon Jump"

Press A & B to activate. Press A to release.

I was searching for "jump" in the symbol code map and found this:

ApexCheck__16zPlayerJumpBoardFP15xAnimTransitionP11xAnimSingle:
8005ef20 ApexCheck__16zPlayerJumpBoardF lfs f1, 0x0010 (r3)
8005ef24 ApexCheck__16zPlayerJumpBoardF lfs f0, 0x0020 (r3)
8005ef28 ApexCheck__16zPlayerJumpBoardF fcmpo cr0,f1,f0
8005ef2c ApexCheck__16zPlayerJumpBoardF cror 2, 1, 2
8005ef30 ApexCheck__16zPlayerJumpBoardF mfcr r3
8005ef34 ApexCheck__16zPlayerJumpBoardF rlwinm r3, r3, 3, 31, 31 (20000000)
8005ef38 ApexCheck__16zPlayerJumpBoardF blr

Gee, I wonder what their doing here???

The address held in r3 = 0x92919420

f1 is being loaded with the value at 0x92919430; this is the actual height your character is at during a jump in floating point; 0.4 on the ground, 0.0 at jump apex

f0 is being loaded with the value at 0x92919440; This constant floating point value sets the apex maximum f1 will be compared to. This value could be changed to increase jump height also. this value is 0x3ECCCCCD -> 0.4

But I'm fond of Moon Jump codes....

[Code/Source]
287E22C2 00000C00 #ASM button activator; if A & B pressed then next line
42000000 92000000 #ASM sets base address to 0x92000000
04919430 3DCCCCCD #ASM 32 bit write to 0x92919430; floating point value -> 0.1
E0000000 80008000 #ASM full terminator
Reply


Messages In This Thread
RE: Coding Questions and other Quandaries - by Hackwiz - 11-06-2023, 12:36 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)