Package ghidra.program.model.lang
Class RegisterManager
- java.lang.Object
-
- ghidra.program.model.lang.RegisterManager
-
public class RegisterManager extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Register
getContextBaseRegister()
Returns context base register or null if one has not been defined by the language.Register
getRegister(Address addr)
Returns the largest register located at the specified addressRegister
getRegister(Address addr, int size)
Returns the smallest register at the specified address whose size is greater than or equal the specified size.Register
getRegister(java.lang.String name)
Returns the register with the given name;Register[]
getRegisters()
Return array of all registers.Register[]
getRegisters(Address addr)
Returns all registers located at the specified addressRegister[]
getSortedVectorRegisters()
Returns the array of vector registers, sorted first by size and then by offset
-
-
-
Method Detail
-
getContextBaseRegister
public Register getContextBaseRegister()
Returns context base register or null if one has not been defined by the language.
-
getRegister
public Register getRegister(Address addr)
Returns the largest register located at the specified address- Parameters:
addr
-- Returns:
- largest register
-
getRegisters
public Register[] getRegisters(Address addr)
Returns all registers located at the specified address- Parameters:
addr
-- Returns:
- largest register
-
getRegister
public Register getRegister(Address addr, int size)
Returns the smallest register at the specified address whose size is greater than or equal the specified size.- Parameters:
addr
- register addresssize
- the size of the register (in bytes). A value of 0 will return the largest register at the specified addr- Returns:
- register
-
getRegister
public Register getRegister(java.lang.String name)
Returns the register with the given name;- Parameters:
name
- the name of the register to retrieve
-
getRegisters
public Register[] getRegisters()
Return array of all registers.- Returns:
- all registers
-
getSortedVectorRegisters
public Register[] getSortedVectorRegisters()
Returns the array of vector registers, sorted first by size and then by offset- Returns:
- sorted vector registers
-
-