新建 hello.Asm ,代码:
.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
.data
szText db 'Hello World 你好 码农库',0
.code
start:
invoke MessageBox,NULL,addr szText,addr szText,MB_OK
invoke ExitProcess,NULL
end start
可以运行在Win10(64位)中,弹出窗口显示。