hello.asm 219 B

1234567891011121314
  1. [BITS 32]
  2. section .asm
  3. global _start
  4. _start:
  5. push msg
  6. mov eax, 1
  7. int 0x80
  8. add esp, 4
  9. jmp $
  10. section .data
  11. msg db 'Hello world from a user program!', 0xa, 0 ; db - define bytes, 0xa - code of \n