capstone icon indicating copy to clipboard operation
capstone copied to clipboard

Fix x86.operands[2].access as CS_OPT_SYNTAX_ATT

Open bezita opened this issue 5 months ago • 1 comments

before fixed:


Platform: X86 32 (Intel syntax) Code: 0x0f 0xad 0xd0 Disasm: 0x1000: shrd eax, edx, cl Prefix: 0x00 0x00 0x00 0x00 Opcode: 0x0f 0xad 0x00 0x00 rex: 0x0 addr_size: 4 modrm: 0xd0 modrm_offset: 0x2 disp: 0x0 sib: 0x0 op_count: 3 operands[0].type: REG = eax operands[0].size: 4 operands[0].access: READ | WRITE

            operands[1].type: REG = edx
            operands[1].size: 4
            operands[1].access: READ

            operands[2].type: REG = cl
            operands[2].size: 1
    Registers read: cl eax edx
    Registers modified: eflags eax
    EFLAGS: MOD_CF,MOD_SF,MOD_ZF,MOD_PF,UNDEF_OF,UNDEF_AF

0x1003:


Platform: X86 32 (AT&T syntax) Code: 0x0f 0xad 0xd0 Disasm: 0x1000: shrdl %cl, %edx, %eax Prefix: 0x00 0x00 0x00 0x00 Opcode: 0x0f 0xad 0x00 0x00 rex: 0x0 addr_size: 4 modrm: 0xd0 modrm_offset: 0x2 disp: 0x0 sib: 0x0 op_count: 3 operands[0].type: REG = cl operands[0].size: 1 operands[0].access: READ

            operands[1].type: REG = edx
            operands[1].size: 4
            operands[1].access: READ

            operands[2].type: REG = eax
            operands[2].size: 4
            operands[2].access: READ

    Registers read: cl edx eax
    Registers modified: eflags
    EFLAGS: MOD_CF,MOD_SF,MOD_ZF,MOD_PF,UNDEF_OF,UNDEF_AF

after fixed:


Platform: X86 32 (AT&T syntax) Code: 0x0f 0xad 0xd0 Disasm: 0x1000: shrdl %cl, %edx, %eax Prefix: 0x00 0x00 0x00 0x00 Opcode: 0x0f 0xad 0x00 0x00 rex: 0x0 addr_size: 4 modrm: 0xd0 modrm_offset: 0x2 disp: 0x0 sib: 0x0 op_count: 3 operands[0].type: REG = cl operands[0].size: 1 operands[0].access: READ

            operands[1].type: REG = edx
            operands[1].size: 4
            operands[1].access: READ

            operands[2].type: REG = eax
            operands[2].size: 4
            operands[2].access: READ | WRITE

    Registers read: cl edx eax
    Registers modified: eflags eax
    EFLAGS: MOD_CF,MOD_SF,MOD_ZF,MOD_PF,UNDEF_OF,UNDEF_AF

bezita avatar Sep 15 '24 04:09 bezita