Cluster -> Sector conversion has to add the DataArea offset
authorhpa <hpa>
Thu, 16 Dec 2004 08:23:55 +0000 (08:23 +0000)
committerhpa <hpa>
Thu, 16 Dec 2004 08:23:55 +0000 (08:23 +0000)
ldlinux.asm

index ef59f17..1aaa2b8 100644 (file)
@@ -1155,6 +1155,7 @@ searchdir:
                mov dx,[gs:si+26]               ; Low cluster word
                sub edx,2
                shl edx,cl
+               add edx,[DataArea]
                mov [bx],edx                    ; Starting sector
 
                mov edx,eax