Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/9C 2BYTE

1,065 bytes added, 22:32, 12 September 2006
no edit summary
* Opcode: '''0x9C'''
* Short name: '''2BYTE'''
* Long name: Two Byte Value

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x9C
! width="50" | ''B1 / B2''
! width="40" | ''B3''
! width="40" | ''D''
! width="40" | ''L''
! width="40" | ''H''
|}

==== Arguments ====

* '''const Bit[4]''' ''B1'': Destination bank.
* '''const Bit[4]''' ''B2'': Bank to retrieve ''L'', or zero if ''L'' is specified as a literal value.
* '''const UByte''' ''B3'': Bank to retrieve ''H'', or zero if ''H'' is specified as a literal value.
* '''const UByte''' ''D'': Destination address.
* '''const UByte''' ''L'': Low byte, or address to retrieve value if ''B2'' is non-zero.
* '''const UByte''' ''H'': High byte, or address to retrieve value if ''B3'' is non-zero.

==== Description ====

Constructs and stores a two-byte value from two seperate one-byte values. The low and high bytes of the two-byte word may be taken from existing values from memory, or specified as a value (or both).