:: commit 0503ebad2aee4670ce4c46fc456b52e94fc3e8f4

mintsuki <mintsuki@protonmail.com> — 2022-06-12 21:44

parents: 835c42820b

stage1: Fix sector loading asm bug

diff --git a/stage1/hdd/disk.asm b/stage1/hdd/disk.asm
index 06506d0c..6d427e68 100644
--- a/stage1/hdd/disk.asm
+++ b/stage1/hdd/disk.asm
@@ -67,8 +67,10 @@ read_sectors:
     jc .done
 
     add word  [si+4], bp
+    xor ebx, ebx
     inc dword [si+8]
-    adc dword [si+12], 0
+    seto bl
+    add dword [si+12], ebx
 
     loop .loop
 
tab: 248 wrap: offon