public static class SPARCAssembler.ContinousBitSpec extends SPARCAssembler.BitSpec
Modifier and Type | Field and Description |
---|---|
private int |
hiBit |
private int |
lowBit |
private int |
mask |
private String |
name |
private boolean |
signExt |
private int |
width |
Constructor and Description |
---|
ContinousBitSpec(int hiBit,
int lowBit,
boolean signExt,
String name) |
ContinousBitSpec(int hiBit,
int lowBit,
String name) |
Modifier and Type | Method and Description |
---|---|
int |
getBits(int word) |
int |
getWidth() |
int |
setBits(int word,
int value) |
String |
toString() |
boolean |
valueFits(int value) |
private final int hiBit
private final int lowBit
private final int width
private final boolean signExt
private final int mask
public ContinousBitSpec(int hiBit, int lowBit, String name)
public ContinousBitSpec(int hiBit, int lowBit, boolean signExt, String name)
public int setBits(int word, int value)
setBits
in class SPARCAssembler.BitSpec
public int getBits(int word)
getBits
in class SPARCAssembler.BitSpec
public int getWidth()
getWidth
in class SPARCAssembler.BitSpec
public boolean valueFits(int value)
valueFits
in class SPARCAssembler.BitSpec