|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
代码如下:.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
szCaption db 'MESSAGE !',0
szText1 db 'do you love me ?',0
szText2 db 'yes,i love you too !',0
szText3 db 'whatever i do love you !',0
szText4 db 'flying !',0
.code
start:
invoke MessageBox,NULL,offest szText1,offest szCaption,MB_YESNO
mov ebx,eax
.if IDYES==ebx
invoke MessageBox,NULL,offest szText2,offest szCaption,MB_OK
.elseif invoke MessageBox,NULL,offest szText1,offest szCaption,MB_YESNO
.if IDYES==eax
invoke MessageBox,NULL,offest szText2,offest szCaption,MB_YESNO
.else
invoke MessageBox,NULL,offest szText3,offest szCaption,MB_YESNO
.endif
.else
invoke MessageBox,NULL,offest szText4,offest szCaption,MB_YESNO
.endif
end start
|
|