nl.kbna.dioscuri.module.cpu
Class Instruction_ADD_AXIv

java.lang.Object
  extended by nl.kbna.dioscuri.module.cpu.Instruction_ADD_AXIv
All Implemented Interfaces:
Instruction

public class Instruction_ADD_AXIv
extends java.lang.Object
implements Instruction

Intel opcode 05
Add immediate word to AX.
Flags modified: OF, SF, ZF, AF, PF, CF


Field Summary
private  CPU cpu
           
(package private)  byte[] immediateWord
           
(package private)  byte[] oldDest
           
(package private)  byte[] temp
           
 
Constructor Summary
Instruction_ADD_AXIv()
          Class constructor
Instruction_ADD_AXIv(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Add immediate word to AX
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cpu

private CPU cpu

immediateWord

byte[] immediateWord

oldDest

byte[] oldDest

temp

byte[] temp
Constructor Detail

Instruction_ADD_AXIv

public Instruction_ADD_AXIv()
Class constructor


Instruction_ADD_AXIv

public Instruction_ADD_AXIv(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
Add immediate word to AX

Specified by:
execute in interface Instruction