C 程序中的 Asm 块在 Visual Studio 2022 中给出错误 C2400

问题描述 投票:0回答:0

我正在编写一个包含一些反反汇编技术的 C 程序,特别是我正在实现这个:

https://unprotect.it/technique/dynamically-computed-target-address/

这是我实现它的尝试:

__asm { 
        mov eax, [%0]
        call eax
        :: r (target) : eax
    }

问题是,当我尝试在 Visual Studio 2022 中编译它时,我收到错误消息:

C2400: syntax error of the inline assembler in 'second operand'. Found 'MOD'.
C2400: syntax error of the inline assembler in 'opcode'. Found ':'.

你知道我该如何解决吗?提前谢谢你。

c assembly inline-assembly
© www.soinside.com 2019 - 2024. All rights reserved.