1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-07 04:29:01 +00:00
cc65/libsrc/geos-common/file/get1stdirentry.s

24 lines
508 B
ArmAsm

;
; 1999-10-26, Maciej 'YTM/Alliance' Witkowiak
; 2020-10-29, Greg King
;
; struct filehandle* Get1stDirEntry (void);
.import __oserror, return0
.export _Get1stDirEntry
.include "diskdrv.inc"
.include "geossym.inc"
_Get1stDirEntry:
jsr Get1stDirEntry
stx __oserror
txa
bne L1 ; jump if disk error
lda r5L
ldx r5H
rts
L1: jmp return0 ; return NULL if not valid entry