From c786dd2a9ca5c0cf174566b8ce4287c5a57cac27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20GIBERT?= Date: Sat, 22 Oct 2016 22:58:29 +0200 Subject: [PATCH] Kernel version 0.8 : Docs... --- _Docs/KERNEL.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/_Docs/KERNEL.md b/_Docs/KERNEL.md index 8a5e3566..26cb52f5 100644 --- a/_Docs/KERNEL.md +++ b/_Docs/KERNEL.md @@ -1,6 +1,7 @@ *** Auto generated by docgen.cmd *** #FOpen Open a file + ##In : + PUSHW = AUXTYPE + PUSHB = TYPE @@ -17,18 +18,23 @@ Open a file + CS : A = EC #FCloseA Close a file + ##In : + A = hFILE + ##Out : #FRead Read bytes from file + ##In : + PULLB = hFILE + PULLW = Bytes To Read + PULLW = Dest Ptr + ##Out : + Y,A = Bytes Read #FWrite + ##In : + PULLB = hFILE + PULLW = Bytes To Write @@ -37,8 +43,10 @@ Read bytes from file + Y,A = Bytes Written #NewPStrYA Create a new copy of PSTR + ##In: + Y,A = PTR to buffer + ##Out: + CC : success + Y,A = PTR to String @@ -47,20 +55,25 @@ Create a new copy of PSTR + A = SYS error code #PStrMatch Compare a String against pattern + ##In: + PUSHW = PTR to Pattern (e.g. '*test?.txt') + PUSHW = PTR to Src String + ##Out: + CC : match + CS : no match #PStrUprYA/PStrLwrYA Convert string to UPPERCASE/lowercase + ##In: + Y,A = PTR to String (PSTRING) + ##Out: + Uppercased/lowercased String in Buffer #PStrFTime Convert S.TIME struct to PSTR + ##In : + PUSHW = Dst PTR To PSTR Buf + PUSHW = Src PTR To Format String @@ -79,12 +92,15 @@ Convert S.TIME struct to PSTR + %y : Year, last two digits (00-99) + %Y : Year four digits 2001 + PUSHW = Src PTR To S.Time + ##Out : + none. always succeed. #K.PStr2StrArrayYA Convert a PSTR (e.g. : command Line) to a Array of PSTRs (Args[]) + ##In : + Y,A = PTR to String + ##Out : + CC : success + Y,A = PTR to StrArray