Simple Machine

ISA
Class AbstractISA

java.lang.Object
  extended by ISA.AbstractISA
Direct Known Subclasses:
ISA

public abstract class AbstractISA
extends java.lang.Object


Nested Class Summary
protected  class AbstractISA.CompoundField
          Compound field combines one or more other fields.
protected  class AbstractISA.ConstantField
          A field that is always assigned a constant value.
protected  class AbstractISA.DictonaryField
          For register names (etc.), field name comes from dictonary lookup.
protected static interface AbstractISA.InsLayout
          Describes the in-memory layout of instructions.
protected  class AbstractISA.LabelableField
          Simple field whose value can be represted by a label.
protected  class AbstractISA.OpCodeField
          Instruction op code.
protected  class AbstractISA.PCRelativeField
          PC-relative address field.
protected  class AbstractISA.ScaledField
          For index addressing mode, this field is scaled by index scaling factor in instruction.
protected  class AbstractISA.ShiftField
          Shift value.
protected  class AbstractISA.ShiftInsField
          Shift instruction.
protected  class AbstractISA.ShiftOpCodeField
           
protected  class AbstractISA.SimpleField
          Simple instruction field.
 
Constructor Summary
AbstractISA(java.lang.String aName, AbstractAssembler anAssembler)
           
 
Method Summary
protected  void define(int opCode, AbstractISA.InsLayout layout)
          Called by subclass to define instructions that are part of its ISA.
 java.lang.String getName()
          Name of this ISA.
 ISA.AbstractISA.InstructionDef getPlaceholderInstructionDef()
           
 BitString getPlaceholderInstructionValue()
           
protected  void setPlaceholderInstruction(int opCode)
          Called by subclass to specify an instruction to use a a placehold (nop).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractISA

public AbstractISA(java.lang.String aName,
                   AbstractAssembler anAssembler)
Method Detail

getName

public java.lang.String getName()
Name of this ISA.


define

protected void define(int opCode,
                      AbstractISA.InsLayout layout)
Called by subclass to define instructions that are part of its ISA.

Parameters:
opCode - opCode number for this instruction
layout - layout description describing how bits of instruction are to be interpreted

setPlaceholderInstruction

protected void setPlaceholderInstruction(int opCode)
Called by subclass to specify an instruction to use a a placehold (nop).


getPlaceholderInstructionDef

public ISA.AbstractISA.InstructionDef getPlaceholderInstructionDef()

getPlaceholderInstructionValue

public BitString getPlaceholderInstructionValue()

Simple Machine