Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/80 SETBYTE

902 bytes added, 17:34, 26 August 2006
no edit summary
* Opcode: '''0x80'''
* Short name: '''SETBYTE'''
* Long name: Byte Set

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x80
! width="40" | ''D / S''
! width="40" | ''A''
! width="40" | ''V''
|}

==== Arguments ====
* '''const Bit[4]''' ''D'': Destination bank.
* '''const Bit[4]''' ''S'': Source bank.
* '''const UByte''' ''A'': Destination address.
* '''const UByte''' ''V'': Value to be written/Source address.

==== Description ====
Writes the byte value from the source address, or the value argument itself, into the destination 8-bit bank. If the source bank '''S''' is zero, the value given by '''V''' is written directly into the destination address; otherwise, the value is retrieved from the source bank/address '''S'''/'''V''', and then written to the destination bank/address '''D'''/'''A'''.