dioscuri.module.cpu
Class Instruction_ShiftGRP2_EvIb

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

public class Instruction_ShiftGRP2_EvIb
extends java.lang.Object
implements Instruction

Intel opcode C1
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 immediate byte.
Flags modified: depending on instruction can be any of: OF, SF, ZF, AF, PF, CF


Constructor Summary
Instruction_ShiftGRP2_EvIb()
          Class constructor
Instruction_ShiftGRP2_EvIb(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_EvIb

public Instruction_ShiftGRP2_EvIb()
Class constructor


Instruction_ShiftGRP2_EvIb

public Instruction_ShiftGRP2_EvIb(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