Difference between revisions of "FF7/Field/Script/Opcodes/9A LBYTE"
Jump to navigation
Jump to search
my_wiki>Synergy Blades m |
m (5 revisions imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
! width="40" | ''D / S'' | ! width="40" | ''D / S'' | ||
! width="40" | ''DA'' | ! width="40" | ''DA'' | ||
− | ! width="40" | '' | + | ! width="40" | ''SA'' |
|} | |} | ||
Line 16: | Line 16: | ||
* '''const Bit[4]''' ''S'': Source bank. | * '''const Bit[4]''' ''S'': Source bank. | ||
* '''const UByte''' ''DA'': Destination address. | * '''const UByte''' ''DA'': Destination address. | ||
− | * '''const UByte''' '' | + | * '''const UByte''' ''SA'': Source address. |
==== Description ==== | ==== Description ==== | ||
Retrieves the low 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 is an 8-bit bank, this will simply copy the value from source to destination; if the destination is a 16-bit bank, the high byte of the destination will remain unchanged. | Retrieves the low 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 is an 8-bit bank, this will simply copy the value from source to destination; if the destination is a 16-bit bank, the high byte of the destination will remain unchanged. |
Latest revision as of 05:18, 23 May 2019
- Opcode: 0x9A
- Short name: LBYTE
- Long name: Low Byte
Memory layout
0x9A | D / S | DA | SA |
---|
Arguments
- const Bit[4] D: Destination bank.
- const Bit[4] S: Source bank.
- const UByte DA: Destination address.
- const UByte SA: Source address.
Description
Retrieves the low 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 is an 8-bit bank, this will simply copy the value from source to destination; if the destination is a 16-bit bank, the high byte of the destination will remain unchanged.