From 48c88ff956b40efcce0bd9eac4f048cd53b42df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20GIBERT?= Date: Sat, 29 Oct 2016 11:18:48 +0200 Subject: [PATCH] Kernel version 0.8 : Docs... --- _Docs/KERNEL.md | 20 ++++++++++++++++++++ _Tools/docgen.cmd | 10 ++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/_Docs/KERNEL.md b/_Docs/KERNEL.md index e39d1dd2..dedf446b 100644 --- a/_Docs/KERNEL.md +++ b/_Docs/KERNEL.md @@ -386,6 +386,26 @@ Create a new copy of PSTR + CS : error + A = SYS error code +#PStrCpy +Copy string + +##In: ++ PUSHW = Ptr to SRC (PSTR) ++ PUSHW = Ptr to DST (PSTR) + +##Out: ++ DST = SRC (PSTR) + +#PStrCat +Append SRC to DST + +##In: ++ PUSHW = Ptr to SRC (PSTR) ++ PUSHW = Ptr to DST (PSTR) + +##Out: ++ DST = DST+SRC (PSTR) + #PStrMatch Compare a String against pattern diff --git a/_Tools/docgen.cmd b/_Tools/docgen.cmd index 7e3de877..30d80ba7 100644 --- a/_Tools/docgen.cmd +++ b/_Tools/docgen.cmd @@ -3,6 +3,9 @@ title Kernel DOC generator COLOR 2A prompt ] SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION + +for /f %%a in ('copy /Z "%~f0" nul') do set "CR=%%a" + mode con:cols=40 lines=24 cls @@ -17,10 +20,12 @@ echo. echo Scanning KERNEL Src Files... echo. +set /a c=0 for /f %%F in ('dir /b /ogn %~dp0..\SYS\KERNEL.S*.txt') do ( set FN=%%F - set /p "=!FN!, "