# screen.s 
.section .data
testdata:
.ascii "SUCCESSFUL TEST\n"
datasize:
.int 16  # 15+1 characters
.section .text
.type screen, @function # not necessary same name of the program
.globl screen
screen:
_start:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq $4, %rax  # 4 = write()
movq $1, %rbx  # 1 = descriptor: OUTPUT in the screen
movq $testdata, %rcx
movq $datasize, %rdx
int $0x80
popq %rbx
movq %rbp, %rsp
popq %rbp
ret


