.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
a dw 61H
b db '提示',0
.code
start:
;设置循环次数
mov ecx,5
sss:
push ecx
;弹窗依次显示a,b,c,d,e
push 0
lea eax,b
lea ebx,a
push eax
push ebx
push 0
call MessageBox
;对变量+1
lea eax,a
mov ebx,[eax]
add ebx,1
mov [eax],ebx
;判断循环次数
pop ecx
sub ecx,1
jnz sss
push 0
call ExitProcess
end start