Hardware Reference
In-Depth Information
Figure 5.4 The assembly language source code is entered using MASM32's
integrated editor and Console Assemble and Link is used to automatically
produce an executable program
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.data
MsgCaption
db "Warning",0
MsgBoxText
db "Check feed hopper is empty!",0
.code
start:
invoke MessageBox, NULL,addr MsgBoxText, addr MsgCaption,
MB_OK
invoke ExitProcess,NULL
end start
The macro that handles the production of the message box in the previous
example is as follows:
MsgBox MACRO handl, TxtMsg, TxtTitle, styl
LOCAL Msg1
LOCAL Titl
Search WWH ::




Custom Search