about summary refs log tree commit diff stats
path: root/boot.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-29 18:43:16 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-29 18:43:16 -0700
commit1d89aa38c20971746380052c4988f18dd9b8e765 (patch)
tree4b8b2a3860c99fc1bda8e9a11e56cca0e1486d4d /boot.subx
parent9516dfa0b04bcdcd1c9c38aa6278549ccdb5528c (diff)
downloadmu-1d89aa38c20971746380052c4988f18dd9b8e765.tar.gz
fix a bug in loading code disk
Identical bug to commit 2f10bc7302.
Diffstat (limited to 'boot.subx')
-rw-r--r--boot.subx2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot.subx b/boot.subx
index 7baf88e8..52724497 100644
--- a/boot.subx
+++ b/boot.subx
@@ -126,7 +126,7 @@
   b4/copy-to-ah 2/imm8/read-drive
   # dl comes conveniently initialized at boot time with the index of the device being booted
   b5/copy-to-ch 0/imm8/cylinder
-  b6/copy-to-dh 6/imm8/head
+  b6/copy-to-dh 8/imm8/head
   b1/copy-to-cl 1/imm8/sector  # 1-based
   b0/copy-to-al 0x7e/imm8/num-sectors  # 2*63 = 126
   # address to write sectors to = es:bx = 0x46c00, contiguous with boot segment