Difference between revisions of "FF7/Field/Script/Opcodes/19 IFUWL"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
my_wiki>Synergy Blades
m
Line 7: Line 7:
 
! width="40" | 0x19
 
! width="40" | 0x19
 
! width="50" | ''B1 / B2''
 
! width="50" | ''B1 / B2''
! width="40" | ''A''
+
! width="80" | ''A''
! width="40" | ''V''
+
! width="80" | ''V''
 
! width="40" | ''C''
 
! width="40" | ''C''
! width="40" | ''E''
+
! width="80" | ''E''
 
|}
 
|}
  
Line 18: Line 18:
 
* '''const Bit[4]''' ''B2'': Second memory bank to access.
 
* '''const Bit[4]''' ''B2'': Second memory bank to access.
 
* '''const UShort''' ''A'': Address, from the first bank, of the value to retrieve.
 
* '''const UShort''' ''A'': Address, from the first bank, of the value to retrieve.
* '''const UShort''' ''V'': Unsigned value to compare the retrieved value to, or address from the second bank of the value to retrieve.
+
* '''const UShort''' ''V'': Unsigned value to compare the retrieved value to, or address from the second bank of the value to retrieve, if ''B2'' is non-zero.
 
* '''const UByte''' ''C'': Type of comparison to perform.
 
* '''const UByte''' ''C'': Type of comparison to perform.
 
* '''const UShort''' ''E'': Amount to jump if the comparison does not hold.
 
* '''const UShort''' ''E'': Amount to jump if the comparison does not hold.

Revision as of 17:44, 14 September 2006

  • Opcode: 0x19
  • Short name: IFUWL
  • Long name: If (Unsigned Word, Long Jump)

Memory layout

0x19 B1 / B2 A V C E

Arguments

  • const Bit[4] B1: First memory bank to access.
  • const Bit[4] B2: Second memory bank to access.
  • const UShort A: Address, from the first bank, of the value to retrieve.
  • const UShort V: Unsigned value to compare the retrieved value to, or address from the second bank of the value to retrieve, if B2 is non-zero.
  • 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 IFUW opcode, but allows for a jump on comparison failure of more than 0xFF bytes.