Skip to content

Instantly share code, notes, and snippets.

@sivaramaaa
Created April 28, 2016 16:09
Show Gist options
  • Save sivaramaaa/8ec834b583ccaf443d8cdefc58aa6d3d to your computer and use it in GitHub Desktop.
Save sivaramaaa/8ec834b583ccaf443d8cdefc58aa6d3d to your computer and use it in GitHub Desktop.
Hello world in ASM
extern printf
section .data
msg : db "Welcome to low level assembly language x86",10,0
section .text
global main
main:
push ebp ; crearing stack frame
mov ebp,esp
push msg
call printf
mov esp,ebp ; destrouing stack frame
pop ebp
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment