mirror of
https://github.com/Tolik-Trek/Estex-DSS.git
synced 2026-12-02 13:53:08 +03:00
boot.asm - bugfixes. dssboot.asm - support fat32. Core - bugfixes
This commit is contained in:
1 parent
83bfcf7cdd
commit
568806c67a
8 files changed
+873
-416
No files matched your search
+10
-9
@@ -722,8 +722,9 @@ RD_BPB: ; LD C,SLOT3
|
||||
LD C,A
|
||||
LD (CORE_BUFFERS.FatBuffer.FAT1_SEC_H),BC ; high word first sector FAT #1 ; [ ] fat32
|
||||
LD (CORE_BUFFERS.FatBuffer.FAT2_SEC_H),BC ; high word first sector FAT #1 ; [ ] fat32
|
||||
;LD (CORE_BUFFERS.FatBuffer.END_CHAIN_CLUSTER_H),BC ; [ ] fat32 reset variables
|
||||
LD (CORE_BUFFERS.FatBuffer.RootDirFirstSector_H),BC
|
||||
LD (CORE_BUFFERS.FatBuffer.SectorsPerFAT_H),A ; [ ] fat32
|
||||
;LD (CORE_BUFFERS.FatBuffer.END_CHAIN_CLUSTER_H),BC ; [ ] fat32 reset variables
|
||||
;
|
||||
;
|
||||
LD DE,(CORE_BUFFERS.SECTOR_BUFFER + BOOT_SECTOR.SectorsPerFAT16)
|
||||
@@ -754,7 +755,8 @@ RD_BPB: ; LD C,SLOT3
|
||||
JR NZ,.loop1
|
||||
;
|
||||
LD (CORE_BUFFERS.FatBuffer.RootDirFirstSector_L),HL ; first sector DIR
|
||||
|
||||
LD (CORE_BUFFERS.FatBuffer.FirstDataSector_H),BC
|
||||
;
|
||||
LD BC,(CORE_BUFFERS.FatBuffer.BytesPerSector)
|
||||
LD A,B
|
||||
AND A
|
||||
@@ -979,18 +981,17 @@ RD_BPB: ; LD C,SLOT3
|
||||
LD (CORE_BUFFERS.FatBuffer.FAT1_SEC_H),HL
|
||||
LD (CORE_BUFFERS.FatBuffer.FAT2_SEC_H),HL
|
||||
;
|
||||
.mirrored_FATs: ;
|
||||
LD HL,CORE_BUFFERS.SECTOR_BUFFER + BOOT_SECTOR.FAT32.LABEL
|
||||
.mirrored_FATs: LD HL,CORE_BUFFERS.SECTOR_BUFFER + BOOT_SECTOR.FAT32.LABEL
|
||||
;
|
||||
EXX
|
||||
LD HL,(CORE_BUFFERS.SECTOR_BUFFER + BOOT_SECTOR.RootDirStartCluster)
|
||||
LD (CORE_BUFFERS.FatBuffer.RootDirStartCluster_L),HL
|
||||
LD BC,(CORE_BUFFERS.SECTOR_BUFFER + BOOT_SECTOR.RootDirStartCluster+2)
|
||||
LD (CORE_BUFFERS.FatBuffer.RootDirStartCluster_H),BC
|
||||
LD DE,(CORE_BUFFERS.SECTOR_BUFFER + BOOT_SECTOR.RootDirStartCluster+2)
|
||||
LD (CORE_BUFFERS.FatBuffer.RootDirStartCluster_H),DE
|
||||
;
|
||||
CALL CLUSTER_TO_SECTOR
|
||||
LD (CORE_BUFFERS.FatBuffer.RootDirFirstSector_L),HL
|
||||
LD (CORE_BUFFERS.FatBuffer.RootDirFirstSector_H),BC
|
||||
CALL CLUSTER_TO_SECTOR.no_prepare
|
||||
LD (CORE_BUFFERS.FatBuffer.RootDirFirstSector_L),IX
|
||||
LD (CORE_BUFFERS.FatBuffer.RootDirFirstSector_H),HL
|
||||
;
|
||||
LD HL,(CORE_BUFFERS.SECTOR_BUFFER + BOOT_SECTOR.FSINFO_Sector)
|
||||
LD (CORE_BUFFERS.FatBuffer.FSINFO_Sector),HL
|
||||
|
||||
@@ -968,17 +968,17 @@ GET_FAT12_CELL:
|
||||
|
||||
|
||||
;[x] fat32 ;!TEST
|
||||
;NSECTOR:
|
||||
;CLUSTER_TO_SECTOR:
|
||||
; in: HL':HL - CLUSTER
|
||||
; out: HL:IX - SECTOR
|
||||
CLUSTER_TO_SECTOR:
|
||||
PUSH BC
|
||||
EXX
|
||||
PUSH HL
|
||||
EXX
|
||||
POP DE
|
||||
; DE:HL - cluster
|
||||
;
|
||||
.no_prepare: PUSH BC
|
||||
LD BC,-2
|
||||
ADD HL,BC
|
||||
JR C,.no_dec_de
|
||||
|
||||
Reference in new issue
Block a user