Work environment
| Questions |
Answers |
| OS/arch/bits |
Windows x64 |
| Architecture |
armv8. |
| Source of Capstone |
git clone, brew, pip, release binaries etc. |
| Version/git commit |
v5.0.1 |
Instruction bytes giving faulty results
Expected results
It should be:
Steps to get the wrong result
With 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])
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 and reg_access reports it as being written to. I see this behaviour with more instructions like cmn etc..
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
PythonAdditional 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
x0shouldn't be modified andreg_accessreports it as being written to. I see this behaviour with more instructions likecmnetc..