MASM编译下边invoke 会把参数从右向左入栈并调用CALLinvoke MessageBox,NULL,offset messageS,offset titleS,MB_OK那么这条语句用纯汇编写 如下:.data ;数据段 titleS db 'helloworld',0 messageS db 'hello,welcome to win32',0.code ;代码段 start: invoke MessageBox,NULL,offset messageS,offset titleS,MB_OK invoke ExitProcess,NULL end start
.data ;数据段 titleS db 'helloworld',0 messageS db 'hello,welcome to win32',0.code start:mov eax ,offset titleS mov ebx ,offset messageS push MB_OK ;将参数依次入栈push eaxpush ebxpush NULLcall MessageBox ;调用MessageBox函数invoke ExitProcess,NULLend start