From 479e6fb0ebf14e84d6107cb469c8ab58367f2514 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Wed, 10 Jun 2009 21:02:52 +0000 Subject: [PATCH] %if 0 unused asm functions and fix a stack return problem with fstrcmp. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1434 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/asmsupt.asm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/kernel/asmsupt.asm b/kernel/asmsupt.asm index ab53290..28a5c83 100644 --- a/kernel/asmsupt.asm +++ b/kernel/asmsupt.asm @@ -427,13 +427,17 @@ FSTRCMP: ; and the destination pointer, d les di,[bp+8] + mov bl,8 + +%if 0 jmp short dostrcmp ;****** - global _strcmp -_strcmp: + global STRCMP +STRCMP: call pascal_setup + mov bl,4 ; Get the source pointer, ss ; mov si,[bp+4] @@ -443,9 +447,11 @@ _strcmp: xchg si,di dostrcmp: +%endif ; replace strncmp(s1,s2)--> ; strncmp(s1,s2,0xffff) mov cx,0xffff +%if 0 jmp short dostrncmp @@ -460,6 +466,7 @@ FSTRNCMP: ; and the destination pointer, d les di,[bp+8] mov cx,[bp+12] + mov bl,10 jmp short dostrncmp @@ -477,6 +484,7 @@ _strncmp: xchg si,di dostrncmp: +%endif jcxz strncmp_retzero strncmp_loop: