summaryrefslogtreecommitdiff
path: root/main.s
blob: 7bc2b73ff8db308523fc89953173ee33f82bc2be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.include "sys.s"

.globl _start
_start:
	movq %rsp, %rbp

	pushq $-1024
	pushq $-1024
	pushq $msg
	pushq $fmt
	call printf

	sys exit, $0

.data
fmt:	.asciz "%s and %d and %u\n"
msg:	.asciz "Hello, World"
bye:	.asciz "bye!"