dioscuri.module.cpu
Class Instruction_CMP_GbEb

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

public class Instruction_CMP_GbEb
extends java.lang.Object
implements Instruction

Intel opcode 3A
Byte-sized comparison (SUB) of register ("destination") with memory/register (source).
The addressbyte determines the source (sss bits) and "destination" (rrr bits).
Flags modified: OF, SF, ZF, AF, PF, CF


Constructor Summary
Instruction_CMP_GbEb()
          Class constructor
Instruction_CMP_GbEb(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Byte-sized comparison (SUB) of memory/register with register.
Does not update any registers, only sets appropriate flags.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_CMP_GbEb

public Instruction_CMP_GbEb()
Class constructor


Instruction_CMP_GbEb

public Instruction_CMP_GbEb(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
Byte-sized comparison (SUB) of memory/register with register.
Does not update any registers, only sets appropriate flags.

Specified by:
execute in interface Instruction