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 repe cmpsb
jne nequal jne nequal
inc si inc si
jmp equal
nequal: nequal:
cmp byte ptr es:[di-1],' '
jne notequal
equal:
cmp byte ptr [si-1],'.' cmp byte ptr [si-1],'.'
jne trynoext jne trynoext
mov al,' ' mov al,' '
rep scasb rep scasb
mov cx,3 mov cx,3
rep cmpsb rep cmpsb
jne notequal jne nequal2
cmp byte ptr [si],0 inc si
jne notequal jmp equal2
cmp cx,0 nequal2:
jl notequal cmp byte ptr es:[di-1],' '
jne notequal
equal2:
cmp byte ptr [si-1],0
jne notequal
itok: itok:
clc
pop di si cx ax
ret
notequal:
stc
pop di si cx ax pop di si cx ax
ret ret
trynoext: trynoext:
cmp byte ptr [si-1],0 cmp byte ptr [si-1],0
jne notequal jne notequal
jmp itok jmp itok
notequal:
stc
pop di si cx ax
ret
;charge le fichier de de groupe CX et de taille eax ;charge le fichier de de groupe CX et de taille eax
LoadWay: LoadWay: