Advertisement
Guest User

Untitled

a guest
Oct 28th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SECTION .data
  2. hello: DB 'Polden proshel?(y/n)', 10
  3. helloLen: EQU $-hello
  4. answ1: DB 'Dobroe Ytro', 10
  5. answ1Len: EQU $-answ1
  6. answ2: DB 'Dobrii Den', 10
  7. answ2Len: EQU $-answ2
  8.  
  9.  
  10. SECTION .bss
  11. buf1:       RESB 80
  12.  
  13. SECTION .text
  14.     GLOBAL _start
  15.  
  16. _start:
  17.    
  18.     mov eax, 4
  19.     mov ebx, 1
  20.     mov ecx, hello
  21.     mov edx, helloLen
  22.  
  23.     int 80h
  24.  
  25.     mov eax, 3
  26.     mov ebx, 0
  27.     mov ecx, buf1
  28.     mov edx, 80
  29.  
  30.     int 80h
  31.  
  32.  
  33.  
  34.     mov eax, 4
  35.     mov ebx, 1
  36.     mov ecx, answ1
  37.     mov edx, answ1Len
  38.  
  39.     int 80h
  40.    
  41.     mov eax, 4
  42.     mov ebx, 1
  43.     mov ecx, answ2
  44.     mov edx, answ2Len
  45.  
  46.     int 80h
  47.  
  48.     mov eax, 1
  49.     mov ebx, 0
  50.     int 80h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement