Simple Machine

ISA
Class AbstractISA.LabelableField

java.lang.Object
  extended by ISA.AbstractISA.SimpleField
      extended by ISA.AbstractISA.LabelableField
All Implemented Interfaces:
AbstractISA.InsLayout
Direct Known Subclasses:
AbstractISA.PCRelativeField
Enclosing class:
AbstractISA

protected class AbstractISA.LabelableField
extends AbstractISA.SimpleField

Simple field whose value can be represted by a label. Labels are taken from the addressToLabelMap maintained by ISA.Memory.


Constructor Summary
AbstractISA.LabelableField(int aLength, java.lang.String aMacFormat, java.lang.String aNoLabelAsmFormat, java.lang.String aLabelAsmFormat, java.lang.String aDscFormat, java.lang.String aLabelDscFormat)
           
 
Method Summary
 java.lang.String toAsm(BitString insValue, int offset, int pc)
           
 java.lang.String toDsc(BitString insValue, int offset, int pc)
           
 
Methods inherited from class ISA.AbstractISA.SimpleField
byteLength, getFirstFieldForClass, getOffsetTo, getValue, getValue, length, toMac
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractISA.LabelableField

public AbstractISA.LabelableField(int aLength,
                                  java.lang.String aMacFormat,
                                  java.lang.String aNoLabelAsmFormat,
                                  java.lang.String aLabelAsmFormat,
                                  java.lang.String aDscFormat,
                                  java.lang.String aLabelDscFormat)
Method Detail

toAsm

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

toDsc

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

Simple Machine