Skip to content

Instantly share code, notes, and snippets.

@kuoyliu
kuoyliu / practice.asm
Created December 17, 2016 14:04 — forked from bananaappletw/practice.asm
Bamboofox club lecture
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