nl.kbna.dioscuri.module.cpu
Class Instruction_AAA

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

public class Instruction_AAA
extends java.lang.Object
implements Instruction

Intel opcode 37
AAA- ASCII adjust after addition.
Adjust two unpacked BCD digits so a addition operation on result yields correct unpacked BCD value
Flags modified: AF, CF (OF, SF, ZF and PF are undefined.


Field Summary
private  CPU cpu
           
 
Constructor Summary
Instruction_AAA()
          Class constructor
Instruction_AAA(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Adjust two unpacked BCD digits so a addition operation on result yields correct unpacked BCD value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cpu

private CPU cpu
Constructor Detail

Instruction_AAA

public Instruction_AAA()
Class constructor


Instruction_AAA

public Instruction_AAA(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
Adjust two unpacked BCD digits so a addition operation on result yields correct unpacked BCD value.

Specified by:
execute in interface Instruction