We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b188c9e commit 532bc46Copy full SHA for 532bc46
docs/guide.rst
@@ -26,8 +26,7 @@ Disassemble:
26
In [0]: from pypcode import Context
27
...: ctx = Context("x86:LE:64:default")
28
...: dx = ctx.disassemble(b"\x48\x35\x78\x56\x34\x12\xc3")
29
- ...: for ins in dx.instructions:
30
- ...: print(f"{ins.addr.offset:#x}/{ins.length}: {ins.mnem} {ins.body}")
+ ...: print(dx)
31
32
Translate to P-Code:
33
@@ -36,8 +35,7 @@ Translate to P-Code:
36
35
37
38
...: tx = ctx.translate(b"\x48\x35\x78\x56\x34\x12\xc3")
39
- ...: for op in tx.ops:
40
- ...: print(op)
+ ...: print(tx)
41
42
Command Line Usage Example
43
--------------------------
0 commit comments