Package CPU.instructions.ASL
Class ASLimm
java.lang.Object
CPU.instructions.ASL.ASLimm
- All Implemented Interfaces:
InstructionSet
The ASL instruction where data to be shifted is in a data reg and the shift count is immediate.
1110ccc1ss000rrr = 0xe100
mmm = mode 010
rrr = data register to be shifted
ccc = the shift count
ss =size : 00 = byte
01 = word
10 = long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final DisassembledInstruction
disassembleOp
(int address, int opcode, Size sz) Disassemble the instruction.final void
register
(MC68000Cpu cpu2) Registers the InstructionSet with the cpu.
-
Constructor Details
-
ASLimm
public ASLimm()
-
-
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
Disassemble the instruction.- Parameters:
address
- address of op in memoryopcode
- MC68000 opcode of operationsz
- size (.b, .w, .l)- Returns:
- the DisassembledInstruction
-