Is there a way to do logical AND IF statements similar to the Cafe 09 codetype? And is there an equivalent to the Cafe D0000000 DEADCAFE line to end IF statements?
@CosmoCortney
@BullyWiiPlaza
@CosmoCortney
@BullyWiiPlaza
Well there isn't a logical AND IF statement that I can find in the documentation or an equivalent to D0000000 DEADCAFE to end if statements. Sorry if I'm asking a stupid question :SDoesn't it do exactly that?
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.
I mean with gecko codes for the wiiCode: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.
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.
What would the mask be?Ohhh, okay.
You use a mask for XXXX which will be like an AND.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.
Yes. But you should doWhat would the mask be?
EDIT: all the values of all the buttons not wanted added together?
0x10000 - the value you want
Thank you so much for putting up with my silly questions I really appreciate it. Just one more question:Yes. Or you just doCode:0x10000 - the value you want
E0000000 00000000
Yes, I always used:Thank you so much for putting up with my silly questions I really appreciate it. Just one more question:
can
Be used to end IF statements so the next piece of code isn't in the IF statement?Code:E0000000 00000000
E0000000 80008000
Okay, that'll be all for my nooby questions