aboutsummaryrefslogtreecommitdiffstats
path: root/copybs.asm
diff options
context:
space:
mode:
authorhpa <hpa>1998-05-07 06:12:36 +0000
committerhpa <hpa>1998-05-07 06:12:36 +0000
commitbadf9ef92166cc0467911a6e203272428f8ae870 (patch)
treee6e98011cf7ef442e2b2838d2c6fb0918d68c4f1 /copybs.asm
parent29456d6e5107613d3c8ab88f05c7f3909712db0d (diff)
downloadsyslinux-elf-badf9ef92166cc0467911a6e203272428f8ae870.tar.gz
syslinux-elf-badf9ef92166cc0467911a6e203272428f8ae870.tar.xz
syslinux-elf-badf9ef92166cc0467911a6e203272428f8ae870.zip
Get the sector size properly.
Diffstat (limited to 'copybs.asm')
-rw-r--r--copybs.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/copybs.asm b/copybs.asm
index 784096eb..f6905fe1 100644
--- a/copybs.asm
+++ b/copybs.asm
@@ -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: