Rename dir_file_count to dir_entry_count
This commit is contained in:
committed by
Oliver Schmidt
parent
40d9f3eed5
commit
700c01fa8b
24
libsrc/apple2/dir_entry_count.s
Normal file
24
libsrc/apple2/dir_entry_count.s
Normal file
@@ -0,0 +1,24 @@
|
||||
;
|
||||
; Colin Leroy-Mira <colin@colino.net>, 2024
|
||||
;
|
||||
; unsigned int __fastcall__ dir_entry_count(DIR *dir);
|
||||
;
|
||||
|
||||
.export _dir_entry_count
|
||||
|
||||
.importzp ptr1
|
||||
|
||||
.include "apple2.inc"
|
||||
.include "dir.inc"
|
||||
|
||||
.proc _dir_entry_count
|
||||
sta ptr1
|
||||
stx ptr1+1
|
||||
|
||||
ldy #DIR::FILE_COUNT + 1
|
||||
lda (ptr1),y
|
||||
tax
|
||||
dey
|
||||
lda (ptr1),y
|
||||
rts
|
||||
.endproc
|
||||
Reference in New Issue
Block a user