about summary refs log tree commit diff stats
path: root/317abort.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-28 23:28:29 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-28 23:28:29 -0700
commite2f18e8866bd75669c04bff52c3f8e96d13eeb4e (patch)
tree129495b1009aa08f7715c5d58f6eba8fcad7e566 /317abort.subx
parente2f6e9011eb64b9f2372dbed6ed3838ce8e26ec0 (diff)
downloadmu-e2f18e8866bd75669c04bff52c3f8e96d13eeb4e.tar.gz
shell: literal images
Diffstat (limited to '317abort.subx')
-rw-r--r--317abort.subx7
1 files changed, 2 insertions, 5 deletions
diff --git a/317abort.subx b/317abort.subx
index 5ee3b37f..2b464658 100644
--- a/317abort.subx
+++ b/317abort.subx
@@ -81,11 +81,8 @@ load-debug-symbols:  # labels: (addr stream {start-address, label-slice})
     c7 0/subop/copy *ecx 0/imm32  # write index
     c7 0/subop/copy *(ecx+4) 0/imm32  # read index
     c7 0/subop/copy *(ecx+8) 0x01000000/imm32  # stream capacity = 16MB
-    # load 0x400 sectors starting from sector 10080 = 0x2760
-    (read-ata-disk Primary-bus-primary-drive 0x2760 0x100 %ecx)
-    (read-ata-disk Primary-bus-primary-drive 0x2860 0x100 %ecx)
-    (read-ata-disk Primary-bus-primary-drive 0x2960 0x100 %ecx)
-    (read-ata-disk Primary-bus-primary-drive 0x2a60 0x100 %ecx)
+    # load sectors starting from sector 10080 = 0x2760
+    (load-sectors Primary-bus-primary-drive 0x2760 0x800 %ecx)  # 0x800 sectors = 1MB
     # - parse pointers to portions of this stream into labels
     # var curr/ecx: (addr byte) = s->data
     81 0/subop/add %ecx 0xc/imm32