java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.units.code.asm.processor.RegisterDescriptionEntry |
Description of a register.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RegisterDescriptionEntry(int number, String name, int bitsize, RegisterEncoding encoding, String alternateName, RegisterType type, int offset)
Full constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RegisterDescriptionEntry |
addName(String name)
Add a name for this register.
| ||||||||||
int |
getBitsize()
Get the register size in bits.
| ||||||||||
RegisterEncoding | getEncoding() | ||||||||||
String |
getName()
Get the primary name.
| ||||||||||
List<String> |
getNames()
Get all the names for the register.
| ||||||||||
int |
getNumber()
Get the optional register number.
| ||||||||||
int |
getOffset()
Get the optional offset in a block of registers, meaningful in the context of the layout this
entry belongs to.
| ||||||||||
int |
getSize()
Get the register size in bytes, rounded up (eg, if the register is 6-bit long, the returned
byte size will be 1).
| ||||||||||
RegisterType | getType() | ||||||||||
void | setNumber(int number) | ||||||||||
void | setOffset(int offset) | ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Full constructor.
number | mandatory |
---|---|
name | mandatory |
bitsize | mandatory |
encoding | optional |
alternateName | optional |
type | optional |
offset | optional |
Add a name for this register.
name | a name, cannot be empty or null; it can be a primary name or an alternate name |
---|
Get the register size in bits.
Get the primary name.
Get all the names for the register. The first entry in the list is the primary name.
Get the optional register number.
Get the optional offset in a block of registers, meaningful in the context of the layout this entry belongs to.
Get the register size in bytes, rounded up (eg, if the register is 6-bit long, the returned byte size will be 1).