首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 汇编语言 >

call后面接字符串解决办法

2012-02-17 
call后面接字符串Assembly codeincludeuser32.incincludelib user32.libincludekernel32.incincludelib ke

call后面接字符串

Assembly code
    include    user32.inc    includelib user32.lib    include    kernel32.inc    includelib kernel32.lib        .data    szTitle        db    'title',0    szText        db    'my name is',0            .code        start:        call    loc1    db    'hey man',0    invoke    MessageBox, NULL, addr szTitle, addr szText, MB_OK  ;不会到这一句,为什么?    loc1:        pop    esi    push    esi    invoke    MessageBox, NULL, esi, esi, MB_OK    ret        end start


call完loc1就不会向下运行了,程序又如何结束? 


[解决办法]
探讨
Assembly code
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
szTitle db 'title',0
szText ……

[解决办法]
探讨
引用:
Assembly code
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
szTitle db 'title',0
szText ……

这个技巧有许多变种,举例仅供参考:

Assembly co……

热点排行