Package CPU.instructions.SUB2Dn
Class SUB_d8AnXn
java.lang.Object
CPU.instructions.SUB2Dn.SUB_d8AnXn
- All Implemented Interfaces:
InstructionSet
The SUB/SUBA instruction where the destination is a data/address register and the source is d8(An,Xn).
1101dddooommmrrr
where
ddd is the destination register
ooo is the opmode : 000 = byte, 001 = word , 010 =long, 011 = word SUBA, 111 = long SUB
mmm = ea mode =110,
rrr = source register
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final DisassembledInstruction
disassembleOp
(int address, int opcode, Size sz, String reg, MC68000Cpu cpu) protected int
final void
register
(MC68000Cpu cpu2) Registers the InstructionSet with the cpu.
-
Constructor Details
-
SUB_d8AnXn
public SUB_d8AnXn()
-
-
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
-
disassembleOp
protected final DisassembledInstruction disassembleOp(int address, int opcode, Size sz, String reg, MC68000Cpu cpu)
-