继续说invoke伪指令
生活随笔
收集整理的這篇文章主要介紹了
继续说invoke伪指令
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
.data ;數(shù)據(jù)段
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 會把參數(shù)從右向左入棧并調(diào)用CALLinvoke MessageBox,NULL,offset messageS,offset titleS,MB_OK那么這條語句用純匯編寫 如下:
.data ;數(shù)據(jù)段
titleS db 'helloworld',0
messageS db 'hello,welcome to win32',0.code
start:mov eax ,offset titleS mov ebx ,offset messageS push MB_OK ;將參數(shù)依次入棧push eaxpush ebxpush NULLcall MessageBox ;調(diào)用MessageBox函數(shù)invoke ExitProcess,NULLend start
總結(jié)
以上是生活随笔為你收集整理的继续说invoke伪指令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 条件转移指令和无条件转移指令练习
- 下一篇: API函数MessageBox的参数与返