SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- .intel_syntax noprefix
- .global main
- .text
- _start:
- mov ecx, [esp+8]
- pierwsza:
- xor edx,edx
- mov eax,ecx
- mov bl,[eax]
- cmp bl,0
- je end
- cmp bl,'a'
- je nastepna
- cmp bl,'b'
- je nastepna
- cmp bl,'z'
- je nastepna
- inc ecx
- jmp pierwsza
- nastepna:
- inc edx
- inc eax
- mov bl,[eax]
- cmp bl,0
- je end
- cmp bl,'a'
- je zle
- cmp bl,'b'
- je zle
- cmp bl,'c'
- je czyKoniec
- jmp nastepna
- zle:
- inc ecx
- jmp pierwsza
- czyKoniec:
- cmp edx,1
- jna zle
- print:
- inc edx
- mov eax,4
- mov ebx,1
- int 0x80
- mov eax,4
- mov ebx,1
- mov ecx,offset msg
- mov edx,1
- int 0x80
- end:
- mov eax,1
- mov ebx,0
- int 0x80
- .data
- msg: .asciz "\n"
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.