mirror of
https://github.com/ksherlock/minix.fst.git
synced 2024-06-14 02:29:27 +00:00
skip . and .. for dir entry purposes. It's too confusing for finder!
This commit is contained in:
parent
9922f57cca
commit
7286bddc11
|
@ -425,6 +425,11 @@ next
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
; - 2 for . and ..
|
||||||
|
dec dirent_entry
|
||||||
|
dec dirent_entry
|
||||||
|
|
||||||
|
|
||||||
; also reset the displacement to 0.
|
; also reset the displacement to 0.
|
||||||
lda #0
|
lda #0
|
||||||
ldy #fcr.dirent_entry
|
ldy #fcr.dirent_entry
|
||||||
|
@ -634,6 +639,10 @@ exit
|
||||||
; therefore the only special case is dirent_entry == 0 (since displacement 1 -> read entry 0)
|
; therefore the only special case is dirent_entry == 0 (since displacement 1 -> read entry 0)
|
||||||
;
|
;
|
||||||
;
|
;
|
||||||
|
; 9/4/2015 -- The first two entries (. and ..) should be skipped.
|
||||||
|
;
|
||||||
|
;
|
||||||
|
|
||||||
find_absolute_dirent procname
|
find_absolute_dirent procname
|
||||||
with data
|
with data
|
||||||
|
|
||||||
|
@ -665,6 +674,10 @@ find_next_dirent proc
|
||||||
@first
|
@first
|
||||||
dec displacement
|
dec displacement
|
||||||
bmi eod
|
bmi eod
|
||||||
|
; set dirent_offset = dirent_size * 2 to skip over . and ..
|
||||||
|
lda dirent_size
|
||||||
|
asl a ; x 2
|
||||||
|
sta dirent_offset
|
||||||
@ok
|
@ok
|
||||||
|
|
||||||
; make sure dir not empty (should never happen...)
|
; make sure dir not empty (should never happen...)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user