Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
global _start
add edx, 1
cmp byte [msg + edx], 0
jne _start
mov eax, 4 ; sys_write
mov ebx, 1 ; to stdout
mov ecx, msg
; edx already contains number of bytes
int 0x80
mov eax, 1 ; sys_exit
xor ebx, ebx ; with 0
int 0x80
section .data
msg: db "Hello, world!", 0xA, 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment