Added MLI Create File (EDIT)

This commit is contained in:
Rémy GIBERT 2016-01-06 23:05:12 +01:00
parent 5246249b79
commit 4acc9d08a6

View File

@ -7,7 +7,13 @@ AUTO 6
*--------------------------------------
* PUBLIC
*--------------------------------------
S.MLICreateFile
S.MLICreateFile >PULLW MLICALL.PARAMS+1
>PULLB MLICALL.PARAMS+3 Access
>PULLB MLICALL.PARAMS+4 File type
>PULLW MLICALL.PARAMS+5 Aux type
lda #$01
sta MLICALL.PARAMS+7 Storage=Standard Files
>MLICALL MLICREATE
clc
rts
*--------------------------------------
@ -20,7 +26,6 @@ S.MLICreateDirYA
sta MLICALL.PARAMS+4 type=Directory
lda #$0D
sta MLICALL.PARAMS+7 Storage=Linked List
>MLICALL MLICREATE
rts
*--------------------------------------
@ -134,8 +139,8 @@ S.MLIRead >PULLB MLICALL.PARAMS+1
* S.MLIWrite
* in :
* PULLB = ref_num
* PULLW = Dest PTR
* PULLW = Bytes To Read
* PULLW = Src PTR
* PULLW = Bytes To Write
* out :
* Y,A = Bytes Written
*--------------------------------------