How would i write "if x==some value and y==some value" in a gecko code?
#1
The title explains everything.
Reply
#2
"In a gecko code" as in Gecko Code type? It would be easier to write it using Assembly (C2 codetypes).

For Gecko Code Types that are not the C2 type, there are plenty of "If codes" and "end-ifs" you can use - https://mkwii.com/showthread.php?tid=545

But this would be more inefficient and difficult than just using Assembly with multiple C2 types. I don't know how much Assembly that you already know btw.

Code:
.set some_value, 0xXXXX #Fill in the value
cmpwi rX, some_value #rX for "X"
cmpwi cr7, rY, some_value #rY for "Y"
crand 4*cr0+eq, 4*cr0+eq, 4*cr7+eq
beq- both_are_equal #Branch will be taken if X & Y == some val
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)