Remove Ads

Share on Facebook Share on Twitter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] MASM Hello World
#7
another way in masm is to call the api, for future reference.

[code].386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib

.data
MsgBoxCaption db "codershed.us",0
MsgBoxText db "Hello World",0

.code
start:
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption, MB_OK
invoke ExitProcess, NULL
end start [/code]

i am learning myself..
Reply


Messages In This Thread
[Tutorial] MASM Hello World - by Hidden Dragon - 01-15-201107:32 PM
RE: [Tutorial] MASM Hello World - by Ethereal - 01-15-201107:34 PM
RE: [Tutorial] MASM Hello World - by Ironside - 01-15-201107:34 PM
RE: [Tutorial] MASM Hello World - by Ironside - 01-15-201107:45 PM
RE: [Tutorial] MASM Hello World - by codershed - 07-28-201112:24 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)