dioscuri.module.cpu
Class Instruction_MOVS_XvYv

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

public class Instruction_MOVS_XvYv
extends java.lang.Object
implements Instruction

Intel opcode A5
Move string word at address DS:(E)SI to address ES:(E)DI.
After move, contents of SI and DI are incremented or decremented based on DF flag:
Byte: +/- 1, word: +/- 2, doubleword: +/-4.
Flags modified: none


Constructor Summary
Instruction_MOVS_XvYv()
          Class constructor
Instruction_MOVS_XvYv(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Move string word at address DS:(E)SI to address ES:(E)DI and increment/decrement both depending on DF flag.
Flags modified: none
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_MOVS_XvYv

public Instruction_MOVS_XvYv()
Class constructor


Instruction_MOVS_XvYv

public Instruction_MOVS_XvYv(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
Move string word at address DS:(E)SI to address ES:(E)DI and increment/decrement both depending on DF flag.
Flags modified: none

Specified by:
execute in interface Instruction