From e2f18e8866bd75669c04bff52c3f8e96d13eeb4e Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 28 Jul 2021 23:28:29 -0700 Subject: shell: literal images --- 317abort.subx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to '317abort.subx') 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 -- cgit 1.4.1-2-gfad0