dioscuri.module.cpu
Class Instruction_RETN_Iw

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

public class Instruction_RETN_Iw
extends java.lang.Object
implements Instruction

Intel opcode C2
Near (intrasegment) return to calling procedure.
Transfer control to return address located at top stack and pop immediate from mem.
Flags modified: none


Constructor Summary
Instruction_RETN_Iw()
          Class constructor
Instruction_RETN_Iw(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Transfer control to return address located at top stack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_RETN_Iw

public Instruction_RETN_Iw()
Class constructor


Instruction_RETN_Iw

public Instruction_RETN_Iw(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
Transfer control to return address located at top stack

Specified by:
execute in interface Instruction