wok diff BootProg/stuff/boot16.asm @ rev 25699

Up redis (7.2.5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 26 16:05:16 2024 +0000 (13 months ago)
parents 82a123e54615
children 0af8df0b46fc
line diff
     1.1 --- a/BootProg/stuff/boot16.asm	Sun May 26 08:12:35 2024 +0000
     1.2 +++ b/BootProg/stuff/boot16.asm	Sun May 26 16:05:16 2024 +0000
     1.3 @@ -161,7 +161,7 @@
     1.4  ;; How much RAM is there? ;;
     1.5  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     1.6  
     1.7 -        int     12h             ; get conventional memory size (in KBs)
     1.8 +        int     12h                     ; get conventional memory size (in KBs)
     1.9  %if AnyWhere
    1.10          call    here
    1.11  here:
    1.12 @@ -171,7 +171,7 @@
    1.13          pop     ds
    1.14  %endif
    1.15          mov     cx, 106h
    1.16 -        shl     ax, cl          ; and convert it to 16-byte paragraphs
    1.17 +        shl     ax, cl                  ; and convert it to 16-byte paragraphs
    1.18  
    1.19  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    1.20  ;; Reserve memory for the boot sector and its stack ;;
    1.21 @@ -188,13 +188,14 @@
    1.22  
    1.23          xor     di, di
    1.24  %if AnyWhere == 0
    1.25 -        mov     si, 7C00h
    1.26 +        mov     si, 7C02h               ; exclude DriveNumber
    1.27          mov     ds, di
    1.28  %endif
    1.29          push    es
    1.30 -        mov     [si(DriveNumber)], dx   ; store BIOS boot drive number
    1.31          cld
    1.32 -        rep     movsw                   ; move 512 bytes (+ 12)
    1.33 +        xchg    ax, dx
    1.34 +        stosw                           ; store BIOS boot drive number
    1.35 +        rep     movsw                   ; move 512 bytes (+ 12), no double prefix: 8088 bug
    1.36  
    1.37  ;;;;;;;;;;;;;;;;;;;;;;
    1.38  ;; Jump to the copy ;;