dioscuri.module.cpu
Class Instruction_REP_REPE

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

public class Instruction_REP_REPE
extends java.lang.Object
implements Instruction

Intel opcode F3
Repeat execution of string instruction until CX == 0 or ZF is set.
Target string instruction is next instruction.
Flags modified: none; however, the CMPS and SCAS instructions do set status flags


Constructor Summary
Instruction_REP_REPE()
          Class constructor
Instruction_REP_REPE(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Repeat string instruction until CX == 0 or ZF == 0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_REP_REPE

public Instruction_REP_REPE()
Class constructor


Instruction_REP_REPE

public Instruction_REP_REPE(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
             throws CPUInstructionException
Repeat string instruction until CX == 0 or ZF == 0

Specified by:
execute in interface Instruction
Throws:
CPUInstructionException