A2osX/SYS/KERNEL.S.DIR.txt
2016-08-24 17:42:33 +02:00

49 lines
822 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

PR#3
PREFIX /A2OSX.SRC
NEW
INC 1
AUTO 6
.LIST OFF
*--------------------------------------
* In :
* X = #SYSCall
* Y,A = PATH (PSTR)
* Out :
* CC : Y,A = PTR to S.DIR
* CS : A = EC
*--------------------------------------
S.OPENDIRYA jsr S.PFTCHECKPATHYA
* if
clc
rts
*--------------------------------------
* In :
* Y,A = PTR to S.DIR
* Out :
* CC : Y,A = PTR to S.DIRENT
* CS : A = EC
*--------------------------------------
S.READDIRYA
.8 clc
rts
.9 sec
rts
*--------------------------------------
* In :
* Y,A = PTR to S.DIR
*--------------------------------------
S.CLOSEDIRYA
rts
*--------------------------------------
*--------------------------------------
MAN
SAVE SYS/KERNEL.S.DIR
LOAD SYS/KERNEL.S
ASM