We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b377c09 commit 4313d46Copy full SHA for 4313d46
1 file changed
stage1/hdd/disk.asm
@@ -34,7 +34,7 @@ read_sectors:
34
mov si, .drive_params
35
mov word [si], 30 ; buf_size
36
int 0x13
37
- jc .done
+ pushf
38
movzx ebp, word [si+24] ; bytes_per_sect
39
40
; ECX byte count to CX sector count
@@ -46,10 +46,12 @@ read_sectors:
46
setnz cl
47
add cx, ax
48
49
+ popf
50
pop edx
51
pop eax
52
53
pop si
54
+ jc .done
55
56
; EBP:EAX address to DAP LBA sector
57
push eax
0 commit comments