libTriton  version 0.9 build 1502
REG

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

Description


According to the CPU architecture, the REG namespace contains all enums of registers. 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 the 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

  • REG.X86.EAX
  • REG.X86.AX
  • REG.X86.AH
  • REG.X86.AL
  • REG.X86.EBX
  • REG.X86.BX
  • REG.X86.BH
  • REG.X86.BL
  • REG.X86.ECX
  • REG.X86.CX
  • REG.X86.CH
  • REG.X86.CL
  • REG.X86.EDX
  • REG.X86.DX
  • REG.X86.DH
  • REG.X86.DL
  • REG.X86.EDI
  • REG.X86.DI
  • REG.X86.DIL
  • REG.X86.ESI
  • REG.X86.SI
  • REG.X86.SIL
  • REG.X86.EBP
  • REG.X86.BP
  • REG.X86.BPL
  • REG.X86.ESP
  • REG.X86.SP
  • REG.X86.SPL
  • REG.X86.EIP
  • REG.X86.IP
  • REG.X86.EFLAGS
  • REG.X86.MM0
  • REG.X86.MM1
  • REG.X86.MM2
  • REG.X86.MM3
  • REG.X86.MM4
  • REG.X86.MM5
  • REG.X86.MM6
  • REG.X86.MM7
  • REG.X86.MXCSR
  • REG.X86.XMM0
  • REG.X86.XMM1
  • REG.X86.XMM2
  • REG.X86.XMM3
  • REG.X86.XMM4
  • REG.X86.XMM5
  • REG.X86.XMM6
  • REG.X86.XMM7
  • REG.X86.YMM0
  • REG.X86.YMM1
  • REG.X86.YMM2
  • REG.X86.YMM3
  • REG.X86.YMM4
  • REG.X86.YMM5
  • REG.X86.YMM6
  • REG.X86.YMM7
  • REG.X86.CR0
  • REG.X86.CR1
  • REG.X86.CR2
  • REG.X86.CR3
  • REG.X86.CR4
  • REG.X86.CR5
  • REG.X86.CR6
  • REG.X86.CR7
  • REG.X86.CR8
  • REG.X86.CR9
  • REG.X86.CR10
  • REG.X86.CR11
  • REG.X86.CR12
  • REG.X86.CR13
  • REG.X86.CR14
  • REG.X86.CR15
  • REG.X86.DR0
  • REG.X86.DR1
  • REG.X86.DR2
  • REG.X86.DR3
  • REG.X86.DR6
  • REG.X86.DR7
  • REG.X86.AC
  • REG.X86.AF
  • REG.X86.CF
  • REG.X86.DF
  • REG.X86.ID
  • REG.X86.IF
  • REG.X86.NT
  • REG.X86.OF
  • REG.X86.PF
  • REG.X86.RF
  • REG.X86.SF
  • REG.X86.TF
  • REG.X86.VIF
  • REG.X86.VIP
  • REG.X86.VM
  • REG.X86.ZF
  • REG.X86.IE
  • REG.X86.DE
  • REG.X86.ZE
  • REG.X86.OE
  • REG.X86.UE
  • REG.X86.PE
  • REG.X86.DAZ
  • REG.X86.IM
  • REG.X86.DM
  • REG.X86.ZM
  • REG.X86.OM
  • REG.X86.UM
  • REG.X86.PM
  • REG.X86.RL
  • REG.X86.RH
  • REG.X86.FZ
  • REG.X86.CS
  • REG.X86.DS
  • REG.X86.ES
  • REG.X86.FS
  • REG.X86.GS
  • REG.X86.SS

