Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SECTION .data
- hello: DB 'Polden proshel?(y/n)', 10
- helloLen: EQU $-hello
- answ1: DB 'Dobroe Ytro', 10
- answ1Len: EQU $-answ1
- answ2: DB 'Dobrii Den', 10
- answ2Len: EQU $-answ2
- SECTION .bss
- buf1: RESB 80
- SECTION .text
- GLOBAL _start
- _start:
- mov eax, 4
- mov ebx, 1
- mov ecx, hello
- mov edx, helloLen
- int 80h
- mov eax, 3
- mov ebx, 0
- mov ecx, buf1
- mov edx, 80
- int 80h
- mov eax, 4
- mov ebx, 1
- mov ecx, answ1
- mov edx, answ1Len
- int 80h
- mov eax, 4
- mov ebx, 1
- mov ecx, answ2
- mov edx, answ2Len
- int 80h
- mov eax, 1
- mov ebx, 0
- int 80h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement