dioscuri.module.cpu
Class Instruction_SUB_EbGb

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

public class Instruction_SUB_EbGb
extends java.lang.Object
implements Instruction

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


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

Constructor Detail

Instruction_SUB_EbGb

public Instruction_SUB_EbGb()
Class constructor


Instruction_SUB_EbGb

public Instruction_SUB_EbGb(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
Subtract byte in register (source) from memory/register (destination).

Specified by:
execute in interface Instruction