dioscuri.module.cpu
Class Instruction_UnaryGrp3_Eb

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

public class Instruction_UnaryGrp3_Eb
extends java.lang.Object
implements Instruction

Intel opcode F6
Unary Group 3 opcode extension: TEST, NOT, NEG, MUL, IMUL, DIV, IDIV.
Performs the selected instruction (indicated by bits 5, 4, 3 of the ModR/M byte).
Flags modified: depending on instruction can be any of: OF, SF, ZF, AF, PF, CF


Constructor Summary
Instruction_UnaryGrp3_Eb()
          Class constructor
Instruction_UnaryGrp3_Eb(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Execute any of the following Unary Group 3 opcode extension: TEST, NOT, NEG, MUL, IMUL, DIV, IDIV.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_UnaryGrp3_Eb

public Instruction_UnaryGrp3_Eb()
Class constructor


Instruction_UnaryGrp3_Eb

public Instruction_UnaryGrp3_Eb(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 Unary Group 3 opcode extension: TEST, NOT, NEG, MUL, IMUL, DIV, IDIV.

Specified by:
execute in interface Instruction
Throws:
CPUInstructionException