# HG changeset patch # User Pascal Bellard # Date 1663236414 0 # Node ID e3609bca257725aec15a5fd402ffc584975293bc # Parent 5b1ba413bf586639cb090b1ef5c18c4d66ee8784 BootProg: typos diff -r 5b1ba413bf58 -r e3609bca2577 BootProg/stuff/boot16.asm --- a/BootProg/stuff/boot16.asm Thu Sep 15 07:47:22 2022 +0000 +++ b/BootProg/stuff/boot16.asm Thu Sep 15 10:06:54 2022 +0000 @@ -514,7 +514,7 @@ %if Over2GB != 0 xchg ax, cx ; save low LBA xchg ax, dx ; get high LBA - cwd ; clear dx (LBA offset <2TB) + cwd ; clear dx (LBA offset <1TB) idiv word [bx(bpbSectorsPerTrack)] ; up to 8GB disks xchg ax, cx ; restore low LBA, save high LBA / SPT diff -r 5b1ba413bf58 -r e3609bca2577 BootProg/stuff/bootex.asm --- a/BootProg/stuff/bootex.asm Thu Sep 15 07:47:22 2022 +0000 +++ b/BootProg/stuff/bootex.asm Thu Sep 15 10:06:54 2022 +0000 @@ -362,7 +362,7 @@ loop ReadSectorC mul ebx ; edx:eax = 0 - mov cl,-2 + mov cl, -2 add cl, [bx(bpbSectorSizeBits)] bts ax, cx ; eax=# of exFAT entries per sector lea edi, [esi-2] ; edi=cluster #-2 @@ -372,13 +372,13 @@ imul si, dx, byte 4 ; si=entry # offset in sector cdq - add eax, [bx(bpbFatSectorStart)] ; sector # relative to FAT32 - call ReadSectorC ; read 1 FAT32 sector + add eax, [bx(bpbFatSectorStart)] ; sector # relative to exFAT + call ReadSectorC ; read 1 exFAT sector mov esi, [es:si] ; esi=next cluster # mov dl, [bx(bpbSectorPerClusterBits)] - xor cx, cx + xor ecx, ecx bts ecx, edx ; 10000h max (32MB cluster) xchg eax, edi ; get cluster #-2 mul ecx