x86-64 registers

  • REG.X86_64.RAX
  • REG.X86_64.RBX
  • REG.X86_64.RCX
  • REG.X86_64.RDX
  • REG.X86_64.RDI
  • REG.X86_64.RSI
  • REG.X86_64.RBP
  • REG.X86_64.RSP
  • REG.X86_64.RIP
  • REG.X86_64.R8
  • REG.X86_64.R8D
  • REG.X86_64.R8W
  • REG.X86_64.R8B
  • REG.X86_64.R9
  • REG.X86_64.R9D
  • REG.X86_64.R9W
  • REG.X86_64.R9B
  • REG.X86_64.R10
  • REG.X86_64.R10D
  • REG.X86_64.R10W
  • REG.X86_64.R10B
  • REG.X86_64.R11
  • REG.X86_64.R11D
  • REG.X86_64.R11W
  • REG.X86_64.R11B
  • REG.X86_64.R12
  • REG.X86_64.R12D
  • REG.X86_64.R12W
  • REG.X86_64.R12B
  • REG.X86_64.R13
  • REG.X86_64.R13D
  • REG.X86_64.R13W
  • REG.X86_64.R13B
  • REG.X86_64.R14
  • REG.X86_64.R14D
  • REG.X86_64.R14W
  • REG.X86_64.R14B
  • REG.X86_64.R15
  • REG.X86_64.R15D
  • REG.X86_64.R15W
  • REG.X86_64.R15B
  • REG.X86_64.EAX
  • REG.X86_64.AX
  • REG.X86_64.AH
  • REG.X86_64.AL
  • REG.X86_64.EBX
  • REG.X86_64.BX
  • REG.X86_64.BH
  • REG.X86_64.BL
  • REG.X86_64.ECX
  • REG.X86_64.CX
  • REG.X86_64.CH
  • REG.X86_64.CL
  • REG.X86_64.EDX
  • REG.X86_64.DX
  • REG.X86_64.DH
  • REG.X86_64.DL
  • REG.X86_64.EDI
  • REG.X86_64.DI
  • REG.X86_64.DIL
  • REG.X86_64.ESI
  • REG.X86_64.SI
  • REG.X86_64.SIL
  • REG.X86_64.EBP
  • REG.X86_64.BP
  • REG.X86_64.BPL
  • REG.X86_64.ESP
  • REG.X86_64.SP
  • REG.X86_64.SPL
  • REG.X86_64.EIP
  • REG.X86_64.IP
  • REG.X86_64.EFLAGS
  • REG.X86_64.MM0
  • REG.X86_64.MM1
  • REG.X86_64.MM2
  • REG.X86_64.MM3
  • REG.X86_64.MM4
  • REG.X86_64.MM5
  • REG.X86_64.MM6
  • REG.X86_64.MM7
  • REG.X86_64.MXCSR
  • REG.X86_64.XMM0
  • REG.X86_64.XMM1
  • REG.X86_64.XMM2
  • REG.X86_64.XMM3
  • REG.X86_64.XMM4
  • REG.X86_64.XMM5
  • REG.X86_64.XMM6
  • REG.X86_64.XMM7
  • REG.X86_64.XMM8
  • REG.X86_64.XMM9
  • REG.X86_64.XMM10
  • REG.X86_64.XMM11
  • REG.X86_64.XMM12
  • REG.X86_64.XMM13
  • REG.X86_64.XMM14
  • REG.X86_64.XMM15
  • REG.X86_64.YMM0
  • REG.X86_64.YMM1
  • REG.X86_64.YMM2
  • REG.X86_64.YMM3
  • REG.X86_64.YMM4
  • REG.X86_64.YMM5
  • REG.X86_64.YMM6
  • REG.X86_64.YMM7
  • REG.X86_64.YMM8
  • REG.X86_64.YMM9
  • REG.X86_64.YMM10
  • REG.X86_64.YMM11
  • REG.X86_64.YMM12
  • REG.X86_64.YMM13
  • REG.X86_64.YMM14
  • REG.X86_64.YMM15
  • REG.X86_64.ZMM0
  • REG.X86_64.ZMM1
  • REG.X86_64.ZMM2
  • REG.X86_64.ZMM3
  • REG.X86_64.ZMM4
  • REG.X86_64.ZMM5
  • REG.X86_64.ZMM6
  • REG.X86_64.ZMM7
  • REG.X86_64.ZMM8
  • REG.X86_64.ZMM9
  • REG.X86_64.ZMM10
  • REG.X86_64.ZMM11
  • REG.X86_64.ZMM12
  • REG.X86_64.ZMM13
  • REG.X86_64.ZMM14
  • REG.X86_64.ZMM15
  • REG.X86_64.ZMM16
  • REG.X86_64.ZMM17
  • REG.X86_64.ZMM18
  • REG.X86_64.ZMM19
  • REG.X86_64.ZMM20
  • REG.X86_64.ZMM21
  • REG.X86_64.ZMM22
  • REG.X86_64.ZMM23
  • REG.X86_64.ZMM24
  • REG.X86_64.ZMM25
  • REG.X86_64.ZMM26
  • REG.X86_64.ZMM27
  • REG.X86_64.ZMM28
  • REG.X86_64.ZMM29
  • REG.X86_64.ZMM30
  • REG.X86_64.ZMM31
  • REG.X86_64.CR0
  • REG.X86_64.CR1
  • REG.X86_64.CR2
  • REG.X86_64.CR3
  • REG.X86_64.CR4
  • REG.X86_64.CR5
  • REG.X86_64.CR6
  • REG.X86_64.CR7
  • REG.X86_64.CR8
  • REG.X86_64.CR9
  • REG.X86_64.CR10
  • REG.X86_64.CR11
  • REG.X86_64.CR12
  • REG.X86_64.CR13
  • REG.X86_64.CR14
  • REG.X86_64.CR15
  • REG.X86_64.DR0
  • REG.X86_64.DR1
  • REG.X86_64.DR2
  • REG.X86_64.DR3
  • REG.X86_64.DR6
  • REG.X86_64.DR7
  • REG.X86_64.AC
  • REG.X86_64.AF
  • REG.X86_64.CF
  • REG.X86_64.DF
  • REG.X86_64.ID
  • REG.X86_64.IF
  • REG.X86_64.NT
  • REG.X86_64.OF
  • REG.X86_64.PF
  • REG.X86_64.RF
  • REG.X86_64.SF
  • REG.X86_64.TF
  • REG.X86_64.VIF
  • REG.X86_64.VIP
  • REG.X86_64.VM
  • REG.X86_64.ZF
  • REG.X86_64.IE
  • REG.X86_64.DE
  • REG.X86_64.ZE
  • REG.X86_64.OE
  • REG.X86_64.UE
  • REG.X86_64.PE
  • REG.X86_64.DAZ
  • REG.X86_64.IM
  • REG.X86_64.DM
  • REG.X86_64.ZM
  • REG.X86_64.OM
  • REG.X86_64.UM
  • REG.X86_64.PM
  • REG.X86_64.RL
  • REG.X86_64.RH
  • REG.X86_64.FZ
  • REG.X86_64.CS
  • REG.X86_64.DS
  • REG.X86_64.ES
  • REG.X86_64.FS
  • REG.X86_64.GS
  • REG.X86_64.SS

