kolibrios/programs/games/fara/trunk/memcmp.asm
CleverMouse cd74d1af33 switch build system to Tup
git-svn-id: svn://kolibrios.org@5098 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-09-12 15:15:23 +00:00

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