mirror of
https://github.com/cc65/cc65.git
synced 2025-01-19 17:31:31 +00:00
25 lines
433 B
ArmAsm
25 lines
433 B
ArmAsm
|
;
|
||
|
; Colin Leroy-Mira <colin@colino.net>, 2024
|
||
|
;
|
||
|
; unsigned int __fastcall__ dir_file_count(DIR *dir);
|
||
|
;
|
||
|
|
||
|
.export _dir_file_count
|
||
|
|
||
|
.importzp ptr1
|
||
|
|
||
|
.include "apple2.inc"
|
||
|
.include "dir.inc"
|
||
|
|
||
|
.proc _dir_file_count
|
||
|
sta ptr1
|
||
|
stx ptr1+1
|
||
|
|
||
|
ldy #DIR::FILE_COUNT + 1
|
||
|
lda (ptr1),y
|
||
|
tax
|
||
|
dey
|
||
|
lda (ptr1),y
|
||
|
rts
|
||
|
.endproc
|