dioscuri.module.cpu
Class Instruction_PUSH_Ib

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

public class Instruction_PUSH_Ib
extends java.lang.Object
implements Instruction

Intel opcode 6A
Push immediate byte onto stack SS:SP.
NOTE: Since only words can be popped from the stack, the word {0x00, Ib} is pushed on the stack
This may be a wrong asumption as nowhere is documented what MSB of word has to be!! Flags modified: none


Constructor Summary
Instruction_PUSH_Ib()
          Class constructor
Instruction_PUSH_Ib(CPU processor)
          Class constructor specifying processor reference
 
Method Summary
 void execute()
          Pushes the immediate word onto stack top SS:SP
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction_PUSH_Ib

public Instruction_PUSH_Ib()
Class constructor


Instruction_PUSH_Ib

public Instruction_PUSH_Ib(CPU processor)
Class constructor specifying processor reference

Parameters:
processor - Reference to CPU class
Method Detail

execute

public void execute()
Pushes the immediate word onto stack top SS:SP

Specified by:
execute in interface Instruction