public static class SPARCAssembler.CompositeBitSpec extends SPARCAssembler.BitSpec
Modifier and Type | Field and Description |
---|---|
private SPARCAssembler.BitSpec |
left |
private int |
leftWidth |
private SPARCAssembler.BitSpec |
right |
private int |
rightWidth |
Constructor and Description |
---|
CompositeBitSpec(SPARCAssembler.BitSpec left,
SPARCAssembler.BitSpec right) |
Modifier and Type | Method and Description |
---|---|
int |
getBits(int word) |
int |
getWidth() |
private int |
leftBits(int value) |
private int |
rightBits(int value) |
int |
setBits(int word,
int value) |
String |
toString() |
boolean |
valueFits(int value) |
private final SPARCAssembler.BitSpec left
private final int leftWidth
private final SPARCAssembler.BitSpec right
private final int rightWidth
public CompositeBitSpec(SPARCAssembler.BitSpec left, SPARCAssembler.BitSpec right)
public int getBits(int word)
getBits
in class SPARCAssembler.BitSpec
public int setBits(int word, int value)
setBits
in class SPARCAssembler.BitSpec
private int leftBits(int value)
private int rightBits(int value)
public int getWidth()
getWidth
in class SPARCAssembler.BitSpec
public boolean valueFits(int value)
valueFits
in class SPARCAssembler.BitSpec