mirror of
https://github.com/Tolik-Trek/Estex-DSS.git
synced 2026-11-27 13:12:13 +03:00
игры с ZIP
This commit is contained in:
1 parent
73c7ab5f6b
commit
cd4271f994
6 files changed
+150
-88
No files matched your search
+16
-5
@@ -33,14 +33,21 @@ cmd_info: CALL Get_Path
|
||||
;
|
||||
.patch_A+1: LD A,0
|
||||
CALL read_disk_info
|
||||
JR C,.Unformatted_Partition
|
||||
JR NC,.info_ok
|
||||
;
|
||||
CP DSS_Error.sys.MEDIA_CHANGED
|
||||
JR NZ,.Unsupported_Partition
|
||||
;
|
||||
LD A,(.patch_A)
|
||||
CALL read_disk_info
|
||||
JR C,.Unsupported_Partition
|
||||
; %7 - Volume label
|
||||
; serial_string - Volume serial number string
|
||||
; full_space_high \
|
||||
; full_space_medium - Partition size
|
||||
; full_space_low /
|
||||
;
|
||||
LD HL,serial_string
|
||||
.info_ok: LD HL,serial_string
|
||||
LD DE,Buffers.bat_params.PRM4 ; Volume serial number string
|
||||
CALL ncopy_string
|
||||
; full capacity
|
||||
@@ -73,7 +80,7 @@ cmd_info: CALL Get_Path
|
||||
JP RESTORE_ALL.path
|
||||
;RET
|
||||
;
|
||||
.Unformatted_Partition:
|
||||
.Unsupported_Partition:
|
||||
LD HL,.none_string
|
||||
LD DE,Buffers.bat_params.PRM4 ; Volume serial number string
|
||||
CALL ncopy_string
|
||||
@@ -89,13 +96,17 @@ cmd_info: CALL Get_Path
|
||||
LD A,C
|
||||
CP "C" - "A"
|
||||
JR C,.ItIsFDD
|
||||
;
|
||||
LD DE,Dss.DRV.GenIOCTL.Enter
|
||||
LD BC,Dss.DRV.GenIOCTL.GetParams
|
||||
RST ToDSS.DRV
|
||||
JR NC,.calc_size
|
||||
JR C,.noMedia
|
||||
LD A,H
|
||||
AND %1111'0000 ; ¯à®¢¥àª ®¬¥à ᥪâ®à > 28bit = ¥â ®á¨â¥«ï
|
||||
JR Z,.calc_size
|
||||
;
|
||||
.ItIsFDD: ;
|
||||
LD HL,.Unknown_str
|
||||
.noMedia: LD HL,.Unknown_str
|
||||
LD DE,Buffers.bat_params.PRM5 ; Drive size
|
||||
CALL ncopy_string
|
||||
JR .print_info_2
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
504
|
||||
513
|
||||
Reference in new issue
Block a user