.386 .model flat, stdcall includelib kernel32.lib ExitProcess PROTO ,:DWORD .data arr dd 4,5,-13,3 N=4 res db N dup (0) .code Winmain PROC lea ebx, arr xor edi, edi mov ecx, N lea eax, res cycle: push eax xor eax, eax mov eax, [ebx] push ecx mov ecx, 16 mov cl, 16 cycle1: dec cl sar eax, cl and eax, 1 test eax, 1 jne x inc edi x: loop cycle1 pop ecx pop eax mov [eax], edi add ebx, 4 add eax, 2 loop cycle push 0 call ExitProcess Winmain endp end Winmain