mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-23 23:26:49 +03:00
16 lines
241 B
NASM
16 lines
241 B
NASM
|
format MS COFF
|
||
|
section '.text' code readable executable
|
||
|
public _memcmp
|
||
|
_memcmp:
|
||
|
push esi edi
|
||
|
mov esi, [esp+12]
|
||
|
mov edi, [esp+16]
|
||
|
mov ecx, [esp+20]
|
||
|
repz cmpsb
|
||
|
pop edi esi
|
||
|
setb ah
|
||
|
seta al
|
||
|
sub al, ah
|
||
|
movsx eax, al
|
||
|
ret
|