Kernel 0.94

This commit is contained in:
Rémy GIBERT 2020-07-30 16:10:49 +02:00
parent 36ea2592c1
commit 192a99b47a
2 changed files with 43 additions and 1 deletions

View File

@ -421,6 +421,22 @@ Load a file in AUX memory (Stock Objects)
none.
(X,Y unmodified)
# GetStkObj
## C
`int *ptr getstkobj (shoirt int hStkObj);`
## ASM
`lda hStkObj`
`>SYSCALL GetStkObj`
## RETURN VALUE
CC : success
X = hMem
Y,A = ptr
CS : error
A = EC
# ExecL
## C / CSH
@ -726,6 +742,19 @@ Change The type of a ProDOS File
## RETURN VALUE
# SetAttr
Change Attributes of a ProDOS File
## C
`int setattr(const char *filepath, short int attributes);`
## ASM
`>PUSHW filepath`
`>PUSHB attributes`
`>SYSCALL setattr`
## RETURN VALUE
# Stat
Return information about a file

View File

@ -19,7 +19,20 @@ K.Online >PULLW K.MLI.PARAMS+2
>PULLW K.MLI.PARAMS+1
>MLICALL MLIONLINE
rts
*--------------------------------------
*/--------------------------------------
* # GetStkObj
* ## C
* `int *ptr getstkobj (shoirt int hStkObj);`
* ## ASM
* `lda hStkObj`
* `>SYSCALL GetStkObj`
* ## RETURN VALUE
* CC : success
* X = hMem
* Y,A = ptr
* CS : error
* A = EC
*\--------------------------------------
K.GetStkObj tax hMem for CopyToMain
jsr MEM.GetMemByID