masm32,API函数编程显示hello?
.686 .model flat,stdcall

option casemap:none
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
ExitProcess proto,:DWORD
MessageBoxA PROTO:DWORD,:DWORD,:DWORD,:DWORD
MessageBox equ <MessageBoxA>
NULL equ 0
MB_OK equ 0
.data
szCaption byte '消息窗口',0
outbuffer byte 'hello world!',12 dup (0),0
outbufsize = sizeof outbuffer-1
.code
start:
mov eax,0
invoke MessageBox,NULL,addr outbuffer,addr szCaption,MB_OK
invoke ExitProcess,NULL
end start

还没有评论,来说两句吧...