Advertisement
udaykumar1997

myFirstAsmProg

Feb 21st, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. SECTION .data
  2.  
  3. EatMsg db "Eat at Joe's!$"
  4. EatLen equ $-EatMsg
  5.  
  6. SECTION .bss
  7.  
  8. SECTION .text
  9.  
  10. global _start
  11.  
  12. _start:
  13. nop
  14.  
  15. mov ah,7
  16. mov al,5
  17. ;mov eah,6
  18. ;mov eal,3
  19. ;mov rah,2
  20. ;mov ral,1
  21.  
  22. mov eax,4
  23. mov ebx,1
  24. mov ecx,EatMsg
  25. mov edx,EatLen
  26. int 80H
  27.  
  28. mov eax,1
  29. mov ebx,0
  30. int 80H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement