mayl8822 / miasm

Automatically exported from code.google.com/p/miasm
0 stars 0 forks source link

Error when loading LDR adress from PC with offset #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
LDR R2, #pcoffset was incorrect

Before : 
>>> from miasm2.arch.arm.arch import mn_armt
>>> print mn_armt.dis('\xc8\x4A')
LDR        R2, [PC, 0xC8]

After:
>>> from miasm2.arch.arm.arch import mn_armt
>>> print mn_armt.dis('\xc8\x4A')
LDR        R2, [PC, 0x320]

Patch provided

Original issue reported on code.google.com by tristan....@gmail.com on 26 Jun 2014 at 2:46

Attachments:

GoogleCodeExporter commented 9 years ago
Fix in commit aed33d133649

Original comment by serpilli...@gmail.com on 30 Jun 2014 at 11:43