Skip to content

Instantly share code, notes, and snippets.

@macostag
Created November 13, 2017 01:54
Show Gist options
  • Save macostag/436858598187310dd4674614483fe9bd to your computer and use it in GitHub Desktop.
Save macostag/436858598187310dd4674614483fe9bd to your computer and use it in GitHub Desktop.
"Hello World" assembly program.
.386
.model flat, stdcall
option casemap :none
extrn MessageBoxA@16 : PROC
extrn ExitProcess@4 : PROC
.data
HelloW db "Hello World!!!",0
TitleH db "MessageBox",0
.code
start:
mov eax,0
push eax
lea ebx, TitleH
push ebx
lea ebx, HelloW
push ebx
push eax
call MessageBoxA@16
push eax
call ExitProcess@4
end start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment