com.cmpware.cmp.models
Class FastSimple.BranchImm

java.lang.Object
  extended by com.cmpware.fastmodel.Function
      extended by com.cmpware.cmp.models.FastSimple.BranchImm
Direct Known Subclasses:
FastSimple.BR
Enclosing class:
FastSimple

public abstract class FastSimple.BranchImm
extends Function

The Branch Immediate instruction type


Field Summary
protected  int simm12
          The signed 12-bit immediate value
 
Fields inherited from class com.cmpware.fastmodel.Function
copyright
 
Constructor Summary
FastSimple.BranchImm()
           
 
Method Summary
 void extractFields(java.math.BigInteger instr)
          This abstract method is used to copy the field values into local variables where thay are used by the instruction exec() routine.
 Field[] getFormat()
          This method returns an array of fields describing the instruction format.
 int getSize()
          This abstract method returns the size of the instruction in bits.
 java.lang.String toString()
          This method is used to display a string of the Function.
 
Methods inherited from class com.cmpware.fastmodel.Function
exec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

simm12

protected int simm12
The signed 12-bit immediate value

Constructor Detail

FastSimple.BranchImm

public FastSimple.BranchImm()
Method Detail

getFormat

public Field[] getFormat()
Description copied from class: Function
This method returns an array of fields describing the instruction format.

Specified by:
getFormat in class Function
Returns:
this method returns an array of fields describing the instruction format.

getSize

public int getSize()
Description copied from class: Function
This abstract method returns the size of the instruction in bits.

Specified by:
getSize in class Function
Returns:
this abstract method returns the size of the instruction in bits.

extractFields

public void extractFields(java.math.BigInteger instr)
Description copied from class: Function
This abstract method is used to copy the field values into local variables where thay are used by the instruction exec() routine.

Specified by:
extractFields in class Function
Parameters:
instr - the instruction word.

toString

public java.lang.String toString()
Description copied from class: Function
This method is used to display a string of the Function. This should be a list of the fields as displayed in a typical disassembly. This method is used by the disassembler (along with the instruction name) to produce a disassemble string of the instruction.

Specified by:
toString in class Function