fork download
  1. global _start
  2. section .data
  3. ; ascii stuff
  4. result db 0x33, 0x30, 10
  5. section .text
  6. _start:
  7. ; adds 20 plus 10 to the cpu registers
  8. mov rax, 20
  9. mov rbx, 10
  10. add rax, rbx
  11. ; safely attaches result and calculates strings
  12. mov rax, 1
  13. mov rdi, 1
  14. mov rsi, result
  15. mov rdx, 3
  16. syscall
  17. ; exits safely using sys exit
  18. mov rax, 60
  19. xor rdi, rdi
  20. syscall
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
30