dioscuri.module.cpu
Class Instruction_UnaryGrp3_Ev

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

public class Instruction_UnaryGrp3_Ev
extends java.lang.Object
implements Instruction

Intel opcode F7
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, CF, SF, ZF, AF, PF (some of them undefined)


Constructor Summary
Instruction_UnaryGrp3_Ev()
          Class constructor
Instruction_UnaryGrp3_Ev(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_Ev

public Instruction_UnaryGrp3_Ev()
Class constructor


Instruction_UnaryGrp3_Ev

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