fix: correction d'un bogue dans cmpnames : derniere caractère du nom ignoré pendant la comparaison et extension de taille correctione

This commit is contained in:
Nicolas Hordé 2004-11-19 18:57:45 +00:00
parent cea1463506
commit 8da7e5072a
1 changed files with 18 additions and 9 deletions

View File

@ -337,29 +337,38 @@ CmpNames:
repe cmpsb
jne nequal
inc si
jmp equal
nequal:
cmp byte ptr es:[di-1],' '
jne notequal
equal:
cmp byte ptr [si-1],'.'
jne trynoext
mov al,' '
rep scasb
mov cx,3
rep cmpsb
jne notequal
cmp byte ptr [si],0
jne notequal
cmp cx,0
jl notequal
jne nequal2
inc si
jmp equal2
nequal2:
cmp byte ptr es:[di-1],' '
jne notequal
equal2:
cmp byte ptr [si-1],0
jne notequal
itok:
clc
pop di si cx ax
ret
notequal:
stc
pop di si cx ax
ret
trynoext:
cmp byte ptr [si-1],0
jne notequal
jmp itok
notequal:
stc
pop di si cx ax
ret
;charge le fichier de de groupe CX et de taille eax
LoadWay: