aboutsummaryrefslogtreecommitdiff
path: root/tests/asm/yay.asm
blob: beffcb6fd003faaca822e77852132dc1fbff102c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
section .data

msg: db "yay", 10
len: equ $-msg

section .text
global main
main:
	mov rax, 1
	mov rdi, 1
	mov esi, msg
	mov rdx, len
	syscall

	mov rax, 60
	mov rdi, 0
	syscall