FF7/Field/Script/Opcodes/15 IFUBL

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Revision as of 00:59, 18 August 2006 by my_wiki>Synergy Blades
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • Opcode: 0x14
  • Short name: IFUBL
  • Long name: If (Unsigned Byte, Long Jump)

Memory layout

0x14 B A V C E

Arguments

  • const UByte B: Memory bank to access.
  • const UByte A: Address of the value to retrieve.
  • const UByte V: Unsigned value to compare the retrieved value to.
  • const UByte C: Type of comparison to perform.
  • const UShort E: Amount to jump if the comparison does not hold.

Description

This is similar to the IFUB opcode, but it allows a jump of more than 0xFF if the comparison does not hold. Use this opcode if the 'if' block will also be longer than 0xFF.