Package CPU.instructions.ADD2Dn
Class ADD_MinusAn
java.lang.Object
CPU.instructions.ADD2Dn.ADD_MinusAn
- All Implemented Interfaces:
InstructionSet
The ADD/ADDA instruction where the destination is a data/addr register and the source is -(An).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final DisassembledInstruction
disassembleOp
(int address, int opcode, Size sz, String reg, MC68000Cpu cpu) Disassemble the instruction.final void
register
(MC68000Cpu cpu2) Registers the InstructionSet with the cpu.
-
Constructor Details
-
ADD_MinusAn
public ADD_MinusAn()
-
-
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) Disassemble the instruction.- Parameters:
address
- address of op in memoryopcode
- MC68000 opcode of operationsz
- size (.b, .w, .l)reg
- type of register (address or data)cpu
- cpu used- Returns:
- the DisassembledInstruction
-