global _start
section .data
; ascii stuff
result db 0x33, 0x30, 10
section .text
_start:
; adds 20 plus 10 to the cpu registers
mov rax, 20
mov rbx, 10
add rax, rbx
; safely attaches result and calculates strings
mov rax, 1
mov rdi, 1
mov rsi, result
mov rdx, 3
syscall
; exits safely using sys exit
mov rax, 60
xor rdi, rdi
syscall