ARM32 registers

  • REG.ARM32.R0
  • REG.ARM32.R1
  • REG.ARM32.R2
  • REG.ARM32.R3
  • REG.ARM32.R4
  • REG.ARM32.R5
  • REG.ARM32.R6
  • REG.ARM32.R7
  • REG.ARM32.R8
  • REG.ARM32.R9
  • REG.ARM32.R10
  • REG.ARM32.R11
  • REG.ARM32.R12
  • REG.ARM32.SP
  • REG.ARM32.R14
  • REG.ARM32.PC
  • REG.ARM32.APSR
  • REG.ARM32.C
  • REG.ARM32.N
  • REG.ARM32.V
  • REG.ARM32.Z

AArch64 registers

  • REG.AARCH64.X0
  • REG.AARCH64.X1
  • REG.AARCH64.X2
  • REG.AARCH64.X3
  • REG.AARCH64.X4
  • REG.AARCH64.X5
  • REG.AARCH64.X6
  • REG.AARCH64.X7
  • REG.AARCH64.X8
  • REG.AARCH64.X9
  • REG.AARCH64.X10
  • REG.AARCH64.X11
  • REG.AARCH64.X12
  • REG.AARCH64.X13
  • REG.AARCH64.X14
  • REG.AARCH64.X15
  • REG.AARCH64.X16
  • REG.AARCH64.X17
  • REG.AARCH64.X18
  • REG.AARCH64.X19
  • REG.AARCH64.X20
  • REG.AARCH64.X21
  • REG.AARCH64.X22
  • REG.AARCH64.X23
  • REG.AARCH64.X24
  • REG.AARCH64.X25
  • REG.AARCH64.X26
  • REG.AARCH64.X27
  • REG.AARCH64.X28
  • REG.AARCH64.X29
  • REG.AARCH64.X30
  • REG.AARCH64.W0
  • REG.AARCH64.W1
  • REG.AARCH64.W2
  • REG.AARCH64.W3
  • REG.AARCH64.W4
  • REG.AARCH64.W5
  • REG.AARCH64.W6
  • REG.AARCH64.W7
  • REG.AARCH64.W8
  • REG.AARCH64.W9
  • REG.AARCH64.W10
  • REG.AARCH64.W11
  • REG.AARCH64.W12
  • REG.AARCH64.W13
  • REG.AARCH64.W14
  • REG.AARCH64.W15
  • REG.AARCH64.W16
  • REG.AARCH64.W17
  • REG.AARCH64.W18
  • REG.AARCH64.W19
  • REG.AARCH64.W20
  • REG.AARCH64.W21
  • REG.AARCH64.W22
  • REG.AARCH64.W23
  • REG.AARCH64.W24
  • REG.AARCH64.W25
  • REG.AARCH64.W26
  • REG.AARCH64.W27
  • REG.AARCH64.W28
  • REG.AARCH64.W29
  • REG.AARCH64.W30
  • REG.AARCH64.SPSR
  • REG.AARCH64.SP
  • REG.AARCH64.WSP
  • REG.AARCH64.PC
  • REG.AARCH64.XZR
  • REG.AARCH64.WZR
  • REG.AARCH64.C
  • REG.AARCH64.N
  • REG.AARCH64.V
  • REG.AARCH64.Z
  • REG.AARCH64.Q0
  • REG.AARCH64.Q1
  • REG.AARCH64.Q2
  • REG.AARCH64.Q3
  • REG.AARCH64.Q4
  • REG.AARCH64.Q5
  • REG.AARCH64.Q6
  • REG.AARCH64.Q7
  • REG.AARCH64.Q8
  • REG.AARCH64.Q9
  • REG.AARCH64.Q10
  • REG.AARCH64.Q11
  • REG.AARCH64.Q12
  • REG.AARCH64.Q13
  • REG.AARCH64.Q14
  • REG.AARCH64.Q15
  • REG.AARCH64.Q16
  • REG.AARCH64.Q17
  • REG.AARCH64.Q18
  • REG.AARCH64.Q19
  • REG.AARCH64.Q20
  • REG.AARCH64.Q21
  • REG.AARCH64.Q22
  • REG.AARCH64.Q23
  • REG.AARCH64.Q24
  • REG.AARCH64.Q25
  • REG.AARCH64.Q26
  • REG.AARCH64.Q27
  • REG.AARCH64.Q28
  • REG.AARCH64.Q29
  • REG.AARCH64.Q30
  • REG.AARCH64.Q31
  • REG.AARCH64.D0
  • REG.AARCH64.D1
  • REG.AARCH64.D2
  • REG.AARCH64.D3
  • REG.AARCH64.D4
  • REG.AARCH64.D5
  • REG.AARCH64.D6
  • REG.AARCH64.D7
  • REG.AARCH64.D8
  • REG.AARCH64.D9
  • REG.AARCH64.D10
  • REG.AARCH64.D11
  • REG.AARCH64.D12
  • REG.AARCH64.D13
  • REG.AARCH64.D14
  • REG.AARCH64.D15
  • REG.AARCH64.D16
  • REG.AARCH64.D17
  • REG.AARCH64.D18
  • REG.AARCH64.D19
  • REG.AARCH64.D20
  • REG.AARCH64.D21
  • REG.AARCH64.D22
  • REG.AARCH64.D23
  • REG.AARCH64.D24
  • REG.AARCH64.D25
  • REG.AARCH64.D26
  • REG.AARCH64.D27
  • REG.AARCH64.D28
  • REG.AARCH64.D29
  • REG.AARCH64.D30
  • REG.AARCH64.D31
  • REG.AARCH64.S0
  • REG.AARCH64.S1
  • REG.AARCH64.S2
  • REG.AARCH64.S3
  • REG.AARCH64.S4
  • REG.AARCH64.S5
  • REG.AARCH64.S6
  • REG.AARCH64.S7
  • REG.AARCH64.S8
  • REG.AARCH64.S9
  • REG.AARCH64.S10
  • REG.AARCH64.S11
  • REG.AARCH64.S12
  • REG.AARCH64.S13
  • REG.AARCH64.S14
  • REG.AARCH64.S15
  • REG.AARCH64.S16
  • REG.AARCH64.S17
  • REG.AARCH64.S18
  • REG.AARCH64.S19
  • REG.AARCH64.S20
  • REG.AARCH64.S21
  • REG.AARCH64.S22
  • REG.AARCH64.S23
  • REG.AARCH64.S24
  • REG.AARCH64.S25
  • REG.AARCH64.S26
  • REG.AARCH64.S27
  • REG.AARCH64.S28
  • REG.AARCH64.S29
  • REG.AARCH64.S30
  • REG.AARCH64.S31
  • REG.AARCH64.H0
  • REG.AARCH64.H1
  • REG.AARCH64.H2
  • REG.AARCH64.H3
  • REG.AARCH64.H4
  • REG.AARCH64.H5
  • REG.AARCH64.H6
  • REG.AARCH64.H7
  • REG.AARCH64.H8
  • REG.AARCH64.H9
  • REG.AARCH64.H10
  • REG.AARCH64.H11
  • REG.AARCH64.H12
  • REG.AARCH64.H13
  • REG.AARCH64.H14
  • REG.AARCH64.H15
  • REG.AARCH64.H16
  • REG.AARCH64.H17
  • REG.AARCH64.H18
  • REG.AARCH64.H19
  • REG.AARCH64.H20
  • REG.AARCH64.H21
  • REG.AARCH64.H22
  • REG.AARCH64.H23
  • REG.AARCH64.H24
  • REG.AARCH64.H25
  • REG.AARCH64.H26
  • REG.AARCH64.H27
  • REG.AARCH64.H28
  • REG.AARCH64.H29
  • REG.AARCH64.H30
  • REG.AARCH64.H31
  • REG.AARCH64.B0
  • REG.AARCH64.B1
  • REG.AARCH64.B2
  • REG.AARCH64.B3
  • REG.AARCH64.B4
  • REG.AARCH64.B5
  • REG.AARCH64.B6
  • REG.AARCH64.B7
  • REG.AARCH64.B8
  • REG.AARCH64.B9
  • REG.AARCH64.B10
  • REG.AARCH64.B11
  • REG.AARCH64.B12
  • REG.AARCH64.B13
  • REG.AARCH64.B14
  • REG.AARCH64.B15
  • REG.AARCH64.B16
  • REG.AARCH64.B17
  • REG.AARCH64.B18
  • REG.AARCH64.B19
  • REG.AARCH64.B20
  • REG.AARCH64.B21
  • REG.AARCH64.B22
  • REG.AARCH64.B23
  • REG.AARCH64.B24
  • REG.AARCH64.B25
  • REG.AARCH64.B26
  • REG.AARCH64.B27
  • REG.AARCH64.B28
  • REG.AARCH64.B29
  • REG.AARCH64.B30
  • REG.AARCH64.B31