about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-18 23:09:09 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-18 23:09:09 -0700
commit2f10bc73023234aa46c71cb36a075cb5fe1bbf1a (patch)
treea597ee8b7a4c7a7f0437bfc9f6828d1fc5e8f096
parent8c7aaa6b96f6e3407508f962ab1be7a9c1f9b2cc (diff)
downloadmu-2f10bc73023234aa46c71cb36a075cb5fe1bbf1a.tar.gz
fix a bug in loading code disk
-rw-r--r--boot.subx2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot.subx b/boot.subx
index db36f88e..ab107e77 100644
--- a/boot.subx
+++ b/boot.subx
@@ -111,7 +111,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 4/imm8/head
+  b6/copy-to-dh 6/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 = 0x37000, contiguous with boot segment