[x] пропуск разделов с неизвестными ФС, оптимизация детекта

This commit is contained in:
Anatoliy Belyanskiy committed 2023-12-17 02:00:52 +10:00
1 parent c0f126a95c
commit f58a3d681b
5 files changed
+30 -30

No files matched your search

+2 -8
View File
@@ -35,12 +35,6 @@
LD (DE),A
INC DE
LDIR
; .loop:
; LD (HL),A
; INC DE
; INC HL
; LD A,(DE)
; DJNZ .loop
ENDM
;
DISKINF:; [ ] 22/11/23 ¯®¤äã­ªæ¨ï á ¤®¯.¨­ä®©
@@ -132,8 +126,8 @@ DISKINF:; [ ] 22/11/23
LD A,E
OR D
JR NZ,.SKIC
JR NZ,.skip
INC BC
.SKIC: INC HL
.skip: INC HL
JP .FRESP
;
+4 -4
View File
@@ -467,14 +467,14 @@ CurrentPath: DB 'X'
CurrentDirectory: DB '\'
.DEPTH: EQU DIRECTORY_PATH_LENGTH
BLOCK CurrentDirectory.DEPTH,0 ; ­¥ .DEPTH-1 ç⮡ ¡ë« 0 ¢ ª®­æ¥
;
IF SAVE_PATH_CODE
WorkDirectory: DB '\'
WorkDirectory: DB '\'
.DEPTH: EQU DIRECTORY_PATH_LENGTH
BLOCK WorkDirectory.DEPTH,0 ; ­¥ .DEPTH-1 ç⮡ ¡ë« 0 ¢ ª®­æ¥
ELSE
WorkDirectory EQU CurrentDirectory
.DEPTH EQU CurrentDirectory.DEPTH
WorkDirectory EQU CurrentDirectory
.DEPTH EQU CurrentDirectory.DEPTH
ENDIF
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+22 -16
View File
@@ -560,22 +560,27 @@ NXTPART:
;
NOEXTDS:
CP #0F
JR Z,SUBLEV
CP #0E
CP PartitionSysTypes.FAT16
JR Z,HIGHDOS
CP 6
CP PartitionSysTypes.FAT16_LBA
JR Z,HIGHDOS
CP 4
CP PartitionSysTypes.FAT16_32M
JR Z,MEDIDOS
CP 1
CP PartitionSysTypes.FAT12
JR Z,EASYDOS
POP BC
OR A
RET Z
NODEFIN:
SCF
RET
CP PartitionSysTypes.Win_Ext_LBA
JR Z,SUBLEV
;[x] 17/12/23 ¯à®¯ã᪠ࠧ¤¥«®¢ á ­¥¨§¢¥áâ­ë¬¨ ”‘, ®¯â¨¬¨§ æ¨ï ¤¥â¥ªâ 
OR A ;PartitionSysTypes.Empty
JR NZ,NXTPART
POP BC ; ¡ « ­á á⥪ 
RET
;POP BC
;OR A
;RET Z
;NODEFIN:
;SCF
;RET
;
@@ -597,20 +602,21 @@ PARTIT2:
LD (CURSECL),DE
LD (CURSECH),IX
CALL LOADSEC
;!TEST
;RET C ; for absent drive
;
LD HL,(PART+510) ;!HARDCODE Signature word
LD DE,#AA55
AND A
SBC HL,DE
JR NZ,NODEFIN
;[ ] 17/12/23 ¯à®¯ã᪠ࠧ¤¥«®¢ á ­¥¨§¢¥áâ­ë¬¨ ”‘, ®¯â¨¬¨§ æ¨ï ¯¥à¥¡®à  à §¤¥«®¢
;JR NZ,NODEFIN
SCF
RET NZ
;
LD IY,PART+#01BE ;!HARDCODE MBR: Offset of partition table in the MBR
LD B,4 ;!HARDCODE MBR: Number of entries in the partition table
DOSAGA: PUSH BC
LD A,(IY+4)
CP 5
CP PartitionSysTypes.Extended
JR NZ,NOEXTDS
SUBLEV: PUSH IY
LD DE,(CURSECL)
+1 -1
View File
@@ -1 +1 @@
806
810