Created
August 17, 2016 05:41
-
-
Save alanduan/29a50bbc1ffb766c345dffcf81d0039c to your computer and use it in GitHub Desktop.
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
; yasm -o %:r.o % -f elf32 -g stabs | |
; ld -m elf_i386 %:r.o -o %:r -lc --dynamic-linker /lib/ld-linux.so.2 | |
section .text | |
msg db "hello world!",10,0 | |
extern puts | |
extern exit | |
global _start | |
_start: | |
push msg | |
call puts | |
push 0 | |
call exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment