Open Kashio opened 3 weeks ago
git clone
0x1f, 0x00, 0x01, 0xeb
It should be:
([219], [4])
With Python
Python
CODE = b"\x1f\x00\x01\xeb" md = Cs(CS_ARCH_ARM64, CS_MODE_ARM) md.detail = True for insn in md.disasm(CODE, 0x1000): inst.regs_access() # Prints ([219], [4, 218])
As far as I know and looking a the pseudo code for the instruction, the first source operand here x0 shouldn't be modified and reg_access reports it as being written to. I see this behaviour with more instructions like cmn etc..
x0
reg_access
cmn
Work environment
git clone
, brew, pip, release binaries etc.Instruction bytes giving faulty results
Expected results
It should be:
Steps to get the wrong result
With
Python
Additional Logs, screenshots, source code, configuration dump, ...
As far as I know and looking a the pseudo code for the instruction, the first source operand here
x0
shouldn't be modified andreg_access
reports it as being written to. I see this behaviour with more instructions likecmn
etc..