SHARE
TWEET

Untitled

a guest Apr 18th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top