ISA
Class AbstractISA.LabelableField
java.lang.Object
ISA.AbstractISA.SimpleField
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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