Created
October 27, 2016 03:39
-
-
Save bananaappletw/013c0df5f8a675fa4a5de9931d6bee55 to your computer and use it in GitHub Desktop.
Bamboofox club lecture
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
section .text | |
global _start ;must be declared for linker (ld) | |
_start: ;tell linker entry point | |
;You are going to practice system call | |
;What you should do? | |
;put system call number in %eax | |
;put fd number in %ebx | |
;put string address in %ecx | |
;put string length in %edx | |
;interrupt | |
section .data | |
msg db 'Hello, world!',0xa ;our dear string | |
len equ $ - msg ;length of our dear string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment