From c25a2eb4f398ba0db4aa9f6b5bde8d9e00ca3504 Mon Sep 17 00:00:00 2001 From: hpa Date: Thu, 16 Dec 2004 07:54:09 +0000 Subject: [PATCH] Fix some cut-and-paste bugs... --- ldlinux.asm | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/ldlinux.asm b/ldlinux.asm index 8b43616..9b2f71e 100644 --- a/ldlinux.asm +++ b/ldlinux.asm @@ -847,7 +847,6 @@ all_read: ; expand_super: xor eax,eax - mov es,ax ; INT 13:08 destroys ES mov si,superblock mov di,SuperInfo mov cx,superinfo_size @@ -857,30 +856,7 @@ expand_super: stosd ; Store expanded word xor ah,ah stosd ; Store expanded byte - -; -; How big is a cluster, really? Also figure out how many clusters -; will fit in the trackbuf, and how many sectors and bytes that is -; -; FIX THIS: We shouldn't rely on integral sectors in the trackbuf -; anymore... -; - mov edi,[bxBytesPerSec] ; Used a lot below - mov eax,[SecPerClust] - mov si,ax ; Also used a lot - mul di - mov [ClustSize],eax ; Bytes/cluster - mov bx,ax - mov ax,trackbufsize ; High bit 0 - cwd - div bx - mov [BufSafe],ax ; # of cluster in trackbuf - mul si - mov [BufSafeSec],ax - mul di - mov [BufSafeBytes],ax - add ax,getcbuf ; Size of getcbuf is the same - mov [EndOfGetCBuf],ax ; as for trackbuf + loop .loop ; ; Compute some information about this filesystem. -- 2.7.4