diff options
author | hpa <hpa> | 1998-05-07 06:12:36 +0000 |
---|---|---|
committer | hpa <hpa> | 1998-05-07 06:12:36 +0000 |
commit | badf9ef92166cc0467911a6e203272428f8ae870 (patch) | |
tree | e6e98011cf7ef442e2b2838d2c6fb0918d68c4f1 | |
parent | 29456d6e5107613d3c8ab88f05c7f3909712db0d (diff) | |
download | syslinux-badf9ef92166cc0467911a6e203272428f8ae870.tar.gz |
Get the sector size properly.
-rw-r--r-- | copybs.asm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -167,7 +167,7 @@ got_cmdline: and al,al jnz filesystem_error - mov ax,[bx+dpbSectorSize] + mov dx,[bx+dpbSectorSize] ; Save sector size ; ; Read the boot sector. ; @@ -184,6 +184,8 @@ read_bootsect: mov ax,cs ; Set DS <- CS mov ds,ax + mov [SectorSize],dx ; Saved sector size from above + cmp word [DOSVersion],0400h ; DOS 4.00 has a new interface jae .new .old: |