Difference between revisions of "FF7/Field/Script/Opcodes/8F AND"
Jump to navigation
Jump to search
my_wiki>Halkun |
my_wiki>Synergy Blades m |
||
Line 19: | Line 19: | ||
==== Description ==== | ==== Description ==== | ||
Performs a bitwise AND operation between "Dest" and "Oper" and stores the result back into "Dest". | Performs a bitwise AND operation between "Dest" and "Oper" and stores the result back into "Dest". | ||
− | If the Source Bank is 0 then the “Oper†is the operand to | + | If the Source Bank is 0 then the “Oper†is the operand to AND with. |
If the Source Bank is an 8 bit bank, then the “Oper†is the address in that bank where the operand is. | If the Source Bank is an 8 bit bank, then the “Oper†is the address in that bank where the operand is. |
Revision as of 21:52, 7 September 2006
- Opcode: 0x8F
- Short name: AND
- Long name: Bitwise AND (8-bit)
Memory layout
0x8F | D/S | Dest | Oper |
---|
Arguments
- const Bit[4] D: Destination bank
- const Bit[4] S: Source bank
- const UByte Dest: Contains an operand of the bitwise AND and receives the result.
- const UByte Oper: The second operand of the bitwise AND.
Description
Performs a bitwise AND operation between "Dest" and "Oper" and stores the result back into "Dest". If the Source Bank is 0 then the “Oper†is the operand to AND with. If the Source Bank is an 8 bit bank, then the “Oper†is the address in that bank where the operand is.