diff options
| author | hpa <hpa> | 2004-12-16 07:54:09 +0000 |
|---|---|---|
| committer | hpa <hpa> | 2004-12-16 07:54:09 +0000 |
| commit | c25a2eb4f398ba0db4aa9f6b5bde8d9e00ca3504 (patch) | |
| tree | 94639f01c4c434ba35ff68f8940848786cef93a4 | |
| parent | c82ba595172394c3f2e744cc35231f7c7dee83df (diff) | |
| download | syslinux-c25a2eb4f398ba0db4aa9f6b5bde8d9e00ca3504.tar.gz | |
Fix some cut-and-paste bugs...
| -rw-r--r-- | ldlinux.asm | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/ldlinux.asm b/ldlinux.asm index 8b436163..9b2f71eb 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. |
