dioscuri.module.cpu
Class Instruction_ADD_GbEb

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

public class Instruction_ADD_GbEb
extends java.lang.Object
implements Instruction

Intel opcode 02
Add byte in memory/register (source) to register (destination).
The addressbyte determines the source (rrr bits) and destination (sss bits).
Flags modified: OF, SF, ZF, AF, PF, CF


Constructor Summary
Instruction_ADD_GbEb()
          Class constructor
Instruction_ADD_GbEb(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Add byte in memory/register (source) to register (destination).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_ADD_GbEb

public Instruction_ADD_GbEb()
Class constructor


Instruction_ADD_GbEb

public Instruction_ADD_GbEb(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
Add byte in memory/register (source) to register (destination).

Specified by:
execute in interface Instruction