count dd 11
b db 11 dup (0)
codeseg
begin:
mov ecx, [count]
mov eax, 0;
mov edx, 0 ;
fori:
mov bl, [a+eax]
mov bh, bl
and bl, (1 shl 0) or (1 shl 4) or (1 shl 1) or (1 shl 3) or (1 shl 7)
xor bl, (1 shl 0) or (1 shl 4)
jnz short next
mov [b+edx], bl
inc edx
next:
inc eax
loop fori
call ExitProcess
end begin
.
3. .

, . :
;
c11 db 11010110b
c12 db 10000110b
;
c21 db 01101100b
c22 db 01001000b
;
c31 db 00000111b
c32 db 00000101b

x db 10101010b
RES 0 1 .
RES db ?
;
mov RES, 1;
mov al, [x]
and al, [c11]
xor al, [c12]
jz short true
;
mov al, [x]
and al, [c21]
xor al, [c22]
jz short true
;
mov al, [x]
and al, [c31]
xor al, [c32]
jz short true
mov [RES], 0
true: