# _nanosleep.s - using system calls
.section .data
timespec:
.int 5, 0
output:
.ascii "TEST SUCCESSFUL\n"
output_end:
.equ len, output_end - output
.section .bss
.lcomm rem, 16
.section .text
.globl _start
_start:
nop
movq $15, %rcx
loop1:
pushq %rcx
movq $4, %rax # WRITE sys.call
movq $1, %rbx # STDOUT sys.call 
movq $output, %rcx
movq $len, %rdx
int $0x80
movq $162, %rax
movq $timespec, %rbx
movq $rem, %rcx
int $0x80
popq %rcx
loop loop1
movq $1, %rax
movq $0, %rbx
int $0x80

