java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.units.code.asm.processor.arch.RegisterUtil |
Utility methods for IRegisterBank
and IRegisterData
, including methods to create
standard register ids.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RegisterUtil() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static String | byteArrayToHex(Endianness endianness, byte[] data, int pos, int end) | ||||||||||
static String | byteArrayToHex(Endianness endianness, byte[] data) | ||||||||||
static long |
createPureRegisterId(int index, int grp)
Create a pure register id, i.e.
| ||||||||||
static long |
createRegisterId(int index, int grp, int bitsize, int bitstart)
Create a standard register id (full or slice).
| ||||||||||
static long |
createRegisterId(int index, int grp, int bitsize)
Create a standard register id (full or slice).
| ||||||||||
static long | createRegisterIdFromPureId(long pure, int bitsize, int bitstart) | ||||||||||
static IRegisterBank |
getBank(ProcessorType proctype)
Convenience method to retrieve a register bank used by a well-known processor type.
| ||||||||||
static RegisterDescriptionEntry | getEntryByName(IRegisterBank bank, String name) | ||||||||||
static RegisterDescriptionEntry | getEntryByName(IRegisterData bank, String name) | ||||||||||
static RegisterDescriptionEntry | getEntryByType(IRegisterBank bank, RegisterType type) | ||||||||||
static RegisterDescriptionEntry | getEntryByType(IRegisterData bank, RegisterType type) | ||||||||||
static long | getPureId(long id) | ||||||||||
static int | getRegisterBitsize(long id) | ||||||||||
static int | getRegisterBitstart(long id) | ||||||||||
static int | getRegisterGroup(long id) | ||||||||||
static int | getRegisterIndex(long id) | ||||||||||
static byte[] | getValueByName(IRegisterData bank, String name) | ||||||||||
static Long | getValueByNameAsLong(IRegisterData bank, String name) | ||||||||||
static boolean | isPureId(long id) | ||||||||||
static boolean | setValueByName(IRegisterData bank, String name, byte[] bytes) | ||||||||||
static boolean | setValueByNameAsLong(IRegisterData bank, String name, long value) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a pure register id, i.e. an id always representing a full register, without indicators such as bit size or bit start.
Create a standard register id (full or slice).
Create a standard register id (full or slice).
Convenience method to retrieve a register bank used by a well-known processor type.
It is recommended to use RegisterBankService
directly.
proctype | a processor type |
---|