fixet bug with small partitions. Some small fixes

This commit is contained in:
Tolik committed 2024-07-05 03:39:58 +10:00
1 parent 201fa03a29
commit 6af1575f2b
9 files changed
+88 -101

No files matched your search

+2 -2
View File
@@ -790,7 +790,7 @@ RD_BPB: ; LD C,SLOT3
RLA
;
LD C,A
LD B,0 ; BC - File handels in sectors
LD B,0 ; BC - File handels per sector
;;;;
IF COMPILE_UNUSED_CODE
LD (CORE_BUFFERS.FatBuffer.FilesPerSector),A
@@ -861,9 +861,9 @@ RD_BPB: ; LD C,SLOT3
LD HL,(CORE_BUFFERS.SECTOR_BUFFER + BOOT_SECTOR.SectorsPerDrive)
LD A,H
OR L
LD DE,(CORE_BUFFERS.FatBuffer.FirstDataSector_L)
JP NZ,.HDDSMAL
;
LD DE,(CORE_BUFFERS.FatBuffer.FirstDataSector_L)
EXX
LD HL,(CORE_BUFFERS.SECTOR_BUFFER + BOOT_SECTOR.BPB_BIG_TOTAL_SECTORS_H)
PUSH HL ; Total Sectors high