Package CPU.instructions.SUB2Dn
Class SUB_I
java.lang.Object
CPU.instructions.SUB2Dn.SUB_I
- All Implemented Interfaces:
InstructionSet
The SUB/SUBA instruction where the destination is a data/address register and the source is Immediate data.
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 =111,
rrr = 100
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final DisassembledInstruction
disassembleOp
(int address, int opcode, Size sz, String reg, MC68000Cpu cpu) final void
register
(MC68000Cpu cpu2) Registers the InstructionSet with the cpu.
-
Constructor Details
-
SUB_I
public SUB_I()
-
-
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)
-