Package CPU.instructions
Class ANDI
java.lang.Object
CPU.instructions.ANDI
- All Implemented Interfaces:
InstructionSet
The ANDI instruction in all of its variants.
fedcba9876543210
00000010ssmmmrrr = 200
0000ddd100mmmrrr
where rrr = reg for ea
ss = size
mmm = mode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final DisassembledInstruction
disassembleOp
(int address, int opcode, Size sz, MC68000Cpu cpu) Disassemble the instruction.protected int
Gets the displacement and increments the PC.final void
register
(MC68000Cpu cpu2) Registers the InstructionSet with the cpu.
-
Constructor Details
-
ANDI
public ANDI()
-
-
Method Details
-
register
Description copied from interface:InstructionSet
Registers the InstructionSet with the cpu.- Specified by:
register
in interfaceInstructionSet
- Parameters:
cpu2
- the cpu to use.
-
getDisplacement
Gets the displacement and increments the PC.- Parameters:
cpu
- the smsqmulator.cpu.MC68000Cpu used the cpu used.- Returns:
- the displacement
-
disassembleOp
protected final DisassembledInstruction disassembleOp(int address, int opcode, Size sz, MC68000Cpu cpu) Disassemble the instruction.- Parameters:
address
- address of op in memoryopcode
- MC68000 opcode of operationsz
- size (.b, .w, .l)cpu
- cpu used- Returns:
- the DisassembledInstruction
-