fix a bug in loading code disk

This commit is contained in:
Kartik K. Agaram 2021-04-18 23:09:09 -07:00
parent 8c7aaa6b96
commit 2f10bc7302
1 changed files with 1 additions and 1 deletions

View File

@ -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