Simple Machine

ISA
Class AbstractISA.CompoundField

java.lang.Object
  extended by ISA.AbstractISA.CompoundField
All Implemented Interfaces:
AbstractISA.InsLayout
Direct Known Subclasses:
AbstractISA.ShiftInsField
Enclosing class:
AbstractISA

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

Compound field combines one or more other fields.


Constructor Summary
AbstractISA.CompoundField(AbstractISA.InsLayout[] aFields, int[] anAsmOrder, java.lang.String[] anAsmFormats, int[] aDscOrder, java.lang.String[] aDscFormats)
           
 
Method Summary
 int byteLength()
           
 AbstractISA.InsLayout getFirstFieldForClass(java.lang.Class aClass)
           
 int getOffsetTo(AbstractISA.InsLayout aField)
           
 BitString getValue(BitStream bitStream)
           
 BitString getValue(IntStream fieldValues, int pc)
           
 int length()
           
 java.lang.String toAsm(BitString ins, int offset, int pc)
           
 java.lang.String toDsc(BitString ins, int offset, int pc)
           
 java.lang.String toMac(BitString ins, 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.CompoundField

public AbstractISA.CompoundField(AbstractISA.InsLayout[] aFields,
                                 int[] anAsmOrder,
                                 java.lang.String[] anAsmFormats,
                                 int[] aDscOrder,
                                 java.lang.String[] aDscFormats)
Method Detail

toMac

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

toAsm

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

toDsc

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

getValue

public BitString getValue(IntStream fieldValues,
                          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