Difference between revisions of "FF7/Field/Script/Opcodes/82 BITON"
Jump to navigation
Jump to search
my_wiki>Halkun |
m (3 revisions imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
* '''const Bit[4]''' ''S'': Source bank. | * '''const Bit[4]''' ''S'': Source bank. | ||
* '''const UByte''' ''Dest'': Destination address. | * '''const UByte''' ''Dest'': Destination address. | ||
− | * '''const | + | * '''const UByte''' ''Bit'': The number of the bit to turn on. |
==== Description ==== | ==== Description ==== |
Latest revision as of 05:17, 23 May 2019
- Opcode: 0x82
- Short name: BITON
- Long name: Set Bit
Memory layout
0x82 | D / S | Dest | Bit |
---|
Arguments
- const Bit[4] D: Destination bank.
- const Bit[4] S: Source bank.
- const UByte Dest: Destination address.
- const UByte Bit: The number of the bit to turn on.
Description
Sets the nth bit in the "Dest" location, where n is a number between 0-7 supplied in "Bit". A value of zero in "Bit" will set the least significant bit. If the Source Bank is 0 then the bit to be set is taken from "Bit". If the Source Bank is an 8 bit bank, then the “Bit†is the address in that bank where the operand is.