summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: