spaghetti.asm 345 B

123456789101112131415161718192021222324252627282930
  1. section .bss
  2. st resb 6 ; 6 byte for death
  3. section .data
  4. n dw 0;
  5. section .text
  6. global _start
  7. _start:
  8. mov [st+5], byte 0xa
  9. mov [st+4], byte 0x68
  10. mov [st+3], byte 0x74
  11. mov [st+2], byte 0x61
  12. mov [st+1], byte 0x65
  13. mov [st+0], byte 0x44
  14. mov eax, 4
  15. mov ebx, 1
  16. mov ecx, st
  17. mov edx, 6
  18. int 0x80
  19. mov eax, 1
  20. mov ebx, 0
  21. int 0x80