Created
May 25, 2016 08:12
-
-
Save an0th3rhuman/6c609e8f7668604359d7f0ad21b4149f to your computer and use it in GitHub Desktop.
first program on assembly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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