wok-current diff BootProg/stuff/bootex.asm @ rev 25457

Normazile https://sourceforge.net/projects web_sites
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 23 08:28:09 2022 +0000 (21 months ago)
parents 78727b04c002
children 9a714ac859a3
line diff
     1.1 --- a/BootProg/stuff/bootex.asm	Thu Sep 22 07:58:57 2022 +0000
     1.2 +++ b/BootProg/stuff/bootex.asm	Fri Sep 23 08:28:09 2022 +0000
     1.3 @@ -416,11 +416,7 @@
     1.4          push    bx
     1.5          push    bp                      ; sector count word = 1
     1.6          push    byte 16                 ; packet size byte = 16, reserved byte = 0
     1.7 -%if ReadRetry != 0
     1.8 -        pop     cx
     1.9 -        push    cx
    1.10  ReadSectorRetry:        
    1.11 -%endif
    1.12          mov     si, sp
    1.13          mov     ah, 42h                 ; ah = 42h = extended read function no.
    1.14          mov     dl, [bx(DriveNumber)]   ; restore BIOS boot drive number
    1.15 @@ -431,7 +427,8 @@
    1.16  %if ReadRetry != 0
    1.17          xor     ax, ax
    1.18          int     13h                     ; reset drive (DL)
    1.19 -        loop    ReadSectorRetry         ; up to 16 retries
    1.20 +        dec     bp
    1.21 +        jpe     ReadSectorRetry         ; up to 3 tries
    1.22  %endif
    1.23  
    1.24          call    Error