dioscuri.module.cpu
Class Instruction_TEST_EbGb

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

public class Instruction_TEST_EbGb
extends java.lang.Object
implements Instruction

Intel opcode 84
Logical byte-sized comparison (AND) of memory/register ("destination") and register (source).
The addressbyte determines the source (rrr bits) and destination (sss bits).
Does not update any registers, only sets appropriate flags.
Flags modified: OF, SF, ZF, AF, PF, CF


Constructor Summary
Instruction_TEST_EbGb()
          Class constructor
Instruction_TEST_EbGb(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Logical byte-sized comparison (AND) of memory/register (destination) and register (source).
Does not update any registers, only sets appropriate flags.
SF, ZF, and PF are set according to the result;
OF and CF are cleared.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_TEST_EbGb

public Instruction_TEST_EbGb()
Class constructor


Instruction_TEST_EbGb

public Instruction_TEST_EbGb(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
Logical byte-sized comparison (AND) of memory/register (destination) and register (source).
Does not update any registers, only sets appropriate flags.
SF, ZF, and PF are set according to the result;
OF and CF are cleared. AF is undefined.

Specified by:
execute in interface Instruction