汇编语言MessageBox提示对话框不知为什么出现循环
.386 .model flat,stdcall option casemap:none include <windows.inc> include <user32.inc> include <kernel32.inc> includelib user32.lib includelib kernel32.lib custom proto .data szTitle db "说什么呢",0 szBuffer db "不说了吧",0 .code start: custom proc invoke MessageBox,NULL,offset szTitle,offset szBuffer,0 custom endp invoke custom invoke ExitProcess,0 end start
start: custom proc invoke MessageBox,NULL,offset szTitle,offset szBuffer,0 custom endp invoke custom invoke ExitProcess,0 end start
当然会死循环了,因为custom定义后面就是invoke,invoke使用程序又执行到customp定义,这样就无限死循环了
在custom endp前面加个ret就不会死循环了
|