RzReg#
- class RzReg#
- property allregs: RzList[RzRegItem]#
- property arch: int#
- property big_endian: bool#
- property bits: int#
- property is_thumb: bool#
- property iters: int#
- property name: Pointer[Pointer[int]]#
- property profile: str#
- property reg_profile: RzRegProfile#
- property reg_profile_cmt: str#
- property reg_profile_str: str#
- property _regset: RzRegSet#
- property roregs: RzList[char]#
- property size: int#
- static filter_items_covered() RzList[RzRegItem] #
Calls function
rz_reg_filter_items_covered
(defined in reg.c)Filter out all register items that are smaller than but covered entirely by some other register.
- Parameters:
regs – list of RzRegItem
- static role_by_name() int #
Calls function
rz_reg_role_by_name
(defined in reg.c)Get the RzRegisterId with the given name or -1.
- static type_by_name() int #
Calls function
rz_reg_type_by_name
(defined in reg.c)Returns the register type for the given type abbreviation.
- Parameters:
str – The type abbreviation (gpr, flg, sys etc.)
- Returns:
int The register type or -1 on failure.
- cond_bits_set(type: int, f: RzRegFlags, v: bool) bool #
Calls function
rz_reg_cond_bits_set
(defined in rcond.c)
- get_at(type: int, regsize: int, delta: int) RzRegItem #
Calls function
rz_reg_get_at
(defined in reg.c)
- get_bv(item: RzRegItem) RzBitVector #
Calls function
rz_reg_get_bv
(defined in rvalue.c)Read the value of the given register as a bit vector
- get_by_role_or_name(name: str) RzRegItem #
Calls function
rz_reg_get_by_role_or_name
(defined in reg.c)
- get_pack(item: RzRegItem, packidx: int, packbits: int) int #
Calls function
rz_reg_get_pack
(defined in rvalue.c)
- get_value_big(item: RzRegItem, val: utX) int #
Calls function
rz_reg_get_value_big
(defined in rvalue.c)
- get_value_by_role(role: RzRegisterId) int #
Calls function
rz_reg_get_value_by_role
(defined in rvalue.c)
- next_diff(type: int, buf: int, buflen: int, prev_ri: RzRegItem, regsize: int) RzRegItem #
Calls function
rz_reg_next_diff
(defined in reg.c)
- set_bv(item: RzRegItem, bv: RzBitVector) bool #
Calls function
rz_reg_set_bv
(defined in rvalue.c)Set the value of the given register from the given bit vector
- Parameters:
bv – bitvector of exactly item->len bits
- Returns:
wether the write succeeded
- set_bytes(type: int, buf: int, len: int) bool #
Calls function
rz_reg_set_bytes
(defined in arena.c)
- set_double(item: RzRegItem, value: float) bool #
Calls function
rz_reg_set_double
(defined in double.c)
- set_float(item: RzRegItem, value: float) bool #
Calls function
rz_reg_set_float
(defined in double.c)
- set_longdouble(item: RzRegItem, value: int) bool #
Calls function
rz_reg_set_longdouble
(defined in double.c)
- set_pack(item: RzRegItem, packidx: int, packbits: int, val: int) int #
Calls function
rz_reg_set_pack
(defined in rvalue.c)
- set_profile_string(profile: str) bool #
Calls function
rz_reg_set_profile_string
(defined in profile.c)Parses a register profile string and sets up all registers accordingly in
reg
.- Parameters:
reg – The RzReg struct which should hold the register data.
profile – The register profile string.
- Returns:
false On failure;
- Returns:
true On success.
- set_reg_profile() bool #
Calls function
rz_reg_set_reg_profile
(defined in profile.c)Fills
reg->regset
with the definitions and alias of the register profile.- Parameters:
reg – The RzReg struct which holds the register profile and an empty
reg->regset
- Returns:
false On failure.
- Returns:
true On success.