从MASM32.com下载MASM SDK,装在C盘(D盘可能会报错)
配置过程
.386 ; Tells MASM to use Intel 80386 instruction set.
.model flat,stdcall ; Flat memory model
option casemap:none ; Treat labels as case-sensitive
include C:masm32includewindows.inc
include C:masm32includekernel32.inc
includelib C:masm32libkernel32.lib
include C:masm32includeuser32.inc
includelib C:masm32libuser32.lib
.data ; Begin initialized data segment
MsgBoxCaption db "Win32 Assembly Programming",0
MsgBoxText db "Hello World!!!Welcome to ASM Programming under CLR",0
.code ; Beginning of code
start: ; Entry point of the code
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption, MB_OK
invoke ExitProcess, NULL
end start
效果如下:
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.fwqtg.net
相关推荐: error: cannot mount filesystem: input/output error
虚拟机出现诸如: error: cannot mount filesystem: input/output error “Error: cannot mount filesystem: Protocol error …