Simple Machine

ISA
Class AbstractISA.SimpleField

java.lang.Object
  extended by ISA.AbstractISA.SimpleField
All Implemented Interfaces:
AbstractISA.InsLayout
Direct Known Subclasses:
AbstractISA.ConstantField, AbstractISA.DictonaryField, AbstractISA.LabelableField, AbstractISA.OpCodeField, AbstractISA.ScaledField, AbstractISA.ShiftField
Enclosing class:
AbstractISA

protected class AbstractISA.SimpleField
extends java.lang.Object
implements AbstractISA.InsLayout

Simple instruction field. Extended by more other single-value fields and may be combined with other fields in a CompoundField.


Constructor Summary
AbstractISA.SimpleField(int aLength, java.lang.String aMacFormat, java.lang.String anAsmFormat, java.lang.String aDscFormat)
           
 
Method Summary
 int byteLength()
           
 AbstractISA.InsLayout getFirstFieldForClass(java.lang.Class aClass)
           
 int getOffsetTo(AbstractISA.InsLayout aField)
           
 BitString getValue(BitStream bitStream)
           
 BitString getValue(IntStream fields, int pc)
           
 int length()
           
 java.lang.String toAsm(BitString insValue, int offset, int pc)
           
 java.lang.String toDsc(BitString insValue, int offset, int pc)
           
 java.lang.String toMac(BitString insValue, int offset, int pc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractISA.SimpleField

public AbstractISA.SimpleField(int aLength,
                               java.lang.String aMacFormat,
                               java.lang.String anAsmFormat,
                               java.lang.String aDscFormat)
Method Detail

toMac

public java.lang.String toMac(BitString insValue,
                              int offset,
                              int pc)
Specified by:
toMac in interface AbstractISA.InsLayout

toAsm

public java.lang.String toAsm(BitString insValue,
                              int offset,
                              int pc)
Specified by:
toAsm in interface AbstractISA.InsLayout

toDsc

public java.lang.String toDsc(BitString insValue,
                              int offset,
                              int pc)
Specified by:
toDsc in interface AbstractISA.InsLayout

getValue

public BitString getValue(IntStream fields,
                          int pc)
Specified by:
getValue in interface AbstractISA.InsLayout

getValue

public BitString getValue(BitStream bitStream)
Specified by:
getValue in interface AbstractISA.InsLayout

length

public int length()
Specified by:
length in interface AbstractISA.InsLayout

byteLength

public int byteLength()
Specified by:
byteLength in interface AbstractISA.InsLayout

getOffsetTo

public int getOffsetTo(AbstractISA.InsLayout aField)
Specified by:
getOffsetTo in interface AbstractISA.InsLayout

getFirstFieldForClass

public AbstractISA.InsLayout getFirstFieldForClass(java.lang.Class aClass)
Specified by:
getFirstFieldForClass in interface AbstractISA.InsLayout

Simple Machine