From: Joan C. <j04...@gm...> - 2017-09-13 13:07:28
|
Hey, I came on this in Capstone (CS_ARCH_ARM, CS_MODE_THUMB, base address=0): 00 A0 = adr r0, #0 Shouldn't it be "adr r0, _#4_",as the code is mapped at address 0 (due to PC read value being instruction address + 4 in Thumb mode) ?* * (or alternatively add r0, pc, #0 ?) I understand that disassembler like llvm-mc only show the "raw" disassembled instruction, but isn't Capstone suppose to do the PC increment from the instruction address? Thanks! Joan |