Difference between revisions of "FF7/Field/Script/Opcodes/9B HBYTE"
Jump to navigation
Jump to search
my_wiki>Synergy Blades |
(No difference)
|
Revision as of 20:27, 7 September 2006
- Opcode: 0x9B
- Short name: HBYTE
- Long name: High Byte
Memory layout
0x9A | D / S | DA | SA or LB | 0 or HB |
---|
Arguments
- const Bit[4] D: Destination bank.
- const Bit[4] S: Source bank.
- const UByte DA: Destination address.
- const UByte SA: Source address, or the lower byte of the given word, if source bank is zero.
- const UByte 0: Zero, or the higher byte of the given word, if source bank is zero.
Description
Retrieves the high byte of a two-byte word from the source bank and address, and places the byte value into the destination bank and address. If the source bank is zero, then the final two arguments are actually an explicit given two-byte word value, and the high byte value is retrieved from this word instead of from a memory address.