floppy directory display only misses proper blocks free now
This commit is contained in:
1 parent
02588f4952
commit
04dfd8e405
4 files changed
+7
-8
No files matched your search
@@ -37,10 +37,11 @@ dir_end: ; 19 bytes
|
|||||||
|
|
||||||
dir_types:
|
dir_types:
|
||||||
|
|
||||||
!pet "seq", $00 ; SEQ
|
!pet "del", $00 ; deleted file
|
||||||
!pet "prg", $00 ; PRG
|
!pet "seq", $00 ; sequential file
|
||||||
!pet "usr", $00 ; USR
|
!pet "prg", $00 ; program (executable)
|
||||||
!pet "rel", $00 ; REL
|
!pet "usr", $00 ; user type
|
||||||
|
!pet "rel", $00 ; random access file
|
||||||
!pet "cbm", $00 ; CBM-style partition
|
!pet "cbm", $00 ; CBM-style partition
|
||||||
!pet "dir", $00 ; directory
|
!pet "dir", $00 ; directory
|
||||||
|
|
||||||
|
|||||||
@@ -147,10 +147,10 @@ fs_1581_read_dir:
|
|||||||
|
|
||||||
ldy #$02 ; start from determining file type
|
ldy #$02 ; start from determining file type
|
||||||
jsr code_LDA_nnnn_Y
|
jsr code_LDA_nnnn_Y
|
||||||
|
beq fs_1581_read_dir ; ignore deleted files (but allow DEL files in some cases)
|
||||||
|
|
||||||
tax
|
tax
|
||||||
and #%00111111 ; for checking, filter out special bits
|
and #%00111111 ; for checking, filter out special bits
|
||||||
beq fs_1581_read_dir ; ignore deleted files
|
|
||||||
cmp #$06
|
cmp #$06
|
||||||
bcs fs_1581_read_dir ; ignore unknown file types
|
bcs fs_1581_read_dir ; ignore unknown file types
|
||||||
|
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ fs_hvsr_util_nextdirentry:
|
|||||||
|
|
||||||
@lpext_found:
|
@lpext_found:
|
||||||
|
|
||||||
cpy #$14
|
cpy #$18
|
||||||
+beq fs_hvsr_util_nextdirentry ; file extension 'DIR' does not mean this is a directory
|
+beq fs_hvsr_util_nextdirentry ; file extension 'DIR' does not mean this is a directory
|
||||||
tya
|
tya
|
||||||
|
|
||||||
@@ -177,7 +177,6 @@ fs_hvsr_util_nextdirentry:
|
|||||||
ror
|
ror
|
||||||
clc
|
clc
|
||||||
ror
|
ror
|
||||||
inc
|
|
||||||
|
|
||||||
cmp #$07 ; mark some file types (not SEQ/PRG/USR/REL/CBM/DIR) as read-only
|
cmp #$07 ; mark some file types (not SEQ/PRG/USR/REL/CBM/DIR) as read-only
|
||||||
bcc @detect_attributes
|
bcc @detect_attributes
|
||||||
|
|||||||
@@ -85,7 +85,6 @@ util_dir_basic:
|
|||||||
|
|
||||||
lda PAR_FTYPE ; put file type
|
lda PAR_FTYPE ; put file type
|
||||||
and #$3F
|
and #$3F
|
||||||
dec
|
|
||||||
asl
|
asl
|
||||||
asl
|
asl
|
||||||
tay
|
tay
|
||||||
|
|||||||
Reference in new issue
Block a user