Created
April 28, 2016 16:09
-
-
Save sivaramaaa/8ec834b583ccaf443d8cdefc58aa6d3d to your computer and use it in GitHub Desktop.
Hello world in ASM
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 "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