repe cmpsb trashes di, not just si
authorhpa <hpa>
Thu, 16 Dec 2004 08:08:24 +0000 (08:08 +0000)
committerhpa <hpa>
Thu, 16 Dec 2004 08:08:24 +0000 (08:08 +0000)
ldlinux.asm

index 4ab0921..d00f97b 100644 (file)
@@ -1122,8 +1122,10 @@ searchdir:
                jz .failure                     ; Hit directory high water mark
                push cx
                push si
+               push di
                mov cx,11
                gs repe cmpsb
+               pop di
                pop si
                pop cx
                jz .found