wok-6.x rev 25452
BootProg: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 15 10:06:54 2022 +0000 (2022-09-15) |
parents | 5b1ba413bf58 |
children | ec9531d04de1 |
files | BootProg/stuff/boot16.asm BootProg/stuff/bootex.asm |
line diff
1.1 --- a/BootProg/stuff/boot16.asm Thu Sep 15 07:47:22 2022 +0000 1.2 +++ b/BootProg/stuff/boot16.asm Thu Sep 15 10:06:54 2022 +0000 1.3 @@ -514,7 +514,7 @@ 1.4 %if Over2GB != 0 1.5 xchg ax, cx ; save low LBA 1.6 xchg ax, dx ; get high LBA 1.7 - cwd ; clear dx (LBA offset <2TB) 1.8 + cwd ; clear dx (LBA offset <1TB) 1.9 idiv word [bx(bpbSectorsPerTrack)] ; up to 8GB disks 1.10 1.11 xchg ax, cx ; restore low LBA, save high LBA / SPT
2.1 --- a/BootProg/stuff/bootex.asm Thu Sep 15 07:47:22 2022 +0000 2.2 +++ b/BootProg/stuff/bootex.asm Thu Sep 15 10:06:54 2022 +0000 2.3 @@ -362,7 +362,7 @@ 2.4 loop ReadSectorC 2.5 2.6 mul ebx ; edx:eax = 0 2.7 - mov cl,-2 2.8 + mov cl, -2 2.9 add cl, [bx(bpbSectorSizeBits)] 2.10 bts ax, cx ; eax=# of exFAT entries per sector 2.11 lea edi, [esi-2] ; edi=cluster #-2 2.12 @@ -372,13 +372,13 @@ 2.13 imul si, dx, byte 4 ; si=entry # offset in sector 2.14 2.15 cdq 2.16 - add eax, [bx(bpbFatSectorStart)] ; sector # relative to FAT32 2.17 - call ReadSectorC ; read 1 FAT32 sector 2.18 + add eax, [bx(bpbFatSectorStart)] ; sector # relative to exFAT 2.19 + call ReadSectorC ; read 1 exFAT sector 2.20 2.21 mov esi, [es:si] ; esi=next cluster # 2.22 2.23 mov dl, [bx(bpbSectorPerClusterBits)] 2.24 - xor cx, cx 2.25 + xor ecx, ecx 2.26 bts ecx, edx ; 10000h max (32MB cluster) 2.27 xchg eax, edi ; get cluster #-2 2.28 mul ecx