继续说invoke伪指令
生活随笔
收集整理的这篇文章主要介绍了
继续说invoke伪指令
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
.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
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:mov eax ,offset titleS mov ebx ,offset messageS push MB_OK ;将参数依次入栈push eaxpush ebxpush NULLcall MessageBox ;调用MessageBox函数invoke ExitProcess,NULLend start
总结
以上是生活随笔为你收集整理的继续说invoke伪指令的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 条件转移指令和无条件转移指令练习
- 下一篇: API函数MessageBox的参数与返