Hacking Gecko Codes Logical AND if Statement

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
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

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
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

HackingNewbie

Well-Known Member
OP
Member
Joined
Dec 29, 2016
Messages
536
Trophies
0
Location
Somewhere in 2008
XP
699
Country
United Kingdom
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?
 

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
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

General chit-chat
Help Users
    Veho @ Veho: Firefox users be like "look at what they have to do to mimic a fraction of our power."