1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-29 13:31:59 +00:00
cc65/libsrc/apple2/dir_entry_count.s
2024-11-15 19:25:40 +01:00

25 lines
436 B
ArmAsm

;
; 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