about summary refs log tree commit diff stats
path: root/boot.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-03-21 21:57:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-03-21 21:57:20 -0700
commit89db4ec10001f08742be78596ef41f07ed5b124c (patch)
tree52d29b87479299c1bea23be3a7d94972599eabad /boot.subx
parent36dd179f4912fe51ac1780a06772f2662213733f (diff)
downloadmu-89db4ec10001f08742be78596ef41f07ed5b124c.tar.gz
.
Diffstat (limited to 'boot.subx')
-rw-r--r--boot.subx30
1 files changed, 15 insertions, 15 deletions
diff --git a/boot.subx b/boot.subx
index bae5b553..5cf7ee7d 100644
--- a/boot.subx
+++ b/boot.subx
@@ -64,12 +64,12 @@
   }
 
   # load remaining sectors from first two tracks of disk into addresses [0x7e00, 0x17800)
-  b4/copy-to-ah 2/imm8  # read sectors from disk
+  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 0
-  b6/copy-to-dh 0/imm8  # head 0
-  b1/copy-to-cl 2/imm8  # second sector, 1-based
-  b0/copy-to-al 0x7d/imm8  # number of sectors to read = 2*63 - 1 = 125
+  b5/copy-to-ch 0/imm8/cylinder
+  b6/copy-to-dh 0/imm8/head
+  b1/copy-to-cl 2/imm8/sector  # 1-based
+  b0/copy-to-al 0x7d/imm8/num-sectors  # 2*63 - 1 = 125
   # address to write sectors to = es:bx = 0x7e00, contiguous with boot segment
   bb/copy-to-bx 0/imm16
   8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es
@@ -78,12 +78,12 @@
   0f 82/jump-if-carry disk_error/disp16
 
   # load two more tracks of disk into addresses [0x17800, 0x27400)
-  b4/copy-to-ah 2/imm8  # read sectors from disk
+  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 2/imm8  # head
-  b1/copy-to-cl 1/imm8  # sector, 1-based
-  b0/copy-to-al 0x7e/imm8  # number of sectors to read = 2*63 = 126
+  b5/copy-to-ch 0/imm8/cylinder
+  b6/copy-to-dh 2/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 = 0x17800, contiguous with boot segment
   bb/copy-to-bx 0x1780/imm16
   8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es
@@ -92,12 +92,12 @@
   0f 82/jump-if-carry disk_error/disp16
 
   # load two more tracks of disk into addresses [0x27400, 0x37000)
-  b4/copy-to-ah 2/imm8  # read sectors from disk
+  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
-  b1/copy-to-cl 1/imm8  # sector, 1-based
-  b0/copy-to-al 0x7e/imm8  # number of sectors to read = 2*63 = 126
+  b5/copy-to-ch 0/imm8/cylinder
+  b6/copy-to-dh 4/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 = 0x27400, contiguous with boot segment
   bb/copy-to-bx 0x2740/imm16
   8e/->seg 3/mod/direct 3/rm32/bx 0/r32/es