dioscuri.module.cpu
Class Instruction_RETN

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

public class Instruction_RETN
extends java.lang.Object
implements Instruction

Intel opcode C3
Near (intrasegment) return to calling procedure.
Transfer control to return address located at top stack.
Flags modified: none


Constructor Summary
Instruction_RETN()
          Class constructor
Instruction_RETN(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

public Instruction_RETN()
Class constructor


Instruction_RETN

public Instruction_RETN(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