Hacking Gecko Codes Logical AND if Statement

Code:
32bit:
09020000 LLLLLLLL
VVVVVVVV 00000000
      . . .
D0000000 DEADCAFE

This checks if the 32bit value at LLLLLLLL has the same true bits as VVVVVVVV. If the condition is true the next code/s (represented by . . . ) is/are executed.
 
  • Like
Reactions: HackingNewbie
Ohhh, okay.
Code:
16 bits (endif, then) If equal
28______ MMMMXXXX

Adding 1 to ______ will make this code first apply an Endif.
(It will still use ______ for address calculation; without the added 1)

If 16 bits at ([ba+______] & not(MMMM))==XXXX,
then codes are executed (else code execution set to false)


To use po instead of ba, change the codetype from 28 to 38.
For values of ______ >= 0x01000000, add one to the codetype.
You use a mask for MMMM which will do an AND.
 
Last edited by BullyWiiPlaza,
  • Like
Reactions: HackingNewbie
Ohhh, okay.
Code:
16 bits (endif, then) If equal
28______ MMMMXXXX

Adding 1 to ______ will make this code first apply an Endif.
(It will still use ______ for address calculation; without the added 1)

If 16 bits at ([ba+______] & not(MMMM))==XXXX,
then codes are executed (else code execution set to false)


To use po instead of ba, change the codetype from 28 to 38.
For values of ______ >= 0x01000000, add one to the codetype.
You use a mask for XXXX which will be like an AND.
What would the mask be?
EDIT: all the values of all the buttons not wanted added together?
 
Thank you so much for putting up with my silly questions I really appreciate it. Just one more question:
can
Code:
E0000000 00000000
Be used to end IF statements so the next piece of code isn't in the IF statement?
Yes, I always used:
Code:
E0000000 80008000
 
Last edited by BullyWiiPlaza,
  • Like
Reactions: HackingNewbie

Site & Scene News

Popular threads in this forum