summaryrefslogtreecommitdiff
path: root/loop.asm
blob: fd0ee0e23268341c2de473ddb79e137c623a75ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
global main

extern printf

section .data
	msg db "cheese ", 0

section .text

main:
	sub rsp, 8
.print
	lea rdi, [rel msg]
	call printf wrt ..plt
	jmp .print
	mov eax, 0
	add rsp, 8
	ret