|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.fastmodel.Field
public class Field
This class defines an instruction field used in the FastModel.
Copyright (c) 2006 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
protected int |
bits
The number of bits in the field |
static java.lang.String |
copyright
Copyright string |
protected int |
startBit
The start bit fo the field |
| Constructor Summary | |
|---|---|
Field(int bits,
int startBit)
Constructor |
|
Field(int bits,
int startBit,
Symbol[] symbols)
Constructor |
|
| Method Summary | |
|---|---|
static long |
append(Field a,
Field b,
long instr)
This static method appends two fields. |
long |
get(java.math.BigInteger instr)
This method extracts the field data from an instruction. |
static long |
get(java.math.BigInteger a,
int bits,
int startBit)
This static method extracts a field from a big integer. |
long |
get(long instr)
This method extracts the field data from an instruction. |
java.lang.Long |
symbolLookup(java.lang.String s)
This method performs a lookup of a symbol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
protected int bits
protected int startBit
| Constructor Detail |
|---|
public Field(int bits,
int startBit)
bits - The number of bits in the fieldstartBit - The start bit of the field
public Field(int bits,
int startBit,
Symbol[] symbols)
bits - The number of bits in the fieldstartBit - The start bit of the fieldsymbols - a symbol table associated with
this field.| Method Detail |
|---|
public long get(long instr)
instr - The instruction containing the field.
public long get(java.math.BigInteger instr)
instr - The instruction containing the field.
public java.lang.Long symbolLookup(java.lang.String s)
s - the symbol string.
public static long append(Field a,
Field b,
long instr)
a - the fields containing the high bits.b - the Field containing the low bits.instr - The instruction containing the field.
public static long get(java.math.BigInteger a,
int bits,
int startBit)
a - the big integer containing the fieldbits - The number of bits in the fieldstartBit - The start bit of the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||