Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. SECTION .data ; Section containing initialized data
  2. EatMsg: db "Eat at Joe's!",10
  3. EatLen: equ $-EatMsg
  4. SECTION .bss ; Section containing uninitialized data
  5. SECTION .text ; Section containing code
  6. global start ; Linker needs this to find the entry point!
  7. start:
  8. nop ; This no-op keeps gdb happy...
  9. mov eax,4 ; Specify sys_write call
  10. mov ebx,1 ; Specify File Descriptor 1: Standard Output
  11. mov ecx,EatMsg ; Pass offset of the message
  12. mov edx,EatLen ; Pass the length of the message
  13. int 80H ; Make kernel call
  14. mov eax,1 ; Code for Exit Syscall
  15. mov ebx,0 ; Return a code of zero
  16. int 80H ; Make kernel call
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement