dioscuri.module.cpu
Class Instruction_ImmGRP1_EbIb

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

public class Instruction_ImmGRP1_EbIb
extends java.lang.Object
implements Instruction

Intel opcode 80
Immediate Group 1 opcode extension: ADD, OR, ADC, SBB, AND, SUB, XOR, CMP.
Performs the selected instruction (indicated by bits 5, 4, 3 of the ModR/M byte) using immediate data.
Flags modified: depending on instruction can be any of: OF, SF, ZF, AF, PF, CF


Constructor Summary
Instruction_ImmGRP1_EbIb()
          Class constructor
Instruction_ImmGRP1_EbIb(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Execute any of the following Immediate Group 1 instructions: ADD, OR, ADC, SBB, AND, SUB, XOR, CMP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_ImmGRP1_EbIb

public Instruction_ImmGRP1_EbIb()
Class constructor


Instruction_ImmGRP1_EbIb

public Instruction_ImmGRP1_EbIb(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 1 instructions: ADD, OR, ADC, SBB, AND, SUB, XOR, CMP.

Specified by:
execute in interface Instruction
Throws:
CPUInstructionException