libTriton  version 0.6 build 1362

Table of Contents

[python api] All information about the REG python namespace.


According to the CPU architecture, the REG namespace contains all enums of register. It's possible to create a Register from a register id using getRegister like this:

>>> ah = ctxt.getRegister(REG.X86_64.AH)
>>> print ah
ah:8 bv[15..8]

Note that creating a TritonContext, you can directly access to constructed Register according to your defined architecture.

>>> ctxt.setArchitecture(ARCH.X86_64)
>>> print ctxt.registers.zmm1
zmm1:512 bv[511..0]

Python API - Items of the REG namespace

x86 registers

x86-64 registers