改成下面这样,运行就没问题---!,怎么回事
.386
.model flat,stdcall
option casemap:none
include
windows.inc
include
user32.inc
include
kernel32.inc
include
masm32.inc
;*****************************************************
includelib
user32.lib
includelib
kernel32.lib
includelib
masm32.lib
;*****************************************************
;数据段
;*****************************************************
.data
szFmt
db
'结果是:%d',0
text
db
10,20,30,40
buffer
db
10 dup(0)
.code
start:
mov
al,text
mov
bl,text+1
mov cl,text+2
mov dl,text+3
add al,bl
add al,cl
add al,dl
invoke
wsprintf,addr buffer,addr szFmt,al
invoke
ClearScreen
invoke
locate,10,10
invoke
StdOut,addr buffer
invoke
StdIn,addr buffer,LENGTHOF buffer
invoke
ExitProcess,NULL
end start