2000-05-28 13:40:48 +00:00
|
|
|
;
|
2020-10-29 21:54:56 +00:00
|
|
|
; 1999-10-26, Maciej 'YTM/Alliance' Witkowiak
|
|
|
|
; 2020-10-29, Greg King
|
2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
; struct filehandle* GetNxtDirEntry (void);
|
|
|
|
|
2020-10-29 16:42:36 +00:00
|
|
|
.import __oserror, return0
|
2013-05-09 11:56:54 +00:00
|
|
|
.export _GetNxtDirEntry
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "diskdrv.inc"
|
|
|
|
.include "geossym.inc"
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
_GetNxtDirEntry:
|
2013-05-09 11:56:54 +00:00
|
|
|
jsr GetNxtDirEntry
|
|
|
|
stx __oserror
|
2020-10-29 16:42:36 +00:00
|
|
|
txa
|
2020-10-29 21:54:56 +00:00
|
|
|
bne L1 ; jump if disk error
|
2020-10-29 16:42:36 +00:00
|
|
|
tya
|
2020-10-29 21:54:56 +00:00
|
|
|
bne L1 ; jump when no more entries
|
|
|
|
lda r5L
|
2013-05-09 11:56:54 +00:00
|
|
|
ldx r5H
|
|
|
|
rts
|
2020-10-29 21:54:56 +00:00
|
|
|
|
|
|
|
L1: jmp return0 ; return NULL if not valid entry
|