.386
.model flat, c
.stack 100 h
.data
num1 sdword ?
num2 sdword ?
.code
main proc
mov num1,5
mov eax,num1
mov num2,eax
ret
main endp
end
我已经在项目的构建定制中检查了masm。
我已将项目类型更改为Microsoft Macro Assembler。
但是,它仍然显示以下错误消息:
Severity Code Description Project File Line Suppression State
Error A2206 missing operator in expression testing C:\Users\Kin\Desktop\assembly\testing\testing\Source.asm 3
Error A2206 missing operator in expression testing C:\Users\Kin\Desktop\assembly\testing\testing\Source.asm 2
Error MSB3721 The command "ml.exe /c /nologo /Zi /Fo"Debug\Source.obj" /W3 /errorReport:prompt /TaSource.asm" exited with code 1. testing H:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\masm.targets 50
更改为.stack 100h 它现在显示:
Severity Code Description Project File Line Suppression State
Error LNK1120 1 unresolved externals testing C:\Users\Kin\Desktop\assembly\testing\Debug\testing.exe 1
Error LNK2001 unresolved external symbol _WinMainCRTStartup testing C:\Users\Kin\Desktop\assembly\testing\testing\LINK 1