wok-current diff BootProg/stuff/boot16.asm @ rev 25698

Fix ntfs-3g receipt
author Stanislas Leduc <shann@slitaz.org>
date Tue Apr 16 19:01:01 2024 +0000 (2 months ago)
parents 82f370bad6b5
children
line diff
     1.1 --- a/BootProg/stuff/boot16.asm	Sat May 13 13:34:41 2023 +0000
     1.2 +++ b/BootProg/stuff/boot16.asm	Tue Apr 16 19:01:01 2024 +0000
     1.3 @@ -96,7 +96,7 @@
     1.4  NullEntryCheck          equ     1               ; +2 bytes
     1.5  ReadRetry               equ     1               ; +9/+13 bytes
     1.6  LBAsupport              equ     1               ; +18 bytes
     1.7 -CHSsanityCheck          equ     1               ; +10/+14 bytes 
     1.8 +CHSsanityCheck          equ     1               ; +9/+13 bytes 
     1.9  GeometryCheck           equ     1               ; +20 bytes
    1.10  CheckAttrib             equ     0               ; +6 bytes
    1.11  WaitForKey              equ     0               ; +5 bytes
    1.12 @@ -609,7 +609,7 @@
    1.13  
    1.14  %if CHSsanityCheck != 0
    1.15          cmp     ax, [bx(bpbHeadsPerCylinder)]
    1.16 -        jnc     CHSoverflow
    1.17 +        jns     CHSoverflow
    1.18  %endif
    1.19          xchg    ax, cx                  ; restore low LBA, save high LBA / SPT
    1.20          idiv    word [bx(bpbSectorsPerTrack)]
    1.21 @@ -622,7 +622,7 @@
    1.22                  ; ax = (LBA / SPT) / HPC = cylinder
    1.23                  ; dx = (LBA / SPT) % HPC = head
    1.24  
    1.25 -        xchg    ch, al                  ; clear al
    1.26 +        xchg    ch, al                  ; clear al, save cylinder no.
    1.27                  ; ch = LSB 0...7 of cylinder no.
    1.28          shr     ax, 1
    1.29          shr     ax, 1
    1.30 @@ -632,7 +632,7 @@
    1.31                  ; dh = head no.
    1.32  
    1.33  %if CHSsanityCheck != 0
    1.34 -        sub     ah, 1                   ; set C if cylinder < 1024 (8GB max)
    1.35 +        dec     ah                      ; set S if cylinder < 1024 (8GB max)
    1.36  CHSoverflow:
    1.37  %endif
    1.38          mov     si, sp
    1.39 @@ -655,7 +655,7 @@
    1.40          popf
    1.41          pushf
    1.42   %endif
    1.43 -        jnc     SkipCHS
    1.44 +        jns     SkipCHS
    1.45  %endif
    1.46          int     13h                     ; read sectors (AL, CX, DX, ES:BX)
    1.47          jnc     ReadSectorNextSegment