Package CPU.instructions.CMP
Class CMP_d8PCXn
java.lang.Object
CPU.instructions.CMP.CMP_d8PCXn
- All Implemented Interfaces:
InstructionSet
The CMP and CMPA instruction where source is d(Pc,Xn).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final DisassembledInstruction
disassembleOp
(int address, int opcode, Size sz, String reg, MC68000Cpu cpu) protected int
gets the displacement and increments the PC.final void
register
(MC68000Cpu cpu2) Registers the InstructionSet with the cpu.
-
Constructor Details
-
CMP_d8PCXn
public CMP_d8PCXn()
-
-
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.
-
disassembleOp
protected final DisassembledInstruction disassembleOp(int address, int opcode, Size sz, String reg, MC68000Cpu cpu) -
getDisplacement
gets the displacement and increments the PC.- Parameters:
cpu
- the smsqmulator.cpu.MC68000Cpu used- Returns:
- the displacement
-