dioscuri.module.cpu
Class Instruction_ShiftGRP2_EbCL

java.lang.Object
  extended by dioscuri.module.cpu.Instruction_ShiftGRP2_EbCL
All Implemented Interfaces:
Instruction

public class Instruction_ShiftGRP2_EbCL
extends java.lang.Object
implements Instruction

Intel opcode D2
Immediate Group 2 opcode extension: ROL, ROR, RCL, RCR, SHL/SAL, SHR, SAR.
Performs the selected instruction (indicated by bits 5, 4, 3 of the ModR/M byte) using CL.
Flags modified: depending on instruction can be any of: OF, SF, ZF, AF, PF, CF


Constructor Summary
Instruction_ShiftGRP2_EbCL()
          Class constructor
Instruction_ShiftGRP2_EbCL(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Execute any of the following Immediate Group 2 instructions: ROL, ROR, RCL, RCR, SHL/SAL, SHR, SAR.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_ShiftGRP2_EbCL

public Instruction_ShiftGRP2_EbCL()
Class constructor


Instruction_ShiftGRP2_EbCL

public Instruction_ShiftGRP2_EbCL(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
             throws CPUInstructionException
Execute any of the following Immediate Group 2 instructions: ROL, ROR, RCL, RCR, SHL/SAL, SHR, SAR.

Specified by:
execute in interface Instruction
Throws:
CPUInstructionException