Advertisement
Slonser

Untitled

Jul 1st, 2020
798
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .data
  2.     msg db 'Hi!'
  3.     lenUserMsg equ $-msg  
  4.     input db 'You input :'
  5.     leninput equ $-input  
  6. section .bss
  7.     num resb 5  
  8. section .text
  9.     global _start
  10.  
  11. _start:            
  12.     mov eax,4
  13.     mov ebx,1
  14.     mov ecx,msg
  15.     mov edx,lenUserMsg
  16.     int 80h
  17.  
  18.     mov eax,3
  19.     mov ebx,2
  20.     mov ecx,num
  21.     mov edx, 5        
  22.     int 80h
  23.  
  24.     mov eax,4
  25.     mov ebx,1
  26.     mov ecx,input
  27.     mov edx,leninput
  28.     int 80h
  29.  
  30.     mov eax,4
  31.     mov ebx,1
  32.     mov ecx,num
  33.     mov edx,5
  34.     int 80h
  35.  
  36.     mov eax,1
  37.     mov ebx,0
  38.     int 80h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement