Difference between revisions of "FF7/Field/Script/Opcodes/80 SETBYTE"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Lasyan3@hotmail.com
m (Description)
m (3 revisions imported)
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 05:17, 23 May 2019

  • Opcode: 0x80
  • Short name: SETBYTE
  • Long name: Byte Set

Memory layout

0x80 D / S A 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. If the destination is a 16-bit bank, the high byte of the destination will remain unchanged.