From badf9ef92166cc0467911a6e203272428f8ae870 Mon Sep 17 00:00:00 2001 From: hpa Date: Thu, 7 May 1998 06:12:36 +0000 Subject: [PATCH] Get the sector size properly. --- copybs.asm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/copybs.asm b/copybs.asm index 784096e..f6905fe 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: -- 2.7.4