Package ghidra.program.model.lang
Class RegisterManager
java.lang.Object
ghidra.program.model.lang.RegisterManager
-
Method Summary
Modifier and TypeMethodDescriptionGet context base-registerGet unsorted unmodifiable list of all processor context registers (include base context register and children)getRegister
(Address addr) Returns the largest register located at the specified addressgetRegister
(Address addr, int size) Get register by address and sizegetRegister
(String name) Get register by name.Get the set of addresses contained in registersGet an alphabetical sorted unmodifiable list of original register names (including context registers).Get all registers as an unsorted unmodifiable list.Register[]
getRegisters
(Address addr) Returns all registers located at the specified addressGet an unmodifiable list of all vector registers indentified by the processor specification in sorted order based upon address and size.
-
Method Details
-
getContextBaseRegister
Get context base-register- Returns:
- context base register or null if one has not been defined by the language.
-
getContextRegisters
Get unsorted unmodifiable list of all processor context registers (include base context register and children)- Returns:
- all processor context registers
-
getRegisterNames
Get an alphabetical sorted unmodifiable list of original register names (including context registers). Names correspond to orignal register name and not aliases which may be defined.- Returns:
- alphabetical sorted unmodifiable list of original register names.
-
getRegister
Returns the largest register located at the specified address- Parameters:
addr
- register address- Returns:
- register or null if not found
-
getRegisters
Returns all registers located at the specified address- Parameters:
addr
- register address- Returns:
- array of registers found (may be empty)
-
getRegister
Get register by address and size- Parameters:
addr
- register addresssize
- register size- Returns:
- register or null if not found
-
getRegister
Get register by name. A semi-case-insensitive lookup is performed. The specified name must match either the case-sensitive name or be entirely lowercase or uppercase.- Parameters:
name
- register name- Returns:
- register or null if not found
-
getRegisters
Get all registers as an unsorted unmodifiable list.- Returns:
- unmodifiable list of all registers defined
-
getSortedVectorRegisters
Get an unmodifiable list of all vector registers indentified by the processor specification in sorted order based upon address and size.- Returns:
- all vector registers as unmodifiable list
-
getRegisterAddresses
Get the set of addresses contained in registers- Returns:
- the address set
-