当我将“调试”设置为“x86”时,以下代码有效
.386
.model flat, stdcall
.stack 4096
ExitProcess PROTO, dwExitCode: DWORD
.data
; define your variables here
.code
main PROC
; write your assembly code herer
mov eax ,3
mov ebx ,8
add eax, ebx
INVOKE ExitProcess ,0
main ENDP
END main
Run Code Online (Sandbox Code Playgroud)
如果我尝试像 rax 一样使用“64位”寄存器,它也会失败