aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/qemu-src/test.s
blob: 562b2ec188fa69a46a38a09868e6cf8eeb0fef5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.section .text, "ax"

.global _start
_start:
    xor %rax, %rax
    mov $0x8, %rax
1:
    cmp $0, %rax
    je 2f
    dec %rax
    jmp 1b
2:
    # x86-64 exit(2) syscall
    mov $0, %rdi
    mov $60, %rax
    syscall