Package CPU.instructions
Class ORreg
java.lang.Object
CPU.instructions.ORreg
- All Implemented Interfaces:
InstructionSet
The OR instruction where the destination is a register, in all of its variants.
fedcba9876543210
1000dddooommmrrr = 8000
where rrr = ea reg
mmm = ea mode
ooo = opmode/size = 0ss
ddd = destination data reg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
gets the displacement and increments the PC.final void
register
(MC68000Cpu cpu2) Registers the InstructionSet with the cpu.
-
Constructor Details
-
ORreg
public ORreg()
-
-
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
gets the displacement and increments the PC.- Parameters:
cpu
- the smsqmulator.cpu.MC68000Cpu used the cpu use d.- Returns:
- the displacement
-