Event Instruction BB

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

{BB} ANDVar

ANDVar(xVAR1,xVAR2)

AND Variable bitwise operand | Variable1 = Variable1 AND Variable2


See also: {BA} AND{BE} ZERO


Variable 1 : Half-Word (hex)

Click here for the list of Variables


Variable 2 : Half-Word (hex)

Click here for the list of Variables

Using ANDVar to force a variable to be a positive value

Set a variable to be your Whole Number Register. Let's say it's variable x0005. You need to set it to a value of x7FFF FFFF.

  • LUI(x0005,x7FFF)
  • OR(x0005,xFFFF)

Let's say the number you want to force to be positive is x0070. ANDVar that against the Whole Number Register.

  • ANDVar(x0070,x0005)

Done!