mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-23 22:04:33 +02:00
%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
This commit is contained in:
parent
a21bcd8a85
commit
479e6fb0eb
@ -427,13 +427,17 @@ FSTRCMP:
|
|||||||
; and the destination pointer, d
|
; and the destination pointer, d
|
||||||
les di,[bp+8]
|
les di,[bp+8]
|
||||||
|
|
||||||
|
mov bl,8
|
||||||
|
|
||||||
|
%if 0
|
||||||
jmp short dostrcmp
|
jmp short dostrcmp
|
||||||
|
|
||||||
;******
|
;******
|
||||||
global _strcmp
|
global STRCMP
|
||||||
_strcmp:
|
STRCMP:
|
||||||
call pascal_setup
|
call pascal_setup
|
||||||
|
|
||||||
|
mov bl,4
|
||||||
|
|
||||||
; Get the source pointer, ss
|
; Get the source pointer, ss
|
||||||
; mov si,[bp+4]
|
; mov si,[bp+4]
|
||||||
@ -443,9 +447,11 @@ _strcmp:
|
|||||||
xchg si,di
|
xchg si,di
|
||||||
|
|
||||||
dostrcmp:
|
dostrcmp:
|
||||||
|
%endif
|
||||||
; replace strncmp(s1,s2)-->
|
; replace strncmp(s1,s2)-->
|
||||||
; strncmp(s1,s2,0xffff)
|
; strncmp(s1,s2,0xffff)
|
||||||
mov cx,0xffff
|
mov cx,0xffff
|
||||||
|
%if 0
|
||||||
jmp short dostrncmp
|
jmp short dostrncmp
|
||||||
|
|
||||||
|
|
||||||
@ -460,6 +466,7 @@ FSTRNCMP:
|
|||||||
; and the destination pointer, d
|
; and the destination pointer, d
|
||||||
les di,[bp+8]
|
les di,[bp+8]
|
||||||
mov cx,[bp+12]
|
mov cx,[bp+12]
|
||||||
|
mov bl,10
|
||||||
|
|
||||||
jmp short dostrncmp
|
jmp short dostrncmp
|
||||||
|
|
||||||
@ -477,6 +484,7 @@ _strncmp:
|
|||||||
xchg si,di
|
xchg si,di
|
||||||
|
|
||||||
dostrncmp:
|
dostrncmp:
|
||||||
|
%endif
|
||||||
jcxz strncmp_retzero
|
jcxz strncmp_retzero
|
||||||
|
|
||||||
strncmp_loop:
|
strncmp_loop:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user