FF7/Field/Script/Opcodes/8F AND

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Revision as of 05:17, 23 May 2019 by BukTop (talk | contribs) (3 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • Opcode: 0x8F
  • Short name: AND
  • Long name: Bitwise AND (8-bit)

Memory layout

0x8F D/S Dest Oper

Arguments

  • const Bit[4] D: Destination bank
  • const Bit[4] S: Source bank
  • const UByte Dest: Contains an operand of the bitwise AND and receives the result.
  • const UByte Oper: The second operand of the bitwise AND.

Description

Performs a bitwise AND operation between "Dest" and "Oper" and stores the result back into "Dest". If the Source Bank is 0 then the “Oper” is the operand to AND with. If the Source Bank is an 8 bit bank, then the “Oper” is the address in that bank where the operand is.