Kernel version 0.8 : Docs...

This commit is contained in:
Rémy GIBERT 2016-10-29 11:18:48 +02:00
parent 5989aa2d9d
commit 48c88ff956
2 changed files with 28 additions and 2 deletions

View File

@ -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

View File

@ -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!, " <NUL
set /a c+=1
set /p "=!c! - !FN! !CR!" <NUL
set bInDoc=0
for /F "tokens=*" %%L in (%~dp0..\SYS\!FN!) do (
set LINE=%%L
@ -48,7 +53,8 @@ for /f %%F in ('dir /b /ogn %~dp0..\SYS\KERNEL.S*.txt') do (
)
echo.
echo.
echo All done.
echo All done : !c! Files scanned.
echo.
echo (I know, this batch is stupid ;-)
echo.
pause