morlac
February 9th, 2001, 09:32
Im trying to figure what type of a CRC this is code generate with no luck, assuming that its a CRC function:
--------------------------------------
push esi
mov edx, [esp+arg_0]
sub ax, ax
mov ecx, [esp+arg_4]
cmp ecx, edx
jbe short exit
loop:
mov si, ax
shr si, 0Fh
add ax, ax
or si, ax
mov al, [edx]
and eax, 0FFFF00FFh
add ax, si
inc edx
cmp ecx, edx
ja short loop
exit:
pop esi
retn 8
--------------------------------------
Can anybody help?
Best regards,
Morlac
--------------------------------------
push esi
mov edx, [esp+arg_0]
sub ax, ax
mov ecx, [esp+arg_4]
cmp ecx, edx
jbe short exit
loop:
mov si, ax
shr si, 0Fh
add ax, ax
or si, ax
mov al, [edx]
and eax, 0FFFF00FFh
add ax, si
inc edx
cmp ecx, edx
ja short loop
exit:
pop esi
retn 8
--------------------------------------
Can anybody help?
Best regards,
Morlac