紧急求助如何编写5+3在屏幕输出结果8?
紧急求助如何编写5+3在屏幕输出结果8?
.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
include kernel32.inc
includelib user32.lib
includelib kernel32.lib
.const
@szText db '5+3的和:%d',0
@szCaption db '结果',0
.data?
@szNum db 30 dup(?)
.code
start:
xor eax,eax
xor edx,edx
mov eax,3h
mov edx,5h
add eax,edx
invoke wsprintf,addr @szNum,addr @szText,eax
invoke MessageBox,NULL,addr @szNum,addr @szCaption,MB_OK
invoke ExitProcess,NULL
end start