SamboyCoding / Disarm

Fast, pure-C# ARM64 Disassembler
17 stars 4 forks source link

Analysis LDR instruction Error #23

Closed IIIImmmyyy closed 1 month ago

IIIImmmyyy commented 2 months ago

88 06 42 F8 LDR X8, [X20],#0x20 this is in IDA; Disarm is out this instruction to string is right, but when i try to get op1 it's [X20+32] and op2 is NONE , op1 must be [X20] op2 is Immediate

SamboyCoding commented 2 months ago

In this case, Op0Kind would be Register, Op0Reg would be X8, Op1Kind would be Memory, MemBase would be X20, and MemOffset would be 32.

The [X20], #0x20 syntax is just the post-indexed memory access syntax, it's not actually a separate operand.