小编ran*_*rot的帖子

编译后 64 位 Hello world 冻结

程序编译,但启动后冻结。如果替换格式并包含 32 位版本或注释掉 MessageBox,则一切正常。

format PE64 GUI

include 'E:\Fresh\include\win64a.inc'

entry start

section '.data' data readable writeable

        text db 'Hello world!',0

section '.text' code readable executable
start:
        invoke MessageBox,0,text,text,0
        invoke ExitProcess,0

section '.idata' import data readable writeable

        library kernel32,'KERNEL32.DLL', user32, 'USER32.DLL'
        import kernel32, ExitProcess, 'ExitProcess'
        import user32, MessageBox, 'MessageBoxA'  
Run Code Online (Sandbox Code Playgroud)

x86-64 fasm

1
推荐指数
1
解决办法
48
查看次数

标签 统计

fasm ×1

x86-64 ×1