section .bss znak resb 2 section .text global _start _start: mov eax, 3 mov ebx, 0 mov ecx, znak mov edx, 2 int 80h mov al, [znak] _loop: cmp al, 'k' je _exit cmp al, 'K' jne _start _exit: mov eax, 1 xor ebx, ebx int 80h