class Category(object):
Category of a register.
Not meant to be instantiated directly. Use Register.category
or helpers.all_categories
instead.
Method | __init__ |
Initializes a new Category instance. Not meant to be used directly. Use Register.category or helpers.all_categories instead. |
Method | registers |
Returns an generator over all registers that belong to this category |
Property | name |
Property: The name of the category as a string |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | __eq__ |
Undocumented |
Method | __ne__ |
Undocumented |
Instance Variable | _rvn_category |
Undocumented |
Initializes a new Category
instance. Not meant to be used directly. Use Register.category
or helpers.all_categories
instead.
Returns an generator over all registers that belong to this category
>>> list(arch.x64.cf.category.registers()) [Register(x64.iopl), Register(x64.tf), Register(x64.df), Register(x64.zf), Register(x64.rf), Register(x64.of), Register(x64.vif), Register(x64.cf), Register(x64.vip), Register(x64.pf), Register(x64.vm), Register(x64.ac), Register(x64.af), Register(x64.id), Register(x64.if), Register(x64.nt), Register(x64.sf)]
Returns | A generator of Register . |
Property: The name of the category as a string
Filtering on the registers of the flags category:
>>> [r for r in arch.helpers.x64_registers() if r.category_name == "flags"] [Register(x64.iopl), Register(x64.tf), Register(x64.df), Register(x64.zf), Register(x64.rf), Register(x64.of), Register(x64.vif), Register(x64.cf), Register(x64.vip), Register(x64.pf), Register(x64.vm), Register(x64.ac), Register(x64.af), Register(x64.id), Register(x64.if), Register(x64.nt), Register(x64.sf)]
Returns | A string . |