Revert "Removed save GPR code in read_sector"

This reverts commit c797223699c06722890183248ef059ce3f2c0de7.
This commit is contained in:
Sakura Nakamoto 2019-07-08 22:23:58 +01:00
parent c797223699
commit 44cb46a17e

View File

@ -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