Skip to content

Instantly share code, notes, and snippets.

@an0th3rhuman
Created May 25, 2016 08:12
Show Gist options
  • Save an0th3rhuman/6c609e8f7668604359d7f0ad21b4149f to your computer and use it in GitHub Desktop.
Save an0th3rhuman/6c609e8f7668604359d7f0ad21b4149f to your computer and use it in GitHub Desktop.
first program on assembly
extern printf
section .data
msg : db "Hey there!Welcome to my first ASM program",10,0
section .text
global main
main:
push ebp
mov ebp,esp
push msg
call printf
mov esp,ebp
pop ebp
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment