Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Section .text
  2. Global _start
  3. Section .data
  4. msg db 'Hello World',0xa
  5. msgtwo db 'Two Hello World',0xa
  6. trial db 'Testing multiple print',0xa
  7. msglen equ $-msg
  8. msgtwolen equ $-msgtwo
  9. triallen equ $-trial
  10. section .text
  11. _start:
  12. mov edx, msglen
  13. mov ecx, msg
  14. mov ebx, 1
  15. mov eax, 4 ; Syscall for printing
  16. int 0x80
  17.  
  18. mov edx, msgtwolen
  19. mov ecx, msgtwo ;Bulk of printing
  20. mov ecx, trial
  21. mov edx, triallen
  22.  
  23. mov ebx, 0 ; Exiting syscall
  24. mov eax, 1
  25. int 0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement