Simple Machine

ISA
Class Instruction

java.lang.Object
  extended by ISA.MemoryCell
      extended by ISA.Instruction

public class Instruction
extends MemoryCell

A single concrete instance of an instruction in memory.


Field Summary
 
Fields inherited from class ISA.MemoryCell
address, checkpointValue, comment, label, memory, value
 
Method Summary
 void copyFrom(MemoryCell aCell)
           
static Instruction valueOf(Memory memory, int address, int opCode, int[] operands, java.lang.String label, java.lang.String comment)
           
static Instruction valueOfMemory(Memory memory, int address, java.lang.String label, java.lang.String comment)
           
static Instruction valueOfPlaceholder(Memory memory, int address, java.lang.String label, java.lang.String comment)
           
 
Methods inherited from class ISA.MemoryCell
checkpointValue, equals, getAddress, hashCode, length, restoreValueFromCheckpoint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

valueOfMemory

public static Instruction valueOfMemory(Memory memory,
                                        int address,
                                        java.lang.String label,
                                        java.lang.String comment)

copyFrom

public void copyFrom(MemoryCell aCell)
Overrides:
copyFrom in class MemoryCell

valueOfPlaceholder

public static Instruction valueOfPlaceholder(Memory memory,
                                             int address,
                                             java.lang.String label,
                                             java.lang.String comment)

valueOf

public static Instruction valueOf(Memory memory,
                                  int address,
                                  int opCode,
                                  int[] operands,
                                  java.lang.String label,
                                  java.lang.String comment)

Simple Machine