From 8da7e5072a20b4aa117986e2fddb9b95ee43bda9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Fri, 19 Nov 2004 18:57:45 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20correction=20d'un=20bogue=20dans=20cmpna?= =?UTF-8?q?mes=20:=20derniere=20caract=C3=A8re=20du=20nom=20ignor=C3=A9=20?= =?UTF-8?q?pendant=20la=20comparaison=20et=20extension=20de=20taille=20cor?= =?UTF-8?q?rectione?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noyau/disque.asm | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/noyau/disque.asm b/noyau/disque.asm index 27e8746..34f449d 100644 --- a/noyau/disque.asm +++ b/noyau/disque.asm @@ -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: