如果它与大小有关,我认为DWORD应该进入32位寄存器。 错误是:c:\ Irvine \ SmallWin.inc(11):错误A2071:初始化程序幅度对于指定大小而言太大
.386
.model flat,stdcall
.stack 4096
ExitProcess proto,dwExitCode:dword
INCLUDE Irvine32.inc
.data
valA DWORD 12
valB DWORD 10
valC DWORD 12
valD DWORD 10
.code
main proc
mov eax,valA
mov ebx,valB
mov ecx,valC
mov edx,valD
sub eax,ebx
sub ecx,edx
add eax,ecx
mov valA, eax
call WriteInt
invoke ExitProcess,0
main endp
end main