Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 1.46 KB

notes.md

File metadata and controls

37 lines (34 loc) · 1.46 KB

Resources on ELF:

Assembly:

; tiny.asm
BITS 64
GLOBAL _start
SECTION .bss
str:resb 1
SECTION .text
_start:
        mov     [str], byte 10
        mov     edx,1     ;message length
        mov     ecx,str    ;message to write
        mov     ebx,1       ;file descriptor (stdout)
        mov     eax,4       ;system call number (sys_write)
        int     0x80        ;call kernel
        mov     eax, 1
        mov     ebx, 42
        int     0x80