:: commit 44cb46a17e93d62bd3a3ccc4c7e69f2f2b1f47a7

Sakura Nakamoto <chenrezigz@gmail.com> — 2019-07-08 21:23

parents: c797223699

Revert "Removed save GPR code in read_sector"

This reverts commit c797223699c06722890183248ef059ce3f2c0de7.
diff --git a/bootsect/disk.inc b/bootsect/disk.inc
index 4ae71394..e685eba8 100644
--- a/bootsect/disk.inc
+++ b/bootsect/disk.inc
@@ -13,6 +13,13 @@ read_sector:
 ; OUT:
 ; Carry if error
 
+push eax
+push ebx
+push ecx
+push edx
+push esi
+push edi
+
 push es
 pop word [.target_segment]
 mov word [.target_offset], bx
@@ -27,6 +34,13 @@ clc										; Clear carry for int 0x13 because some BIOSes may not clear it on
 int 0x13								; Call int 0x13
 
 .done:
+
+pop edi
+pop esi
+pop edx
+pop ecx
+pop ebx
+pop eax
 ret										; Exit routine
 
 align 4
tab: 248 wrap: offon