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:
|
||||
|
||||
!pet "seq", $00 ; SEQ
|
||||
!pet "prg", $00 ; PRG
|
||||
!pet "usr", $00 ; USR
|
||||
!pet "rel", $00 ; REL
|
||||
!pet "del", $00 ; deleted file
|
||||
!pet "seq", $00 ; sequential file
|
||||
!pet "prg", $00 ; program (executable)
|
||||
!pet "usr", $00 ; user type
|
||||
!pet "rel", $00 ; random access file
|
||||
!pet "cbm", $00 ; CBM-style partition
|
||||
!pet "dir", $00 ; directory
|
||||
|
||||
|
||||
@@ -147,10 +147,10 @@ fs_1581_read_dir:
|
||||
|
||||
ldy #$02 ; start from determining file type
|
||||
jsr code_LDA_nnnn_Y
|
||||
beq fs_1581_read_dir ; ignore deleted files (but allow DEL files in some cases)
|
||||
|
||||
tax
|
||||
and #%00111111 ; for checking, filter out special bits
|
||||
beq fs_1581_read_dir ; ignore deleted files
|
||||
cmp #$06
|
||||
bcs fs_1581_read_dir ; ignore unknown file types
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ fs_hvsr_util_nextdirentry:
|
||||
|
||||
@lpext_found:
|
||||
|
||||
cpy #$14
|
||||
cpy #$18
|
||||
+beq fs_hvsr_util_nextdirentry ; file extension 'DIR' does not mean this is a directory
|
||||
tya
|
||||
|
||||
@@ -177,7 +177,6 @@ fs_hvsr_util_nextdirentry:
|
||||
ror
|
||||
clc
|
||||
ror
|
||||
inc
|
||||
|
||||
cmp #$07 ; mark some file types (not SEQ/PRG/USR/REL/CBM/DIR) as read-only
|
||||
bcc @detect_attributes
|
||||
|
||||
@@ -85,7 +85,6 @@ util_dir_basic:
|
||||
|
||||
lda PAR_FTYPE ; put file type
|
||||
and #$3F
|
||||
dec
|
||||
asl
|
||||
asl
|
||||
tay
|
||||
|
||||
Reference in new issue
Block a user