libTriton  version 0.4 build 1356
Immediate

Table of Contents

[python api] All information about the Immediate python object.

Description


This object is used to represent an immediate.

Example

>>> processing(inst)
>>> print inst
40000: mov eax, 0x14
>>> op1 = inst.getOperands()[1]
>>> print op1
0x14:32 bv[31..0]
>>> print hex(op1.getValue())
0x14L
>>> print op1.getBitSize()
32

Constructor

>>> imm = Immediate(0x1234, CPUSIZE.WORD)
>>> print imm
0x1234:16 bv[15..0]
>>> imm.getValue()
4660
>>> imm.getSize()
2
>>> imm.getBitSize()
16

Python API - Methods of the Immediate class