diff --git a/build/AUTO.ISO b/build/AUTO.ISO index d71fbf0e..c63e9cad 100755 Binary files a/build/AUTO.ISO and b/build/AUTO.ISO differ diff --git a/build/build_iso.sh b/build/build_iso.sh index 56584a2e..87cc2489 100755 --- a/build/build_iso.sh +++ b/build/build_iso.sh @@ -16,8 +16,8 @@ sudo qemu-nbd -c dev/nbd0 -f raw ./ZealOS.raw sudo partprobe /dev/nbd0 echo "Merging with src/" sudo mount /dev/nbd0p1 /tmp/zealtmp -rm ../src/Home/Registry.CC # we use Registry for auto-iso process, don't want to overwrite -rm ../src/Home/MakeHome.CC # unneeded file +rm ../src/Home/Registry.ZC # we use Registry for auto-iso process, don't want to overwrite +rm ../src/Home/MakeHome.ZC # unneeded file sudo cp -r ../src/* /tmp/zealtmp/ sudo sync echo "Files copied, unmounting" diff --git a/src/Apps/Budget/BgtAccts.CC b/src/Apps/Budget/BgtAccts.ZC similarity index 100% rename from src/Apps/Budget/BgtAccts.CC rename to src/Apps/Budget/BgtAccts.ZC diff --git a/src/Apps/Budget/BgtEntry.CC b/src/Apps/Budget/BgtEntry.ZC similarity index 100% rename from src/Apps/Budget/BgtEntry.CC rename to src/Apps/Budget/BgtEntry.ZC diff --git a/src/Apps/Budget/BgtFile.CC b/src/Apps/Budget/BgtFile.ZC similarity index 100% rename from src/Apps/Budget/BgtFile.CC rename to src/Apps/Budget/BgtFile.ZC diff --git a/src/Apps/Budget/BgtMain.CC b/src/Apps/Budget/BgtMain.ZC similarity index 100% rename from src/Apps/Budget/BgtMain.CC rename to src/Apps/Budget/BgtMain.ZC diff --git a/src/Apps/Budget/BgtStrs.CC b/src/Apps/Budget/BgtStrs.ZC similarity index 100% rename from src/Apps/Budget/BgtStrs.CC rename to src/Apps/Budget/BgtStrs.ZC diff --git a/src/Apps/Budget/BgtTemplate.CC b/src/Apps/Budget/BgtTemplate.ZC similarity index 100% rename from src/Apps/Budget/BgtTemplate.CC rename to src/Apps/Budget/BgtTemplate.ZC diff --git a/src/Apps/Budget/Budget.CC b/src/Apps/Budget/Budget.ZC similarity index 100% rename from src/Apps/Budget/Budget.CC rename to src/Apps/Budget/Budget.ZC diff --git a/src/Apps/Budget/Install.CC b/src/Apps/Budget/Install.ZC similarity index 100% rename from src/Apps/Budget/Install.CC rename to src/Apps/Budget/Install.ZC diff --git a/src/Apps/Budget/Load.CC b/src/Apps/Budget/Load.ZC similarity index 100% rename from src/Apps/Budget/Load.CC rename to src/Apps/Budget/Load.ZC diff --git a/src/Apps/Budget/Run.CC b/src/Apps/Budget/Run.ZC similarity index 100% rename from src/Apps/Budget/Run.CC rename to src/Apps/Budget/Run.ZC diff --git a/src/Apps/GrModels/BallGen.CC b/src/Apps/GrModels/BallGen.ZC similarity index 96% rename from src/Apps/GrModels/BallGen.CC rename to src/Apps/GrModels/BallGen.ZC index 00bd53d6..b2d091ce 100755 --- a/src/Apps/GrModels/BallGen.CC +++ b/src/Apps/GrModels/BallGen.ZC @@ -62,7 +62,7 @@ I64 AddTri(BallDefineStruct *, I64 c, I64 n0, I64 n1, I64 n2) U8 *Ball2CSprite() { -//See $LK,"::/System/Gr/GrSpritePlot.CC",A="FL:::/System/Gr/GrSpritePlot.CC,1"$ for how CSprite are stored. +//See $LK,"::/System/Gr/GrSpritePlot.ZC",A="FL:::/System/Gr/GrSpritePlot.ZC,1"$ for how CSprite are stored. U8 *res = MAlloc(sizeof(CSpriteMeshU8s) + b->vertex_count * sizeof(CD3I32) + b->tri_count * sizeof(CMeshTri) + sprite_elem_base_sizes[SPT_END]), diff --git a/src/Apps/GrModels/Load.CC b/src/Apps/GrModels/Load.ZC similarity index 100% rename from src/Apps/GrModels/Load.CC rename to src/Apps/GrModels/Load.ZC diff --git a/src/Apps/GrModels/ManGen.CC b/src/Apps/GrModels/ManGen.ZC similarity index 98% rename from src/Apps/GrModels/ManGen.CC rename to src/Apps/GrModels/ManGen.ZC index 7103a638..23d24b8f 100755 --- a/src/Apps/GrModels/ManGen.CC +++ b/src/Apps/GrModels/ManGen.ZC @@ -187,7 +187,7 @@ U0 AddBox(ManDefineStruct *md, I64 c, U8 *Man2CSprite() { -//See $LK,"::/System/Gr/GrSpritePlot.CC",A="FL:::/System/Gr/GrSpritePlot.CC,1"$ for how CSprite are stored. +//See $LK,"::/System/Gr/GrSpritePlot.ZC",A="FL:::/System/Gr/GrSpritePlot.ZC,1"$ for how CSprite are stored. U8 *res = MAlloc(sizeof(CSpriteMeshU8s) + m->vertex_count * sizeof(CD3I32) + m->tri_count * sizeof(CMeshTri) + sprite_elem_base_sizes[SPT_END]), *dst = res; diff --git a/src/Apps/GrModels/Models.CC b/src/Apps/GrModels/Models.ZC similarity index 100% rename from src/Apps/GrModels/Models.CC rename to src/Apps/GrModels/Models.ZC diff --git a/src/Apps/GrModels/Run.CC b/src/Apps/GrModels/Run.ZC similarity index 100% rename from src/Apps/GrModels/Run.CC rename to src/Apps/GrModels/Run.ZC diff --git a/src/Apps/KeepAway/KeepAway.CC b/src/Apps/KeepAway/KeepAway.ZC similarity index 99% rename from src/Apps/KeepAway/KeepAway.CC rename to src/Apps/KeepAway/KeepAway.ZC index 60c55631..75d018a7 100755 --- a/src/Apps/KeepAway/KeepAway.CC +++ b/src/Apps/KeepAway/KeepAway.ZC @@ -1,5 +1,5 @@ //The ball and men were generated -//with $LK,"::/Apps/GrModels/Run.CC"$. +//with $LK,"::/Apps/GrModels/Run.ZC"$. //They were cut-and-pasted here. $BG,YELLOW$ diff --git a/src/Apps/KeepAway/Load.CC b/src/Apps/KeepAway/Load.ZC similarity index 100% rename from src/Apps/KeepAway/Load.CC rename to src/Apps/KeepAway/Load.ZC diff --git a/src/Apps/KeepAway/Run.CC b/src/Apps/KeepAway/Run.ZC similarity index 100% rename from src/Apps/KeepAway/Run.CC rename to src/Apps/KeepAway/Run.ZC diff --git a/src/Apps/Logic/Load.CC b/src/Apps/Logic/Load.ZC similarity index 100% rename from src/Apps/Logic/Load.CC rename to src/Apps/Logic/Load.ZC diff --git a/src/Apps/Logic/Logic.CC b/src/Apps/Logic/Logic.ZC similarity index 100% rename from src/Apps/Logic/Logic.CC rename to src/Apps/Logic/Logic.ZC diff --git a/src/Apps/Logic/Run.CC b/src/Apps/Logic/Run.ZC similarity index 100% rename from src/Apps/Logic/Run.CC rename to src/Apps/Logic/Run.ZC diff --git a/src/Apps/Psalmody/Examples/childish.CC b/src/Apps/Psalmody/Examples/childish.ZC similarity index 100% rename from src/Apps/Psalmody/Examples/childish.CC rename to src/Apps/Psalmody/Examples/childish.ZC diff --git a/src/Apps/Psalmody/Examples/night.CC b/src/Apps/Psalmody/Examples/night.ZC similarity index 100% rename from src/Apps/Psalmody/Examples/night.CC rename to src/Apps/Psalmody/Examples/night.ZC diff --git a/src/Apps/Psalmody/Examples/prosper.CC b/src/Apps/Psalmody/Examples/prosper.ZC similarity index 100% rename from src/Apps/Psalmody/Examples/prosper.CC rename to src/Apps/Psalmody/Examples/prosper.ZC diff --git a/src/Apps/Psalmody/Help.DD b/src/Apps/Psalmody/Help.DD index 7b8159b9..64edb959 100755 --- a/src/Apps/Psalmody/Help.DD +++ b/src/Apps/Psalmody/Help.DD @@ -4,10 +4,10 @@ $WW,1$$FG,5$$TX+CX,"Psalmody Help"$$FG$ * The clip can be used to cut and paste. -* $FG,2$Psalmody$FG$ uses $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ files as the song format! See $LK,"::/Apps/Psalmody/Examples/prosper.CC"$. The $FG,2$Psalmody$FG$ program does not fully parse the songs when loading them back in, so changes made outside $FG,2$Psalmody$FG$ will be lost, like if you add graphics. +* $FG,2$Psalmody$FG$ uses $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ files as the song format! See $LK,"::/Apps/Psalmody/Examples/prosper.ZC"$. The $FG,2$Psalmody$FG$ program does not fully parse the songs when loading them back in, so changes made outside $FG,2$Psalmody$FG$ will be lost, like if you add graphics. -* The first line of the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ song files is a comment with a category recognized by $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$(). The categories are $FG,2$"no nothing"$FG$, $FG,2$"has words"$FG$, $FG,2$"has graphics"$FG$, or $FG,2$"special"$FG$. The third character in the song comment is a digit rating number, shown in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$(). You can set the song rating in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$() by pressing $FG,2$0$FG$-$FG,2$9$FG$. You can request your reward from God by pressing $FG,2$r$FG$. You can press $FG,2$$FG$ to delete songs. +* The first line of the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ song files is a comment with a category recognized by $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$(). The categories are $FG,2$"no nothing"$FG$, $FG,2$"has words"$FG$, $FG,2$"has graphics"$FG$, or $FG,2$"special"$FG$. The third character in the song comment is a digit rating number, shown in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$(). You can set the song rating in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$() by pressing $FG,2$0$FG$-$FG,2$9$FG$. You can request your reward from God by pressing $FG,2$r$FG$. You can press $FG,2$$FG$ to delete songs. * You can take the $LK,"Play",A="MN:Play"$() statements out of a song file and place them in your programs. You can also add a song to a document with $FG,2$$FG$, but you should do it after pressing $FG,2$$FG$ because the clip-insert in $FG,2$$FG$ is screwy. See this $SO,"",A="4qG5EC4BeGG5qCeFD4sB5G4B5G4qG5EC4BeGG5qCeFD4sB5G4B5GqEeEFqE4BeG5FetC4A5GqFCEeEFqE4BeG5FetC4A5GqFC"$ after pressing $FG,2$$FG$, now. -* You can call $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$("~/Psalmody"); to play your songs. +* You can call $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$("~/Psalmody"); to play your songs. diff --git a/src/Apps/Psalmody/Install.CC b/src/Apps/Psalmody/Install.ZC similarity index 100% rename from src/Apps/Psalmody/Install.CC rename to src/Apps/Psalmody/Install.ZC diff --git a/src/Apps/Psalmody/JukeBox.CC b/src/Apps/Psalmody/JukeBox.ZC similarity index 99% rename from src/Apps/Psalmody/JukeBox.CC rename to src/Apps/Psalmody/JukeBox.ZC index c1bffdd2..f7182fd8 100755 --- a/src/Apps/Psalmody/JukeBox.CC +++ b/src/Apps/Psalmody/JukeBox.ZC @@ -134,7 +134,7 @@ public U0 JukeBox(U8 *dirname="~/Psalmody", U8 **_filename=NULL) try { dirname = StrNew(dirname); - st = MStrPrint("%s/*.CC", dirname); + st = MStrPrint("%s/*.ZC", dirname); tmpde = tmpde1 = FilesFind(st); Free(st); Free(dirname); diff --git a/src/Apps/Psalmody/JukePuppet.CC b/src/Apps/Psalmody/JukePuppet.ZC similarity index 100% rename from src/Apps/Psalmody/JukePuppet.CC rename to src/Apps/Psalmody/JukePuppet.ZC diff --git a/src/Apps/Psalmody/Load.CC b/src/Apps/Psalmody/Load.ZC similarity index 100% rename from src/Apps/Psalmody/Load.CC rename to src/Apps/Psalmody/Load.ZC diff --git a/src/Apps/Psalmody/Psalmody.CC b/src/Apps/Psalmody/Psalmody.ZC similarity index 100% rename from src/Apps/Psalmody/Psalmody.CC rename to src/Apps/Psalmody/Psalmody.ZC diff --git a/src/Apps/Psalmody/PsalmodyCtrls.CC b/src/Apps/Psalmody/PsalmodyCtrls.ZC similarity index 100% rename from src/Apps/Psalmody/PsalmodyCtrls.CC rename to src/Apps/Psalmody/PsalmodyCtrls.ZC diff --git a/src/Apps/Psalmody/PsalmodyDraw.CC b/src/Apps/Psalmody/PsalmodyDraw.ZC similarity index 100% rename from src/Apps/Psalmody/PsalmodyDraw.CC rename to src/Apps/Psalmody/PsalmodyDraw.ZC diff --git a/src/Apps/Psalmody/PsalmodyFile.CC b/src/Apps/Psalmody/PsalmodyFile.ZC similarity index 99% rename from src/Apps/Psalmody/PsalmodyFile.CC rename to src/Apps/Psalmody/PsalmodyFile.ZC index b8ba70b3..dd261504 100755 --- a/src/Apps/Psalmody/PsalmodyFile.CC +++ b/src/Apps/Psalmody/PsalmodyFile.ZC @@ -489,7 +489,7 @@ U8 *PsmSaveSong(U8 *dirname, U8 *full_filename) if (full_filename) Free(full_filename); else - StrPrint(doc->filename.name, "%s/Tmp.CC", dirname); + StrPrint(doc->filename.name, "%s/Tmp.ZC", dirname); DocWrite(doc, TRUE); full_filename = StrNew(doc->filename.name); DocDel(doc); diff --git a/src/Apps/Psalmody/PsalmodyMain.CC b/src/Apps/Psalmody/PsalmodyMain.ZC similarity index 100% rename from src/Apps/Psalmody/PsalmodyMain.CC rename to src/Apps/Psalmody/PsalmodyMain.ZC diff --git a/src/Apps/Psalmody/Run.CC b/src/Apps/Psalmody/Run.ZC similarity index 100% rename from src/Apps/Psalmody/Run.CC rename to src/Apps/Psalmody/Run.ZC diff --git a/src/Apps/Span/Install.CC b/src/Apps/Span/Install.ZC similarity index 100% rename from src/Apps/Span/Install.CC rename to src/Apps/Span/Install.ZC diff --git a/src/Apps/Span/Load.CC b/src/Apps/Span/Load.ZC similarity index 100% rename from src/Apps/Span/Load.CC rename to src/Apps/Span/Load.ZC diff --git a/src/Apps/Span/Run.CC b/src/Apps/Span/Run.ZC similarity index 100% rename from src/Apps/Span/Run.CC rename to src/Apps/Span/Run.ZC diff --git a/src/Apps/Span/SpanBridge.CC b/src/Apps/Span/SpanBridge.ZC similarity index 100% rename from src/Apps/Span/SpanBridge.CC rename to src/Apps/Span/SpanBridge.ZC diff --git a/src/Apps/Span/SpanDerive.CC b/src/Apps/Span/SpanDerive.ZC similarity index 100% rename from src/Apps/Span/SpanDerive.CC rename to src/Apps/Span/SpanDerive.ZC diff --git a/src/Apps/Span/SpanMain.CC b/src/Apps/Span/SpanMain.ZC similarity index 100% rename from src/Apps/Span/SpanMain.CC rename to src/Apps/Span/SpanMain.ZC diff --git a/src/Apps/Span/SpanNew.CC b/src/Apps/Span/SpanNew.ZC similarity index 100% rename from src/Apps/Span/SpanNew.CC rename to src/Apps/Span/SpanNew.ZC diff --git a/src/Apps/Strut/Load.CC b/src/Apps/Strut/Load.ZC similarity index 100% rename from src/Apps/Strut/Load.CC rename to src/Apps/Strut/Load.ZC diff --git a/src/Apps/Strut/Run.CC b/src/Apps/Strut/Run.ZC similarity index 100% rename from src/Apps/Strut/Run.CC rename to src/Apps/Strut/Run.ZC diff --git a/src/Apps/Strut/Strut.CC b/src/Apps/Strut/Strut.ZC similarity index 100% rename from src/Apps/Strut/Strut.CC rename to src/Apps/Strut/Strut.ZC diff --git a/src/Apps/TimeClock/Install.CC b/src/Apps/TimeClock/Install.ZC similarity index 100% rename from src/Apps/TimeClock/Install.CC rename to src/Apps/TimeClock/Install.ZC diff --git a/src/Apps/TimeClock/Load.CC b/src/Apps/TimeClock/Load.ZC similarity index 100% rename from src/Apps/TimeClock/Load.CC rename to src/Apps/TimeClock/Load.ZC diff --git a/src/Apps/TimeClock/TimeClk.CC b/src/Apps/TimeClock/TimeClk.ZC similarity index 100% rename from src/Apps/TimeClock/TimeClk.CC rename to src/Apps/TimeClock/TimeClk.ZC diff --git a/src/Apps/Titanium/Load.CC b/src/Apps/Titanium/Load.ZC similarity index 100% rename from src/Apps/Titanium/Load.CC rename to src/Apps/Titanium/Load.ZC diff --git a/src/Apps/Titanium/Run.CC b/src/Apps/Titanium/Run.ZC similarity index 100% rename from src/Apps/Titanium/Run.CC rename to src/Apps/Titanium/Run.ZC diff --git a/src/Apps/Titanium/Titanium.CC b/src/Apps/Titanium/Titanium.ZC similarity index 100% rename from src/Apps/Titanium/Titanium.CC rename to src/Apps/Titanium/Titanium.ZC diff --git a/src/Apps/ToTheFront/AIs/Human.CC b/src/Apps/ToTheFront/AIs/Human.ZC similarity index 100% rename from src/Apps/ToTheFront/AIs/Human.CC rename to src/Apps/ToTheFront/AIs/Human.ZC diff --git a/src/Apps/ToTheFront/AIs/SimpleAI.CC b/src/Apps/ToTheFront/AIs/SimpleAI.ZC similarity index 100% rename from src/Apps/ToTheFront/AIs/SimpleAI.CC rename to src/Apps/ToTheFront/AIs/SimpleAI.ZC diff --git a/src/Apps/ToTheFront/Install.CC b/src/Apps/ToTheFront/Install.ZC similarity index 100% rename from src/Apps/ToTheFront/Install.CC rename to src/Apps/ToTheFront/Install.ZC diff --git a/src/Apps/ToTheFront/Load.CC b/src/Apps/ToTheFront/Load.ZC similarity index 100% rename from src/Apps/ToTheFront/Load.CC rename to src/Apps/ToTheFront/Load.ZC diff --git a/src/Apps/ToTheFront/Run.CC b/src/Apps/ToTheFront/Run.ZC similarity index 100% rename from src/Apps/ToTheFront/Run.CC rename to src/Apps/ToTheFront/Run.ZC diff --git a/src/Apps/ToTheFront/TTFDraw.CC b/src/Apps/ToTheFront/TTFDraw.ZC similarity index 100% rename from src/Apps/ToTheFront/TTFDraw.CC rename to src/Apps/ToTheFront/TTFDraw.ZC diff --git a/src/Apps/ToTheFront/TTFFire.CC b/src/Apps/ToTheFront/TTFFire.ZC similarity index 100% rename from src/Apps/ToTheFront/TTFFire.CC rename to src/Apps/ToTheFront/TTFFire.ZC diff --git a/src/Apps/ToTheFront/TTFGlobals.CC b/src/Apps/ToTheFront/TTFGlobals.ZC similarity index 100% rename from src/Apps/ToTheFront/TTFGlobals.CC rename to src/Apps/ToTheFront/TTFGlobals.ZC diff --git a/src/Apps/ToTheFront/TTFInit.CC b/src/Apps/ToTheFront/TTFInit.ZC similarity index 99% rename from src/Apps/ToTheFront/TTFInit.CC rename to src/Apps/ToTheFront/TTFInit.ZC index 02a87126..2707d521 100755 --- a/src/Apps/ToTheFront/TTFInit.CC +++ b/src/Apps/ToTheFront/TTFInit.ZC @@ -440,10 +440,10 @@ U0 PlayerPick(U8 *dirname, I64 player) CDoc *doc = DocNew; Bool *old_silent = Silent; - st = MStrPrint("%s/*.CC*", dirname); + st = MStrPrint("%s/*.ZC*", dirname); tmpde = FilesFind(st); Free(st); - tmpde2 = FilesFind("~/ToTheFront/*.CC*"); + tmpde2 = FilesFind("~/ToTheFront/*.ZC*"); tmpde1 = tmpde; Silent(old_silent); diff --git a/src/Apps/ToTheFront/TTFLib.CC b/src/Apps/ToTheFront/TTFLib.ZC similarity index 100% rename from src/Apps/ToTheFront/TTFLib.CC rename to src/Apps/ToTheFront/TTFLib.ZC diff --git a/src/Apps/ToTheFront/TTFMove.CC b/src/Apps/ToTheFront/TTFMove.ZC similarity index 100% rename from src/Apps/ToTheFront/TTFMove.CC rename to src/Apps/ToTheFront/TTFMove.ZC diff --git a/src/Apps/ToTheFront/TTFVis.CC b/src/Apps/ToTheFront/TTFVis.ZC similarity index 100% rename from src/Apps/ToTheFront/TTFVis.CC rename to src/Apps/ToTheFront/TTFVis.ZC diff --git a/src/Apps/ToTheFront/ToTheFront.CC b/src/Apps/ToTheFront/ToTheFront.ZC similarity index 100% rename from src/Apps/ToTheFront/ToTheFront.CC rename to src/Apps/ToTheFront/ToTheFront.ZC diff --git a/src/Apps/Vocabulary/Load.CC b/src/Apps/Vocabulary/Load.ZC similarity index 100% rename from src/Apps/Vocabulary/Load.CC rename to src/Apps/Vocabulary/Load.ZC diff --git a/src/Apps/Vocabulary/Run.CC b/src/Apps/Vocabulary/Run.ZC similarity index 100% rename from src/Apps/Vocabulary/Run.CC rename to src/Apps/Vocabulary/Run.ZC diff --git a/src/Apps/Vocabulary/VocabQuiz.CC b/src/Apps/Vocabulary/VocabQuiz.ZC similarity index 100% rename from src/Apps/Vocabulary/VocabQuiz.CC rename to src/Apps/Vocabulary/VocabQuiz.ZC diff --git a/src/Apps/X-Caliber/Load.CC b/src/Apps/X-Caliber/Load.ZC similarity index 100% rename from src/Apps/X-Caliber/Load.CC rename to src/Apps/X-Caliber/Load.ZC diff --git a/src/Apps/X-Caliber/Run.CC b/src/Apps/X-Caliber/Run.ZC similarity index 100% rename from src/Apps/X-Caliber/Run.CC rename to src/Apps/X-Caliber/Run.ZC diff --git a/src/Apps/X-Caliber/X-Caliber.CC b/src/Apps/X-Caliber/X-Caliber.ZC similarity index 100% rename from src/Apps/X-Caliber/X-Caliber.CC rename to src/Apps/X-Caliber/X-Caliber.ZC diff --git a/src/Apps/X-Caliber/XCCtrls.CC b/src/Apps/X-Caliber/XCCtrls.ZC similarity index 100% rename from src/Apps/X-Caliber/XCCtrls.CC rename to src/Apps/X-Caliber/XCCtrls.ZC diff --git a/src/Compiler/Asm.CC b/src/Compiler/Asm.ZC similarity index 100% rename from src/Compiler/Asm.CC rename to src/Compiler/Asm.ZC diff --git a/src/Compiler/AsmInit.CC b/src/Compiler/AsmInit.ZC similarity index 100% rename from src/Compiler/AsmInit.CC rename to src/Compiler/AsmInit.ZC diff --git a/src/Compiler/AsmLib.CC b/src/Compiler/AsmLib.ZC similarity index 100% rename from src/Compiler/AsmLib.CC rename to src/Compiler/AsmLib.ZC diff --git a/src/Compiler/AsmResolve.CC b/src/Compiler/AsmResolve.ZC similarity index 100% rename from src/Compiler/AsmResolve.CC rename to src/Compiler/AsmResolve.ZC diff --git a/src/Compiler/BackA.CC b/src/Compiler/BackA.ZC similarity index 100% rename from src/Compiler/BackA.CC rename to src/Compiler/BackA.ZC diff --git a/src/Compiler/BackB.CC b/src/Compiler/BackB.ZC similarity index 100% rename from src/Compiler/BackB.CC rename to src/Compiler/BackB.ZC diff --git a/src/Compiler/BackC.CC b/src/Compiler/BackC.ZC similarity index 100% rename from src/Compiler/BackC.CC rename to src/Compiler/BackC.ZC diff --git a/src/Compiler/BackFA.CC b/src/Compiler/BackFA.ZC similarity index 100% rename from src/Compiler/BackFA.CC rename to src/Compiler/BackFA.ZC diff --git a/src/Compiler/BackFB.CC b/src/Compiler/BackFB.ZC similarity index 100% rename from src/Compiler/BackFB.CC rename to src/Compiler/BackFB.ZC diff --git a/src/Compiler/BackLib.CC b/src/Compiler/BackLib.ZC similarity index 100% rename from src/Compiler/BackLib.CC rename to src/Compiler/BackLib.ZC diff --git a/src/Compiler/CExcept.CC b/src/Compiler/CExcept.ZC similarity index 100% rename from src/Compiler/CExcept.CC rename to src/Compiler/CExcept.ZC diff --git a/src/Compiler/CExterns.CC b/src/Compiler/CExterns.ZC similarity index 100% rename from src/Compiler/CExterns.CC rename to src/Compiler/CExterns.ZC diff --git a/src/Compiler/CHash.CC b/src/Compiler/CHash.ZC similarity index 100% rename from src/Compiler/CHash.CC rename to src/Compiler/CHash.ZC diff --git a/src/Compiler/CInit.CC b/src/Compiler/CInit.ZC similarity index 100% rename from src/Compiler/CInit.CC rename to src/Compiler/CInit.ZC diff --git a/src/Compiler/CMain.CC b/src/Compiler/CMain.ZC similarity index 99% rename from src/Compiler/CMain.CC rename to src/Compiler/CMain.ZC index 9d50d858..ad8aa8cf 100755 --- a/src/Compiler/CMain.CC +++ b/src/Compiler/CMain.ZC @@ -711,7 +711,7 @@ I64 ExePrint(U8 *format, ...) I64 ExeFile(U8 *name, I64 ccf_flags=0) {//JIT Compile and execute a file. I64 res; - U8 *name2 = ExtDefault(name, "CC"), *st = MStrPrint("#include \"%s\";", name2); + U8 *name2 = ExtDefault(name, "ZC"), *st = MStrPrint("#include \"%s\";", name2); res = ExePutS(st, name, ccf_flags); Free(st); @@ -760,7 +760,7 @@ I64 ExePrint2(U8 *format, ...) I64 ExeFile2(U8 *name, I64 ccf_flags=0) {//throws exceptions I64 res; - U8 *name2 = ExtDefault(name, "CC"), *st = MStrPrint("#include \"%s\";", name2); + U8 *name2 = ExtDefault(name, "ZC"), *st = MStrPrint("#include \"%s\";", name2); res = ExePutS2(st, name, ccf_flags); Free(st); diff --git a/src/Compiler/CMisc.CC b/src/Compiler/CMisc.ZC similarity index 100% rename from src/Compiler/CMisc.CC rename to src/Compiler/CMisc.ZC diff --git a/src/Compiler/Lex.CC b/src/Compiler/Lex.ZC similarity index 99% rename from src/Compiler/Lex.CC rename to src/Compiler/Lex.ZC index d8812233..3756ada7 100755 --- a/src/Compiler/Lex.CC +++ b/src/Compiler/Lex.ZC @@ -34,7 +34,7 @@ CCompCtrl *CompCtrlNew(U8 *buf=NULL, I64 flags=0, U8 *filename=NULL) {//MAlloc and Init CCompCtrl. //Frees buf in $LK,"CompCtrlDel",A="MN:CompCtrlDel"$ unless $LK,"CCF_DONT_FREE_BUF",A="MN:CCF_DONT_FREE_BUF"$ flag is set. //FileName is for error reporting. If files are #included, - //new names are used. See $LK,"Psalmody CompCtrlNew",A="FF:::/Apps/Psalmody/PsalmodyFile.CC,CompCtrlNew"$. + //new names are used. See $LK,"Psalmody CompCtrlNew",A="FF:::/Apps/Psalmody/PsalmodyFile.ZC,CompCtrlNew"$. CCompCtrl *cc = CAlloc(sizeof(CCompCtrl)); CLexFile *tmpf; @@ -842,7 +842,7 @@ lex_float_start: case KW_INCLUDE: if (Lex(cc) != TK_STR) goto lex_end; - fbuf = ExtDefault(cc->cur_str, "CC"); + fbuf = ExtDefault(cc->cur_str, "ZC"); buf2 = FileNameAbs(fbuf); Free(fbuf); if (Bt(&sys_run_level, RLf_DOC)) diff --git a/src/Compiler/LexLib.CC b/src/Compiler/LexLib.ZC similarity index 99% rename from src/Compiler/LexLib.CC rename to src/Compiler/LexLib.ZC index 48114ab8..84e4bbb9 100755 --- a/src/Compiler/LexLib.CC +++ b/src/Compiler/LexLib.ZC @@ -48,7 +48,7 @@ U0 LexPopNoRestore(CCompCtrl *cc) } I64 MemberMetaData(U8 *needle_str, CMemberList *haystack_member_list) -{//Find meta data name, return meta data value. See $LK,"::/Demo/ClassMeta.CC"$. +{//Find meta data name, return meta data value. See $LK,"::/Demo/ClassMeta.ZC"$. CMemberListMeta *meta = haystack_member_list->meta; while (meta) @@ -62,7 +62,7 @@ I64 MemberMetaData(U8 *needle_str, CMemberList *haystack_member_list) } CMemberListMeta *MemberMetaFind(U8 *needle_str, CMemberList *haystack_member_list) -{//Find meta data name, return meta data struct. See $LK,"::/Demo/ClassMeta.CC"$. +{//Find meta data name, return meta data struct. See $LK,"::/Demo/ClassMeta.ZC"$. CMemberListMeta *meta = haystack_member_list->meta; while (meta) diff --git a/src/Compiler/OptLib.CC b/src/Compiler/OptLib.ZC similarity index 100% rename from src/Compiler/OptLib.CC rename to src/Compiler/OptLib.ZC diff --git a/src/Compiler/OptPass012.CC b/src/Compiler/OptPass012.ZC similarity index 99% rename from src/Compiler/OptPass012.CC rename to src/Compiler/OptPass012.ZC index 3a89375c..6ec621d4 100755 --- a/src/Compiler/OptPass012.CC +++ b/src/Compiler/OptPass012.ZC @@ -3,7 +3,7 @@ Pass #0 When parsing the arg expressions to a function call, there is a call to OptPass012 to determine -the type of the expression. $LK,"OptPass012",A="FF:::/Compiler/ParseExp.CC,OptPass012"$ +the type of the expression. $LK,"OptPass012",A="FF:::/Compiler/ParseExp.ZC,OptPass012"$ Pass #1 & #2 Constant expressions are simplified. diff --git a/src/Compiler/OptPass3.CC b/src/Compiler/OptPass3.ZC similarity index 100% rename from src/Compiler/OptPass3.CC rename to src/Compiler/OptPass3.ZC diff --git a/src/Compiler/OptPass4.CC b/src/Compiler/OptPass4.ZC similarity index 99% rename from src/Compiler/OptPass4.CC rename to src/Compiler/OptPass4.ZC index 0befdc5f..462d0c4f 100755 --- a/src/Compiler/OptPass4.CC +++ b/src/Compiler/OptPass4.ZC @@ -410,7 +410,7 @@ p4_sib: case IC_ASSIGN_PP: case IC_ASSIGN_MM: //this value was stashed during pass012 for pointer arithmetic - tmpi->ic_class2 = tmpi->t.class2; //See $LK,"ic_class2",A="FF:::/Compiler/BackB.CC,ic_class2"$ + tmpi->ic_class2 = tmpi->t.class2; //See $LK,"ic_class2",A="FF:::/Compiler/BackB.ZC,ic_class2"$ case IC_ASSIGN: case IC_SHL_EQU: case IC_SHR_EQU: diff --git a/src/Compiler/OptPass5.CC b/src/Compiler/OptPass5.ZC similarity index 100% rename from src/Compiler/OptPass5.CC rename to src/Compiler/OptPass5.ZC diff --git a/src/Compiler/OptPass6.CC b/src/Compiler/OptPass6.ZC similarity index 100% rename from src/Compiler/OptPass6.CC rename to src/Compiler/OptPass6.ZC diff --git a/src/Compiler/OptPass789A.CC b/src/Compiler/OptPass789A.ZC similarity index 100% rename from src/Compiler/OptPass789A.CC rename to src/Compiler/OptPass789A.ZC diff --git a/src/Compiler/ParseExp.CC b/src/Compiler/ParseExp.ZC similarity index 100% rename from src/Compiler/ParseExp.CC rename to src/Compiler/ParseExp.ZC diff --git a/src/Compiler/ParseLib.CC b/src/Compiler/ParseLib.ZC similarity index 100% rename from src/Compiler/ParseLib.CC rename to src/Compiler/ParseLib.ZC diff --git a/src/Compiler/ParseStatement.CC b/src/Compiler/ParseStatement.ZC similarity index 100% rename from src/Compiler/ParseStatement.CC rename to src/Compiler/ParseStatement.ZC diff --git a/src/Compiler/ParseVar.CC b/src/Compiler/ParseVar.ZC similarity index 100% rename from src/Compiler/ParseVar.CC rename to src/Compiler/ParseVar.ZC diff --git a/src/Compiler/Templates.CC b/src/Compiler/Templates.ZC similarity index 100% rename from src/Compiler/Templates.CC rename to src/Compiler/Templates.ZC diff --git a/src/Compiler/UAsm.CC b/src/Compiler/UAsm.ZC similarity index 100% rename from src/Compiler/UAsm.CC rename to src/Compiler/UAsm.ZC diff --git a/src/Demo/AcctExample/HomeKeyPlugIns.CC b/src/Demo/AcctExample/HomeKeyPlugIns.ZC similarity index 100% rename from src/Demo/AcctExample/HomeKeyPlugIns.CC rename to src/Demo/AcctExample/HomeKeyPlugIns.ZC diff --git a/src/Demo/AcctExample/HomeLocalize.CC b/src/Demo/AcctExample/HomeLocalize.ZC similarity index 100% rename from src/Demo/AcctExample/HomeLocalize.CC rename to src/Demo/AcctExample/HomeLocalize.ZC diff --git a/src/Demo/AcctExample/HomeSys.CC b/src/Demo/AcctExample/HomeSys.ZC similarity index 100% rename from src/Demo/AcctExample/HomeSys.CC rename to src/Demo/AcctExample/HomeSys.ZC diff --git a/src/Demo/AcctExample/HomeWrappers.CC b/src/Demo/AcctExample/HomeWrappers.ZC similarity index 100% rename from src/Demo/AcctExample/HomeWrappers.CC rename to src/Demo/AcctExample/HomeWrappers.ZC diff --git a/src/Demo/AcctExample/MakeHome.CC b/src/Demo/AcctExample/MakeHome.ZC similarity index 100% rename from src/Demo/AcctExample/MakeHome.CC rename to src/Demo/AcctExample/MakeHome.ZC diff --git a/src/Demo/AcctExample/Once.CC b/src/Demo/AcctExample/Once.ZC similarity index 87% rename from src/Demo/AcctExample/Once.CC rename to src/Demo/AcctExample/Once.ZC index 44801c72..31fcfa33 100755 --- a/src/Demo/AcctExample/Once.CC +++ b/src/Demo/AcctExample/Once.ZC @@ -3,7 +3,7 @@ //This file is executed by the //first terminal window upon start-up. -//See $LK,"Once",A="FF:/Home/HomeSys.CC,Once"$ and $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$. +//See $LK,"Once",A="FF:/Home/HomeSys.ZC,Once"$ and $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$. // Type("::/Doc/Customize.DD"); @@ -21,8 +21,8 @@ U0 Tmp() DocBottom; if (RunFile("::/Misc/OSInstall",, FALSE)) { - Del("C:/Home/DoDistro.CC"); - Del("D:/Home/DoDistro.CC"); + Del("C:/Home/DoDistro.ZC"); + Del("D:/Home/DoDistro.ZC"); OnceDrive('C', "\"\n\nRun TOSStaffIns;\n\n\n\";"); OnceDrive('D', ""); //This command uses cached Registry file. if (PressAKey != CH_SHIFT_ESC) diff --git a/src/Demo/AcctExample/PersonalMenu.DD b/src/Demo/AcctExample/PersonalMenu.DD index bcc4cdfd..0758078f 100755 Binary files a/src/Demo/AcctExample/PersonalMenu.DD and b/src/Demo/AcctExample/PersonalMenu.DD differ diff --git a/src/Demo/AcctExample/PersonalNotes.DD b/src/Demo/AcctExample/PersonalNotes.DD index b24d106f..00c189c8 100755 --- a/src/Demo/AcctExample/PersonalNotes.DD +++ b/src/Demo/AcctExample/PersonalNotes.DD @@ -24,11 +24,11 @@ $WW,1$$FG,5$$TX+CX,"TODO"$$FG$ * 170624 $LK,"DiskCheck",A="MN:DiskCheck"$() showed extra alloced clus for FAT32, Sup1Hymns. ClusNum was '.'+1 and clus was zero. -* $LK,"::/Apps/X-Caliber/X-Caliber.CC"$ +* $LK,"::/Apps/X-Caliber/X-Caliber.ZC"$ * Add asteroid harbor defense. * Afterburner thruster. -* $LK,"::/Apps/Titanium/Titanium.CC"$ +* $LK,"::/Apps/Titanium/Titanium.ZC"$ * Lead-in at start of game with no enemy. * Have highway of death. * Fix straight shooting. @@ -37,18 +37,18 @@ $WW,1$$FG,5$$TX+CX,"TODO"$$FG$ * $MA-X+PU,"64-Bit Device Memory",LM="F(\"mem64_ptr\");View;"$ is not implemented. -* Investigate why packet loss $LK,"Training Sleep(1)",A="FF:::/System/Training.CC,Sleep(1)"$. +* Investigate why packet loss $LK,"Training Sleep(1)",A="FF:::/System/Training.ZC,Sleep(1)"$. * Add AVL or red/black binary tree library support. We have fixed-size stack. Auto-balancing binary tree is very needed. I've done everything myself. I don't want to ruin a perfect record. I'm in no hurry. -* $LK,"SpriteEd",A="FI:::/System/Gr/SpriteEd.CC"$ shift pts, Ctrl pt for ellipse/polygon w,h is off when rotated. +* $LK,"SpriteEd",A="FI:::/System/Gr/SpriteEd.ZC"$ shift pts, Ctrl pt for ellipse/polygon w,h is off when rotated. -* God said this is bad. $LK,"FL:::/System/DolDoc/DocFind.CC,41"$ +* God said this is bad. $LK,"FL:::/System/DolDoc/DocFind.ZC,41"$ * Backward is broken? * $LK,"Find",A="MN:Find"$() search sprite text? -* Cannot include ':' in $LK,"Document Links",A="FF:::/System/DolDoc/DocLink.CC,AD"$ search string. +* Cannot include ':' in $LK,"Document Links",A="FF:::/System/DolDoc/DocLink.ZC,AD"$ search string. * $$DA fixed width string: or permanently shortens. * 11/19/16 editor took long time after copying old testament onto clip and exiting. @@ -61,9 +61,9 @@ $WW,1$$FG,5$$TX+CX,"TODO"$$FG$ * $LK,"DOCT_HEX_ED",A="MN:DOCT_HEX_ED"$ with odd size, ASCII cannot be edited. -* $LK,"FL:::/System/Gr/SpriteEd.CC,789"$ Resize bitmap? +* $LK,"FL:::/System/Gr/SpriteEd.ZC,789"$ Resize bitmap? -* $LK,"DOCEF_REMALLOC_DATA",A="FF:::/System/DolDoc/DocChar.CC,DOCEF_REMALLOC_DATA"$ HexEdit Remalloc. +* $LK,"DOCEF_REMALLOC_DATA",A="FF:::/System/DolDoc/DocChar.ZC,DOCEF_REMALLOC_DATA"$ HexEdit Remalloc. * $LK,"DOCF_DBL_DOLLARS",A="MN:DOCF_DBL_DOLLARS"$ in $LK,"Reindention",A="MN:EdCodeTools2"$. @@ -87,7 +87,7 @@ $WW,1$$FG,5$$TX+CX,"TODO"$$FG$ * Bible ranges in $LK,"BibleVerse",A="MN:BibleVerse"$(). -* $LK,"::/Demo/Games/FlatTops.CC"$ is torpedo, not bombs. +* $LK,"::/Demo/Games/FlatTops.ZC"$ is torpedo, not bombs. * Reset MPs with $LK,"Core0StartMP",A="MN:Core0StartMP"$() after boot. Free old task memory? @@ -104,13 +104,13 @@ $WW,1$$FG,5$$TX+CX,"TODO"$$FG$ * Get rid of JIFFY and HPET and just use tS. -* Use "Rosetta Stone" in documentaion pointing to this: $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$. +* Use "Rosetta Stone" in documentaion pointing to this: $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$. * Change %h*c so the character is not a arg? * $LK,"GrLineFat3",A="MN:GrLineFat3"$() needs a little work. -* $LK,"GrFillTri0",A="MN:GrFillTri0"$() with both $LK,"GrHLine",A="MN:GrHLine"$() and $LK,"GrVLine",A="MN:GrVLine"$() don't match in $LK,"::/Demo/Games/CastleFrankenstein.CC"$ causing wall spot pixels. +* $LK,"GrFillTri0",A="MN:GrFillTri0"$() with both $LK,"GrHLine",A="MN:GrHLine"$() and $LK,"GrVLine",A="MN:GrVLine"$() don't match in $LK,"::/Demo/Games/CastleFrankenstein.ZC"$ causing wall spot pixels. $FG,5$$TX+CX,"TODO? Meh"$$FG$ @@ -122,13 +122,13 @@ $FG,5$$TX+CX,"TODO? Meh"$$FG$ * $LK,"Mem32DevAlloc",A="MN:Mem32DevAlloc"$() is broken. Devices should be in free spot of E820 report. -* $LK,"SpriteEd",A="FI:::/System/Gr/SpriteEd.CC"$: Strip $LK,"SPT_SHIFT",A="MN:SPT_SHIFT"$ origin cmds? +* $LK,"SpriteEd",A="FI:::/System/Gr/SpriteEd.ZC"$: Strip $LK,"SPT_SHIFT",A="MN:SPT_SHIFT"$ origin cmds? * Clean-up ASCII #127 delete char? (No. Maybe, we want a new usage for 127 in future centuries.) * Compiler: Exceptions don't free $LK,"CCompCtrl",A="MN:CCompCtrl"$ stuff. -* $LK,"::/System/DolDoc/DocHighlight.CC"$ for code comments at top of documents. +* $LK,"::/System/DolDoc/DocHighlight.ZC"$ for code comments at top of documents. * Unhandled exception messages from MP's get overwritten by WinMgr. @@ -145,7 +145,7 @@ $FG,5$$TX+CX,"TODO? Meh"$$FG$ $FG,5$$TX+CX,"TODO: Too Hard, or Not Worth Doing."$$FG$ * AutoComplete/$LK,"Man",A="MN:Man"$() Jmp for user code. -* $LK,"Bible sized nodes",A="FF:::/System/DolDoc/DocRecalc.CC,->tag + i"$ +* $LK,"Bible sized nodes",A="FF:::/System/DolDoc/DocRecalc.ZC,->tag + i"$ * $LK,"FileMgr",A="MN:FileMgr"$() is bad with lots of files. @@ -153,7 +153,7 @@ $FG,5$$TX+CX,"TODO: Too Hard, or Not Worth Doing."$$FG$ * Log-to-file is inefficient because we load and save whole file. -* $LK,"ICMov",A="MN:ICMov"$() $LK,"PUSH_CMP",A="FF:::/Compiler/BackLib.CC,PUSH_CMP"$ and $LK,"MDf_STACK",A="MN:MDf_STACK"$? Perhaps, it's okay. +* $LK,"ICMov",A="MN:ICMov"$() $LK,"PUSH_CMP",A="FF:::/Compiler/BackLib.ZC,PUSH_CMP"$ and $LK,"MDf_STACK",A="MN:MDf_STACK"$? Perhaps, it's okay. * Short FAT32 ~ names. @@ -169,17 +169,17 @@ $ID,5$$HL,1$U0 Main() U0 (*fp_old_draw_mouse)(CDC *dc,I64 x,I64 y)=gr.fp_draw_mouse; } $ID,-5$$HL,0$ -* Compiler: Get rid of $LK,"0x20000",A="FF:::/Compiler/CMain.CC,0x20000"$ limit. +* Compiler: Get rid of $LK,"0x20000",A="FF:::/Compiler/CMain.ZC,0x20000"$ limit. -* $LK,"GrFloodFillRay",A="MN:GrFloodFillRay"$: Get rid of $LK,"0x80000",A="FF:::/System/Gr/GrPrimatives.CC,0x80000"$ limit. +* $LK,"GrFloodFillRay",A="MN:GrFloodFillRay"$: Get rid of $LK,"0x80000",A="FF:::/System/Gr/GrPrimatives.ZC,0x80000"$ limit. $FG,5$$TX+CX,"Bugs"$$FG$ -* 1/28/16 $LK,"::/Demo/Graphics/Pick3D.CC"$ crashed in TestSuite. +* 1/28/16 $LK,"::/Demo/Graphics/Pick3D.ZC"$ crashed in TestSuite. * 1/12/16 make RAM drive 2288 blks, $FG,2$CopyTree("C:/Home","B:/Home"); $FG$ Disk runs-out of space and hangs instead of reporting errors. -* Bug introduced around 11/1/15. Changed $LK,"::/Kernel/Sched.CC"$ and now $LK,"WinToTop",A="MN:WinToTop"$ is called on System task at start-up, sometimes. Might be user's fault because of bad keys pressed during VMware power-on init. Might be fixed by $LK,"ACf_INIT_IN_PROGRESS",A="MN:ACf_INIT_IN_PROGRESS"$. +* Bug introduced around 11/1/15. Changed $LK,"::/Kernel/Sched.ZC"$ and now $LK,"WinToTop",A="MN:WinToTop"$ is called on System task at start-up, sometimes. Might be user's fault because of bad keys pressed during VMware power-on init. Might be fixed by $LK,"ACf_INIT_IN_PROGRESS",A="MN:ACf_INIT_IN_PROGRESS"$. * 1/12/16 $LK,"ATARepEntry",A="MN:ATARepEntry"$ shows corrupted bttns. Weird. Perhaps, my imagination. @@ -188,7 +188,7 @@ $FG,5$$TX+CX,"3rd Party Bugs"$$FG$ * VMware: Stretch to full screen * VMware: PC speaker sound distorted. * VMware: 8/2/2015 start-up. Probably multicore. -* VMware: $LK,"CtrlAltDel",A="FF:::/Kernel/SerialDev/Keyboard.CC,CtrlAltDel"$ on +* VMware: $LK,"CtrlAltDel",A="FF:::/Kernel/SerialDev/Keyboard.ZC,CtrlAltDel"$ on * VMware: Size zero files don't copy out of mounted disk? (Might be fixed.) @@ -206,7 +206,7 @@ $FG,5$$TX+CX,"Bugs? Not really sure."$$FG$ * 1/?/2015,8/10/2015 Macro sel in Menu did not go to shell? No, I think just twice. Not a bug. * 5/7/14:Something like $LK,"InSetMouse",A="MN:InSetMouse"$ caused hang, then reboot in TestSuite. -* 5/7/14:#63 Maybe, $LK,"::/Demo/Graphics/Pick3D.CC"$ crashed in TestSuite. +* 5/7/14:#63 Maybe, $LK,"::/Demo/Graphics/Pick3D.ZC"$ crashed in TestSuite. * $LK,"StrPrintJoin",A="MN:StrPrintJoin"$(,st); With st="\n\\"; (Forgot what this is talking about.) @@ -230,9 +230,9 @@ $ID,-5$ * $LK,"U",A="MN:U"$() negative byte displacement, neg 32-bit disp. -* Race condition in $LK,"::/Demo/Games/FlatTops.CC"$ torpedo. +* Race condition in $LK,"::/Demo/Games/FlatTops.ZC"$ torpedo. -* Links to self document if empty file name? $LK,"Document Links",A="FF:::/System/DolDoc/DocLink.CC,AD"$ +* Links to self document if empty file name? $LK,"Document Links",A="FF:::/System/DolDoc/DocLink.ZC,AD"$ * $LK,"FUF_RECURSE",A="MN:FUF_RECURSE"$ would be nice if capital "+R". @@ -259,7 +259,7 @@ $FG,5$$TX+CX,"Committee Needed"$$FG$ * Make so just CdRom; command to copy entire disk to ::/CdRom directory? -* $LK,"MP DepthBuf",A="FF:::/System/Gr/SpriteMesh.CC,//We"$ is a kludge because of dc->depth_buf=NULL in various graphics routines. +* $LK,"MP DepthBuf",A="FF:::/System/Gr/SpriteMesh.ZC,//We"$ is a kludge because of dc->depth_buf=NULL in various graphics routines. * Improve editor undo, add redo. @@ -276,8 +276,8 @@ $FG,5$$TX+CX,"Committee Needed"$$FG$ * $LK,"GrPutChar3",A="MN:GrPutChar3"$() with depth buf? -* Eliminate? $LK,"::/System/Ctrls/CtrlsA.CC"$? -* Eliminate? $LK,"::/System/MathODE.CC"$? +* Eliminate? $LK,"::/System/Ctrls/CtrlsA.ZC"$? +* Eliminate? $LK,"::/System/MathODE.ZC"$? * Eliminate? $LK,"Complex",A="MN:Complex"$? * Eliminate? $LK,"CDC",A="MN:CDC"$.brush? * Eliminate? $LK,"Mat4x4MulXYZ",A="MN:Mat4x4MulXYZ"$() change to 3x3? @@ -287,7 +287,7 @@ $FG,5$$TX+CX,"Committee Needed"$$FG$ * Should Messages in PopUp queue get fwded to parent when task dies? -* Import Intel datasheets so we can use links in $LK,"Code",A="FI:::/Kernel/Memory/PageTables.CC"$ for documentation. I tried a PDF-to-text convertor and it wasn't acceptible. +* Import Intel datasheets so we can use links in $LK,"Code",A="FI:::/Kernel/Memory/PageTables.ZC"$ for documentation. I tried a PDF-to-text convertor and it wasn't acceptible. * Switch stmt with sparse cases? Maybe, ban sparse switch statements. @@ -305,11 +305,11 @@ $FG,5$$TX+CX,"Committee Needed"$$FG$ * SIMD in $LK,"Mat4x4MulXYZ",A="MN:Mat4x4MulXYZ"$? -* I use fixed-point in $LK,"Circle",A="MN:Circle"$(), $LK,"Ellipse",A="MN:Ellipse"$(), $LK,"Mat4x4MulXYZ",A="MN:Mat4x4MulXYZ"$(), $LK,"Mat4x4MulMat4x4New",A="MN:Mat4x4MulMat4x4New"$() and others. God says I might want to change to float. $LK,"::/Demo/Lectures/FixedPoint.CC"$ $LK,"::/Demo/Lectures/FixedPointAdvanced.CC"$. +* I use fixed-point in $LK,"Circle",A="MN:Circle"$(), $LK,"Ellipse",A="MN:Ellipse"$(), $LK,"Mat4x4MulXYZ",A="MN:Mat4x4MulXYZ"$(), $LK,"Mat4x4MulMat4x4New",A="MN:Mat4x4MulMat4x4New"$() and others. God says I might want to change to float. $LK,"::/Demo/Lectures/FixedPoint.ZC"$ $LK,"::/Demo/Lectures/FixedPointAdvanced.ZC"$. -* Note: We will never put multiple $LK,"Keyboard Tables",A="FI:::/Kernel/SerialDev/Keyboard.CC"$. Each country must make their own version of ZealOS. The $LK,"Intel Factory ROM",A="FF:::/Doc/Demands.DD,English"$ will have just English. Our $LK,"Charter",A="FI:::/Doc/Charter.DD"$ bans multiple country or architectures in the same version. +* Note: We will never put multiple $LK,"Keyboard Tables",A="FI:::/Kernel/SerialDev/Keyboard.ZC"$. Each country must make their own version of ZealOS. The $LK,"Intel Factory ROM",A="FF:::/Doc/Demands.DD,English"$ will have just English. Our $LK,"Charter",A="FI:::/Doc/Charter.DD"$ bans multiple country or architectures in the same version. -* 12 border chars in screen font codes 0x02-0x0D. $LK,"TextBorder",A="MN:TextBorder"$() $LK,"RawDumpRegs",A="MN:RawDumpRegs"$() $LK,"::/Demo/Games/CharDemo.CC"$. LineFeed shows-up in $FG,2$$FG$ PersonalMenu. +* 12 border chars in screen font codes 0x02-0x0D. $LK,"TextBorder",A="MN:TextBorder"$() $LK,"RawDumpRegs",A="MN:RawDumpRegs"$() $LK,"::/Demo/Games/CharDemo.ZC"$. LineFeed shows-up in $FG,2$$FG$ PersonalMenu. * Super-simple high speed serial needs flow control. $FG,2$$FG$ and $FG,2$$FG$? @@ -348,7 +348,7 @@ $FG,5$$TX+CX,"Inspirational Ideas"$$FG$ * Move stuff out of $LK,"Kernel",A="FI:::/Kernel/Kernel.PRJ"$ module. -* $$LK,L="FL:D:/Kernel/File.CC"$$ instead of A= +* $$LK,L="FL:D:/Kernel/File.ZC"$$ instead of A= * $$SP,B=1$$ instead of $$SP,BI=1$$ * $$CM+LE+RE is nasty @@ -360,7 +360,7 @@ $FG,5$$TX+CX,"Inspirational Ideas"$$FG$ * Compiler: More aggressive in $LK,"CompF2PushPop",A="MN:CompF2PushPop"$() with types besides MOV and F64. -* Playing with $LK,"::/Demo/Lectures/NegDisp.CC"$ on $LK,"CTask",A="MN:CTask"$? +* Playing with $LK,"::/Demo/Lectures/NegDisp.ZC"$ on $LK,"CTask",A="MN:CTask"$? $ID,5$$$=-CTASK_NEG_OFFSET offset(CTask.addr)==0 Spawn(): CAlloc() @@ -372,12 +372,12 @@ $ID,-5$ $FG,5$$TX+CX,"Test"$$FG$ -* $LK,"SpriteBitMap",A="FI:::/System/Gr/SpriteBitMap.CC"$: Grabscroll? +* $LK,"SpriteBitMap",A="FI:::/System/Gr/SpriteBitMap.ZC"$: Grabscroll? * Return ress for $LK,"GrBlot",A="MN:GrBlot"$, $LK,"GrRect",A="MN:GrRect"$, $LK,"GrPutChar",A="MN:GrPutChar"$? * Collision counts for $LK,"GrBlot",A="MN:GrBlot"$, $LK,"GrRect",A="MN:GrRect"$, $LK,"GrPutChar",A="MN:GrPutChar"$? -* $LK,"StrGet",A="MN:StrGet"$() or $LK,"CharGet",A="MN:CharGet"$() in $LK,"OSInstall",A="FI:::/Misc/OSInstall.CC"$ didn't like focus change. +* $LK,"StrGet",A="MN:StrGet"$() or $LK,"CharGet",A="MN:CharGet"$() in $LK,"OSInstall",A="FI:::/Misc/OSInstall.ZC"$ didn't like focus change. * Test on Dad's computer or other people's? @@ -387,7 +387,7 @@ $FG,5$$TX+CX,"Test"$$FG$ * $LK,"FileMgr",A="MN:FileMgr"$() help link scrolls out of window. -* $LK,"MouseHardDriverInstall",A="MN:MouseHardDriverInstall"$() throws exceptions? Doesn't work? Why mouse $LK,"0x9FC30",A="FF:::/Kernel/SerialDev/Mouse.CC,9FC"$? +* $LK,"MouseHardDriverInstall",A="MN:MouseHardDriverInstall"$() throws exceptions? Doesn't work? Why mouse $LK,"0x9FC30",A="FF:::/Kernel/SerialDev/Mouse.ZC,9FC"$? * VirtualBox MP reboot? @@ -408,7 +408,7 @@ $FG,5$$TX+CX,"Uncategorized"$$FG$ >Might want to do ZOOM in U8 graphics and convert screen capture to U8 >Might want to rev bit order -* This $LK,"Fs->catch_except = TRUE",A="FF:::/Kernel/Job.CC,Fs->catch_except = TRUE"$ causes problems because it +* This $LK,"Fs->catch_except = TRUE",A="FF:::/Kernel/Job.ZC,Fs->catch_except = TRUE"$ causes problems because it catches divide and out-of-mem. Not sure what to do, yet. * Release semaphores or break lock sema,usb_td diff --git a/src/Demo/AcctExample/Registry.CC b/src/Demo/AcctExample/Registry.ZC similarity index 100% rename from src/Demo/AcctExample/Registry.CC rename to src/Demo/AcctExample/Registry.ZC diff --git a/src/Demo/AcctExample/TOS/MakeTOS.CC b/src/Demo/AcctExample/TOS/MakeTOS.ZC similarity index 100% rename from src/Demo/AcctExample/TOS/MakeTOS.CC rename to src/Demo/AcctExample/TOS/MakeTOS.ZC diff --git a/src/Demo/AcctExample/TOS/TOSConfig.CC b/src/Demo/AcctExample/TOS/TOSConfig.ZC similarity index 100% rename from src/Demo/AcctExample/TOS/TOSConfig.CC rename to src/Demo/AcctExample/TOS/TOSConfig.ZC diff --git a/src/Demo/AcctExample/TOS/TOSDistro.CC b/src/Demo/AcctExample/TOS/TOSDistro.ZC similarity index 91% rename from src/Demo/AcctExample/TOS/TOSDistro.CC rename to src/Demo/AcctExample/TOS/TOSDistro.ZC index 4c93a04c..5a9c8f84 100755 --- a/src/Demo/AcctExample/TOS/TOSDistro.CC +++ b/src/Demo/AcctExample/TOS/TOSDistro.ZC @@ -1,4 +1,4 @@ -//The CONFIG defines are $LK,"~/TOS/TOSConfig.CC",A="FI:::/Demo/AcctExample/TOS/TOSConfig.CC"$. +//The CONFIG defines are $LK,"~/TOS/TOSConfig.ZC",A="FI:::/Demo/AcctExample/TOS/TOSConfig.ZC"$. #help_index "Misc/TOS/Distro" @@ -80,8 +80,8 @@ U0 DistroPrep() DelTree("/Demo/AcctExample/Sup2"); DelTree("/Demo/AcctExample/Sup3"); Del("/Demo/AcctExample/Test*"); - if (FileFind("~/Sup1/Sup1Utils/SortHeaders.CC")) - ExeFile("~/Sup1/Sup1Utils/SortHeaders.CC"); + if (FileFind("~/Sup1/Sup1Utils/SortHeaders.ZC")) + ExeFile("~/Sup1/Sup1Utils/SortHeaders.ZC"); CursorRemove("/*"); DelTree("/Demo/*.BI*"); @@ -112,16 +112,16 @@ U0 DebugDistroFilePrep() Copy("C:/Kernel/*.HH*", "A:/Kernel"); CopyTree("C:/Kernel/BlkDev", "A:/Kernel/BlkDev"); - Copy("C:/Home/Sup1/Sup1Distro/DebugStartOS.CC", "A:/StartOS.CC"); + Copy("C:/Home/Sup1/Sup1Distro/DebugStartOS.ZC", "A:/StartOS.ZC"); DirMake("A:/System"); - Copy("C:/Home/Sup1/Sup1Distro/DebugMakeSystem.CC", "A:/System/MakeSystem.CC"); - Copy("C:/Home/Sup1/Sup1Distro/DebugMount.CC", "A:/System"); - Copy("C:/System/AExts.CC", "A:/System"); - Copy("C:/System/AMath.CC", "A:/System"); - Copy("C:/System/Training.CC", "A:/System"); - Copy("C:/System/AMem.CC", "A:/System"); - Copy("C:/System/TaskRep.CC", "A:/System"); + Copy("C:/Home/Sup1/Sup1Distro/DebugMakeSystem.ZC", "A:/System/MakeSystem.ZC"); + Copy("C:/Home/Sup1/Sup1Distro/DebugMount.ZC", "A:/System"); + Copy("C:/System/AExts.ZC", "A:/System"); + Copy("C:/System/AMath.ZC", "A:/System"); + Copy("C:/System/Training.ZC", "A:/System"); + Copy("C:/System/AMem.ZC", "A:/System"); + Copy("C:/System/TaskRep.ZC", "A:/System"); FileWrite("C:" CONFIG_DEBUG_DISTRO_FILE, bd->RAM_disk, (bd->max_blk + 1) << BLK_SIZE_BITS); } @@ -164,7 +164,7 @@ U0 LiteDistroPrep() DirMake(TOS_DISTRO_DIR "/Home"); DelTree(TOS_DISTRO_DIR "/Apps"); DelTree(TOS_DISTRO_DIR "/Demo"); - Copy(TOS_DISTRO_DIR "/Demo/Games/Talons.CC", TOS_DISTRO_DIR "/Home"); + Copy(TOS_DISTRO_DIR "/Demo/Games/Talons.ZC", TOS_DISTRO_DIR "/Home"); Del(TOS_DISTRO_DIR "/" KERNEL_BIN_C); Del(TOS_DISTRO_DIR BOOT_DIR "/OldMBR.BIN.C"); Del(TOS_DISTRO_DIR BOOT_DIR "/BootMHD2.BIN.C"); @@ -248,7 +248,7 @@ I64 UpdateLineCounts() CopyTree("B:/TOS/TOS", "C:/Home"); DelTree("B:/TOS/TOS"); - DocTreeFWrite("C:/System/Define.CC", "LineRep", "DefinePrint(\"DD_ZEALOS_LOC\",\"%,d\");\n", res); + DocTreeFWrite("C:/System/Define.ZC", "LineRep", "DefinePrint(\"DD_ZEALOS_LOC\",\"%,d\");\n", res); DefinePrint("DD_ZEALOS_LOC", "%,d", res); "Total LOC:%12,d\n\n", res; @@ -383,6 +383,6 @@ public U0 TOSRegen() {//Generate distro ISO's TOSBootHDIns('C'); Once("PopUp(\"TOSRegen2;\");"); -// BootRAM("C:/Kernel/" KERNEL_BIN_C); //Boot to load $LK,"TOS_CONFIG",A="PF:::/Demo/AcctExample/TOS/TOSConfig.CC,TOS_CONFIG"$. - BootRAM("::" BOOT_DIR_KERNEL_BIN_C); //Boot to load $LK,"TOS_CONFIG",A="PF:::/Demo/AcctExample/TOS/TOSConfig.CC,TOS_CONFIG"$. +// BootRAM("C:/Kernel/" KERNEL_BIN_C); //Boot to load $LK,"TOS_CONFIG",A="PF:::/Demo/AcctExample/TOS/TOSConfig.ZC,TOS_CONFIG"$. + BootRAM("::" BOOT_DIR_KERNEL_BIN_C); //Boot to load $LK,"TOS_CONFIG",A="PF:::/Demo/AcctExample/TOS/TOSConfig.ZC,TOS_CONFIG"$. } diff --git a/src/Demo/AcctExample/TOS/TOSExtern.CC b/src/Demo/AcctExample/TOS/TOSExtern.ZC similarity index 100% rename from src/Demo/AcctExample/TOS/TOSExtern.CC rename to src/Demo/AcctExample/TOS/TOSExtern.ZC diff --git a/src/Demo/AcctExample/TOS/TOSMisc.CC b/src/Demo/AcctExample/TOS/TOSMisc.ZC similarity index 100% rename from src/Demo/AcctExample/TOS/TOSMisc.CC rename to src/Demo/AcctExample/TOS/TOSMisc.ZC diff --git a/src/Demo/AcctExample/TOS/TOSTheme.CC b/src/Demo/AcctExample/TOS/TOSTheme.ZC similarity index 100% rename from src/Demo/AcctExample/TOS/TOSTheme.CC rename to src/Demo/AcctExample/TOS/TOSTheme.ZC diff --git a/src/Demo/Asm/AsmAndC1.CC b/src/Demo/Asm/AsmAndC1.ZC similarity index 100% rename from src/Demo/Asm/AsmAndC1.CC rename to src/Demo/Asm/AsmAndC1.ZC diff --git a/src/Demo/Asm/AsmAndC2.CC b/src/Demo/Asm/AsmAndC2.ZC similarity index 96% rename from src/Demo/Asm/AsmAndC2.CC rename to src/Demo/Asm/AsmAndC2.ZC index 68f8c2b6..6021d98f 100755 --- a/src/Demo/Asm/AsmAndC2.CC +++ b/src/Demo/Asm/AsmAndC2.ZC @@ -15,7 +15,7 @@ asm { JIFFIES_MESSAGE: DU8 "Jiffies:", 0; -//See $LK,"::/Kernel/StrA.CC",A="FL:::/Kernel/StrA.CC,1"$ and $LK,"::/Kernel/KUtils.CC"$. +//See $LK,"::/Kernel/StrA.ZC",A="FL:::/Kernel/StrA.ZC,1"$ and $LK,"::/Kernel/KUtils.ZC"$. _BEEPS2:: //You can clobber RAX,RBX,RCX,RDX,R8,R9. The compiler expects that. diff --git a/src/Demo/Asm/AsmAndC3.CC b/src/Demo/Asm/AsmAndC3.ZC similarity index 100% rename from src/Demo/Asm/AsmAndC3.CC rename to src/Demo/Asm/AsmAndC3.ZC diff --git a/src/Demo/Asm/AsmHelloWorld.CC b/src/Demo/Asm/AsmHelloWorld.ZC similarity index 95% rename from src/Demo/Asm/AsmHelloWorld.CC rename to src/Demo/Asm/AsmHelloWorld.ZC index 37729ad7..842dfee9 100755 --- a/src/Demo/Asm/AsmHelloWorld.CC +++ b/src/Demo/Asm/AsmHelloWorld.ZC @@ -5,7 +5,7 @@ error, like when repeatedly #including it from the cmd line. These are many useful kernel -routines $LK,"::/Kernel/StrA.CC",A="FF:::/Kernel/StrA.CC,PUT_CHARS"$ +routines $LK,"::/Kernel/StrA.ZC",A="FF:::/Kernel/StrA.ZC,PUT_CHARS"$ intended to be called from asm. Generally, they preserve registers. diff --git a/src/Demo/Asm/BuzzFizz.CC b/src/Demo/Asm/BuzzFizz.ZC similarity index 100% rename from src/Demo/Asm/BuzzFizz.CC rename to src/Demo/Asm/BuzzFizz.ZC diff --git a/src/Demo/Asm/DivByHand.CC b/src/Demo/Asm/DivByHand.ZC similarity index 100% rename from src/Demo/Asm/DivByHand.CC rename to src/Demo/Asm/DivByHand.ZC diff --git a/src/Demo/Asm/MulByHand.CC b/src/Demo/Asm/MulByHand.ZC similarity index 100% rename from src/Demo/Asm/MulByHand.CC rename to src/Demo/Asm/MulByHand.ZC diff --git a/src/Demo/Asm/PutDec.CC b/src/Demo/Asm/PutDec.ZC similarity index 100% rename from src/Demo/Asm/PutDec.CC rename to src/Demo/Asm/PutDec.ZC diff --git a/src/Demo/Carry.CC b/src/Demo/Carry.ZC similarity index 100% rename from src/Demo/Carry.CC rename to src/Demo/Carry.ZC diff --git a/src/Demo/ClassMeta.CC b/src/Demo/ClassMeta.ZC similarity index 97% rename from src/Demo/ClassMeta.CC rename to src/Demo/ClassMeta.ZC index f516801b..cb3feb5d 100755 --- a/src/Demo/ClassMeta.CC +++ b/src/Demo/ClassMeta.ZC @@ -28,7 +28,7 @@ class Test2Struct }; U0 DumpStruct(U8 *_d, U8 *class_name=lastclass) -{//lastclass is keyword. See $LK,"::/Demo/LastClass.CC"$. +{//lastclass is keyword. See $LK,"::/Demo/LastClass.ZC"$. CHashClass *tmpc = HashFind(class_name, Fs->hash_table, HTT_CLASS); U8 *print_str; I64 *q, default_val; diff --git a/src/Demo/CompileDemo.CC b/src/Demo/CompileDemo.ZC similarity index 100% rename from src/Demo/CompileDemo.CC rename to src/Demo/CompileDemo.ZC diff --git a/src/Demo/DateTime.CC b/src/Demo/DateTime.ZC similarity index 100% rename from src/Demo/DateTime.CC rename to src/Demo/DateTime.ZC diff --git a/src/Demo/DebugDemo.CC b/src/Demo/DebugDemo.ZC similarity index 100% rename from src/Demo/DebugDemo.CC rename to src/Demo/DebugDemo.ZC diff --git a/src/Demo/Define.CC b/src/Demo/Define.ZC similarity index 100% rename from src/Demo/Define.CC rename to src/Demo/Define.ZC diff --git a/src/Demo/Directives.CC b/src/Demo/Directives.ZC similarity index 100% rename from src/Demo/Directives.CC rename to src/Demo/Directives.ZC diff --git a/src/Demo/Disk/DataBase.CC b/src/Demo/Disk/DataBase.ZC similarity index 100% rename from src/Demo/Disk/DataBase.CC rename to src/Demo/Disk/DataBase.ZC diff --git a/src/Demo/Disk/DiskRaw.CC b/src/Demo/Disk/DiskRaw.ZC similarity index 100% rename from src/Demo/Disk/DiskRaw.CC rename to src/Demo/Disk/DiskRaw.ZC diff --git a/src/Demo/Disk/FPrintF.CC b/src/Demo/Disk/FPrintF.ZC similarity index 100% rename from src/Demo/Disk/FPrintF.CC rename to src/Demo/Disk/FPrintF.ZC diff --git a/src/Demo/Disk/SerializeTree.CC b/src/Demo/Disk/SerializeTree.ZC similarity index 100% rename from src/Demo/Disk/SerializeTree.CC rename to src/Demo/Disk/SerializeTree.ZC diff --git a/src/Demo/Disk/UnusedSpaceRep.CC b/src/Demo/Disk/UnusedSpaceRep.ZC similarity index 100% rename from src/Demo/Disk/UnusedSpaceRep.CC rename to src/Demo/Disk/UnusedSpaceRep.ZC diff --git a/src/Demo/DolDoc/CallBack.CC b/src/Demo/DolDoc/CallBack.ZC similarity index 97% rename from src/Demo/DolDoc/CallBack.CC rename to src/Demo/DolDoc/CallBack.ZC index 7485a04b..ed443895 100755 --- a/src/Demo/DolDoc/CallBack.CC +++ b/src/Demo/DolDoc/CallBack.ZC @@ -35,7 +35,7 @@ U0 DoIt() //Flags are explained here: //$LK,"::/Doc/DolDocOverview.DD"$ $LK,"::/Doc/Widget.DD"$ - //$LK,"Dollar Flags",A="MN:DOCEf_TAG"$ $LK,"ST_DOC_FLAGS",A="FF:::/System/DolDoc/DocInit.CC,ST_DOC_FLAGS"$ + //$LK,"Dollar Flags",A="MN:DOCEf_TAG"$ $LK,"ST_DOC_FLAGS",A="FF:::/System/DolDoc/DocInit.ZC,ST_DOC_FLAGS"$ doc_e->tag_cb = &tSCB; DocPrint(bdoc, "$$FG$$"); DocUnlock(bdoc); diff --git a/src/Demo/DolDoc/ClickCallBack.CC b/src/Demo/DolDoc/ClickCallBack.ZC similarity index 95% rename from src/Demo/DolDoc/ClickCallBack.CC rename to src/Demo/DolDoc/ClickCallBack.ZC index ceab5bfe..8029f99c 100755 --- a/src/Demo/DolDoc/ClickCallBack.CC +++ b/src/Demo/DolDoc/ClickCallBack.ZC @@ -23,7 +23,7 @@ U0 ClickCallBack() //Flags are explained here: //$LK,"::/Doc/DolDocOverview.DD"$ $LK,"::/Doc/Widget.DD"$ - //$LK,"Dollar Flags",A="MN:DOCEf_TAG"$ $LK,"ST_DOC_FLAGS",A="FF:::/System/DolDoc/DocInit.CC,ST_DOC_FLAGS"$ + //$LK,"Dollar Flags",A="MN:DOCEf_TAG"$ $LK,"ST_DOC_FLAGS",A="FF:::/System/DolDoc/DocInit.ZC,ST_DOC_FLAGS"$ "(Not preserved if you press .)\n\n"; doc_e->left_cb = &MyLeftCB1; DocUnlock(DocPut); diff --git a/src/Demo/DolDoc/CursorMove.CC b/src/Demo/DolDoc/CursorMove.ZC similarity index 100% rename from src/Demo/DolDoc/CursorMove.CC rename to src/Demo/DolDoc/CursorMove.ZC diff --git a/src/Demo/DolDoc/Data.CC b/src/Demo/DolDoc/Data.ZC similarity index 95% rename from src/Demo/DolDoc/Data.CC rename to src/Demo/DolDoc/Data.ZC index ab2d6ef6..4551a49b 100755 --- a/src/Demo/DolDoc/Data.CC +++ b/src/Demo/DolDoc/Data.ZC @@ -8,7 +8,7 @@ -P Means it is a string variable, basically. ,32 sets the tag string width. - See $LK,"Data Tag Width",A="FA:::/System/DolDoc/DocPlain.CC,DataTagWidth"$. + See $LK,"Data Tag Width",A="FA:::/System/DolDoc/DocPlain.ZC,DataTagWidth"$. ,RT=I16 means the value is 2 bytes. See $LK,"DocDataFormat",A="MN:DocDataFormat"$() and $LK,"DocDataScan",A="MN:DocDataScan"$(). diff --git a/src/Demo/DolDoc/DefineStr.CC b/src/Demo/DolDoc/DefineStr.ZC similarity index 100% rename from src/Demo/DolDoc/DefineStr.CC rename to src/Demo/DolDoc/DefineStr.ZC diff --git a/src/Demo/DolDoc/FileRead.CC b/src/Demo/DolDoc/FileRead.ZC similarity index 95% rename from src/Demo/DolDoc/FileRead.CC rename to src/Demo/DolDoc/FileRead.ZC index bc13f9d1..30882055 100755 --- a/src/Demo/DolDoc/FileRead.CC +++ b/src/Demo/DolDoc/FileRead.ZC @@ -34,7 +34,7 @@ public U0 DocProfile(U8 *filename,I64 flags) "See $$LK,\"CDocEntry\",A=\"MN:CDocEntry\"$$, " "$$LK,\"Doc Type Defines\",A=\"MN:DOCT_TEXT\"$$ and " "$$LK,\"Doc Type Codes\"," - "A=\"FF:::/System/DolDoc/DocInit.CC,ST_DOC_CMDS\"$$.\n" + "A=\"FF:::/System/DolDoc/DocInit.ZC,ST_DOC_CMDS\"$$.\n" "$$FG$$"; for (i = 0; i < DOCT_TYPES_NUM; i++) if (cmd_stats[i]) @@ -54,7 +54,7 @@ public U0 DocProfile(U8 *filename,I64 flags) "$$GREEN$$\n'$$PURPLE$$doc_e->de_flags$$GREEN$$' is 64-bit. " "See $$LK,\"Doc Flag Defines\",A=\"MN:DOCEf_TAG\"$$ and " "$$LK,\"Doc Flag Codes\"," - "A=\"FF:::/System/DolDoc/DocInit.CC,ST_DOC_FLAGS\"$$.\n" + "A=\"FF:::/System/DolDoc/DocInit.ZC,ST_DOC_FLAGS\"$$.\n" "$$FG$$"; for (i = 0; i < 64; i++) if (flags_stats[i]) diff --git a/src/Demo/DolDoc/Form.CC b/src/Demo/DolDoc/Form.ZC similarity index 100% rename from src/Demo/DolDoc/Form.CC rename to src/Demo/DolDoc/Form.ZC diff --git a/src/Demo/DolDoc/MenuBttn.CC b/src/Demo/DolDoc/MenuBttn.ZC similarity index 100% rename from src/Demo/DolDoc/MenuBttn.CC rename to src/Demo/DolDoc/MenuBttn.ZC diff --git a/src/Demo/DolDoc/MenuSprite.CC b/src/Demo/DolDoc/MenuSprite.ZC similarity index 100% rename from src/Demo/DolDoc/MenuSprite.CC rename to src/Demo/DolDoc/MenuSprite.ZC diff --git a/src/Demo/DolDoc/NumBible.CC b/src/Demo/DolDoc/NumBible.ZC similarity index 100% rename from src/Demo/DolDoc/NumBible.CC rename to src/Demo/DolDoc/NumBible.ZC diff --git a/src/Demo/DolDoc/TextDemo.CC b/src/Demo/DolDoc/TextDemo.ZC similarity index 85% rename from src/Demo/DolDoc/TextDemo.CC rename to src/Demo/DolDoc/TextDemo.ZC index ee3760bb..4d4d3516 100755 --- a/src/Demo/DolDoc/TextDemo.CC +++ b/src/Demo/DolDoc/TextDemo.ZC @@ -4,7 +4,7 @@ "Blink : $$BK,1$$Test$$BK,0$$\n\n" "Invert : $$IV,1$$Test$$IV,0$$\n\n" "UnderLine: $$UL,1$$Test$$UL,0$$\n\n" - "Link : $$LK,\"KStart16.CC\",A=\"::/Kernel/KStart16.CC\"$$\n\n\n" + "Link : $$LK,\"KStart16.ZC\",A=\"::/Kernel/KStart16.ZC\"$$\n\n\n" "Bttn : $$BT-X,\"OKAY\",LE=1$$\n\n\n\n"; //You can do it this way if you like. @@ -16,6 +16,6 @@ "Invert : $IV,1$Test$IV,0$\n\n" "UnderLine: $UL,1$Test$UL,0$\n\n" // on this link to toggle individual commands. - "Link : $LK,"KStart16.CC",A="::/Kernel/KStart16.CC"$\n\n\n" + "Link : $LK,"KStart16.ZC",A="::/Kernel/KStart16.ZC"$\n\n\n" "Bttn : $BT,"OKAY",LE=1$\n\n\n\n"; diff --git a/src/Demo/DolDoc/TreeDemo.CC b/src/Demo/DolDoc/TreeDemo.ZC similarity index 100% rename from src/Demo/DolDoc/TreeDemo.CC rename to src/Demo/DolDoc/TreeDemo.ZC diff --git a/src/Demo/DolDoc/UnusedDefine.CC b/src/Demo/DolDoc/UnusedDefine.ZC similarity index 100% rename from src/Demo/DolDoc/UnusedDefine.CC rename to src/Demo/DolDoc/UnusedDefine.ZC diff --git a/src/Demo/Exceptions.CC b/src/Demo/Exceptions.ZC similarity index 100% rename from src/Demo/Exceptions.CC rename to src/Demo/Exceptions.ZC diff --git a/src/Demo/ExtChars.CC b/src/Demo/ExtChars.ZC similarity index 77% rename from src/Demo/ExtChars.CC rename to src/Demo/ExtChars.ZC index a9f18597..dd93717e 100755 --- a/src/Demo/ExtChars.CC +++ b/src/Demo/ExtChars.ZC @@ -28,7 +28,7 @@ U0 SrcExample() } SrcExample; -//See $LK,"::/Demo/ScreenCodes.CC"$, $LK,"::/Demo/Graphics/CharAnimation.CC"$, -//$LK,"::/Demo/Games/CharDemo.CC"$ and $LK,"::/Demo/Graphics/FontEd.CC"$. +//See $LK,"::/Demo/ScreenCodes.ZC"$, $LK,"::/Demo/Graphics/CharAnimation.ZC"$, +//$LK,"::/Demo/Games/CharDemo.ZC"$ and $LK,"::/Demo/Graphics/FontEd.ZC"$. //See $LK,"char_bmp_alpha",A="MN:char_bmp_alpha"$ and $LK,"char_bmp_alpha_numeric",A="MN:char_bmp_alpha_numeric"$. diff --git a/src/Demo/Games/BattleLines.CC b/src/Demo/Games/BattleLines.ZC similarity index 99% rename from src/Demo/Games/BattleLines.CC rename to src/Demo/Games/BattleLines.ZC index 9928de6b..5208c7a3 100755 --- a/src/Demo/Games/BattleLines.CC +++ b/src/Demo/Games/BattleLines.ZC @@ -1,4 +1,4 @@ -//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. $BG,2$ diff --git a/src/Demo/Games/BigGuns.CC b/src/Demo/Games/BigGuns.ZC similarity index 98% rename from src/Demo/Games/BigGuns.CC rename to src/Demo/Games/BigGuns.ZC index 3eafed46..86991b00 100755 Binary files a/src/Demo/Games/BigGuns.CC and b/src/Demo/Games/BigGuns.ZC differ diff --git a/src/Demo/Games/BlackDiamond.CC b/src/Demo/Games/BlackDiamond.ZC similarity index 100% rename from src/Demo/Games/BlackDiamond.CC rename to src/Demo/Games/BlackDiamond.ZC diff --git a/src/Demo/Games/BomberGolf.CC b/src/Demo/Games/BomberGolf.ZC similarity index 100% rename from src/Demo/Games/BomberGolf.CC rename to src/Demo/Games/BomberGolf.ZC diff --git a/src/Demo/Games/CastleFrankenstein.CC b/src/Demo/Games/CastleFrankenstein.ZC similarity index 99% rename from src/Demo/Games/CastleFrankenstein.CC rename to src/Demo/Games/CastleFrankenstein.ZC index fcd24947..c5eed11b 100755 --- a/src/Demo/Games/CastleFrankenstein.CC +++ b/src/Demo/Games/CastleFrankenstein.ZC @@ -1,4 +1,4 @@ -//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. RegDefault("ZealOS/CastleFrankenstein", "F64 best_score=9999;\n"); RegExe("ZealOS/CastleFrankenstein"); diff --git a/src/Demo/Games/CharDemo.CC b/src/Demo/Games/CharDemo.ZC similarity index 97% rename from src/Demo/Games/CharDemo.CC rename to src/Demo/Games/CharDemo.ZC index 5161d877..0a813c8f 100755 --- a/src/Demo/Games/CharDemo.CC +++ b/src/Demo/Games/CharDemo.ZC @@ -3,7 +3,7 @@ Char graphics are how games on the C64 were made. You don't need to do it this way, unless for fun. You can just make device context bigger than the screen and scroll around. -See $LK,"::/Demo/Games/RawHide.CC"$ or $LK,"::/Demo/Games/BigGuns.CC"$. +See $LK,"::/Demo/Games/RawHide.ZC"$ or $LK,"::/Demo/Games/BigGuns.ZC"$. The nice thing about character graphics are the animations. */ @@ -33,7 +33,7 @@ U0 DrawIt(CTask *task, CDC *) for (j = 0; j < task->win_width; j++) //By the time you clip to window and handle Fs->scroll_x, Fs->scroll_y, //it is too much trouble to do raw access to gr.text_base like we do - //in $LK,"::/Demo/Games/Maze.CC"$. + //in $LK,"::/Demo/Games/Maze.ZC"$. TextChar(task, FALSE, j, i, *ptr++); } } diff --git a/src/Demo/Games/Chess.CC b/src/Demo/Games/Chess.ZC similarity index 100% rename from src/Demo/Games/Chess.CC rename to src/Demo/Games/Chess.ZC diff --git a/src/Demo/Games/CircleTrace.CC b/src/Demo/Games/CircleTrace.ZC similarity index 100% rename from src/Demo/Games/CircleTrace.CC rename to src/Demo/Games/CircleTrace.ZC diff --git a/src/Demo/Games/Collision.CC b/src/Demo/Games/Collision.ZC similarity index 96% rename from src/Demo/Games/Collision.CC rename to src/Demo/Games/Collision.ZC index f7c38c34..49d79794 100755 Binary files a/src/Demo/Games/Collision.CC and b/src/Demo/Games/Collision.ZC differ diff --git a/src/Demo/Games/Digits.CC b/src/Demo/Games/Digits.ZC similarity index 96% rename from src/Demo/Games/Digits.CC rename to src/Demo/Games/Digits.ZC index 7a9090de..70959a7f 100755 --- a/src/Demo/Games/Digits.CC +++ b/src/Demo/Games/Digits.ZC @@ -3,7 +3,7 @@ //gives a name to it. Strings like //this are known as Define entries. -//See $LK,"ST_RAINBOW_10",A="FF:::/System/Gr/GrPalette.CC,ST_RAINBOW_10"$ +//See $LK,"ST_RAINBOW_10",A="FF:::/System/Gr/GrPalette.ZC,ST_RAINBOW_10"$ U0 PrintDigit(U8 ch) { diff --git a/src/Demo/Games/DunGen.CC b/src/Demo/Games/DunGen.ZC similarity index 99% rename from src/Demo/Games/DunGen.CC rename to src/Demo/Games/DunGen.ZC index 2ad40e30..2a8151f2 100755 --- a/src/Demo/Games/DunGen.CC +++ b/src/Demo/Games/DunGen.ZC @@ -111,7 +111,7 @@ U0 DrawIt(CTask *task, CDC *dc) dc_t->flags |= DCF_TRANSFORMATION; //You could make it much more efficient - //if you did it like $LK,"::/Demo/Games/BigGuns.CC"$ + //if you did it like $LK,"::/Demo/Games/BigGuns.ZC"$ //with a $LK,"CDC",A="MN:CDC"$. for (y = -SCREEN_HEIGHT / 2; y < SCREEN_HEIGHT / 2; y++) diff --git a/src/Demo/Games/ElephantWalk.CC b/src/Demo/Games/ElephantWalk.ZC similarity index 100% rename from src/Demo/Games/ElephantWalk.CC rename to src/Demo/Games/ElephantWalk.ZC diff --git a/src/Demo/Games/FlapBat.CC b/src/Demo/Games/FlapBat.ZC similarity index 100% rename from src/Demo/Games/FlapBat.CC rename to src/Demo/Games/FlapBat.ZC diff --git a/src/Demo/Games/FlatTops.CC b/src/Demo/Games/FlatTops.ZC similarity index 100% rename from src/Demo/Games/FlatTops.CC rename to src/Demo/Games/FlatTops.ZC diff --git a/src/Demo/Games/Halogen.CC b/src/Demo/Games/Halogen.ZC similarity index 100% rename from src/Demo/Games/Halogen.CC rename to src/Demo/Games/Halogen.ZC diff --git a/src/Demo/Games/MassSpring.CC b/src/Demo/Games/MassSpring.ZC similarity index 100% rename from src/Demo/Games/MassSpring.CC rename to src/Demo/Games/MassSpring.ZC diff --git a/src/Demo/Games/Maze.CC b/src/Demo/Games/Maze.ZC similarity index 100% rename from src/Demo/Games/Maze.CC rename to src/Demo/Games/Maze.ZC diff --git a/src/Demo/Games/RainDrops.CC b/src/Demo/Games/RainDrops.ZC similarity index 100% rename from src/Demo/Games/RainDrops.CC rename to src/Demo/Games/RainDrops.ZC diff --git a/src/Demo/Games/RawHide.CC b/src/Demo/Games/RawHide.ZC similarity index 99% rename from src/Demo/Games/RawHide.CC rename to src/Demo/Games/RawHide.ZC index 4d577303..e5ed6230 100755 --- a/src/Demo/Games/RawHide.CC +++ b/src/Demo/Games/RawHide.ZC @@ -1,4 +1,4 @@ -//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. RegDefault("ZealOS/RawHide", "F64 best_score=9999;\n"); RegExe("ZealOS/RawHide"); diff --git a/src/Demo/Games/Rocket.CC b/src/Demo/Games/Rocket.ZC similarity index 100% rename from src/Demo/Games/Rocket.CC rename to src/Demo/Games/Rocket.ZC diff --git a/src/Demo/Games/RocketScience.CC b/src/Demo/Games/RocketScience.ZC similarity index 100% rename from src/Demo/Games/RocketScience.CC rename to src/Demo/Games/RocketScience.ZC diff --git a/src/Demo/Games/Squirt.CC b/src/Demo/Games/Squirt.ZC similarity index 100% rename from src/Demo/Games/Squirt.CC rename to src/Demo/Games/Squirt.ZC diff --git a/src/Demo/Games/Stadium/Stadium.CC b/src/Demo/Games/Stadium/Stadium.ZC similarity index 100% rename from src/Demo/Games/Stadium/Stadium.CC rename to src/Demo/Games/Stadium/Stadium.ZC diff --git a/src/Demo/Games/Stadium/StadiumGen.CC b/src/Demo/Games/Stadium/StadiumGen.ZC similarity index 100% rename from src/Demo/Games/Stadium/StadiumGen.CC rename to src/Demo/Games/Stadium/StadiumGen.ZC diff --git a/src/Demo/Games/Talons.CC b/src/Demo/Games/Talons.ZC similarity index 99% rename from src/Demo/Games/Talons.CC rename to src/Demo/Games/Talons.ZC index b429266d..0428f107 100755 --- a/src/Demo/Games/Talons.CC +++ b/src/Demo/Games/Talons.ZC @@ -1,4 +1,4 @@ -//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. RegDefault("ZealOS/Talons", "F64 best_score=9999;\n"); RegExe("ZealOS/Talons"); diff --git a/src/Demo/Games/TheDead.CC b/src/Demo/Games/TheDead.ZC similarity index 100% rename from src/Demo/Games/TheDead.CC rename to src/Demo/Games/TheDead.ZC diff --git a/src/Demo/Games/TicTacToe.CC b/src/Demo/Games/TicTacToe.ZC similarity index 100% rename from src/Demo/Games/TicTacToe.CC rename to src/Demo/Games/TicTacToe.ZC diff --git a/src/Demo/Games/TreeCheckers.CC b/src/Demo/Games/TreeCheckers.ZC similarity index 100% rename from src/Demo/Games/TreeCheckers.CC rename to src/Demo/Games/TreeCheckers.ZC diff --git a/src/Demo/Games/Varoom.CC b/src/Demo/Games/Varoom.ZC similarity index 100% rename from src/Demo/Games/Varoom.CC rename to src/Demo/Games/Varoom.ZC diff --git a/src/Demo/Games/Wenceslas.CC b/src/Demo/Games/Wenceslas.ZC similarity index 100% rename from src/Demo/Games/Wenceslas.CC rename to src/Demo/Games/Wenceslas.ZC diff --git a/src/Demo/Games/Whap.CC b/src/Demo/Games/Whap.ZC similarity index 100% rename from src/Demo/Games/Whap.CC rename to src/Demo/Games/Whap.ZC diff --git a/src/Demo/Games/Zing.CC b/src/Demo/Games/Zing.ZC similarity index 100% rename from src/Demo/Games/Zing.CC rename to src/Demo/Games/Zing.ZC diff --git a/src/Demo/Games/ZoneOut.CC b/src/Demo/Games/ZoneOut.ZC similarity index 100% rename from src/Demo/Games/ZoneOut.CC rename to src/Demo/Games/ZoneOut.ZC diff --git a/src/Demo/GlobalVars.CC b/src/Demo/GlobalVars.ZC similarity index 100% rename from src/Demo/GlobalVars.CC rename to src/Demo/GlobalVars.ZC diff --git a/src/Demo/Graphics/32BitColor.CC b/src/Demo/Graphics/32BitColor.ZC similarity index 100% rename from src/Demo/Graphics/32BitColor.CC rename to src/Demo/Graphics/32BitColor.ZC diff --git a/src/Demo/Graphics/32BitPaint.CC b/src/Demo/Graphics/32BitPaint.ZC similarity index 100% rename from src/Demo/Graphics/32BitPaint.CC rename to src/Demo/Graphics/32BitPaint.ZC diff --git a/src/Demo/Graphics/3DPoly.CC b/src/Demo/Graphics/3DPoly.ZC similarity index 100% rename from src/Demo/Graphics/3DPoly.CC rename to src/Demo/Graphics/3DPoly.ZC diff --git a/src/Demo/Graphics/BSpline.CC b/src/Demo/Graphics/BSpline.ZC similarity index 100% rename from src/Demo/Graphics/BSpline.CC rename to src/Demo/Graphics/BSpline.ZC diff --git a/src/Demo/Graphics/Blot.CC b/src/Demo/Graphics/Blot.ZC similarity index 100% rename from src/Demo/Graphics/Blot.CC rename to src/Demo/Graphics/Blot.ZC diff --git a/src/Demo/Graphics/Bounce.CC b/src/Demo/Graphics/Bounce.ZC similarity index 98% rename from src/Demo/Graphics/Bounce.CC rename to src/Demo/Graphics/Bounce.ZC index 598c7aeb..dd118662 100755 --- a/src/Demo/Graphics/Bounce.CC +++ b/src/Demo/Graphics/Bounce.ZC @@ -1,4 +1,4 @@ -//Uses $LK,"fixed-point-arithmetic",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +//Uses $LK,"fixed-point-arithmetic",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. I64 x[16], y[16], dx[16], dy[16]; diff --git a/src/Demo/Graphics/Box.CC b/src/Demo/Graphics/Box.ZC similarity index 100% rename from src/Demo/Graphics/Box.CC rename to src/Demo/Graphics/Box.ZC diff --git a/src/Demo/Graphics/Cartesian.CC b/src/Demo/Graphics/Cartesian.ZC similarity index 96% rename from src/Demo/Graphics/Cartesian.CC rename to src/Demo/Graphics/Cartesian.ZC index c7830ada..cf2e9dc2 100755 --- a/src/Demo/Graphics/Cartesian.CC +++ b/src/Demo/Graphics/Cartesian.ZC @@ -54,4 +54,4 @@ Cartesian; //For better performance, compile the expression entered by the //user one time with $LK,"LexExpression2Bin",A="MN:LexExpression2Bin"$() and use $LK,"Call",A="MN:Call"$(). -//See $LK,"::/Demo/CompileDemo.CC"$. +//See $LK,"::/Demo/CompileDemo.ZC"$. diff --git a/src/Demo/Graphics/CharAnimation.CC b/src/Demo/Graphics/CharAnimation.ZC similarity index 78% rename from src/Demo/Graphics/CharAnimation.CC rename to src/Demo/Graphics/CharAnimation.ZC index 1aa007c8..13045e7e 100755 --- a/src/Demo/Graphics/CharAnimation.CC +++ b/src/Demo/Graphics/CharAnimation.ZC @@ -1,7 +1,7 @@ U8 *old_font = text.font; -// See $LK,"::/Kernel/FontStd.CC"$, $LK,"::/Demo/ScreenCodes.CC"$, -//$LK,"::/Demo/ExtChars.CC"$, and $LK,"::/Demo/Graphics/FontEd.CC"$. +// See $LK,"::/Kernel/FontStd.ZC"$, $LK,"::/Demo/ScreenCodes.ZC"$, +//$LK,"::/Demo/ExtChars.ZC"$, and $LK,"::/Demo/Graphics/FontEd.ZC"$. U64 waves[4] = {0x0011AA440011AA44,0x0022558800225588,0x0044AA110044AA11,0x0088552200885522}; diff --git a/src/Demo/Graphics/Clock.CC b/src/Demo/Graphics/Clock.ZC similarity index 100% rename from src/Demo/Graphics/Clock.CC rename to src/Demo/Graphics/Clock.ZC diff --git a/src/Demo/Graphics/Collision.CC b/src/Demo/Graphics/Collision.ZC similarity index 100% rename from src/Demo/Graphics/Collision.CC rename to src/Demo/Graphics/Collision.ZC diff --git a/src/Demo/Graphics/CommonAncestor.CC b/src/Demo/Graphics/CommonAncestor.ZC similarity index 98% rename from src/Demo/Graphics/CommonAncestor.CC rename to src/Demo/Graphics/CommonAncestor.ZC index 3ff839cd..8fde4af7 100755 --- a/src/Demo/Graphics/CommonAncestor.CC +++ b/src/Demo/Graphics/CommonAncestor.ZC @@ -128,5 +128,5 @@ TreeCommonAncestor; Be careful with recursive routines in ZealOS because the stack does not grow and will overflow. -See $LK,"::/Demo/StackGrow.CC"$. +See $LK,"::/Demo/StackGrow.ZC"$. */ diff --git a/src/Demo/Graphics/Doodle.CC b/src/Demo/Graphics/Doodle.ZC similarity index 100% rename from src/Demo/Graphics/Doodle.CC rename to src/Demo/Graphics/Doodle.ZC diff --git a/src/Demo/Graphics/EdSprite.CC b/src/Demo/Graphics/EdSprite.ZC similarity index 100% rename from src/Demo/Graphics/EdSprite.CC rename to src/Demo/Graphics/EdSprite.ZC diff --git a/src/Demo/Graphics/Elephant.CC b/src/Demo/Graphics/Elephant.ZC similarity index 100% rename from src/Demo/Graphics/Elephant.CC rename to src/Demo/Graphics/Elephant.ZC diff --git a/src/Demo/Graphics/Extents.CC b/src/Demo/Graphics/Extents.ZC similarity index 100% rename from src/Demo/Graphics/Extents.CC rename to src/Demo/Graphics/Extents.ZC diff --git a/src/Demo/Graphics/FontEd.CC b/src/Demo/Graphics/FontEd.ZC similarity index 94% rename from src/Demo/Graphics/FontEd.CC rename to src/Demo/Graphics/FontEd.ZC index c8e1e10f..35422e8e 100755 --- a/src/Demo/Graphics/FontEd.CC +++ b/src/Demo/Graphics/FontEd.ZC @@ -13,11 +13,11 @@ You can load it with: If you want to change the system font permanently, save to a file with this font editor program -and cut and paste the code into $LK,"::/Kernel/FontStd.CC"$. +and cut and paste the code into $LK,"::/Kernel/FontStd.ZC"$. You will need to recompile Kernel by calling $LK,"BootHDIns",A="MN:BootHDIns"$(). -See $LK,"::/Demo/ExtChars.CC"$, $LK,"::/Demo/Games/CharDemo.CC"$, -$LK,"::/Demo/Graphics/CharAnimation.CC"$ and $LK,"::/Demo/ScreenCodes.CC"$. +See $LK,"::/Demo/ExtChars.ZC"$, $LK,"::/Demo/Games/CharDemo.ZC"$, +$LK,"::/Demo/Graphics/CharAnimation.ZC"$ and $LK,"::/Demo/ScreenCodes.ZC"$. */ #define BLOW_UP_CHAR_X (18 * FONT_WIDTH) diff --git a/src/Demo/Graphics/GrDir.CC b/src/Demo/Graphics/GrDir.ZC similarity index 97% rename from src/Demo/Graphics/GrDir.CC rename to src/Demo/Graphics/GrDir.ZC index 4df2bcdc..6a04e7db 100755 Binary files a/src/Demo/Graphics/GrDir.CC and b/src/Demo/Graphics/GrDir.ZC differ diff --git a/src/Demo/Graphics/Grid.CC b/src/Demo/Graphics/Grid.ZC similarity index 100% rename from src/Demo/Graphics/Grid.CC rename to src/Demo/Graphics/Grid.ZC diff --git a/src/Demo/Graphics/Hanoi.CC b/src/Demo/Graphics/Hanoi.ZC similarity index 100% rename from src/Demo/Graphics/Hanoi.CC rename to src/Demo/Graphics/Hanoi.ZC diff --git a/src/Demo/Graphics/Lattice.CC b/src/Demo/Graphics/Lattice.ZC similarity index 100% rename from src/Demo/Graphics/Lattice.CC rename to src/Demo/Graphics/Lattice.ZC diff --git a/src/Demo/Graphics/Life.CC b/src/Demo/Graphics/Life.ZC similarity index 100% rename from src/Demo/Graphics/Life.CC rename to src/Demo/Graphics/Life.ZC diff --git a/src/Demo/Graphics/LightTable.CC b/src/Demo/Graphics/LightTable.ZC similarity index 100% rename from src/Demo/Graphics/LightTable.CC rename to src/Demo/Graphics/LightTable.ZC diff --git a/src/Demo/Graphics/Lines.CC b/src/Demo/Graphics/Lines.ZC similarity index 100% rename from src/Demo/Graphics/Lines.CC rename to src/Demo/Graphics/Lines.ZC diff --git a/src/Demo/Graphics/LowPassFilter.CC b/src/Demo/Graphics/LowPassFilter.ZC similarity index 100% rename from src/Demo/Graphics/LowPassFilter.CC rename to src/Demo/Graphics/LowPassFilter.ZC diff --git a/src/Demo/Graphics/MathAudioDemo.CC b/src/Demo/Graphics/MathAudioDemo.ZC similarity index 100% rename from src/Demo/Graphics/MathAudioDemo.CC rename to src/Demo/Graphics/MathAudioDemo.ZC diff --git a/src/Demo/Graphics/MouseDemo.CC b/src/Demo/Graphics/MouseDemo.ZC similarity index 100% rename from src/Demo/Graphics/MouseDemo.CC rename to src/Demo/Graphics/MouseDemo.ZC diff --git a/src/Demo/Graphics/NetOfDots.CC b/src/Demo/Graphics/NetOfDots.ZC similarity index 100% rename from src/Demo/Graphics/NetOfDots.CC rename to src/Demo/Graphics/NetOfDots.ZC diff --git a/src/Demo/Graphics/Palette.CC b/src/Demo/Graphics/Palette.ZC similarity index 100% rename from src/Demo/Graphics/Palette.CC rename to src/Demo/Graphics/Palette.ZC diff --git a/src/Demo/Graphics/PanText.CC b/src/Demo/Graphics/PanText.ZC similarity index 100% rename from src/Demo/Graphics/PanText.CC rename to src/Demo/Graphics/PanText.ZC diff --git a/src/Demo/Graphics/Pick.CC b/src/Demo/Graphics/Pick.ZC similarity index 100% rename from src/Demo/Graphics/Pick.CC rename to src/Demo/Graphics/Pick.ZC diff --git a/src/Demo/Graphics/Pick3D.CC b/src/Demo/Graphics/Pick3D.ZC similarity index 100% rename from src/Demo/Graphics/Pick3D.CC rename to src/Demo/Graphics/Pick3D.ZC diff --git a/src/Demo/Graphics/PoleZeros.CC b/src/Demo/Graphics/PoleZeros.ZC similarity index 100% rename from src/Demo/Graphics/PoleZeros.CC rename to src/Demo/Graphics/PoleZeros.ZC diff --git a/src/Demo/Graphics/PredatorPrey.CC b/src/Demo/Graphics/PredatorPrey.ZC similarity index 100% rename from src/Demo/Graphics/PredatorPrey.CC rename to src/Demo/Graphics/PredatorPrey.ZC diff --git a/src/Demo/Graphics/RotateTank.CC b/src/Demo/Graphics/RotateTank.ZC similarity index 100% rename from src/Demo/Graphics/RotateTank.CC rename to src/Demo/Graphics/RotateTank.ZC diff --git a/src/Demo/Graphics/ScreenCapture.CC b/src/Demo/Graphics/ScreenCapture.ZC similarity index 80% rename from src/Demo/Graphics/ScreenCapture.CC rename to src/Demo/Graphics/ScreenCapture.ZC index 1491fbcf..32771538 100755 --- a/src/Demo/Graphics/ScreenCapture.CC +++ b/src/Demo/Graphics/ScreenCapture.ZC @@ -1,4 +1,4 @@ -//See $LK,"::/Demo/Games/Stadium/StadiumGen.CC"$. +//See $LK,"::/Demo/Games/Stadium/StadiumGen.ZC"$. U0 Main() { diff --git a/src/Demo/Graphics/ScrollBars.CC b/src/Demo/Graphics/ScrollBars.ZC similarity index 100% rename from src/Demo/Graphics/ScrollBars.CC rename to src/Demo/Graphics/ScrollBars.ZC diff --git a/src/Demo/Graphics/Shading.CC b/src/Demo/Graphics/Shading.ZC similarity index 99% rename from src/Demo/Graphics/Shading.CC rename to src/Demo/Graphics/Shading.ZC index 4c58d9b3..bb97205c 100755 --- a/src/Demo/Graphics/Shading.CC +++ b/src/Demo/Graphics/Shading.ZC @@ -150,7 +150,7 @@ U0 DrawIt(CTask *task, CDC *dc) } } -//See $LK,"::/Demo/Graphics/SpritePlot3D.CC"$. +//See $LK,"::/Demo/Graphics/SpritePlot3D.ZC"$. //for a CSprite example. //See $LK,"SpriteMeshEd",A="MN:SpriteMeshEd"$() for a fancy example. diff --git a/src/Demo/Graphics/Shadow.CC b/src/Demo/Graphics/Shadow.ZC similarity index 100% rename from src/Demo/Graphics/Shadow.CC rename to src/Demo/Graphics/Shadow.ZC diff --git a/src/Demo/Graphics/Slider.CC b/src/Demo/Graphics/Slider.ZC similarity index 100% rename from src/Demo/Graphics/Slider.CC rename to src/Demo/Graphics/Slider.ZC diff --git a/src/Demo/Graphics/Speedline.CC b/src/Demo/Graphics/Speedline.ZC similarity index 100% rename from src/Demo/Graphics/Speedline.CC rename to src/Demo/Graphics/Speedline.ZC diff --git a/src/Demo/Graphics/SpritePlot.CC b/src/Demo/Graphics/SpritePlot.ZC similarity index 100% rename from src/Demo/Graphics/SpritePlot.CC rename to src/Demo/Graphics/SpritePlot.ZC diff --git a/src/Demo/Graphics/SpritePlot3D.CC b/src/Demo/Graphics/SpritePlot3D.ZC similarity index 100% rename from src/Demo/Graphics/SpritePlot3D.CC rename to src/Demo/Graphics/SpritePlot3D.ZC diff --git a/src/Demo/Graphics/SpritePut.CC b/src/Demo/Graphics/SpritePut.ZC similarity index 99% rename from src/Demo/Graphics/SpritePut.CC rename to src/Demo/Graphics/SpritePut.ZC index 733bcf13..b6587ca0 100755 Binary files a/src/Demo/Graphics/SpritePut.CC and b/src/Demo/Graphics/SpritePut.ZC differ diff --git a/src/Demo/Graphics/SpritePutExt.CC b/src/Demo/Graphics/SpritePutExt.ZC similarity index 84% rename from src/Demo/Graphics/SpritePutExt.CC rename to src/Demo/Graphics/SpritePutExt.ZC index 9ceed402..6856ecd2 100755 --- a/src/Demo/Graphics/SpritePutExt.CC +++ b/src/Demo/Graphics/SpritePutExt.ZC @@ -1,6 +1,6 @@ /*If you press you will see this: -$$IB,"<1>",BI=1,BP="::/Demo/Graphics/SpritePut.CC,2"$$ +$$IB,"<1>",BI=1,BP="::/Demo/Graphics/SpritePut.ZC,2"$$ That imports an external sprite. It's called a $LK,"DOCEF_BIN_PTR_LINK",A="MN:DOCEF_BIN_PTR_LINK"$. See $LK,"BP=\"\"",A="FF:::/Doc/DolDocOverview.DD,BP=\"\""$. @@ -20,7 +20,7 @@ U0 SpritePutExt() for (i = 0; i < 3; i++) { "US Map:"; - Sprite($IB,"<1>",BI=1,BP="::/Demo/Graphics/SpritePut.CC,2"$); + Sprite($IB,"<1>",BI=1,BP="::/Demo/Graphics/SpritePut.ZC,2"$); "%h12c", '\n'; //"h" is a secondary arg. $LK,"Print",A="FI:::/Doc/Print.DD"$ 12 newline chars. } } diff --git a/src/Demo/Graphics/SpriteRaw.CC b/src/Demo/Graphics/SpriteRaw.ZC similarity index 100% rename from src/Demo/Graphics/SpriteRaw.CC rename to src/Demo/Graphics/SpriteRaw.ZC diff --git a/src/Demo/Graphics/SpriteText.CC b/src/Demo/Graphics/SpriteText.ZC similarity index 100% rename from src/Demo/Graphics/SpriteText.CC rename to src/Demo/Graphics/SpriteText.ZC diff --git a/src/Demo/Graphics/SunMoon.CC b/src/Demo/Graphics/SunMoon.ZC similarity index 100% rename from src/Demo/Graphics/SunMoon.CC rename to src/Demo/Graphics/SunMoon.ZC diff --git a/src/Demo/Graphics/Symmetry.CC b/src/Demo/Graphics/Symmetry.ZC similarity index 100% rename from src/Demo/Graphics/Symmetry.CC rename to src/Demo/Graphics/Symmetry.ZC diff --git a/src/Demo/Graphics/Transform.CC b/src/Demo/Graphics/Transform.ZC similarity index 100% rename from src/Demo/Graphics/Transform.CC rename to src/Demo/Graphics/Transform.ZC diff --git a/src/Demo/Graphics/WallPaperCtrl.CC b/src/Demo/Graphics/WallPaperCtrl.ZC similarity index 97% rename from src/Demo/Graphics/WallPaperCtrl.CC rename to src/Demo/Graphics/WallPaperCtrl.ZC index 19620259..cfea2ce4 100755 --- a/src/Demo/Graphics/WallPaperCtrl.CC +++ b/src/Demo/Graphics/WallPaperCtrl.ZC @@ -5,8 +5,8 @@ This is an advanced demo that shows that you can place ctrls on the wall paper. -See $LK,"::/Demo/Graphics/Slider.CC"$ -and $LK,"::/Demo/Graphics/WallPaperFish.CC"$ +See $LK,"::/Demo/Graphics/Slider.ZC"$ +and $LK,"::/Demo/Graphics/WallPaperFish.ZC"$ before messing with this program. It must be "System Included". diff --git a/src/Demo/Graphics/WallPaperFish.CC b/src/Demo/Graphics/WallPaperFish.ZC similarity index 100% rename from src/Demo/Graphics/WallPaperFish.CC rename to src/Demo/Graphics/WallPaperFish.ZC diff --git a/src/Demo/Graphics/WallPaperStars.CC b/src/Demo/Graphics/WallPaperStars.ZC similarity index 100% rename from src/Demo/Graphics/WallPaperStars.CC rename to src/Demo/Graphics/WallPaperStars.ZC diff --git a/src/Demo/Graphics/WinZBuf.CC b/src/Demo/Graphics/WinZBuf.ZC similarity index 100% rename from src/Demo/Graphics/WinZBuf.CC rename to src/Demo/Graphics/WinZBuf.ZC diff --git a/src/Demo/InFile/InPopUp.CC b/src/Demo/InFile/InPopUp.ZC similarity index 100% rename from src/Demo/InFile/InPopUp.CC rename to src/Demo/InFile/InPopUp.ZC diff --git a/src/Demo/InFile/InSetIP.CC b/src/Demo/InFile/InSetIP.ZC similarity index 100% rename from src/Demo/InFile/InSetIP.CC rename to src/Demo/InFile/InSetIP.ZC diff --git a/src/Demo/KeyBitMap.CC b/src/Demo/KeyBitMap.ZC similarity index 100% rename from src/Demo/KeyBitMap.CC rename to src/Demo/KeyBitMap.ZC diff --git a/src/Demo/LastClass.CC b/src/Demo/LastClass.ZC similarity index 92% rename from src/Demo/LastClass.CC rename to src/Demo/LastClass.ZC index 6a21f85f..bddb1fd1 100755 --- a/src/Demo/LastClass.CC +++ b/src/Demo/LastClass.ZC @@ -32,4 +32,4 @@ PressAKey; ClassRep(Fs); -//See also $LK,"DocForm",A="MN:DocForm"$(), $LK,"::/Demo/Disk/BlkDevRep.CC"$ and $LK,"::/Demo/ClassMeta.CC"$. +//See also $LK,"DocForm",A="MN:DocForm"$(), $LK,"::/Demo/Disk/BlkDevRep.ZC"$ and $LK,"::/Demo/ClassMeta.ZC"$. diff --git a/src/Demo/Lectures/64BitAsmQuiz.DD b/src/Demo/Lectures/64BitAsmQuiz.DD index 1d8c2f24..a0bdb7f7 100755 --- a/src/Demo/Lectures/64BitAsmQuiz.DD +++ b/src/Demo/Lectures/64BitAsmQuiz.DD @@ -76,7 +76,7 @@ ANSWERS: 8) To call a subroutine farther than 2Gig away, you put the address into RAX, then CALL RAX. -9) CALL REL32 is significantly faster. See $LK,"::/Demo/Lectures/InterruptDemo.CC"$. +9) CALL REL32 is significantly faster. See $LK,"::/Demo/Lectures/InterruptDemo.ZC"$. 10) IN or OUT instructions happen at a fixed speed based on the original ISA bus clock. diff --git a/src/Demo/Lectures/AndNotMod.CC b/src/Demo/Lectures/AndNotMod.ZC similarity index 100% rename from src/Demo/Lectures/AndNotMod.CC rename to src/Demo/Lectures/AndNotMod.ZC diff --git a/src/Demo/Lectures/FixedPoint.CC b/src/Demo/Lectures/FixedPoint.ZC similarity index 95% rename from src/Demo/Lectures/FixedPoint.CC rename to src/Demo/Lectures/FixedPoint.ZC index 28a72b69..35599d59 100755 --- a/src/Demo/Lectures/FixedPoint.CC +++ b/src/Demo/Lectures/FixedPoint.ZC @@ -12,7 +12,7 @@ and the ZealC compiler is poor with floats. Terry often used 64-bit ints with upper 32-bits as int and lower 32-bits as fraction. -See $LK,"::/Demo/SubIntAccess.CC"$ for how +See $LK,"::/Demo/SubIntAccess.ZC"$ for how to access upper or lower 32-bits. For a complete list of nonstandard compiler @@ -81,7 +81,7 @@ CPURep; Main; DoIt2; -//See $LK,"::/Demo/Lectures/FixedPointAdvanced.CC"$ +//See $LK,"::/Demo/Lectures/FixedPointAdvanced.ZC"$ /*Program Output$HL,0$$WW+H,1$$FD,1$ diff --git a/src/Demo/Lectures/FixedPointAdvanced.CC b/src/Demo/Lectures/FixedPointAdvanced.ZC similarity index 98% rename from src/Demo/Lectures/FixedPointAdvanced.CC rename to src/Demo/Lectures/FixedPointAdvanced.ZC index f481a783..277d01a9 100755 --- a/src/Demo/Lectures/FixedPointAdvanced.CC +++ b/src/Demo/Lectures/FixedPointAdvanced.ZC @@ -12,7 +12,7 @@ and the ZealC compiler is poor with floats. Terry often use 64-bit ints with upper 32-bits as int and lower 32-bits as fraction. -See $LK,"::/Demo/SubIntAccess.CC"$ for how +See $LK,"::/Demo/SubIntAccess.ZC"$ for how to access upper or lower 32-bits. */ diff --git a/src/Demo/Lectures/InterruptDemo.CC b/src/Demo/Lectures/InterruptDemo.ZC similarity index 100% rename from src/Demo/Lectures/InterruptDemo.CC rename to src/Demo/Lectures/InterruptDemo.ZC diff --git a/src/Demo/Lectures/MiniCompiler.CC b/src/Demo/Lectures/MiniCompiler.ZC similarity index 94% rename from src/Demo/Lectures/MiniCompiler.CC rename to src/Demo/Lectures/MiniCompiler.ZC index 6191eb71..8fc91e70 100755 --- a/src/Demo/Lectures/MiniCompiler.CC +++ b/src/Demo/Lectures/MiniCompiler.ZC @@ -4,9 +4,9 @@ $ID,2$The mini compiler is like the main compiler, except the main compiler's le The main compiler generates $LK,"Intermediate Code",A="FF:::/Compiler/CompilerA.HH,IC_END"$ at the parser stage. See $LK,"ParseExpression",A="MN:ParseExpression"$(), $LK,"ParseStatement",A="MN:ParseStatement"$(). -The main compiler optimizes See $LK,"Intermediate Code Attributes",A="MN:intermediate_code_table"$, $LK,"Combining Consts",A="FF:::/Compiler/OptPass012.CC,case IC_MUL"$, $LK,"Choosing Reg Vars",A="FF:::/Compiler/OptPass3.CC,cmp.num_reg_vars"$. Use $LK,"PassTrace",A="MN:PassTrace"$() to see the optimization stages. +The main compiler optimizes See $LK,"Intermediate Code Attributes",A="MN:intermediate_code_table"$, $LK,"Combining Consts",A="FF:::/Compiler/OptPass012.ZC,case IC_MUL"$, $LK,"Choosing Reg Vars",A="FF:::/Compiler/OptPass3.ZC,cmp.num_reg_vars"$. Use $LK,"PassTrace",A="MN:PassTrace"$() to see the optimization stages. -The main compiler makes machine code in the back end. See $LK,"IC Struct",A="MN:CIntermediateCode"$, $LK,"COCCompile",A="MN:COCCompile"$ and $LK,"OptPass789A",A="FF:::/Compiler/OptPass789A.CC,IC_MUL"$(), $LK,"BackEnd",A="FF:::/Compiler/BackA.CC,ICMul"$. Set $LK,"Trace",A="MN:Trace"$(ON) to see the output of the backend. +The main compiler makes machine code in the back end. See $LK,"IC Struct",A="MN:CIntermediateCode"$, $LK,"COCCompile",A="MN:COCCompile"$ and $LK,"OptPass789A",A="FF:::/Compiler/OptPass789A.ZC,IC_MUL"$(), $LK,"BackEnd",A="FF:::/Compiler/BackA.ZC,ICMul"$. Set $LK,"Trace",A="MN:Trace"$(ON) to see the output of the backend. $ID,-2$ $TR-C,"Mini Compiler"$ $ID,2$For this mini compiler, some things you should know about 64-bit asm: @@ -249,8 +249,8 @@ U0 Main() throw; "$$RED$$This code is not efficient, but the compiler is simple.$$FG$$\n"; Un(code, dst - code); //Unassemble the code we created. -//$LK,"Call",A="MN:Call"$() is a function. See $LK,"_CALL",A="FF:::/Kernel/KUtils.CC,_CALL"$:: - //See also $LK,"CallInd",A="MN:CallInd"$(). See $LK,"_CALL_IND",A="FF:::/Kernel/KUtils.CC,_CALL_IND"$:: +//$LK,"Call",A="MN:Call"$() is a function. See $LK,"_CALL",A="FF:::/Kernel/KUtils.ZC,_CALL"$:: + //See also $LK,"CallInd",A="MN:CallInd"$(). See $LK,"_CALL_IND",A="FF:::/Kernel/KUtils.ZC,_CALL_IND"$:: "$$LTBLUE$$Answer:%d$$FG$$\n", Call(code); } catch diff --git a/src/Demo/Lectures/MiniGrLib.CC b/src/Demo/Lectures/MiniGrLib.ZC similarity index 100% rename from src/Demo/Lectures/MiniGrLib.CC rename to src/Demo/Lectures/MiniGrLib.ZC diff --git a/src/Demo/Lectures/NegDisp.CC b/src/Demo/Lectures/NegDisp.ZC similarity index 100% rename from src/Demo/Lectures/NegDisp.CC rename to src/Demo/Lectures/NegDisp.ZC diff --git a/src/Demo/Lectures/Optimization.CC b/src/Demo/Lectures/Optimization.ZC similarity index 100% rename from src/Demo/Lectures/Optimization.CC rename to src/Demo/Lectures/Optimization.ZC diff --git a/src/Demo/Lectures/PCIInterrupts.CC b/src/Demo/Lectures/PCIInterrupts.ZC similarity index 100% rename from src/Demo/Lectures/PCIInterrupts.CC rename to src/Demo/Lectures/PCIInterrupts.ZC diff --git a/src/Demo/Lectures/Ring3.CC b/src/Demo/Lectures/Ring3.ZC similarity index 100% rename from src/Demo/Lectures/Ring3.CC rename to src/Demo/Lectures/Ring3.ZC diff --git a/src/Demo/MagicPairs.CC b/src/Demo/MagicPairs.ZC similarity index 100% rename from src/Demo/MagicPairs.CC rename to src/Demo/MagicPairs.ZC diff --git a/src/Demo/MemDemo.CC b/src/Demo/MemDemo.ZC similarity index 100% rename from src/Demo/MemDemo.CC rename to src/Demo/MemDemo.ZC diff --git a/src/Demo/MessageLoop.CC b/src/Demo/MessageLoop.ZC similarity index 100% rename from src/Demo/MessageLoop.CC rename to src/Demo/MessageLoop.ZC diff --git a/src/Demo/MultiCore/Interrupts.CC b/src/Demo/MultiCore/Interrupts.ZC similarity index 100% rename from src/Demo/MultiCore/Interrupts.CC rename to src/Demo/MultiCore/Interrupts.ZC diff --git a/src/Demo/MultiCore/LoadTest.CC b/src/Demo/MultiCore/LoadTest.ZC similarity index 93% rename from src/Demo/MultiCore/LoadTest.CC rename to src/Demo/MultiCore/LoadTest.ZC index 0110cc04..6efee43a 100755 --- a/src/Demo/MultiCore/LoadTest.CC +++ b/src/Demo/MultiCore/LoadTest.ZC @@ -16,7 +16,7 @@ U0 Job2(I64) {//Log a file while (!app_done) { - SysLog("%F", "::/Demo/MultiCore/LoadTest.CC"); + SysLog("%F", "::/Demo/MultiCore/LoadTest.ZC"); Yield; } lock {app_done_ack--;} diff --git a/src/Demo/MultiCore/Lock.CC b/src/Demo/MultiCore/Lock.ZC similarity index 100% rename from src/Demo/MultiCore/Lock.CC rename to src/Demo/MultiCore/Lock.ZC diff --git a/src/Demo/MultiCore/MPAdd.CC b/src/Demo/MultiCore/MPAdd.ZC similarity index 100% rename from src/Demo/MultiCore/MPAdd.CC rename to src/Demo/MultiCore/MPAdd.ZC diff --git a/src/Demo/MultiCore/MPPrint.CC b/src/Demo/MultiCore/MPPrint.ZC similarity index 100% rename from src/Demo/MultiCore/MPPrint.CC rename to src/Demo/MultiCore/MPPrint.ZC diff --git a/src/Demo/MultiCore/MPRadix.CC b/src/Demo/MultiCore/MPRadix.ZC similarity index 100% rename from src/Demo/MultiCore/MPRadix.CC rename to src/Demo/MultiCore/MPRadix.ZC diff --git a/src/Demo/MultiCore/Palindrome.CC b/src/Demo/MultiCore/Palindrome.ZC similarity index 100% rename from src/Demo/MultiCore/Palindrome.CC rename to src/Demo/MultiCore/Palindrome.ZC diff --git a/src/Demo/MultiCore/Primes.CC b/src/Demo/MultiCore/Primes.ZC similarity index 100% rename from src/Demo/MultiCore/Primes.CC rename to src/Demo/MultiCore/Primes.ZC diff --git a/src/Demo/NullCase.CC b/src/Demo/NullCase.ZC similarity index 100% rename from src/Demo/NullCase.CC rename to src/Demo/NullCase.ZC diff --git a/src/Demo/OnceDemo.CC b/src/Demo/OnceDemo.ZC similarity index 100% rename from src/Demo/OnceDemo.CC rename to src/Demo/OnceDemo.ZC diff --git a/src/Demo/ParenWarn.CC b/src/Demo/ParenWarn.ZC similarity index 100% rename from src/Demo/ParenWarn.CC rename to src/Demo/ParenWarn.ZC diff --git a/src/Demo/PhoneNumWords.CC b/src/Demo/PhoneNumWords.ZC similarity index 100% rename from src/Demo/PhoneNumWords.CC rename to src/Demo/PhoneNumWords.ZC diff --git a/src/Demo/Print.CC b/src/Demo/Print.ZC similarity index 100% rename from src/Demo/Print.CC rename to src/Demo/Print.ZC diff --git a/src/Demo/Progress.CC b/src/Demo/Progress.ZC similarity index 100% rename from src/Demo/Progress.CC rename to src/Demo/Progress.ZC diff --git a/src/Demo/Prompt.CC b/src/Demo/Prompt.ZC similarity index 100% rename from src/Demo/Prompt.CC rename to src/Demo/Prompt.ZC diff --git a/src/Demo/PullDownMenu.CC b/src/Demo/PullDownMenu.ZC similarity index 100% rename from src/Demo/PullDownMenu.CC rename to src/Demo/PullDownMenu.ZC diff --git a/src/Demo/RadixSort.CC b/src/Demo/RadixSort.ZC similarity index 100% rename from src/Demo/RadixSort.CC rename to src/Demo/RadixSort.ZC diff --git a/src/Demo/RandDemo.CC b/src/Demo/RandDemo.ZC similarity index 94% rename from src/Demo/RandDemo.CC rename to src/Demo/RandDemo.ZC index 87e5755d..bdee1a78 100755 --- a/src/Demo/RandDemo.CC +++ b/src/Demo/RandDemo.ZC @@ -22,7 +22,7 @@ U0 RandDemo() I64 i; "Seed(0) will do timer XORed random numbers. " - "A task starts with $LK,"Seed(0)",A="FF:::/Kernel/KTask.CC,Seed("$ by default.\n"; + "A task starts with $LK,"Seed(0)",A="FF:::/Kernel/KTask.ZC,Seed("$ by default.\n"; PressAKey; Seed; RandPts; diff --git a/src/Demo/RegistryDemo.CC b/src/Demo/RegistryDemo.ZC similarity index 95% rename from src/Demo/RegistryDemo.CC rename to src/Demo/RegistryDemo.ZC index ef751c27..554b1462 100755 --- a/src/Demo/RegistryDemo.CC +++ b/src/Demo/RegistryDemo.ZC @@ -1,4 +1,4 @@ -/*The ~/Registry.CC file is ZealC code. +/*The ~/Registry.ZC file is ZealC code. You can execute a tree branch of it. The System branch is executed in the System task boot phase. Normally, you will place variable declarations diff --git a/src/Demo/RevFileDemo/Rev.CC b/src/Demo/RevFileDemo/Rev.ZC similarity index 100% rename from src/Demo/RevFileDemo/Rev.CC rename to src/Demo/RevFileDemo/Rev.ZC diff --git a/src/Demo/ScreenCodes.CC b/src/Demo/ScreenCodes.ZC similarity index 83% rename from src/Demo/ScreenCodes.CC rename to src/Demo/ScreenCodes.ZC index d2084006..eb692efc 100755 --- a/src/Demo/ScreenCodes.CC +++ b/src/Demo/ScreenCodes.ZC @@ -1,8 +1,8 @@ /*See $LK,"TextBase Layer",A="HI:TextBase Layer"$ for the format of the U32 you pass to TextChar() -See $LK,"::/Doc/CharOverview.DD"$, $LK,"::/Demo/ExtChars.CC"$, -and $LK,"::/Demo/Graphics/FontEd.CC"$. +See $LK,"::/Doc/CharOverview.DD"$, $LK,"::/Demo/ExtChars.ZC"$, +and $LK,"::/Demo/Graphics/FontEd.ZC"$. Hold and press a 3 digit decimal number or press to enter extended characters. diff --git a/src/Demo/SortFileDemo/F64FileGen.CC b/src/Demo/SortFileDemo/F64FileGen.ZC similarity index 98% rename from src/Demo/SortFileDemo/F64FileGen.CC rename to src/Demo/SortFileDemo/F64FileGen.ZC index aaf7a824..6beb1dc1 100755 --- a/src/Demo/SortFileDemo/F64FileGen.CC +++ b/src/Demo/SortFileDemo/F64FileGen.ZC @@ -16,7 +16,7 @@ U0 F64FileGenTXT(U8 *filename, I64 n) F64FileGenTXT("~/DemoUnsortedF64.DD", 10); U0 F64FileGenDAT(U8 *filename, I64 n) -{//$LK,"File/CFile",A="HI:File/CFile"$, $LK,"::/Demo/Disk/DataBase.CC"$ +{//$LK,"File/CFile",A="HI:File/CFile"$, $LK,"::/Demo/Disk/DataBase.ZC"$ I64 i; F64 *a = MAlloc(n * sizeof(F64)); diff --git a/src/Demo/SortFileDemo/F64FileSort.CC b/src/Demo/SortFileDemo/F64FileSort.ZC similarity index 99% rename from src/Demo/SortFileDemo/F64FileSort.CC rename to src/Demo/SortFileDemo/F64FileSort.ZC index 43558223..aabbbea8 100755 --- a/src/Demo/SortFileDemo/F64FileSort.CC +++ b/src/Demo/SortFileDemo/F64FileSort.ZC @@ -49,7 +49,7 @@ Type("~/DemoUnsortedF64.DD"); Type("~/DemoSortedF64.DD"); U0 F64FileSortDAT(U8 *in_name, U8 *out_name) -{//$LK,"File/CFile",A="HI:File/CFile"$, $LK,"::/Demo/Disk/DataBase.CC"$ +{//$LK,"File/CFile",A="HI:File/CFile"$, $LK,"::/Demo/Disk/DataBase.ZC"$ I64 size; F64 *a = FileRead(in_name, &size); @@ -60,7 +60,7 @@ U0 F64FileSortDAT(U8 *in_name, U8 *out_name) F64FileSortDAT("~/DemoUnsortedF64.DATA", "~/DemoSortedF64.DATA"); U0 F64FileDumpDAT(U8 *in_name) -{//$LK,"File/CFile",A="HI:File/CFile"$, $LK,"::/Demo/Disk/DataBase.CC"$ +{//$LK,"File/CFile",A="HI:File/CFile"$, $LK,"::/Demo/Disk/DataBase.ZC"$ I64 i, n, size; F64 *a = FileRead(in_name, &size); diff --git a/src/Demo/Sound/ASCIIOrgan.CC b/src/Demo/Sound/ASCIIOrgan.ZC similarity index 100% rename from src/Demo/Sound/ASCIIOrgan.CC rename to src/Demo/Sound/ASCIIOrgan.ZC diff --git a/src/Demo/Sound/MorseCode.CC b/src/Demo/Sound/MorseCode.ZC similarity index 100% rename from src/Demo/Sound/MorseCode.CC rename to src/Demo/Sound/MorseCode.ZC diff --git a/src/Demo/Sound/OhGreat.CC b/src/Demo/Sound/OhGreat.ZC similarity index 100% rename from src/Demo/Sound/OhGreat.CC rename to src/Demo/Sound/OhGreat.ZC diff --git a/src/Demo/Sound/WaterFowl.CC b/src/Demo/Sound/WaterFowl.ZC similarity index 100% rename from src/Demo/Sound/WaterFowl.CC rename to src/Demo/Sound/WaterFowl.ZC diff --git a/src/Demo/Spy.CC b/src/Demo/Spy.ZC similarity index 100% rename from src/Demo/Spy.CC rename to src/Demo/Spy.ZC diff --git a/src/Demo/StackGrow.CC b/src/Demo/StackGrow.ZC similarity index 100% rename from src/Demo/StackGrow.CC rename to src/Demo/StackGrow.ZC diff --git a/src/Demo/SubIntAccess.CC b/src/Demo/SubIntAccess.ZC similarity index 93% rename from src/Demo/SubIntAccess.CC rename to src/Demo/SubIntAccess.ZC index 17c028a0..831d41d5 100755 --- a/src/Demo/SubIntAccess.CC +++ b/src/Demo/SubIntAccess.ZC @@ -6,7 +6,7 @@ The versions with "i" are internal data types. Use "I64" instead of "U64i" and y Unfortunately, byte access causes the compiler to not use a register for the variable. -See $LK,"::/Demo/Lectures/FixedPoint.CC"$. +See $LK,"::/Demo/Lectures/FixedPoint.ZC"$. */ I64 q = 0xFEDCBA9876543210, q1; diff --git a/src/Demo/SubSwitch.CC b/src/Demo/SubSwitch.ZC similarity index 100% rename from src/Demo/SubSwitch.CC rename to src/Demo/SubSwitch.ZC diff --git a/src/Demo/SuggestSpelling.CC b/src/Demo/SuggestSpelling.ZC similarity index 100% rename from src/Demo/SuggestSpelling.CC rename to src/Demo/SuggestSpelling.ZC diff --git a/src/Demo/Templates/Game1.CC b/src/Demo/Templates/Game1.ZC similarity index 100% rename from src/Demo/Templates/Game1.CC rename to src/Demo/Templates/Game1.ZC diff --git a/src/Demo/Templates/Lex1.CC b/src/Demo/Templates/Lex1.ZC similarity index 100% rename from src/Demo/Templates/Lex1.CC rename to src/Demo/Templates/Lex1.ZC diff --git a/src/Demo/Templates/MultiCore1.CC b/src/Demo/Templates/MultiCore1.ZC similarity index 100% rename from src/Demo/Templates/MultiCore1.CC rename to src/Demo/Templates/MultiCore1.ZC diff --git a/src/Demo/Templates/ODE1.CC b/src/Demo/Templates/ODE1.ZC similarity index 100% rename from src/Demo/Templates/ODE1.CC rename to src/Demo/Templates/ODE1.ZC diff --git a/src/Demo/Templates/Registry1.CC b/src/Demo/Templates/Registry1.ZC similarity index 100% rename from src/Demo/Templates/Registry1.CC rename to src/Demo/Templates/Registry1.ZC diff --git a/src/Demo/Templates/Util1.CC b/src/Demo/Templates/Util1.ZC similarity index 100% rename from src/Demo/Templates/Util1.CC rename to src/Demo/Templates/Util1.ZC diff --git a/src/Demo/Templates/Util2.CC b/src/Demo/Templates/Util2.ZC similarity index 100% rename from src/Demo/Templates/Util2.CC rename to src/Demo/Templates/Util2.ZC diff --git a/src/Demo/TimeIns.CC b/src/Demo/TimeIns.ZC similarity index 100% rename from src/Demo/TimeIns.CC rename to src/Demo/TimeIns.ZC diff --git a/src/Demo/ToHtmlToTXTDemo/HtmlDirList.CC b/src/Demo/ToHtmlToTXTDemo/HtmlDirList.ZC similarity index 100% rename from src/Demo/ToHtmlToTXTDemo/HtmlDirList.CC rename to src/Demo/ToHtmlToTXTDemo/HtmlDirList.ZC diff --git a/src/Demo/ToHtmlToTXTDemo/HtmlGen.CC b/src/Demo/ToHtmlToTXTDemo/HtmlGen.ZC similarity index 73% rename from src/Demo/ToHtmlToTXTDemo/HtmlGen.CC rename to src/Demo/ToHtmlToTXTDemo/HtmlGen.ZC index 76c67c08..f6115eb1 100755 --- a/src/Demo/ToHtmlToTXTDemo/HtmlGen.CC +++ b/src/Demo/ToHtmlToTXTDemo/HtmlGen.ZC @@ -4,14 +4,14 @@ an html document named "OutPage.html". Notice that an entry like $$TX,"GOOGLE",HTML="http://www.google.com"$$ will be converted to text in the html with an html link. -Terry cheated by hardcoding $LK,"www.templeos.org",A="FF:::/Demo/ToHtmlToTXTDemo/ToHtml.CC,www.templeos.org"$ as the website +Terry cheated by hardcoding $LK,"www.templeos.org",A="FF:::/Demo/ToHtmlToTXTDemo/ToHtml.ZC,www.templeos.org"$ as the website for $LK,"ZealOS Links",A="MN:LK_FILE"$. Why don't you copy -$LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$ to your /Home directory +$LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$ to your /Home directory and modify it? You are welcome to link to http://www.templeos.org if you want file that come on the ZealOS distribution. -You can pass html meta data as args to $LK,"ToHtml",A="FF:::/Demo/ToHtmlToTXTDemo/ToHtml.CC,ToHtml"$(). +You can pass html meta data as args to $LK,"ToHtml",A="FF:::/Demo/ToHtmlToTXTDemo/ToHtml.ZC,ToHtml"$(). */ Cd(__DIR__);; diff --git a/src/Demo/ToHtmlToTXTDemo/TXTGen.CC b/src/Demo/ToHtmlToTXTDemo/TXTGen.ZC similarity index 100% rename from src/Demo/ToHtmlToTXTDemo/TXTGen.CC rename to src/Demo/ToHtmlToTXTDemo/TXTGen.ZC diff --git a/src/Demo/ToHtmlToTXTDemo/ToHtml.CC b/src/Demo/ToHtmlToTXTDemo/ToHtml.ZC similarity index 99% rename from src/Demo/ToHtmlToTXTDemo/ToHtml.CC rename to src/Demo/ToHtmlToTXTDemo/ToHtml.ZC index 9d598633..fca5418f 100755 --- a/src/Demo/ToHtmlToTXTDemo/ToHtml.CC +++ b/src/Demo/ToHtmlToTXTDemo/ToHtml.ZC @@ -408,7 +408,7 @@ public U0 ToHtml(U8 *_in_name, U8 *_out_name=NULL, U8 *html_header=NULL, SettingsPush; //See $LK,"SettingsPush",A="MN:SettingsPush"$ WinHorz(1, width - 2); //Sets doc width for word wrap. - in_name=ExtDefault(_in_name, "CC"); + in_name=ExtDefault(_in_name, "ZC"); if (_out_name) out_name = ExtDefault(_out_name, "html"); else diff --git a/src/Demo/WebLogDemo/WebLogRep.CC b/src/Demo/WebLogDemo/WebLogRep.ZC similarity index 100% rename from src/Demo/WebLogDemo/WebLogRep.CC rename to src/Demo/WebLogDemo/WebLogRep.ZC diff --git a/src/Demo/WebLogDemo/WebLogScramble.CC b/src/Demo/WebLogDemo/WebLogScramble.ZC similarity index 100% rename from src/Demo/WebLogDemo/WebLogScramble.CC rename to src/Demo/WebLogDemo/WebLogScramble.ZC diff --git a/src/Demo/WordSearch.CC b/src/Demo/WordSearch.ZC similarity index 98% rename from src/Demo/WordSearch.CC rename to src/Demo/WordSearch.ZC index 6d5c65fd..aaa3b151 100755 --- a/src/Demo/WordSearch.CC +++ b/src/Demo/WordSearch.ZC @@ -1,6 +1,6 @@ //Simple and fancy way of searching -//See ::/Apps/Vocabulary/VocabQuiz.CC +//See ::/Apps/Vocabulary/VocabQuiz.ZC //for another example of dictionary usage. #define ROWS_NUM 20 diff --git a/src/Doc/Asm.DD b/src/Doc/Asm.DD index fcaedc08..2f7f8cb6 100755 --- a/src/Doc/Asm.DD +++ b/src/Doc/Asm.DD @@ -44,4 +44,4 @@ $FG,2$ORG$FG$ $FG,4$num$FG$ $FG,2$BINFILE$FG,4$ "FileName.BIN"$FG$; -See $LK,"Assembly Language",A="FF:::/Doc/GuideLines.DD,Assembly Language"$, $LK,"::/Demo/Asm/AsmAndC1.CC"$, $LK,"::/Demo/Asm/AsmAndC2.CC"$ and $LK,"::/Demo/Asm/AsmAndC3.CC"$. +See $LK,"Assembly Language",A="FF:::/Doc/GuideLines.DD,Assembly Language"$, $LK,"::/Demo/Asm/AsmAndC1.ZC"$, $LK,"::/Demo/Asm/AsmAndC2.ZC"$ and $LK,"::/Demo/Asm/AsmAndC3.ZC"$. diff --git a/src/Doc/AutoComplete.DD b/src/Doc/AutoComplete.DD index 486032ee..1d25f324 100755 --- a/src/Doc/AutoComplete.DD +++ b/src/Doc/AutoComplete.DD @@ -1,4 +1,4 @@ -$FG,2$$WW,1$AutoComplete$FG$ is the $FG,7$LTGRAY$FG$ window on the right of the screen. $LK,"ACInit",A="MN:ACInit"$() collects words from all text files in subdirectories. Normally, the call to $LK,"ACInit",A="MN:ACInit"$() is in $LK,"HomeSys.CC",A="FF:~/HomeSys.CC,ACInit"$. It provides auto-complete for typing, jump-to-code and jump-to-dictionary functionality. +$FG,2$$WW,1$AutoComplete$FG$ is the $FG,7$LTGRAY$FG$ window on the right of the screen. $LK,"ACInit",A="MN:ACInit"$() collects words from all text files in subdirectories. Normally, the call to $LK,"ACInit",A="MN:ACInit"$() is in $LK,"HomeSys.ZC",A="FF:~/HomeSys.ZC,ACInit"$. It provides auto-complete for typing, jump-to-code and jump-to-dictionary functionality. $FG,2$$FG$ Closes the $FG,7$LTGRAY$FG$ AutoComplete window. $FG,2$$FG$ Opens the $FG,7$LTGRAY$FG$ AutoComplete window. @@ -16,4 +16,4 @@ $FG,2$$FG$ Autocompletes the 1st dictionary word in the window. $FG,2$$FG$ Autocompletes the 2nd dictionary word in the window. $FG,2$$FG$ Autocompletes the n-th dictionary word in the window. -If you have the raw Project Gutenberg dictionary file, you can generate the ZealOS processed dictionary files with the stand-alone program $LK,"::/System/AutoComplete/ACDictGen.CC"$. +If you have the raw Project Gutenberg dictionary file, you can generate the ZealOS processed dictionary files with the stand-alone program $LK,"::/System/AutoComplete/ACDictGen.ZC"$. diff --git a/src/Doc/BlkChain.DD b/src/Doc/BlkChain.DD index 5e82c9ca..309ab959 100755 --- a/src/Doc/BlkChain.DD +++ b/src/Doc/BlkChain.DD @@ -10,7 +10,7 @@ When doing large, whole-file operations, immediately memory fragmentation is a s The $LK,"DolDoc",A="FI:::/Doc/DolDoc.DD"$ format cannot have text tacked onto the end, since binary data is at the end. -Terry didn't want to spoil fun, so of course offered a way to get awesome performance that is, ironically, superior. $LK,"FBlkRead",A="MN:FBlkRead"$() and $LK,"FBlkWrite",A="MN:FBlkWrite"$() allow you to read a block offset from the start of a file. Since files are all contiguous, this is incredibly efficient. You just have to declare the desired file size when you create it with $LK,"FOpen",A="MN:FOpen"$() and cannot change it. See $LK,"::/Demo/Disk/DataBase.CC"$. +Terry didn't want to spoil fun, so of course offered a way to get awesome performance that is, ironically, superior. $LK,"FBlkRead",A="MN:FBlkRead"$() and $LK,"FBlkWrite",A="MN:FBlkWrite"$() allow you to read a block offset from the start of a file. Since files are all contiguous, this is incredibly efficient. You just have to declare the desired file size when you create it with $LK,"FOpen",A="MN:FOpen"$() and cannot change it. See $LK,"::/Demo/Disk/DataBase.ZC"$. If you like, you are encouraged to to do raw $LK,"BlkRead",A="MN:BlkRead"$() and $LK,"BlkWrite",A="MN:BlkWrite"$() directly on a drive. Just get a pointer to a $LK,"CDrive",A="MN:CDrive"$ with $LK,"Letter2Drive",A="MN:Letter2Drive"$() and you are on your way! Your computer is supposed to be a fun toy! You can make an entire partition used for a database, or invent a file system. diff --git a/src/Doc/Boot.DD b/src/Doc/Boot.DD index 7a8cd79d..775a2481 100755 Binary files a/src/Doc/Boot.DD and b/src/Doc/Boot.DD differ diff --git a/src/Doc/ChangeLog.DD b/src/Doc/ChangeLog.DD index 0aff8b2b..f77f71dd 100755 --- a/src/Doc/ChangeLog.DD +++ b/src/Doc/ChangeLog.DD @@ -1,4 +1,16 @@ $WW,1$$FG,5$$TX+CX,"ChangeLog"$$FG$ + +$IV,1$----12/11/21 05:57:44----$IV,0$ +* Raised version number to 1.07. +* $UL,1$Rename CosmiC -> ZealC.$UL,0$ +* $UL$Renamed all files from .CC -> .ZC to reflect language name change.$UL,0$ +* $LK,"R",A="MN:R"$("HOLYC_TYPECAST", "POSTFIX_TYPECAST", "-i"); +* $LK,"R",A="MN:R"$("CosmiC", "ZealC", "-i"); +* Rename Doc/CosmiC.DD to $LK+PU,"Doc/ZealC.DD",A="FI:::/Doc/ZealC.DD"$. +* $LK,"R",A="MN:R"$("\"CC\", "\"ZC\""); +* $LK,"R",A="MN:R"$(".CC", ".ZC", "-i"); +* $LK,"FR",A="MN:FR"$(".CC", ".ZC"); + $IV,1$----12/09/21 03:21:03----$IV,0$ * Revert 440Hz 'A'. @@ -51,7 +63,7 @@ $IV,1$----10/07/21 18:06:15----$IV,0$ * Fixed Std Font characters after char 128. * Added links to ZealOS-specific applications in PersonalMenu. * Removed all files from ::/Downloads. -* Started initial work integrating SSE instructions into assembler. $MA-X+PU,"See changes here.",LM="Find(\"XMM\", \"::/Compiler/OpCodes.DD\", \"-i\");\"\n\n\";Find(\"XMM\", \"::/Compiler/Asm.CC\", \"-i\");\"\n\";Find(\" == 128\", \"::/Compiler/UAsm.CC\", \"-i\");\"\n\";Find(\"XMM\", \"::/Compiler/UAsm.CC\", \"-i\");\"\n\";Find(\"size_arg_mask[16]\", \"::/Compiler/AsmInit.CC\", \"-i\");\"\n\";Find(\"size_arg_mask[0] = 0xF\", \"::/Compiler/AsmInit.CC\", \"-i\");\"\n\";Find(\"arg_mask[17\", \"::/Kernel/KernelA.HH\", \"-i\");\"\n\";Find(\"SSE\", \"::/Kernel/MultiProc.CC\", \"-i\");View;"$ Only added 2 arg opcodes and only added instructions <= 4 bytes. $TX+IV,"Current bugs"$: unassembling SSE instructions that use non-128-bit vars will incorrectly report U128, MOVHLPS and MOVLHPS 2nd operand is defined XMM128 to hack ModrM order but operands should be XMM XMM, due to MOVSD name clash we define opcode as MOVSD_SSE. $TX+IV,"TODO"$: add ZealC U128 and XMM register allocation support, find way to ensure 16-byte aligned stack to use aligned SSE instructions. +* Started initial work integrating SSE instructions into assembler. $MA-X+PU,"See changes here.",LM="Find(\"XMM\", \"::/Compiler/OpCodes.DD\", \"-i\");\"\n\n\";Find(\"XMM\", \"::/Compiler/Asm.CC\", \"-i\");\"\n\";Find(\" == 128\", \"::/Compiler/UAsm.CC\", \"-i\");\"\n\";Find(\"XMM\", \"::/Compiler/UAsm.CC\", \"-i\");\"\n\";Find(\"size_arg_mask[16]\", \"::/Compiler/AsmInit.CC\", \"-i\");\"\n\";Find(\"size_arg_mask[0] = 0xF\", \"::/Compiler/AsmInit.CC\", \"-i\");\"\n\";Find(\"arg_mask[17\", \"::/Kernel/KernelA.HH\", \"-i\");\"\n\";Find(\"SSE\", \"::/Kernel/MultiProc.CC\", \"-i\");View;"$ Only added 2 arg opcodes and only added instructions <= 4 bytes. $TX+IV,"Current bugs"$: unassembling SSE instructions that use non-128-bit vars will incorrectly report U128, MOVHLPS and MOVLHPS 2nd operand is defined XMM128 to hack ModrM order but operands should be XMM XMM, due to MOVSD name clash we define opcode as MOVSD_SSE. $TX+IV,"TODO"$: add U128 and XMM register allocation support, find way to ensure 16-byte aligned stack to use aligned SSE instructions. $IV,1$----09/21/21 23:35:00----$IV,0$ * Raised version number to 1.01. @@ -225,7 +237,7 @@ $IV,1$----06/28/21 06:20:21----$IV,0$ $IV,1$----06/24/21 01:01:06----$IV,0$ * Raised version number to ZenithOS 2.1. * Implemented PCI fall-back functions for when PCIBIOS is unsupported, to improve bare-metal support. -* Abstracted $LK+PU,"PCI functions",A="FI:::/Kernel/PCI.CC"$ out from $LK+PU,"PCIBIOS",A="FI:::/Kernel/PCIBIOS.CC"$ file. +* Abstracted $LK+PU,"PCI functions",A="FI:::/Kernel/PCI.ZC"$ out from $LK+PU,"PCIBIOS",A="FI:::/Kernel/PCIBIOS.ZC"$ file. $IV,1$----06/01/21 16:02:38----$IV,0$ $BK,1$* Raised version number to ZenithOS 2.0.$BK,0$ @@ -261,13 +273,13 @@ $IV,1$----06/04/20 18:01:46----$IV,0$ * Added $LK,"BIOSRep",A="MN:BIOSRep"$() as convenience function to view BIOS info from $LK,"SysRep",A="MN:SysRep"$(). $IV,1$----04/27/20 15:34:42----$IV,0$ -* Changed $LK+PU,"GrBitMap",A="FI:::/System/Gr/GrBitMap.CC"$ to use non-timer rand for drawing speed improvement on multicore. +* Changed $LK+PU,"GrBitMap",A="FI:::/System/Gr/GrBitMap.ZC"$ to use non-timer rand for drawing speed improvement on multicore. $IV,1$----04/21/20 18:54:47----$IV,0$ * Altered $LK+PU,"Tom Palettes",A="FF:::/System/Gr/GrPalette.CC,PaletteSetDark"$ for better visibility. $IV,1$----04/21/20 16:13:01----$IV,0$ -* Added start-up intro $LK+PU,"Splash",A="FI:::/System/ZSplash.CC"$ as a PopUp in $LK+PU,"Once",A="FF:::/HomeSys.CC,PopUp"$, after performing a full boot (excludes soft reboots). +* Added start-up intro $LK+PU,"Splash",A="FI:::/System/ZSplash.ZC"$ as a PopUp in $LK+PU,"Once",A="FF:::/HomeSys.CC,PopUp"$, after performing a full boot (excludes soft reboots). $IV,1$----04/13/20 13:48:15----$IV,0$ * Added $LK,"PIC_INIT",A="MN:PIC_INIT"$ and comments to $LK,"IntPICInit",A="MN:IntPICInit"$(). @@ -289,7 +301,7 @@ $IV,1$----04/10/20 07:44:08----$IV,0$ * $LK,"R",A="MN:R"$("PIT2", "$LK,"PIT_2",A="MN:PIT_2"$"); $IV,1$----04/09/20 19:33:16----$IV,0$ -* Added $LK,"Chess",A="FI:::/Demo/Games/Chess.CC"$ game from Sup1 disc. +* Added $LK,"Chess",A="FI:::/Demo/Games/Chess.ZC"$ game from Sup1 disc. * $LK,"R",A="MN:R"$("ScanFlags", "$LK,"FlagsScan",A="MN:FlagsScan"$"); * $LK,"R",A="MN:R"$("StrPrintFlags", "$LK,"FlagsStrPrint",A="MN:FlagsStrPrint"$"); * $LK,"R",A="MN:R"$("ScanMessage", "$LK,"MessageScan",A="MN:MessageScan"$"); @@ -304,7 +316,7 @@ $IV,1$----04/02/20 01:50:52----$IV,0$ * 'Fixed' $LK,"Varoom",A="FF:::/Demo/Games/Varoom.CC,kbd.down_bitmap"$ window lock up on exit. Brute-forcing zero, but somewhere $LK,"mp_not_done_flags",A="FF:::/Demo/Games/Varoom.CC,mp_not_done_flags"$ isn't getting cleared when shift-esc is entered with the new key implementation. $IV,1$----04/01/20 01:49:47----$IV,0$ -* Changed boat color in $LK,"Talons",A="FI:::/Demo/Games/Talons.CC"$ from black to brown. +* Changed boat color in $LK,"Talons",A="FI:::/Demo/Games/Talons.ZC"$ from black to brown. $IV,1$----04/01/20 01:42:55----$IV,0$ * Cleaned up $LK,"Varoom",A="FF:::/Demo/Games/Varoom.CC,kbd.down_bitmap"$ control fix some. Bug remains: run from Menu, ESC out, ESC again; a window locks up. @@ -352,7 +364,7 @@ $IV,1$----03/19/20 01:51:36----$IV,0$ * $LK,"R",A="MN:R"$("IC_SET_RFLAGS", "$LK,"IC_RFLAGS_SET",A="MN:IC_RFLAGS_SET"$"); * $LK,"R",A="MN:R"$("GetTSC", "$LK,"TSCGet",A="MN:TSCGet"$"); * $LK,"R",A="MN:R"$("GetS", "$LK,"StrNGet",A="MN:StrNGet"$"); -* Modified characters '_' and 'c' in $LK,"FontStd",A="FI:::/Kernel/FontStd.CC"$. +* Modified characters '_' and 'c' in $LK,"FontStd",A="FI:::/Kernel/FontStd.ZC"$. $IV,1$----03/16/20 14:44:00----$IV,0$ * $LK,"R",A="MN:R"$("GetStr", "$LK,"StrGet",A="MN:StrGet"$"); @@ -371,12 +383,12 @@ $IV,1$----02/23/20 23:59:37----$IV,0$ $IV,1$----02/23/20 02:36:28----$IV,0$ * $LK,"R",A="MN:R"$("err", "error"); -* Removed compression from kernel. Compress.CC, CArcCtrl, CArcCompress, ExpandBuf(), CompressBuf(), DCSF_COMPRESSED, etc. Updated $LK,"::/Demo/Disk/SerializeTree.CC",A="FI:::/Demo/Disk/SerializeTree.CC"$ to not use compression. +* Removed compression from kernel. Compress.CC, CArcCtrl, CArcCompress, ExpandBuf(), CompressBuf(), DCSF_COMPRESSED, etc. Updated $LK,"::/Demo/Disk/SerializeTree.ZC",A="FI:::/Demo/Disk/SerializeTree.ZC"$ to not use compression. * Removed RS_ATTR_COMPRESSED from $LK,"RedSea attributes",A="MN:RS_ATTR_READ_ONLY"$. * Refactored $LK,"FU flags",A="MN:FUf_RECURSE"$. Removed FUF_EXPAND, FUF_RISKY, and FUF_Z_OR_NOT_Z. $LK,"DocOptEntry",A="MN:DocOptEntry"$(), $LK,"Size",A="MN:Size"$(), $LK,"Size1",A="MN:Size1"$(), $LK,"SizeRep",A="MN:SizeRep"$(), and $LK,"SizeRep1",A="MN:SizeRep1"$() have been updated accordingly. * Removed IsDotZ(), ToggleZOrNotZ(). Cleaned up $LK,"FileRead",A="MN:FileRead"$(), $LK,"FileWrite",A="MN:FileWrite"$(), and $LK,"FileFind",A="MN:FileFind"$() accordingly. * Added XMM8-XMM15 to $LK,"OpCodes.DD",A="FF:::/Compiler/OpCodes.DD,XMM8"$. -* Added $LK,"::/Demo/Graphics/32BitColor.CC",A="FI:::/Demo/Graphics/32BitColor.CC"$. +* Added $LK,"::/Demo/Graphics/32BitColor.ZC",A="FI:::/Demo/Graphics/32BitColor.ZC"$. $IV,1$----02/22/20 20:04:00----$IV,0$ * Reduced $LK,"MEM_MIN_MEG",A="MN:MEM_MIN_MEG"$ to 256 MiB (VMWare users have to do less work). @@ -392,7 +404,7 @@ $IV,1$----02/21/20 17:30:17----$IV,0$ * Renamed BIOSTotalMem() -> $LK,"MemBIOSTotal",A="MN:MemBIOSTotal"$(), rewritten and commented for clarity, exported from kernel. Neat function. $IV,1$----02/20/20 17:40:10----$IV,0$ -* Replaced old standard font with new $LK,"FontStd",A="FI:::/Kernel/FontStd.CC"$. The auxilliary font is now the VGA ROM Font. +* Replaced old standard font with new $LK,"FontStd",A="FI:::/Kernel/FontStd.ZC"$. The auxilliary font is now the VGA ROM Font. * $UL,1$We now use 1 Tab (4 spaces wide) for indentation.$UL,0$ All spaces used for indentation have been converted to tabs. Header files are messy. $LK,"PCILookUpSingle",A="MN:PCILookUpSingle"$() was fixed according to this change. $LK,"EdCodeTools",A="MN:EdCodeTools"$ re-indentation feature needs to be updated. $IV,1$----02/19/20 21:46:17----$IV,0$ @@ -400,15 +412,15 @@ $BK,1$* Zenith 1.0 released.$BK,0$ * $LK,"GRScreenCaptureWrite",A="MN:GRScreenCaptureWrite"$() and $LK,"GRScreenCaptureRead",A="MN:GRScreenCaptureRead"$() are broken. $LK,"DCLoad",A="MN:DCLoad"$() and $LK,"DCSave",A="MN:DCSave"$() use DCF_COMPRESSED. It also saves the palette as $LK,"CBGR48",A="MN:CBGR48"$, which is a problem. * Updated $LK,"MemRep",A="MN:MemRep"$() to report on VBE variables. * Renamed VGAFlush() -> $LK,"LFBFlush",A="MN:LFBFlush"$(). -* Updated $LK,"Palette Demo",A="FI:::/Demo/Graphics/Palette.CC"$ to use current palette environment. +* Updated $LK,"Palette Demo",A="FI:::/Demo/Graphics/Palette.ZC"$ to use current palette environment. * Shortened $LK,"CheckPtr",A="MN:CheckPtr"$() and $LK,"CheckCodePtr",A="MN:CheckCodePtr"$(). Even though boolean expressions outside of $HL$if$HL,0$ statements are compiled inefficiently, clarity and low line count is more important. * $LK,"RawDr",A="MN:RawDumpRegs"$() is 40 columns off the right of the screen, instead of fixed at column 40. * Windows start at $LK,"4/5th the screen height",A="FF:::/Kernel/KTask.CC,text.rows"$ instead of row 13. System task window is $LK,"1/5th the screen height",A="FF:::/StartOS.CC,text.rows"$. * $LK,"R",A="MN:R"$("RLf_VGA", "$LK,"RLf_VESA",A="MN:RLf_VESA"$"); -* Removed VGA text mode support, and all definitions relating to it, including from the $LK,"kernel config",A="FI:::/Kernel/KConfig.CC"$. +* Removed VGA text mode support, and all definitions relating to it, including from the $LK,"kernel config",A="FI:::/Kernel/KConfig.ZC"$. * Added $MA-X+PU,"screen resolution selection",LM="F(\"->screen_w\");View;"$ to kernel configuration procedure. * Added $LK,"VideoRep",A="MN:VideoRep"$() to report on VBE modes and info, added test case to the $LK,"OSTestSuite",A="FF:::/Misc/OSTestSuite.CC,VideoRep"$. -* $UL$Added VBE graphics support.$UL,0$ Screen zooming is non-functional at the moment. We are setting 32-bit color graphics modes but the graphics library is still 4-bit (16 color) internally. $LK,"MiniGrLib",A="FI:/Demo/Lectures/MiniGrLib.CC"$ broken for obvious reasons. Keeping it because its intention is to teach a how a graphics library works, generically. Removed 2 smaller VGA hardware programming demos. +* $UL$Added VBE graphics support.$UL,0$ Screen zooming is non-functional at the moment. We are setting 32-bit color graphics modes but the graphics library is still 4-bit (16 color) internally. $LK,"MiniGrLib",A="FI:/Demo/Lectures/MiniGrLib.ZC"$ broken for obvious reasons. Keeping it because its intention is to teach a how a graphics library works, generically. Removed 2 smaller VGA hardware programming demos. Rundown: - Added classes $LK,"CVBEInfo",A="MN:CVBEInfo"$, $LK,"CVBEMode",A="MN:CVBEMode"$, $LK,"CVBEModeShort",A="MN:CVBEModeShort"$ - $LK,"real-mode assembly",A="FF:::/Kernel/KStart16.CC,CVBEInfo:2"$ -- $MA-X+PU,"added kernel symbols",LM="F(\"SYS_VBE\", \"+lb\");View;"$. @@ -417,7 +429,7 @@ $BK,1$* Zenith 1.0 released.$BK,0$ - $LK,"raw text drawing routine",A="FF:::/Kernel/Display.CC,text.fb_alias"$ updated. $LK,"BLACK32, WHITE32",A="MN:BLACK32"$. - Dynamic definition of $LK,"GR_WIDTH and GR_HEIGHT",A="FF:::/System/Gr/GrGlobals.CC,GR_WIDTH:2"$. - $LK,"GrUpdateScreen32",A="MN:GrUpdateScreen32"$() -- $LK,"GrCalcScreenUpdates",A="MN:GrCalcScreenUpdates"$() is used to reduce CPU usage. Added $FG,2$screen_cache$FG$ member to $LK,"CGrGlobals",A="MN:CGrGlobals"$. - - $LK,"gr_palette",A="MN:gr_palette"$ global variable. We use $LK,"CBGR24",A="MN:CBGR24"$ in $LK,"GrPalette.CC",A="FI:::/System/Gr/GrPalette.CC"$. + - $LK,"gr_palette",A="MN:gr_palette"$ global variable. We use $LK,"CBGR24",A="MN:CBGR24"$ in $LK,"GrPalette.ZC",A="FI:::/System/Gr/GrPalette.ZC"$. * Added $LK,"BinRep",A="MN:BinRep"$() from Sup1 ISO. * $LK,"R",A="MN:R"$("sys_pci_busses", "$LK,"sys_pci_buses",A="MN:sys_pci_buses"$"); @@ -425,7 +437,7 @@ $BK,1$* Zenith 1.0 released.$BK,0$ * Renamed mon_start_days1 and mon_start_days2 -> $LK,"month_start_days",A="MN:month_start_days"$ and $LK,"month_start_days_leap",A="MN:month_start_days_leap"$, respectively. * Moved random number generation algorithm into $LK,"seperate function",A="MN:RandInt"$ to reduce line count. Added $LK,"RandU8",A="MN:RandU8"$(). * Added syntax highlighting for numbers. $LK,"DocHighlight",A="FF:::/System/DolDoc/DocHighlight.CC,DOC_COLOR_NUMBER"$(), $LK,"DOC_COLOR_NUMBER",A="MN:DOC_COLOR_NUMBER"$. -* Removed unnecessary checks for the presence of the $LK,"APIC",A="MN:LAPIC_BASE"$ in $LK,"MultiProc.CC",A="FI:::/Kernel/MultiProc.CC"$, as it is present on all x86 CPUs after the P5 microarchitecture. +* Removed unnecessary checks for the presence of the $LK,"APIC",A="MN:LAPIC_BASE"$ in $LK,"MultiProc.ZC",A="FI:::/Kernel/MultiProc.ZC"$, as it is present on all x86 CPUs after the P5 microarchitecture. * Added untested $LK,"ReAlloc",A="MN:ReAlloc"$(), as it could be useful for certain programs. * Added definitions for the $LK,"PCI registers",A="MN:PCIR_VENDOR_ID"$. Expanded the $LK,"CPCIDev",A="MN:CPCIDev"$ class to contain the values of the read-only registers. Added $LK,"PCIDevFind",A="MN:PCIDevFind"$() as a simpler/abstracted alternative to $LK,"PCIClassFind",A="MN:PCIClassFind"$(). * Removed the unpolished HPET implementation from the kernel. @@ -445,7 +457,7 @@ $BK,1$* Zenith 1.0 released.$BK,0$ * AutoComplete now stays where you move it instead of snapping back to a fixed location, and that location persists after rebooting by using the Registry to save the window location. Increased number of symbol links shown to 12, so you can use all the functions keys F1-F12. It does syntax highlighting on the symbols now, so you know what type they are. Public symbols are $IV$inverted$IV,0$. Dictionary words are BLACK to differentiate between symbols. * Added more keyboard shortcuts to the AutoComplete $LK,"standby doc",A="FI:::/Doc/StandBy.DD"$. * Removed "TOS Staff" and "InsReg" related code. -* Renamed /Kernel/KInts.CC to $LK,"KInterrupts.CC",A="FI:::/Kernel/KInterrupts.CC"$. +* Renamed /Kernel/KInts.CC to $LK,"KInterrupts.ZC",A="FI:::/Kernel/KInterrupts.ZC"$. * Date section of status bar shows the year now. * Increased the length of the part of the status bar that shows the last keys pressed, so the longest combination (CTRL+ALT+SHIFT+ENTER) can be shown. It is always at the rightmost part of the screen instead of being fixed at column 55. * $LK,"ClassRep",A="MN:ClassRep"$() does not show ASCII values for U8/I8 members by default now. Added argument "u8_chars" to enable that. @@ -471,7 +483,7 @@ $BK,1$* Zenith 1.0 released.$BK,0$ * $UL$Renamed all files from .HC -> .CC to reflect language name change.$UL,0$ * Renaming: TempleOS -> ZenithOS - HolyC -> ZealC + HolyC -> CosmiC Adam -> Zenith Seth -> Daemon Chk -> Check @@ -546,11 +558,11 @@ $IV,1$----02/05/17 16:37:39----$IV,0$ * Added $LK,"::/Doc/BlkChain.DD"$. $IV,1$----02/03/17 17:27:36----$IV,0$ -* Added multicore $LK,"::/System/MathODE.CC"$. +* Added multicore $LK,"::/System/MathODE.ZC"$. * Improved support for sub and super scripts. $IV,1$----01/31/17 10:22:10----$IV,0$ -* Added $LK,"::/Demo/Graphics/LightTable.CC"$. +* Added $LK,"::/Demo/Graphics/LightTable.ZC"$. * Added $LK,"TOS Linux Setup",A="FF:::/Demo/AcctExample/TOS/TOSPolicies.DD,TOS Linux Setup"$. $IV,1$----01/27/17 08:13:37----$IV,0$ @@ -577,7 +589,7 @@ $IV,1$----01/25/17 20:44:17----$IV,0$ $IV,1$----01/24/17 21:56:06----$IV,0$ -* Improved $LK,"::/Apps/Psalmody/JukeBox.CC"$ +* Improved $LK,"::/Apps/Psalmody/JukeBox.ZC"$ * $LK,"R",A="MN:R"$("TreeBranch","Tree"); * Added $LK,"DocTreeWrite",A="MN:DocTreeWrite"$() and $LK,"DocTreeAppend",A="MN:DocTreeAppend"$(). @@ -644,7 +656,7 @@ $IV,1$----01/09/17 02:30:59----$IV,0$ $IV,1$----01/06/17 06:07:19----$IV,0$ * Fixed $LK,"DskChg",A="MN:DiskChange"$(). -* Improved $LK,"::/Misc/OSTestSuite.CC"$. +* Improved $LK,"::/Misc/OSTestSuite.ZC"$. $IV,1$----01/05/17 04:53:21----$IV,0$ * No longer support ASCII#12, CH_FORM_FEED. @@ -659,7 +671,7 @@ $IV,1$----01/04/17 18:06:14----$IV,0$ * $LK,"R",A="MN:R"$("Handler","Hndlr"); * $LK,"R",A="MN:R"$("InputPointer","Mouse"); * Improved $LK,"MemRep",A="MN:MemRep"$(). -* Changed $LK,"::/System/WallPaper.CC"$. +* Changed $LK,"::/System/WallPaper.ZC"$. $IV,1$----01/03/17 12:23:49----$IV,0$ * $LK,"R",A="MN:R"$("chars_cmp...","char_bmp..."); @@ -680,7 +692,7 @@ $IV,1$----12/31/16 07:21:20----$IV,0$ $IV,1$----12/30/16 23:42:20----$IV,0$ * $LK,"R",A="MN:R"$("Pages512","Pags"); -* Overhauled $LK,"::/Kernel/Memory/PageTables.CC"$. +* Overhauled $LK,"::/Kernel/Memory/PageTables.ZC"$. * $LK,"R",A="MN:R"$("BusyWait()","$LK,"Busy",A="MN:Busy"$()"); $IV,1$----12/29/16 10:21:44----$IV,0$ @@ -697,7 +709,7 @@ $IV,1$----12/03/16 13:19:58----$IV,0$ * $LK,"R",A="MN:R"$("SpriteX3B()","$LK,"Sprite3XB",A="MN:Sprite3XB"$()"); * $LK,"R",A="MN:R"$("SpriteY3B()","$LK,"Sprite3YB",A="MN:Sprite3YB"$()"); * $LK,"R",A="MN:R"$("SpriteZ3B()","$LK,"Sprite3ZB",A="MN:Sprite3ZB"$()"); -* Improved $LK,"::/Demo/Games/Talons.CC"$. +* Improved $LK,"::/Demo/Games/Talons.ZC"$. $IV,1$----12/03/16 10:16:26----$IV,0$ * Changed $LK,"__CMD_LINE__",A="MN:__CMD_LINE__"$. @@ -709,46 +721,46 @@ $IV,1$----11/30/16 22:44:35----$IV,0$ * Added $LK,"SpriteTransform",A="MN:SpriteTransform"$(). $IV,1$----11/28/16 07:11:41----$IV,0$ -* Improved $LK,"::/Apps/Titanium/Titanium.CC"$. +* Improved $LK,"::/Apps/Titanium/Titanium.ZC"$. $IV,1$----11/26/16 22:43:51----$IV,0$ -* Added solar storms to $LK,"::/Apps/X-Caliber/X-Caliber.CC"$. +* Added solar storms to $LK,"::/Apps/X-Caliber/X-Caliber.ZC"$. * $LK,"R",A="MN:R"$("TimeOut","Titanium"); $IV,1$----11/20/16 19:46:43----$IV,0$ * $BK,1$TempleOS version 4.13 Released$BK,0$ -* Improved $LK,"::/Apps/Titanium/Titanium.CC"$. -* Improved $LK,"::/Apps/X-Caliber/X-Caliber.CC"$. +* Improved $LK,"::/Apps/Titanium/Titanium.ZC"$. +* Improved $LK,"::/Apps/X-Caliber/X-Caliber.ZC"$. $IV,1$----11/19/16 08:19:51----$IV,0$ * Improved Budget application. $IV,1$----11/17/16 18:49:51----$IV,0$ * $LK,"R",A="MN:R"$("EagleDive","Talons"); -* Improved $LK,"::/Demo/Games/RocketScience.CC"$. -* Improved $LK,"::/Demo/Games/Rocket.CC"$. +* Improved $LK,"::/Demo/Games/RocketScience.ZC"$. +* Improved $LK,"::/Demo/Games/Rocket.ZC"$. $IV,1$----10/28/16 05:54:27----$IV,0$ -* Added $LK,"::/Demo/RadixSort.CC"$. +* Added $LK,"::/Demo/RadixSort.ZC"$. $IV,1$----10/26/16 00:21:06----$IV,0$ * Added $LK,"CProgress",A="MN:CProgress"$.t0. * Improved $LK,"::/Doc/Boot.DD"$. $IV,1$----10/25/16 18:02:44----$IV,0$ -* Improved $LK,"::/System/Gr/SpriteEd.CC"$. +* Improved $LK,"::/System/Gr/SpriteEd.ZC"$. * Improved $LK,"::/Demo/AcctExample/TOS/TOSHolySpirit.HC"$. $IV,1$----10/12/16 10:55:26----$IV,0$ * Added $LK,"CCF_NO_CHAR_CONST",A="MN:CCF_NO_CHAR_CONST"$. -* Improved $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$. +* Improved $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$. $IV,1$----10/03/16 01:09:35----$IV,0$ * Changed $LK,"GodWord",A="MN:GodWord"$(). $IV,1$----09/30/16 18:29:59----$IV,0$ * Improved $LK,"Rand",A="MN:Rand"$()'s. -* Improved $LK,"::/System/Utils/ToTXT.CC"$. +* Improved $LK,"::/System/Utils/ToTXT.ZC"$. $IV,1$----09/29/16 10:13:14----$IV,0$ * $BK,1$TempleOS version 4.12 Released$BK,0$ @@ -758,10 +770,10 @@ $IV,1$----09/29/16 10:13:14----$IV,0$ $IV,1$----09/27/16 12:40:21----$IV,0$ * Added $LK,"SndRst",A="MN:SoundReset"$(). -* Got rid of crappy reverb in $LK,"::/Apps/Psalmody/PsalmodyMain.CC"$. +* Got rid of crappy reverb in $LK,"::/Apps/Psalmody/PsalmodyMain.ZC"$. $IV,1$----09/27/16 11:09:25----$IV,0$ -* Improved $LK,"::/Misc/OSTestSuite.CC"$. +* Improved $LK,"::/Misc/OSTestSuite.ZC"$. * Fixed bug in $LK,"EdCharIns",A="MN:EdCharIns"$() printing $$ cmds. * Added $LK,"FUF_JUST_DD",A="MN:FUF_JUST_DD"$ and $LK,"FILEMASK_DD",A="MN:FILEMASK_DD"$. @@ -772,14 +784,14 @@ $IV,1$----09/27/16 01:05:52----$IV,0$ * $LK,"R",A="MN:R"$("Temp","Tmp"); $IV,1$----09/26/16 00:44:42----$IV,0$ -* Added CloseAssault and OverRun to $LK,"::/Apps/ToTheFront/ToTheFront.CC"$. +* Added CloseAssault and OverRun to $LK,"::/Apps/ToTheFront/ToTheFront.ZC"$. $IV,1$----09/22/16 07:53:20----$IV,0$ -* Improved $LK,"::/Demo/Graphics/Box.CC"$. -* Improved $LK,"::/Demo/Graphics/SpritePlot3D.CC"$. +* Improved $LK,"::/Demo/Graphics/Box.ZC"$. +* Improved $LK,"::/Demo/Graphics/SpritePlot3D.ZC"$. $IV,1$----09/21/16 17:09:40----$IV,0$ -* Fixed bug in $LK,"::/Demo/Games/BomberGolf.CC"$. +* Fixed bug in $LK,"::/Demo/Games/BomberGolf.ZC"$. $IV,1$----09/20/16 15:57:30----$IV,0$ * $LK,"R",A="MN:R"$("Screen","Scrn"); @@ -811,11 +823,11 @@ $IV,1$----09/06/16 13:01:42----$IV,0$ * Got rid of $FG,4$MSG_FOCUS$FG$, $FG,4$MSG_MOVE$FG$, and $FG,4$MSG_SIZE$FG$. There are no longer messages for moving and sizing windows. $IV,1$----09/06/16 02:40:43----$IV,0$ -* Improved $LK,"::/Demo/MagicPairs.CC"$. +* Improved $LK,"::/Demo/MagicPairs.ZC"$. $IV,1$----08/27/16 09:45:39----$IV,0$ * Improved $LK,"CPURep",A="MN:CPURep"$(). -* Improved $LK,"::/Misc/OSTestSuite.CC"$. +* Improved $LK,"::/Misc/OSTestSuite.ZC"$. * Added $LK,"BirthWait",A="MN:BirthWait"$() and $LK,"DeathWait",A="MN:DeathWait"$(). $IV,1$----08/22/16 04:14:47----$IV,0$ @@ -825,11 +837,11 @@ $IV,1$----07/17/16 13:03:12----$IV,0$ * Improved $LK,"DocOpt",A="MN:DocOpt"$(). $IV,1$----07/17/16 03:23:53----$IV,0$ -* Improved $LK,"::/Demo/Games/RawHide.CC"$. +* Improved $LK,"::/Demo/Games/RawHide.ZC"$. $IV,1$----07/15/16 10:11:10----$IV,0$ * $BK,1$TempleOS version 4.10 Released$BK,0$ -* Improved $LK,"::/Demo/Games/Talons.CC"$. +* Improved $LK,"::/Demo/Games/Talons.ZC"$. $IV,1$----07/15/16 05:17:24----$IV,0$ * Created $LK,"CDevGlbls",A="MN:CDevGlobals"$.uncached_alias. @@ -839,7 +851,7 @@ $IV,1$----07/13/16 17:21:19----$IV,0$ * Added multicore report to $LK,"CPURep",A="MN:CPURep"$(). $IV,1$----07/09/16 08:46:36----$IV,0$ -* Changed scoring in $LK,"::/Demo/Games/Talons.CC"$. +* Changed scoring in $LK,"::/Demo/Games/Talons.ZC"$. * Replaced many $FG,2$"%Q"$FG$ with $FG,2$"%$$Q"$FG$. * Fixed $FG,2$'\x24'$FG$. * Added $FG,2$'\d'$FG$ for $FG,2$'$$'$FG$. @@ -854,11 +866,11 @@ $IV,1$----07/07/16 07:21:03----$IV,0$ $IV,1$----07/06/16 23:45:30----$IV,0$ * Fixed multicore bug in $LK,"Sprite3",A="MN:Sprite3"$(). -* Improved $LK,"::/Demo/Games/Talons.CC"$. +* Improved $LK,"::/Demo/Games/Talons.ZC"$. $IV,1$----07/05/16 06:03:47----$IV,0$ * $BK,1$TempleOS version 4.09 Released$BK,0$ -* Improved $LK,"::/Demo/Games/Talons.CC"$. +* Improved $LK,"::/Demo/Games/Talons.ZC"$. * Improved $LK,"GrFillTri0",A="MN:GrFillTri0"$(). $IV,1$----07/03/16 04:30:05----$IV,0$ @@ -871,14 +883,14 @@ $IV,1$----07/01/16 05:29:08----$IV,0$ $IV,1$----06/28/16 13:15:08----$IV,0$ * Changed $LK,"TaskRep",A="MN:TaskRep"$() and $LK,"MemRep",A="MN:MemRep"$(). -* Changed $LK,"::/System/WallPaper.CC"$. +* Changed $LK,"::/System/WallPaper.ZC"$. $IV,1$----06/26/16 14:01:16----$IV,0$ * Added $LK,"LastFun",A="MN:LastFun"$(), $LK,"RunFile",A="MN:RunFile"$(), $LK,"RunFile2",A="MN:RunFile2"$() and $LK,"PopUpRunFile",A="MN:PopUpRunFile"$(). * Made boot code modular. $IV,1$----06/24/16 14:15:13----$IV,0$ -* Added A.I. to $LK,"::/Apps/KeepAway/KeepAway.CC"$ and changed scoring. +* Added A.I. to $LK,"::/Apps/KeepAway/KeepAway.ZC"$ and changed scoring. $IV,1$----06/24/16 02:55:42----$IV,0$ * $BK,1$TempleOS version 4.08 Released$BK,0$ @@ -905,10 +917,10 @@ $IV,1$----06/16/16 20:59:41----$IV,0$ * $FG,2$$FG$ is next task. $IV,1$----06/16/16 19:49:39----$IV,0$ -* Added $LK,"::/Doc/Comm.CC"$. +* Added $LK,"::/Doc/Comm.ZC"$. * Added $LK,"::/Doc/StdTempleOSPC.DD"$. * Added $LK,"::/Kernel/FontCyrillic.HC"$. $FG,2$$FG$ $IV,1$----06/02/16 03:20:56----$IV,0$ * $BK,1$TempleOS version 4.07 Released$BK,0$ -* Added claws to $LK,"::/Demo/Games/Talons.CC"$. +* Added claws to $LK,"::/Demo/Games/Talons.ZC"$. diff --git a/src/Doc/CharOverview.DD b/src/Doc/CharOverview.DD index c0bcf449..16904333 100755 --- a/src/Doc/CharOverview.DD +++ b/src/Doc/CharOverview.DD @@ -19,7 +19,7 @@ The upper 4-bytes are copied from lower 4-bytes. $FG,2$Byte 4$FG$ is the code. Left, Right and NumPad keys distinct. $FG,2$Byte 5-7$FG$ are $LK,"flags",A="MN:SCf_KEY_UP"$ -Run the program $LK,"::/Demo/MessageLoop.CC"$ to examine scan code. Press $FG,2$$FG$ and "Insert ASCII/ScanCode".$FG$ +Run the program $LK,"::/Demo/MessageLoop.ZC"$ to examine scan code. Press $FG,2$$FG$ and "Insert ASCII/ScanCode".$FG$ See $LK,"Key Allocations",A="FI:::/Doc/KeyAlloc.DD"$ and $LK,"CKbdStateGlobals",A="MN:CKbdStateGlobals"$. diff --git a/src/Doc/CmdLineOverview.DD b/src/Doc/CmdLineOverview.DD index 12147570..538640aa 100755 --- a/src/Doc/CmdLineOverview.DD +++ b/src/Doc/CmdLineOverview.DD @@ -14,7 +14,7 @@ If you don't have args, you don't need parenthesis. Directories are referenced with $FG,2$/$FG$ not $FG,2$\$FG$. There is a current directory, but not a path. To run a program, you typically $FG,2$#include $FG$it. There are several shortcuts for $FG,2$#include$FG$ing files. Right-click or hit $FG,2$$FG$ on a directory listing or press $FG,2$$FG$ while editing. ->$FG,2$Ed("NewFile.CC");$FG$ Invokes the editor. See $LK,"Doc Link Type",A="MN:LK_FILE"$. +>$FG,2$Ed("NewFile.ZC");$FG$ Invokes the editor. See $LK,"Doc Link Type",A="MN:LK_FILE"$. Drives are specified with a letter. The boot drive is specified with a '$FG,2$:$FG$'. The home dir drive is specified with a $FG,2$'~'$FG$. @@ -33,7 +33,7 @@ If a file is not found, all parent directories are searched. You can place macros in your $LK,"PersonalMenu",A="FI:~/PersonalMenu.DD"$ for $LK,"Cd",A="MN:Cd"$() commands. $FG,2$$FG$ to access your menu. ->$FG,2$Find("needle","/Demo/*.CC;*.DD;");$FG$ See $LK,"File Utils",A="FI:::/Doc/FileUtils.DD"$. +>$FG,2$Find("needle","/Demo/*.ZC;*.DD;");$FG$ See $LK,"File Utils",A="FI:::/Doc/FileUtils.DD"$. $LK,"Cmd Line Routines",A="HI:Cmd Line (Typically)"$ diff --git a/src/Doc/Comm.CC b/src/Doc/Comm.ZC similarity index 100% rename from src/Doc/Comm.CC rename to src/Doc/Comm.ZC diff --git a/src/Doc/CompilerOverview.DD b/src/Doc/CompilerOverview.DD index fa1cdbae..6501ca1f 100755 --- a/src/Doc/CompilerOverview.DD +++ b/src/Doc/CompilerOverview.DD @@ -3,8 +3,8 @@ $WW,1$$FG,5$$TX+CX,"Compiler Index"$$FG$ The compiler lexes and parses code into $LK,"Intermediate Codes",A="FF:::/Compiler/CompilerA.HH,IC_END"$ which are then made into JIT or AOT machine code. The compiler preprocesses during lexing, and optimizes after Intermediate Code generation. For parser reference, see $LK,"ParseExpression",A="MN:ParseExpression"$(), $LK,"ParseStatement",A="MN:ParseStatement"$(). -For Intermediate Code reference, see $LK,"BackLib",A="FI:::/Compiler/BackLib.CC"$, $LK,"Intermediate Code Attributes",A="MN:intermediate_code_table"$, $LK,"Combining Consts",A="FF:::/Compiler/OptPass012.CC,case IC_MUL"$, $LK,"Choosing Reg Vars",A="FF:::/Compiler/OptPass3.CC,cmp.num_reg_vars"$. -For machine code backend reference, see $LK,"IC Struct",A="MN:CIntermediateCode"$, $LK,"COCCompile",A="MN:COCCompile"$ and $LK,"OptPass789A",A="FF:::/Compiler/OptPass789A.CC,IC_MUL"$(), $LK,"BackEnd",A="FF:::/Compiler/BackA.CC,ICMul"$. +For Intermediate Code reference, see $LK,"BackLib",A="FI:::/Compiler/BackLib.ZC"$, $LK,"Intermediate Code Attributes",A="MN:intermediate_code_table"$, $LK,"Combining Consts",A="FF:::/Compiler/OptPass012.ZC,case IC_MUL"$, $LK,"Choosing Reg Vars",A="FF:::/Compiler/OptPass3.ZC,cmp.num_reg_vars"$. +For machine code backend reference, see $LK,"IC Struct",A="MN:CIntermediateCode"$, $LK,"COCCompile",A="MN:COCCompile"$ and $LK,"OptPass789A",A="FF:::/Compiler/OptPass789A.ZC,IC_MUL"$(), $LK,"BackEnd",A="FF:::/Compiler/BackA.ZC,ICMul"$. $LK,"::/Doc/Asm.DD"$ diff --git a/src/Doc/Credits.DD b/src/Doc/Credits.DD index 967d10ea..6351f9ce 100755 --- a/src/Doc/Credits.DD +++ b/src/Doc/Credits.DD @@ -4,9 +4,9 @@ $FG,2$Terry A. Davis$FG$ wrote all of TempleOS over a span of $FG,2$$TX,"15.0",D *) $LK,"ATA Reg and Cmd Definitions",A="MN:ATA_NOP"$ are originally from Linux. Later, Terry got the spec. -*) The heap algorithm, $LK,"::/Kernel/Memory/MAllocFree.CC"$, is adapted from one Terry saw at Ticketmaster when he worked on their VAX operating system. +*) The heap algorithm, $LK,"::/Kernel/Memory/MAllocFree.ZC"$, is adapted from one Terry saw at Ticketmaster when he worked on their VAX operating system. -*) The adaptive-step-size-Runge-Kutta algorithm, $LK,"::/System/MathODE.CC"$, is adapted from the book, $UL,1$Numerical Recipes in C$UL,0$. +*) The adaptive-step-size-Runge-Kutta algorithm, $LK,"::/System/MathODE.ZC"$, is adapted from the book, $UL,1$Numerical Recipes in C$UL,0$. *) The mountain in some games is from $FG,4$$TX,"http://www.public-domain-photos.com",HTML="http://www.public-domain-photos.com"$$FG$. The wolf in BlackDiamond is also from there. Terry took watermarked photos and converted to 16 color. @@ -16,7 +16,7 @@ $FG,2$Terry A. Davis$FG$ wrote all of TempleOS over a span of $FG,2$$TX,"15.0",D *) Terry included $LK,"PCIDevice List File",A="FI:::/Misc/PCIDevices.DD",HTML="http://www.pcidatabase.com/reports.php?type=tab-delimeted"$. -*) Thanks to whoever wrote this $FG,4$$TX,"CppHtml.CC",HTML="http://web.archive.org/web/20100325153025/http://home.scarlet.be/zoetrope/cpphtml.htm"$$FG$. Terry was a novice on web stuff and you helped him with html. See $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$. +*) Thanks to whoever wrote this $FG,4$$TX,"CppHtml.ZC",HTML="http://web.archive.org/web/20100325153025/http://home.scarlet.be/zoetrope/cpphtml.htm"$$FG$. Terry was a novice on web stuff and you helped him with html. See $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$. *) Terry looked at bootable CD boot sectors, but didn't learn anything, finding it easier to make his own. diff --git a/src/Doc/Ctrls.DD b/src/Doc/Ctrls.DD index 45dbb690..99a6e257 100755 --- a/src/Doc/Ctrls.DD +++ b/src/Doc/Ctrls.DD @@ -1 +1 @@ -$WW,1$To create a ZealOS graphic ctrl, you define callback functions and insert a $LK,"CCtrl",A="MN:CCtrl"$ structure in the $LK,"CTask",A="MN:CTask"$ queue. See $LK,"::/Demo/Graphics/Slider.CC"$, $LK,"::/Demo/Graphics/ScrollBars.CC"$ and $LK,"TermBttnNew",A="FF:::/System/WallPaper.CC,TermBttnNew"$. There is a template-code ctrl generator, if you press $FG,2$$FG$. +$WW,1$To create a ZealOS graphic ctrl, you define callback functions and insert a $LK,"CCtrl",A="MN:CCtrl"$ structure in the $LK,"CTask",A="MN:CTask"$ queue. See $LK,"::/Demo/Graphics/Slider.ZC"$, $LK,"::/Demo/Graphics/ScrollBars.ZC"$ and $LK,"TermBttnNew",A="FF:::/System/WallPaper.ZC,TermBttnNew"$. There is a template-code ctrl generator, if you press $FG,2$$FG$. diff --git a/src/Doc/Customize.DD b/src/Doc/Customize.DD index f452d1f7..4bd3a569 100755 --- a/src/Doc/Customize.DD +++ b/src/Doc/Customize.DD @@ -1,7 +1,7 @@ -$WW,1$* You can adjust the mouse movement rate by setting global variables in your start-up file. See $LK,"mouse scale",A="FF:~/HomeLocalize.CC,mouse_hard.scale"$. +$WW,1$* You can adjust the mouse movement rate by setting global variables in your start-up file. See $LK,"mouse scale",A="FF:~/HomeLocalize.ZC,mouse_hard.scale"$. -* You can set your local time zone by setting the $FG,4$local_time_offset$FG$ global variable in a start-up file. Its units are $LK,"CDATE_FREQ",A="MN:CDATE_FREQ"$. See $LK,"local time",A="FF:~/HomeLocalize.CC,local_time"$. +* You can set your local time zone by setting the $FG,4$local_time_offset$FG$ global variable in a start-up file. Its units are $LK,"CDATE_FREQ",A="MN:CDATE_FREQ"$. See $LK,"local time",A="FF:~/HomeLocalize.ZC,local_time"$. -* You can change the palette using the $LK+PU,"PaletteSet",A="FF:::/System/Gr/GrPalette.CC,U0 PaletteSet"$ functions. Pressing $FG,2$$FG$ toggles standard and VGA ROM font. +* You can change the palette using the $LK+PU,"PaletteSet",A="FF:::/System/Gr/GrPalette.ZC,U0 PaletteSet"$ functions. Pressing $FG,2$$FG$ toggles standard and VGA ROM font. -* Get rid of this message $LK,"here",A="FF:~/Once.CC,Customize.DD"$. +* Get rid of this message $LK,"here",A="FF:~/Once.ZC,Customize.DD"$. diff --git a/src/Doc/CutCorners.DD b/src/Doc/CutCorners.DD index 39b0f873..14c4e8f6 100755 --- a/src/Doc/CutCorners.DD +++ b/src/Doc/CutCorners.DD @@ -6,7 +6,7 @@ There are a few places where corners are cut in the interest of not junking-up c * ZealOS does not figure-out $FG,2$FAT32$FG$ short name alias numbers. $LK,"FAT32DirNew",A="MN:FAT32DirNew"$(). It can cause hard drive corruption, so it might have to do it eventually. It would really take a lot of junky code for this hatefully, detestable, legacy issue. "Please don't make us ruin the beautiful shiny-new ZealOS with that!" $FG,2$FAT32$FG$ is also unappealing because it is in patent limbo. $FG,2$FAT32$FG$ might get removed from ZealOS. There is the $LK,"RedSea",A="FI:::/Doc/RedSea.DD"$ 64-bit file system that works perfectly well. $FG,2$FAT32$FG$ is useful, however, because it assists in transferring between dual booted operating systems. -* The $LK,"asm opcodes",A="FI:::/Compiler/OpCodes.DD"$ names were changed to remove the ambiguity between insts with different numbers of arguments, making the $LK,"assembler",A="FI:::/Compiler/Asm.CC"$ simpler and minimal 16-bit asm support was done, since 64-bit is what you should be using, unless you're doing a $LK,"boot loader",A="FI:::/System/Boot/BootDVD.CC"$. +* The $LK,"asm opcodes",A="FI:::/Compiler/OpCodes.DD"$ names were changed to remove the ambiguity between insts with different numbers of arguments, making the $LK,"assembler",A="FI:::/Compiler/Asm.ZC"$ simpler and minimal 16-bit asm support was done, since 64-bit is what you should be using, unless you're doing a $LK,"boot loader",A="FI:::/System/Boot/BootDVD.ZC"$. * There are no user-controlled file-sharing locks. However, the drive and file system have locks and concurrent operations should be fine. diff --git a/src/Doc/Define.DD b/src/Doc/Define.DD index 36c7d9a2..fdeb4607 100755 --- a/src/Doc/Define.DD +++ b/src/Doc/Define.DD @@ -1,9 +1,9 @@ -$WW,1$ZealOS has a string indirection feature implemented with the same hash symbol table entry as $FG,2$#define$FG$ macros, $LK,"HTT_DEFINE_STR",A="MN:HTT_DEFINE_STR"$. Support for string lists is also provided, but it's not very efficient, though, you can make a hash table with a list using $LK,"HashDefineListAdd",A="MN:HashDefineListAdd"$(). See $LK,"::/System/DolDoc/DocInit.CC",A="FF:::/System/DolDoc/DocInit.CC,HashDefineListAdd"$. +$WW,1$ZealOS has a string indirection feature implemented with the same hash symbol table entry as $FG,2$#define$FG$ macros, $LK,"HTT_DEFINE_STR",A="MN:HTT_DEFINE_STR"$. Support for string lists is also provided, but it's not very efficient, though, you can make a hash table with a list using $LK,"HashDefineListAdd",A="MN:HashDefineListAdd"$(). See $LK,"::/System/DolDoc/DocInit.ZC",A="FF:::/System/DolDoc/DocInit.ZC,HashDefineListAdd"$. If you have an $FG,2$@$FG$ as the first char of a define list entry, it is an alias for the prev entry num. Each task can load its own Define strings. Remember, when a $LK,"Hash",A="HI:Hash"$ table is searched for a string, if it is not found, the parent task's table is searched. -The $LK,"DolDoc",A="FI:::/Doc/DolDocOverview.DD"$ framework supports text that changes based on entries in the task's symbol table. Set a text entry with a $FG,2$D=$FG$ arg, as in $FG,2$$$TX,"",D="DD_MYSTRING"$$$FG$. See $LK,"::/Demo/DolDoc/DefineStr.CC"$, $LK,"::/System/Define.CC"$ and $LK,"::/Doc/MemoryOverview.DD"$. +The $LK,"DolDoc",A="FI:::/Doc/DolDocOverview.DD"$ framework supports text that changes based on entries in the task's symbol table. Set a text entry with a $FG,2$D=$FG$ arg, as in $FG,2$$$TX,"",D="DD_MYSTRING"$$$FG$. See $LK,"::/Demo/DolDoc/DefineStr.ZC"$, $LK,"::/System/Define.ZC"$ and $LK,"::/Doc/MemoryOverview.DD"$. -See $LK,"::/Demo/Define.CC"$. +See $LK,"::/Demo/Define.ZC"$. diff --git a/src/Doc/DemoIndex.DD b/src/Doc/DemoIndex.DD index 07516b79..7936dba8 100755 --- a/src/Doc/DemoIndex.DD +++ b/src/Doc/DemoIndex.DD @@ -7,187 +7,187 @@ $FG,2$$FG$ to edit a file and $FG,2$$FG$ to run it. $LK,"::/Doc/HelloWorld.DD"$ $WW,0$$TR,"Games: Beginner"$ -$ID,2$$LK,"::/Demo/Graphics/NetOfDots.CC"$ -$LK,"::/Demo/Graphics/MouseDemo.CC"$ -$LK,"::/Demo/Graphics/Lines.CC"$ -$LK,"::/Demo/Graphics/SunMoon.CC"$ -$LK,"::/Demo/Graphics/LowPassFilter.CC"$ -$LK,"::/Demo/Graphics/MathAudioDemo.CC"$ -$LK,"::/Demo/Games/TicTacToe.CC"$ -$LK,"::/Demo/Graphics/SpritePlot.CC"$ -$LK,"::/Demo/Games/ElephantWalk.CC"$ -$LK,"::/Demo/Graphics/SpritePut.CC"$ -$LK,"::/Demo/Graphics/SpritePutExt.CC"$ -$LK,"::/Demo/Sound/ASCIIOrgan.CC"$ -$LK,"::/Demo/MessageLoop.CC"$ -$LK,"::/Demo/Graphics/Doodle.CC"$ -$LK,"::/Demo/Graphics/Speedline.CC"$ -$LK,"::/Demo/Graphics/Bounce.CC"$ -$LK,"::/Demo/RandDemo.CC"$ -$LK,"::/Demo/KeyBitMap.CC"$ -$LK,"::/Demo/Graphics/WinZBuf.CC"$ -$LK,"::/Demo/Graphics/Elephant.CC"$ -$LK,"::/Demo/Graphics/WallPaperFish.CC"$ //Press SHIFT-F5 to System Include -$LK,"::/Demo/Games/Digits.CC"$ -$LK,"::/Demo/Progress.CC"$ //has some ASM, just ignore -$LK,"::/Demo/Graphics/Symmetry.CC"$ -$LK,"::/Demo/Graphics/Blot.CC"$ -$LK,"::/Demo/Graphics/ScreenCapture.CC"$ -$LK,"::/Demo/Graphics/EdSprite.CC"$ -$LK,"::/Demo/PullDownMenu.CC"$ -$LK,"::/Demo/Graphics/Palette.CC"$ -$LK,"::/Demo/Games/CircleTrace.CC"$ -$LK,"::/Demo/Games/Halogen.CC"$ -$LK,"::/Demo/Games/TheDead.CC"$ -$LK,"::/Demo/Games/RainDrops.CC"$ -$LK,"::/Demo/Sound/MorseCode.CC"$ +$ID,2$$LK,"::/Demo/Graphics/NetOfDots.ZC"$ +$LK,"::/Demo/Graphics/MouseDemo.ZC"$ +$LK,"::/Demo/Graphics/Lines.ZC"$ +$LK,"::/Demo/Graphics/SunMoon.ZC"$ +$LK,"::/Demo/Graphics/LowPassFilter.ZC"$ +$LK,"::/Demo/Graphics/MathAudioDemo.ZC"$ +$LK,"::/Demo/Games/TicTacToe.ZC"$ +$LK,"::/Demo/Graphics/SpritePlot.ZC"$ +$LK,"::/Demo/Games/ElephantWalk.ZC"$ +$LK,"::/Demo/Graphics/SpritePut.ZC"$ +$LK,"::/Demo/Graphics/SpritePutExt.ZC"$ +$LK,"::/Demo/Sound/ASCIIOrgan.ZC"$ +$LK,"::/Demo/MessageLoop.ZC"$ +$LK,"::/Demo/Graphics/Doodle.ZC"$ +$LK,"::/Demo/Graphics/Speedline.ZC"$ +$LK,"::/Demo/Graphics/Bounce.ZC"$ +$LK,"::/Demo/RandDemo.ZC"$ +$LK,"::/Demo/KeyBitMap.ZC"$ +$LK,"::/Demo/Graphics/WinZBuf.ZC"$ +$LK,"::/Demo/Graphics/Elephant.ZC"$ +$LK,"::/Demo/Graphics/WallPaperFish.ZC"$ //Press SHIFT-F5 to System Include +$LK,"::/Demo/Games/Digits.ZC"$ +$LK,"::/Demo/Progress.ZC"$ //has some ASM, just ignore +$LK,"::/Demo/Graphics/Symmetry.ZC"$ +$LK,"::/Demo/Graphics/Blot.ZC"$ +$LK,"::/Demo/Graphics/ScreenCapture.ZC"$ +$LK,"::/Demo/Graphics/EdSprite.ZC"$ +$LK,"::/Demo/PullDownMenu.ZC"$ +$LK,"::/Demo/Graphics/Palette.ZC"$ +$LK,"::/Demo/Games/CircleTrace.ZC"$ +$LK,"::/Demo/Games/Halogen.ZC"$ +$LK,"::/Demo/Games/TheDead.ZC"$ +$LK,"::/Demo/Games/RainDrops.ZC"$ +$LK,"::/Demo/Sound/MorseCode.ZC"$ $MA-X+PU,"::/Demo/Games/Stadium",LM="Cd(\"::/Demo/Games/Stadium\");Dir;View;\n"$ -$LK,"::/Demo/Graphics/Lattice.CC"$ -$LK,"::/Demo/Graphics/Collision.CC"$ -$LK,"::/Demo/Games/BlackDiamond.CC"$ +$LK,"::/Demo/Graphics/Lattice.ZC"$ +$LK,"::/Demo/Graphics/Collision.ZC"$ +$LK,"::/Demo/Games/BlackDiamond.ZC"$ $ID,-2$$TR,"Games: Intermediate"$ -$ID,2$$LK,"::/Demo/Graphics/Box.CC"$ -$LK,"::/Demo/Graphics/Pick.CC"$ -$LK,"::/Demo/Graphics/3DPoly.CC"$ -$LK,"::/Demo/Graphics/BSpline.CC"$ -$LK,"::/Demo/Graphics/Extents.CC"$ -$LK,"::/Demo/Graphics/SpritePlot3D.CC"$ -$LK,"::/Demo/Graphics/RotateTank.CC"$ -$LK,"::/Demo/Games/Wenceslas.CC"$ -$LK,"::/Demo/ScreenCodes.CC"$ -$LK,"::/Demo/Graphics/PanText.CC"$ -$LK,"::/Demo/Graphics/CharAnimation.CC"$ -$LK,"::/Demo/Games/Maze.CC"$ -$LK,"::/Demo/Games/CharDemo.CC"$ -$LK,"::/Demo/Graphics/FontEd.CC"$ -$LK,"::/Demo/ExtChars.CC"$ -$LK,"::/Demo/TimeIns.CC"$ -$LK,"::/Demo/Sound/WaterFowl.CC"$ +$ID,2$$LK,"::/Demo/Graphics/Box.ZC"$ +$LK,"::/Demo/Graphics/Pick.ZC"$ +$LK,"::/Demo/Graphics/3DPoly.ZC"$ +$LK,"::/Demo/Graphics/BSpline.ZC"$ +$LK,"::/Demo/Graphics/Extents.ZC"$ +$LK,"::/Demo/Graphics/SpritePlot3D.ZC"$ +$LK,"::/Demo/Graphics/RotateTank.ZC"$ +$LK,"::/Demo/Games/Wenceslas.ZC"$ +$LK,"::/Demo/ScreenCodes.ZC"$ +$LK,"::/Demo/Graphics/PanText.ZC"$ +$LK,"::/Demo/Graphics/CharAnimation.ZC"$ +$LK,"::/Demo/Games/Maze.ZC"$ +$LK,"::/Demo/Games/CharDemo.ZC"$ +$LK,"::/Demo/Graphics/FontEd.ZC"$ +$LK,"::/Demo/ExtChars.ZC"$ +$LK,"::/Demo/TimeIns.ZC"$ +$LK,"::/Demo/Sound/WaterFowl.ZC"$ $MA-X+PU,"::/Apps/Psalmody/Examples",LM="Cd(\"::/Apps/Psalmody/Examples\");Dir;View;\n"$ $LK,"CPURep",A="MN:CPURep"$ -$LK,"::/Demo/MultiCore/MPPrint.CC"$ -$LK,"::/Demo/Graphics/PredatorPrey.CC"$ -$LK,"::/Demo/Graphics/Cartesian.CC"$ -$LK,"::/Demo/Graphics/Hanoi.CC"$ -$LK,"::/Demo/Graphics/Life.CC"$ -$LK,"::/Demo/Games/Zing.CC"$ -$LK,"::/Demo/Graphics/Grid.CC"$ -$LK,"::/Demo/Games/TreeCheckers.CC"$ -$LK,"::/Demo/MultiCore/Palindrome.CC"$ -$LK,"::/Demo/MultiCore/MPAdd.CC"$ -$LK,"::/Demo/MultiCore/Lock.CC"$ -$LK,"::/Demo/Graphics/Slider.CC"$ -$LK,"::/Demo/Graphics/WallPaperCtrl.CC"$ //Press SHIFT-F5 to System Include -$LK,"::/Demo/Graphics/ScrollBars.CC"$ -$LK,"::/Demo/RegistryDemo.CC"$ -$LK,"::/Demo/Games/FlapBat.CC"$ -$LK,"::/Demo/Games/BattleLines.CC"$ -$LK,"::/Demo/Games/BigGuns.CC"$ -$LK,"::/Demo/Games/FlatTops.CC"$ -$LK,"::/Demo/Games/RawHide.CC"$ -$LK,"::/Demo/Games/DunGen.CC"$ +$LK,"::/Demo/MultiCore/MPPrint.ZC"$ +$LK,"::/Demo/Graphics/PredatorPrey.ZC"$ +$LK,"::/Demo/Graphics/Cartesian.ZC"$ +$LK,"::/Demo/Graphics/Hanoi.ZC"$ +$LK,"::/Demo/Graphics/Life.ZC"$ +$LK,"::/Demo/Games/Zing.ZC"$ +$LK,"::/Demo/Graphics/Grid.ZC"$ +$LK,"::/Demo/Games/TreeCheckers.ZC"$ +$LK,"::/Demo/MultiCore/Palindrome.ZC"$ +$LK,"::/Demo/MultiCore/MPAdd.ZC"$ +$LK,"::/Demo/MultiCore/Lock.ZC"$ +$LK,"::/Demo/Graphics/Slider.ZC"$ +$LK,"::/Demo/Graphics/WallPaperCtrl.ZC"$ //Press SHIFT-F5 to System Include +$LK,"::/Demo/Graphics/ScrollBars.ZC"$ +$LK,"::/Demo/RegistryDemo.ZC"$ +$LK,"::/Demo/Games/FlapBat.ZC"$ +$LK,"::/Demo/Games/BattleLines.ZC"$ +$LK,"::/Demo/Games/BigGuns.ZC"$ +$LK,"::/Demo/Games/FlatTops.ZC"$ +$LK,"::/Demo/Games/RawHide.ZC"$ +$LK,"::/Demo/Games/DunGen.ZC"$ $MA-X+PU,"::/Apps/Titanium",LM="Cd(\"::/Apps/Titanium\");Dir;View;\n"$ -$LK,"::/Demo/Games/Collision.CC"$ +$LK,"::/Demo/Games/Collision.ZC"$ $ID,-2$$TR,"Games: Advanced"$ -$ID,2$$LK,"::/Demo/MultiCore/LoadTest.CC"$ -$LK,"::/Demo/MultiCore/Primes.CC"$ -$LK,"::/Demo/MultiCore/MPRadix.CC"$ -$LK,"::/Demo/MultiCore/Interrupts.CC"$ -$LK,"::/Demo/Games/Varoom.CC"$ -$LK,"::/Demo/Graphics/Shading.CC"$ -$LK,"::/Demo/Graphics/Transform.CC"$ -$LK,"::/Demo/Games/BomberGolf.CC"$ -$LK,"::/Demo/Graphics/Shadow.CC"$ -$LK,"::/Demo/Graphics/Pick3D.CC"$ +$ID,2$$LK,"::/Demo/MultiCore/LoadTest.ZC"$ +$LK,"::/Demo/MultiCore/Primes.ZC"$ +$LK,"::/Demo/MultiCore/MPRadix.ZC"$ +$LK,"::/Demo/MultiCore/Interrupts.ZC"$ +$LK,"::/Demo/Games/Varoom.ZC"$ +$LK,"::/Demo/Graphics/Shading.ZC"$ +$LK,"::/Demo/Graphics/Transform.ZC"$ +$LK,"::/Demo/Games/BomberGolf.ZC"$ +$LK,"::/Demo/Graphics/Shadow.ZC"$ +$LK,"::/Demo/Graphics/Pick3D.ZC"$ $MA-X+PU,"::/Apps/ToTheFront",LM="Cd(\"::/Apps/ToTheFront\");Dir;View;\n"$ -$LK,"::/Demo/Graphics/SpriteText.CC"$ -$LK,"::/Demo/Graphics/SpriteRaw.CC"$ +$LK,"::/Demo/Graphics/SpriteText.ZC"$ +$LK,"::/Demo/Graphics/SpriteRaw.ZC"$ $MA-X+PU,"::/Apps/GrModels",LM="Cd(\"::/Apps/GrModels\");Dir;View;\n"$ $MA-X+PU,"::/Apps/KeepAway",LM="Cd(\"::/Apps/KeepAway\");Dir;View;\n"$ -$LK,"::/Demo/Games/Rocket.CC"$ -$LK,"::/Demo/Games/RocketScience.CC"$ -$LK,"::/Demo/Games/MassSpring.CC"$ -$LK,"::/Demo/Graphics/LightTable.CC"$ -$LK,"::/Demo/Games/Whap.CC"$ -$LK,"::/Demo/Games/Squirt.CC"$ +$LK,"::/Demo/Games/Rocket.ZC"$ +$LK,"::/Demo/Games/RocketScience.ZC"$ +$LK,"::/Demo/Games/MassSpring.ZC"$ +$LK,"::/Demo/Graphics/LightTable.ZC"$ +$LK,"::/Demo/Games/Whap.ZC"$ +$LK,"::/Demo/Games/Squirt.ZC"$ $MA-X+PU,"::/Apps/X-Caliber",LM="Cd(\"::/Apps/X-Caliber\");Dir;View;\n"$ -$LK,"::/Demo/Games/ZoneOut.CC"$ -$LK,"::/Demo/Games/CastleFrankenstein.CC"$ -$LK,"::/Demo/Games/Talons.CC"$ +$LK,"::/Demo/Games/ZoneOut.ZC"$ +$LK,"::/Demo/Games/CastleFrankenstein.ZC"$ +$LK,"::/Demo/Games/Talons.ZC"$ $MA-X+PU,"::/Apps/Strut",LM="Cd(\"::/Apps/Strut\");Dir;View;\n"$ $MA-X+PU,"::/Apps/Span",LM="Cd(\"::/Apps/Span\");Dir;View;\n"$ $MA-X+PU,"::/Apps/Psalmody",LM="Cd(\"::/Apps/Psalmody\");Dir;View;\n"$ $ID,-2$$TR,"Non-Game"$ -$ID,2$$LK,"::/Misc/DoDistro.CC"$ -$LK,"::/Demo/DebugDemo.CC"$ -$LK,"::/Demo/SubSwitch.CC"$ -$LK,"::/Demo/DateTime.CC"$ -$LK,"::/Demo/RevFileDemo/Rev.CC"$ -$LK,"::/Demo/ToHtmlToTXTDemo/HtmlGen.CC"$ -$LK,"::/Demo/ToHtmlToTXTDemo/TXTGen.CC"$ -$LK,"::/Demo/SortFileDemo/F64FileGen.CC"$ -$LK,"::/Demo/SortFileDemo/F64FileSort.CC"$ -$LK,"::/Demo/PhoneNumWords.CC"$ -$LK,"::/Demo/SuggestSpelling.CC"$ -$LK,"::/Demo/WordSearch.CC"$ -$LK,"::/Demo/Graphics/CommonAncestor.CC"$ -$LK,"::/Demo/Directives.CC"$ -$LK,"::/Demo/Carry.CC"$ -$LK,"::/Demo/Disk/DataBase.CC"$ -$LK,"::/Demo/Disk/FPrintF.CC"$ -$LK,"::/Demo/Disk/DiskRaw.CC"$ -$LK,"::/Demo/Disk/UnusedSpaceRep.CC"$ -$LK,"::/Demo/Lectures/MiniGrLib.CC"$ -$LK,"::/Demo/Lectures/MiniCompiler.CC"$ -$LK,"::/Demo/MagicPairs.CC"$ -$LK,"::/Demo/Graphics/PoleZeros.CC"$ -$LK,"::/Demo/WebLogDemo/WebLogRep.CC"$ -$LK,"::/Demo/WebLogDemo/WebLogScramble.CC"$ +$ID,2$$LK,"::/Misc/DoDistro.ZC"$ +$LK,"::/Demo/DebugDemo.ZC"$ +$LK,"::/Demo/SubSwitch.ZC"$ +$LK,"::/Demo/DateTime.ZC"$ +$LK,"::/Demo/RevFileDemo/Rev.ZC"$ +$LK,"::/Demo/ToHtmlToTXTDemo/HtmlGen.ZC"$ +$LK,"::/Demo/ToHtmlToTXTDemo/TXTGen.ZC"$ +$LK,"::/Demo/SortFileDemo/F64FileGen.ZC"$ +$LK,"::/Demo/SortFileDemo/F64FileSort.ZC"$ +$LK,"::/Demo/PhoneNumWords.ZC"$ +$LK,"::/Demo/SuggestSpelling.ZC"$ +$LK,"::/Demo/WordSearch.ZC"$ +$LK,"::/Demo/Graphics/CommonAncestor.ZC"$ +$LK,"::/Demo/Directives.ZC"$ +$LK,"::/Demo/Carry.ZC"$ +$LK,"::/Demo/Disk/DataBase.ZC"$ +$LK,"::/Demo/Disk/FPrintF.ZC"$ +$LK,"::/Demo/Disk/DiskRaw.ZC"$ +$LK,"::/Demo/Disk/UnusedSpaceRep.ZC"$ +$LK,"::/Demo/Lectures/MiniGrLib.ZC"$ +$LK,"::/Demo/Lectures/MiniCompiler.ZC"$ +$LK,"::/Demo/MagicPairs.ZC"$ +$LK,"::/Demo/Graphics/PoleZeros.ZC"$ +$LK,"::/Demo/WebLogDemo/WebLogRep.ZC"$ +$LK,"::/Demo/WebLogDemo/WebLogScramble.ZC"$ $MA-X+PU,"::/Apps/TimeClock",LM="Cd(\"::/Apps/TimeClock\");Dir;View;\n"$ $MA-X+PU,"::/Apps/Logic",LM="Cd(\"::/Apps/Logic\");Dir;View;\n"$ $MA-X+PU,"::/Demo/Lectures",LM="Cd(\"::/Demo/Lectures\");Dir;View;\n"$ $MA-X+PU,"::/Apps/Budget",LM="Cd(\"::/Apps/Budget\");Dir;View;\n"$ $ID,-2$$TR,"ZealOS Specific"$ $ID,2$$MA-X+PU,"::/Demo/InFile",LM="Cd(\"::/Demo/InFile\");Dir;View;\n"$ -$LK,"::/Demo/Print.CC"$ -$LK,"::/Demo/SubIntAccess.CC"$ -$LK,"::/Demo/ParenWarn.CC"$ -$LK,"::/Demo/NullCase.CC"$ -$LK,"::/Demo/OnceDemo.CC"$ -$LK,"::/Demo/CompileDemo.CC"$ -$LK,"::/Demo/Prompt.CC"$ -$LK,"::/Demo/ClassMeta.CC"$ -$LK,"::/Demo/LastClass.CC"$ -$LK,"::/Demo/DolDoc/NumBible.CC"$ -$LK,"::/Demo/DolDoc/Form.CC"$ -$LK,"::/Demo/DolDoc/MenuBttn.CC"$ -$LK,"::/Demo/DolDoc/MenuSprite.CC"$ -$LK,"::/Demo/DolDoc/ClickCallBack.CC"$ -$LK,"::/Demo/DolDoc/TreeDemo.CC"$ -$LK,"::/Demo/Exceptions.CC"$ -$LK,"::/Demo/Disk/SerializeTree.CC"$ -$LK,"::/Demo/MemDemo.CC"$ -$LK,"::/Demo/StackGrow.CC"$ -$LK,"::/Demo/DolDoc/TextDemo.CC"$ -$LK,"::/Demo/DolDoc/CursorMove.CC"$ +$LK,"::/Demo/Print.ZC"$ +$LK,"::/Demo/SubIntAccess.ZC"$ +$LK,"::/Demo/ParenWarn.ZC"$ +$LK,"::/Demo/NullCase.ZC"$ +$LK,"::/Demo/OnceDemo.ZC"$ +$LK,"::/Demo/CompileDemo.ZC"$ +$LK,"::/Demo/Prompt.ZC"$ +$LK,"::/Demo/ClassMeta.ZC"$ +$LK,"::/Demo/LastClass.ZC"$ +$LK,"::/Demo/DolDoc/NumBible.ZC"$ +$LK,"::/Demo/DolDoc/Form.ZC"$ +$LK,"::/Demo/DolDoc/MenuBttn.ZC"$ +$LK,"::/Demo/DolDoc/MenuSprite.ZC"$ +$LK,"::/Demo/DolDoc/ClickCallBack.ZC"$ +$LK,"::/Demo/DolDoc/TreeDemo.ZC"$ +$LK,"::/Demo/Exceptions.ZC"$ +$LK,"::/Demo/Disk/SerializeTree.ZC"$ +$LK,"::/Demo/MemDemo.ZC"$ +$LK,"::/Demo/StackGrow.ZC"$ +$LK,"::/Demo/DolDoc/TextDemo.ZC"$ +$LK,"::/Demo/DolDoc/CursorMove.ZC"$ $LK,"::/Demo/DolDoc/DemoDoc.DD"$ -$LK,"::/Demo/Spy.CC"$ -$LK,"::/Demo/DolDoc/FileRead.CC"$ -$LK,"::/Demo/DolDoc/Data.CC"$ -$LK,"::/Demo/DolDoc/DefineStr.CC"$ -$LK,"::/Demo/DolDoc/CallBack.CC"$ -$LK,"::/Demo/Define.CC"$ +$LK,"::/Demo/Spy.ZC"$ +$LK,"::/Demo/DolDoc/FileRead.ZC"$ +$LK,"::/Demo/DolDoc/Data.ZC"$ +$LK,"::/Demo/DolDoc/DefineStr.ZC"$ +$LK,"::/Demo/DolDoc/CallBack.ZC"$ +$LK,"::/Demo/Define.ZC"$ $LK,"EdRenumAsm",A="MN:EdRenumAsm"$ -$LK,"::/Demo/DolDoc/UnusedDefine.CC"$ -$LK,"::/Demo/Asm/AsmHelloWorld.CC"$ -$LK,"::/Demo/Asm/BuzzFizz.CC"$ -$LK,"::/Demo/Asm/PutDec.CC"$ -$LK,"::/Demo/Asm/MulByHand.CC"$ -$LK,"::/Demo/Asm/DivByHand.CC"$ -$LK,"::/Demo/Asm/AsmAndC1.CC"$ -$LK,"::/Demo/Asm/AsmAndC2.CC"$ -$LK,"::/Demo/Asm/AsmAndC3.CC"$ -$LK,"::/Demo/GlobalVars.CC"$ -$LK,"::/Misc/OSTestSuite.CC"$ +$LK,"::/Demo/DolDoc/UnusedDefine.ZC"$ +$LK,"::/Demo/Asm/AsmHelloWorld.ZC"$ +$LK,"::/Demo/Asm/BuzzFizz.ZC"$ +$LK,"::/Demo/Asm/PutDec.ZC"$ +$LK,"::/Demo/Asm/MulByHand.ZC"$ +$LK,"::/Demo/Asm/DivByHand.ZC"$ +$LK,"::/Demo/Asm/AsmAndC1.ZC"$ +$LK,"::/Demo/Asm/AsmAndC2.ZC"$ +$LK,"::/Demo/Asm/AsmAndC3.ZC"$ +$LK,"::/Demo/GlobalVars.ZC"$ +$LK,"::/Misc/OSTestSuite.ZC"$ $MA-X+PU,"::/System",LM="Cd(\"::/System\");Dir;View;\n"$ $ID,-2$ diff --git a/src/Doc/Directives.DD b/src/Doc/Directives.DD index e911490e..d821358b 100755 --- a/src/Doc/Directives.DD +++ b/src/Doc/Directives.DD @@ -5,4 +5,4 @@ $HL,1$$WW,0$#define __DATE__ #exe{StreamPrint("\"%D\"", Now);} #define __FILE__ #exe{StreamPrint("\"%s\"", Fs->last_cc->lex_include_stack->full_name);} #define __DIR__ #exe{StreamDir;} -See $LK,"::/Demo/Directives.CC"$.$HL,0$$WW,1$ +See $LK,"::/Demo/Directives.ZC"$.$HL,0$$WW,1$ diff --git a/src/Doc/DolDocOverview.DD b/src/Doc/DolDocOverview.DD index aa50affa..6e4d6817 100755 --- a/src/Doc/DolDocOverview.DD +++ b/src/Doc/DolDocOverview.DD @@ -4,18 +4,18 @@ DolDoc is a ZealOS document type supported by $LK,"DolDoc Routines",A="HI:DolDoc Here is the grammar: - := $FG,2$$$$FG$<$LK,"TwoLetterCmd",A="FF:::/System/DolDoc/DocInit.CC,ST_DOC_CMDS"$>[][$FG,2$,$FG$]$FG,2$$$$FG$ | $FG,2$$$$FG$$LK,"ColorName",A="MN:ST_COLORS"$$FG,2$$$$FG$ + := $FG,2$$$$FG$<$LK,"TwoLetterCmd",A="FF:::/System/DolDoc/DocInit.ZC,ST_DOC_CMDS"$>[][$FG,2$,$FG$]$FG,2$$$$FG$ | $FG,2$$$$FG$$LK,"ColorName",A="MN:ST_COLORS"$$FG,2$$$$FG$ - := $FG,2$+$FG$|$FG,2$-$FG$ <$LK,"FlagCode",A="FF:::/System/DolDoc/DocInit.CC,ST_DOC_FLAGS"$>[$FG$] + := $FG,2$+$FG$|$FG,2$-$FG$ <$LK,"FlagCode",A="FF:::/System/DolDoc/DocInit.ZC,ST_DOC_FLAGS"$>[$FG$] - := <$LK,"ArgCode",A="FF:::/System/DolDoc/DocInit.CC,ST_DOC_FLAGS"$>$FG,2$=$FG$[$FG,2$,$FG$] + := <$LK,"ArgCode",A="FF:::/System/DolDoc/DocInit.ZC,ST_DOC_FLAGS"$>$FG,2$=$FG$[$FG,2$,$FG$] -The format of DolDoc cmds is a two character code, +/-flags, a comma and args separated by commas. Some commands have mandatory args. Optional args are indicated with <$LK,"ArgCode",A="FF:::/System/DolDoc/DocInit.CC,ST_DOC_FLAGS"$>$FG,2$=$FG$. A $LK,"ColorName",A="MN:ST_COLORS"$ bracked by dollars, will change the foreground color. +The format of DolDoc cmds is a two character code, +/-flags, a comma and args separated by commas. Some commands have mandatory args. Optional args are indicated with <$LK,"ArgCode",A="FF:::/System/DolDoc/DocInit.ZC,ST_DOC_FLAGS"$>$FG,2$=$FG$. A $LK,"ColorName",A="MN:ST_COLORS"$ bracked by dollars, will change the foreground color. -See $LK,"::/Doc/Widget.DD"$, $LK,"::/Demo/DolDoc/DemoDoc.DD"$, and $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$. +See $LK,"::/Doc/Widget.DD"$, $LK,"::/Demo/DolDoc/DemoDoc.DD"$, and $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$. -<$LK,"TwoLetterCmd",A="FF:::/System/DolDoc/DocInit.CC,ST_DOC_CMDS"$> See $LK,"Type Defines",A="MN:DOCT_TEXT"$ and $LK,"ParseDollarCmd",A="MN:ParseDollarCmd"$(). +<$LK,"TwoLetterCmd",A="FF:::/System/DolDoc/DocInit.ZC,ST_DOC_CMDS"$> See $LK,"Type Defines",A="MN:DOCT_TEXT"$ and $LK,"ParseDollarCmd",A="MN:ParseDollarCmd"$(). $TR,"TX Text"$ $ID,2$Normally, text is not bracketed with '$FG,2$$$$FG$', but if you wish to specify flag attr, such as centering text, you can bracket them with '$FG,2$$$$FG$' and enter flags such as "$FG,2$+CX$FG$". You can't edit them normally if they are bracketed by '$FG,2$$$$FG$' unless you toggle to plain text mode with $FG,2$$FG$. $ID,-2$$TR,"CR Hard New Line"$ @@ -95,7 +95,7 @@ The expressions are relative to the current cursor location, unless you make the $FG,2$+BY$FG$ bottom $FG,2$+PRY$FG$ page relative -See $LK,"::/Demo/DolDoc/CursorMove.CC"$. +See $LK,"::/Demo/DolDoc/CursorMove.ZC"$. $ID,-2$$TR,"AN Anchor"$ $ID,2$The $LK,"CDocEntry",A="MN:CDocEntry"$.aux_str arg $FG,2$A=""$FG$ is used for the anchor. Terry didn't use these very often, but they're good sometimes. @@ -120,11 +120,11 @@ Examples: to see 12) For in-memory document address links, see $LK,"SpriteEdText",A="MN:SpriteEdText"$(). $ID,-2$$TR,"BT Button"$ -$ID,2$See $LK,"::/Demo/DolDoc/MenuBttn.CC"$. +$ID,2$See $LK,"::/Demo/DolDoc/MenuBttn.ZC"$. $ID,-2$$TR,"DA Data"$ -$ID,2$Used for forms that prompt for data or just displaying a value. Use $FG,2$$FG$ to help you generate the DolDoc command text you need in your $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's $FG,2$format$FG$ meta-data for $LK,"DocForm",A="MN:DocForm"$(). See $LK,"::/Demo/DolDoc/Form.CC"$, $LK,"::/Demo/Disk/DataBase.CC"$, and $LK,"::/System/DolDoc/DocWidgetWiz.CC"$. +$ID,2$Used for forms that prompt for data or just displaying a value. Use $FG,2$$FG$ to help you generate the DolDoc command text you need in your $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's $FG,2$format$FG$ meta-data for $LK,"DocForm",A="MN:DocForm"$(). See $LK,"::/Demo/DolDoc/Form.ZC"$, $LK,"::/Demo/Disk/DataBase.ZC"$, and $LK,"::/System/DolDoc/DocWidgetWiz.ZC"$. -If you are not using $LK,"DocForm",A="MN:DocForm"$(), make a $FG,2$$$DA...$$$FG$ statement with $LK,"DocPrint",A="MN:DocPrint"$() and fill-in the $FG,2$->data$FG$ address. See $LK,"task_title",A="FF:::/System/DolDoc/DocEd.CC,&Fs->task_title"$. +If you are not using $LK,"DocForm",A="MN:DocForm"$(), make a $FG,2$$$DA...$$$FG$ statement with $LK,"DocPrint",A="MN:DocPrint"$() and fill-in the $FG,2$->data$FG$ address. See $LK,"task_title",A="FF:::/System/DolDoc/DocEd.ZC,&Fs->task_title"$. The default raw data type for the $FG,2$$$DA...$$$FG$ command is $FG,2$RT=I64$FG$. $LK,"DocForm",A="MN:DocForm"$() will automatically reset the raw type to the value from the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's definition if you leave it set to the default. Or, if not using $LK,"DocForm",A="MN:DocForm"$(), specify a raw data type of $FG,2$I8$FG$, $FG,2$U8$FG$, $FG,2$I16$FG$, $FG,2$U16$FG$, $FG,2$I32$FG$, $FG,2$U32$FG$, $FG,2$I64$FG$, $FG,2$U64$FG$, or $FG,2$F64$FG$. See $LK,"DocDataFormat",A="MN:DocDataFormat"$() and $LK,"DocDataScan",A="MN:DocDataScan"$(). @@ -132,17 +132,17 @@ The $LK,"CDocEntry",A="MN:CDocEntry"$.aux_str arg $FG,2$A=""$FG$ is used for the The default field length is $FG,2$LEN=64$FG$ characters. For U8 arrays[], $LK,"DocForm",A="MN:DocForm"$() will automatically reset the field length to the string length from the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's definition. The length measures starting after the ':' in the $FG,2$A=""$FG$ format string. -The space after the first ':' in the format string marks the first valid cursor pos. See $LK,"Data Tag Width",A="FA:::/System/DolDoc/DocPlain.CC,DataTagWidth"$. +The space after the first ':' in the format string marks the first valid cursor pos. See $LK,"Data Tag Width",A="FA:::/System/DolDoc/DocPlain.ZC,DataTagWidth"$. $ID,-2$$TR,"CB Check Box"$ -$ID,2$Used for forms. Use $FG,2$$FG$ to help you generate the DolDoc command text you need in your $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's $FG,2$format$FG$ meta-data for $LK,"DocForm",A="MN:DocForm"$(). See $LK,"::/Demo/DolDoc/Form.CC"$$FG$ and $LK,"CEdFindText",A="MN:CEdFindText"$. +$ID,2$Used for forms. Use $FG,2$$FG$ to help you generate the DolDoc command text you need in your $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's $FG,2$format$FG$ meta-data for $LK,"DocForm",A="MN:DocForm"$(). See $LK,"::/Demo/DolDoc/Form.ZC"$$FG$ and $LK,"CEdFindText",A="MN:CEdFindText"$. -If you are not using $LK,"DocForm",A="MN:DocForm"$(), make a $FG,2$$$CB...$$$FG$ statement with $LK,"DocPrint",A="MN:DocPrint"$() and fill-in the $FG,2$->data$FG$ address. See $LK,"task_title",A="FF:::/System/DolDoc/DocEd.CC,&Fs->task_title"$. +If you are not using $LK,"DocForm",A="MN:DocForm"$(), make a $FG,2$$$CB...$$$FG$ statement with $LK,"DocPrint",A="MN:DocPrint"$() and fill-in the $FG,2$->data$FG$ address. See $LK,"task_title",A="FF:::/System/DolDoc/DocEd.ZC,&Fs->task_title"$. The default raw data type for the $FG,2$$$CB...$$$FG$ command is $FG,2$RT=I8$FG$ which is $FG,2$Bool$FG$. $LK,"DocForm",A="MN:DocForm"$() will automatically reset the raw type to the value from the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's definition if you leave it set to the default. Or, if not using $LK,"DocForm",A="MN:DocForm"$(), specify a raw data type of $FG,2$I8$FG$, $FG,2$U8$FG$, $FG,2$I16$FG$, $FG,2$U16$FG$, $FG,2$I32$FG$, $FG,2$U32$FG$, $FG,2$I64$FG$, $FG,2$U64$FG$, or $FG,2$F64$FG$. See $LK,"DocDataFormat",A="MN:DocDataFormat"$() and $LK,"DocDataScan",A="MN:DocDataScan"$(). $ID,-2$$TR,"LS List Widget"$ -$ID,2$Used for forms that prompt for data. You must specify a define list, $FG,2$D=""$FG$. Use $FG,2$$FG$ to help you generate the DolDoc command text you need in your $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's $FG,2$format$FG$ meta-data for $LK,"DocForm",A="MN:DocForm"$(). See $LK,"::/Demo/DolDoc/Form.CC"$. +$ID,2$Used for forms that prompt for data. You must specify a define list, $FG,2$D=""$FG$. Use $FG,2$$FG$ to help you generate the DolDoc command text you need in your $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's $FG,2$format$FG$ meta-data for $LK,"DocForm",A="MN:DocForm"$(). See $LK,"::/Demo/DolDoc/Form.ZC"$. -If you are not using $LK,"DocForm",A="MN:DocForm"$(), make a $FG,2$$$LS...$$$FG$ statement with $LK,"DocPrint",A="MN:DocPrint"$() and fill-in the data address. See $LK,"task_title",A="FF:::/System/DolDoc/DocEd.CC,&Fs->task_title"$. +If you are not using $LK,"DocForm",A="MN:DocForm"$(), make a $FG,2$$$LS...$$$FG$ statement with $LK,"DocPrint",A="MN:DocPrint"$() and fill-in the data address. See $LK,"task_title",A="FF:::/System/DolDoc/DocEd.ZC,&Fs->task_title"$. The default raw data type for the $FG,2$$$LS...$$$FG$ command is $FG,2$RT=I64$FG$. $LK,"DocForm",A="MN:DocForm"$() will automatically reset the raw type to the value from the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's definition if you leave it set to the default. Or, if not using $LK,"DocForm",A="MN:DocForm"$(), specify a raw data type of $FG,2$I8$FG$, $FG,2$U8$FG$, $FG,2$I16$FG$, $FG,2$U16$FG$, $FG,2$I32$FG$, $FG,2$U32$FG$, $FG,2$I64$FG$, $FG,2$U64$FG$, or $FG,2$F64$FG$. See $LK,"DocDataFormat",A="MN:DocDataFormat"$() and $LK,"DocDataScan",A="MN:DocDataScan"$(). $ID,-2$$TR,"MA Macro"$ @@ -162,7 +162,7 @@ $ID,2$A tree widget is a branch in a collapsable tree. The domain of the branch You might want to use $LK,"DocPrintAtomic",A="MN:DocPrintAtomic"$(). -See $LK,"::/Demo/DolDoc/TreeDemo.CC"$. +See $LK,"::/Demo/DolDoc/TreeDemo.ZC"$. $ID,-2$$TR,"SP Sprite"$ $ID,2$Insert a sprite into text with $FG,2$$FG$. The cursor location at the time you press $FG,2$$FG$ is critical because the sprite will be offset from that location. This is important when adding images to programs. Numbers for sprites are automatically chosen because copying to and from the clip requires this. You can insert another sprite with the same image by hitting $FG,2$$FG$ and manually adding a $FG,2$$$SP...$$$FG$ entry with the same $FG,2$BI=$FG$ num. @@ -172,7 +172,7 @@ $ID,2$Tells the compiler to insert a pointer to some binary data stored after th You can, optionally, include tag text to be displayed for the $FG,2$$$IB...$$$FG$ cmd. If you set the tag to "<1>", then the editor will automatically update the tag if the $FG,2$BI=$FG$ number changes. -The reason for the $FG,2$$$IB...$$$FG$ cmd is to pass a arg to $LK,"Sprite",A="MN:Sprite"$() and $LK,"Sprite3",A="MN:Sprite3"$(). See $LK,"::/Demo/Graphics/SpritePlot.CC"$. +The reason for the $FG,2$$$IB...$$$FG$ cmd is to pass a arg to $LK,"Sprite",A="MN:Sprite"$() and $LK,"Sprite3",A="MN:Sprite3"$(). See $LK,"::/Demo/Graphics/SpritePlot.ZC"$. $ID,-2$$TR,"IS Insert Binary Size"$ $ID,2$Inserts a number into the compiled stream describing the size of binary data associated with a bin number. Terry never used this. @@ -183,11 +183,11 @@ $ID,2$Include a $FG,2$1$FG$ or $FG,2$0$FG$. $FG,2$$$HL,1$$$FG$ will turn syntax highlighting on. $ID,-2$$TR,"HC html"$ -$ID,2$See $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$ to generate a html version of a document. You can cause html code to be injected with $FG,2$HC$FG$. Use the $FG,2$+HTML$FG$ flag to inject a html link. +$ID,2$See $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$ to generate a html version of a document. You can cause html code to be injected with $FG,2$HC$FG$. Use the $FG,2$+HTML$FG$ flag to inject a html link. $ID,-2$$TR,"ER Error"$ $ID,2$When errors are detected in DolDoc cmds, an $FG,2$ER$FG$ entry is generated. $ID,-2$ -<$LK,"FlagCode",A="FF:::/System/DolDoc/DocInit.CC,ST_DOC_FLAGS"$> See $LK,"Flag Defines",A="MN:DOCEf_LEFT_CB"$ and $LK,"Simple Flags",A="FI:::/Doc/Widget.DD"$. +<$LK,"FlagCode",A="FF:::/System/DolDoc/DocInit.ZC,ST_DOC_FLAGS"$> See $LK,"Flag Defines",A="MN:DOCEf_LEFT_CB"$ and $LK,"Simple Flags",A="FI:::/Doc/Widget.DD"$. $TR,"+H Hold"$ $ID,2$Causes not to delete this cmd when cleared with $FG,2$CL$FG$ or when the doc->max_entries is exceeded. Word wrap is a good to hold. There is no way to delete these entries, at this point. $ID,-2$$TR,"+L Link"$ @@ -213,39 +213,39 @@ $ID,2$The Refresh Data flag on a $FG,2$DA$FG$ or a $FG,2$CB$FG$ makes the value $ID,-2$$TR,"+UD Update Data"$ $ID,2$The Update Data flag on a $FG,2$DA$FG$ or a $FG,2$CB$FG$ makes the value in the $LK,"CDocEntry",A="MN:CDocEntry"$ updated when keys are typed on it. $ID,-2$$TR,"+TC Tag CallBack"$ -$ID,2$See $LK,"::/Demo/DolDoc/CallBack.CC"$. +$ID,2$See $LK,"::/Demo/DolDoc/CallBack.ZC"$. $ID,-2$$TR,"+LC Left CallBack"$ -$ID,2$See $LK,"::/Demo/DolDoc/ClickCallBack.CC"$. +$ID,2$See $LK,"::/Demo/DolDoc/ClickCallBack.ZC"$. $ID,-2$$TR,"+RC Right CallBack"$ -$ID,2$See $LK,"::/Demo/DolDoc/ClickCallBack.CC"$. +$ID,2$See $LK,"::/Demo/DolDoc/ClickCallBack.ZC"$. $ID,-2$ -<$LK,"ArgCode",A="FF:::/System/DolDoc/DocInit.CC,ST_DOC_FLAGS"$> See $LK,"Arg Defines",A="MN:DOCEf_TAG"$. +<$LK,"ArgCode",A="FF:::/System/DolDoc/DocInit.ZC,ST_DOC_FLAGS"$> See $LK,"Arg Defines",A="MN:DOCEf_TAG"$. $TR,"T=\"\" Tag Str"$ -$ID,2$Some cmds have a tag by default. See $LK,"TX+T",A="FF:::/System/DolDoc/DocInit.CC,TX+T"$. You can code $FG,2$T="tag_text"$FG$ as just $FG,2$"tag_text"$FG$ with no $FG,2$T=$FG$. +$ID,2$Some cmds have a tag by default. See $LK,"TX+T",A="FF:::/System/DolDoc/DocInit.ZC,TX+T"$. You can code $FG,2$T="tag_text"$FG$ as just $FG,2$"tag_text"$FG$ with no $FG,2$T=$FG$. $ID,-2$$TR,"LEN=\"\" Field Length"$ $ID,2$The default field length for $FG,2$$$DA...$$$FG$ commands is $FG,2$LEN=64$FG$ characters. For U8 arrays[], $LK,"DocForm",A="MN:DocForm"$() will automatically reset the field length to the string length from the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ $FG,2$class$FG$ member's definition. The length measures starting after the ':' in the $FG,2$A=""$FG$ format string. -The space after the first ':' in the format string marks the first valid cursor pos. See $LK,"Data Tag Width",A="FA:::/System/DolDoc/DocPlain.CC,DataTagWidth"$. +The space after the first ':' in the format string marks the first valid cursor pos. See $LK,"Data Tag Width",A="FA:::/System/DolDoc/DocPlain.ZC,DataTagWidth"$. $ID,-2$$TR,"A=\"\" Auxilliary Str"$ $ID,2$Some cmds need auxilliary strings. $FG,2$A="str"$FG$ means an $LK,"CDocEntry",A="MN:CDocEntry"$.aux_str is present. aux_str is used for song note text, link text, anchor text, and $FG,2$$$DA...$$$FG$ format string text. $ID,-2$$TR,"D=\"\" Define Str"$ $ID,2$A $FG,2$D=""$FG$ means either a $LK,"define",A="HI:Define"$ str indirection is present on a text widget, or a define list is present on a list widget. -For indirection, the tag will be regenerated by substituting the value of a system $FG,2$#define$FG$ or $LK,"DefineLoad",A="MN:DefineLoad"$() string. See $LK,"::/Demo/DolDoc/DefineStr.CC"$, $LK,"::/System/Define.CC"$ and $LK,"::/Doc/MemoryOverview.DD"$. +For indirection, the tag will be regenerated by substituting the value of a system $FG,2$#define$FG$ or $LK,"DefineLoad",A="MN:DefineLoad"$() string. See $LK,"::/Demo/DolDoc/DefineStr.ZC"$, $LK,"::/System/Define.ZC"$ and $LK,"::/Doc/MemoryOverview.DD"$. -For $FG,2$LS$FG$ widgets, see $LK,"::/Demo/DolDoc/Form.CC"$. +For $FG,2$LS$FG$ widgets, see $LK,"::/Demo/DolDoc/Form.ZC"$. $ID,-2$$TR,"HTML=\"\""$ -$ID,2$See $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$ to generate a html version of a document. You can cause html link on an item with $FG,2$HTML=""$FG$. +$ID,2$See $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$ to generate a html version of a document. You can cause html link on an item with $FG,2$HTML=""$FG$. $ID,-2$$TR,"LE= Left Expression"$ $ID,2$Left expression. $FG,2$CM$FG$ has this by default for X offset and you can leave-off the $FG,2$LE=$FG$, just putting the $FG,2$$FG$. -See $LK,"::/Demo/DolDoc/MenuBttn.CC"$. +See $LK,"::/Demo/DolDoc/MenuBttn.ZC"$. $ID,-2$$TR,"LM=\"\" Left Macro Str"$ $ID,2$Left macro string. $ID,-2$$TR,"RE= Right Expression"$ $ID,2$Right expression. $FG,2$CM$FG$ has this by default for Y offset and you can leave-off the $FG,2$RE=$FG$, just putting the $FG,2$$FG$. -See $LK,"::/Demo/DolDoc/MenuBttn.CC"$. +See $LK,"::/Demo/DolDoc/MenuBttn.ZC"$. $ID,-2$$TR,"RM=\"\" Right Macro Str"$ $ID,2$Right macro string. $ID,-2$$TR,"BI= Bin Number"$ @@ -254,7 +254,7 @@ $ID,-2$$TR,"BP=\"\" Bin Pointer"$ $ID,2$The BinPtrLink flags lets you specify a filename and bin num to import a bin$FG$. $FG,2$$$SP,"",BI=1,BP="filename,1"$$$FG$ will import bin num "1" from filename. -$FG,2$$$SP,"<1>",BI=1,BP="::/Demo/Graphics/Mountain.CC,Mountain"$$$FG$ will import bin with tag name "Mountain" from "::/Demo/Graphics/Mountain.CC". +$FG,2$$$SP,"<1>",BI=1,BP="::/Demo/Graphics/Mountain.ZC,Mountain"$$$FG$ will import bin with tag name "Mountain" from "::/Demo/Graphics/Mountain.ZC". $ID,-2$$TR,"RT="$ $ID,2$The default data-type for the $FG,2$$$DA...$$$FG$ and $FG,2$$$LS...$$$FG$ commands is $FG,2$RT=I64$FG$. If you do not specify a raw type and are using $LK,"DocForm",A="MN:DocForm"$(), it will use the $FG,2$class$FG$ member's raw type, automatically. The default for the $FG,2$$$CB...$$$FG$ command is $FG,2$RT=I8$FG$ which is $FG,2$Bool$FG$. @@ -268,7 +268,7 @@ $ID,2$Scroll text in a marquee of so many columns. $ID,-2$$TR,"U= User Data"$ $ID,2$User Data. -See $LK,"::/Demo/DolDoc/MenuBttn.CC"$. +See $LK,"::/Demo/DolDoc/MenuBttn.ZC"$. $ID,-2$ $FG,5$EXAMPLES: diff --git a/src/Doc/FAQ.DD b/src/Doc/FAQ.DD index 1ce2e7ab..c5cfb763 100755 --- a/src/Doc/FAQ.DD +++ b/src/Doc/FAQ.DD @@ -27,7 +27,7 @@ $ID,2$$LK,"Yield",A="MN:Yield"$() saves the current task's registers (context) a $ID,-2$$TR,"What is JIT Compiled Mode?"$ $ID,2$The term $LK,"JIT Compile Mode",A="FF:::/Doc/Glossary.DD,JIT Compile Mode"$ means it compiles and executes code placed into mem, not stored on disk. $ID,-2$$TR,"Is it open source? How do I build it?"$ -$ID,2$ZealOS is 100% open source. All the source code is included in the distro. Use $LK,"BootHDIns",A="MN:BootHDIns"$() to compile the kernel and compiler. The rest is $LK,"JIT Compiled",A="FF:::/Doc/Glossary.DD,JIT Compile Mode"$ during boot. See $LK,"::/StartOS.CC"$. +$ID,2$ZealOS is 100% open source. All the source code is included in the distro. Use $LK,"BootHDIns",A="MN:BootHDIns"$() to compile the kernel and compiler. The rest is $LK,"JIT Compiled",A="FF:::/Doc/Glossary.DD,JIT Compile Mode"$ during boot. See $LK,"::/StartOS.ZC"$. $ID,-2$$TR,"Where are object files? How do I link?"$ $ID,2$ZealOS does not use object files or a linker. $LK,"AOT Compile Mode",A="FF:::/Doc/Glossary.DD,AOT Compile Mode"$ is used to directly create flat binary files, $LK,"::/Boot/Kernel.BIN.C",A="FI:::/Kernel/Kernel.PRJ"$ and $LK,"::/Compiler/Compiler.BIN",A="FI:::/Compiler/Compiler.PRJ"$ with no object files and linking.$FG$ $LK,"JIT Compile Mode",A="FF:::/Doc/Glossary.DD,JIT Compile Mode"$ place code in memory, ready to run, with no object files or linking. Linking is done when $FG,2$BIN$FG$ modules are $LK,"Load",A="MN:Load"$()ed. $ID,-2$$TR,"What is the FPS refresh rate?"$ @@ -39,7 +39,7 @@ $ID,2$ZealOS allocs mem as more items are displayed in the window. Also, ZealOS $ID,-2$$TR,"Why do I get a memory leak when editing big files?"$ $ID,2$The editor periodically takes a snap-shot of the document for $FG,2$UNDO$FG$ and this looks like a memory leak. $ID,-2$$TR,"Why is it in text mode?"$ -$ID,2$ZealOS runs in $FG,2$High-res 32-bit color VBE$FG$ graphics modes, not text mode. It changes to this mode with a $LK,"BIOS call",A="FF:::/Kernel/KStart16.CC,INT:9"$ while in real-mode before it switches to 64-bit mode. The text is $LK,"drawn by hand",A="MN:GrUpdateTextFG"$. See $LK,"::/Kernel/FontStd.CC"$. +$ID,2$ZealOS runs in $FG,2$High-res 32-bit color VBE$FG$ graphics modes, not text mode. It changes to this mode with a $LK,"BIOS call",A="FF:::/Kernel/KStart16.ZC,INT:9"$ while in real-mode before it switches to 64-bit mode. The text is $LK,"drawn by hand",A="MN:GrUpdateTextFG"$. See $LK,"::/Kernel/FontStd.ZC"$. $ID,-2$$TR,"Where is the kernel memory?"$ $ID,2$ZealOS identity-maps all memory, all the time. It is like paging is not used. There is no special kernel $FG,2$high half$FG$ memory space. ZealOS is ring-0-only, so everything is kernel, even user programs. There is a special task called $FG,2$System$FG$ and it doesn't die, so its heap never gets freed. That's as close to $FG,2$kernel memory$FG$ as it gets. All code goes in the lowest 2Gig of addresses, known as the $LK,"Code Heap",A="FF:::/Doc/Glossary.DD,Code and Data Heaps"$, so that the $FG,2$REL32$FG$ addressing mode can be used. See $LK,"MemoryOverview",A="FI:::/Doc/MemoryOverview.DD"$. $ID,-2$$TR,"Why does it run code from stack addresses?"$ @@ -51,11 +51,11 @@ $ID,2$The stack does not grow, so do not do deep recursion. In theory, memory g $ID,-2$$TR,"How do I set the PATH?"$ $ID,2$There is no $FG,2$PATH$FG$. You do not enter filenames at the command-line and expect them to run. You enter C-like code. $LK,"Get Started Here",A="FI:::/Doc/CmdLineOverview.DD"$. $ID,-2$$TR,"How do I boot it with Grub?"$ -$ID,2$If you use Grub, you $FG,2$chain-load$FG$ like Windows. See $LK,"Boot",A="FI:::/Doc/Boot.DD"$. You can use the ZealOS boot-loader. $LK,"Master-Boot-Loader-Stage1",A="FI:::/System/Boot/BootMHD.CC"$, $LK,"Master-Boot-Loader-Stage2",A="FI:::/System/Boot/BootMHD2.CC"$, $LK,"Partition-Boot-Loader",A="FI:::/System/Boot/BootHD.CC"$, $LK,"CD-DVD-Boot-Loader",A="FI:::/System/Boot/BootDVD.CC"$. +$ID,2$If you use Grub, you $FG,2$chain-load$FG$ like Windows. See $LK,"Boot",A="FI:::/Doc/Boot.DD"$. You can use the ZealOS boot-loader. $LK,"Master-Boot-Loader-Stage1",A="FI:::/System/Boot/BootMHD.ZC"$, $LK,"Master-Boot-Loader-Stage2",A="FI:::/System/Boot/BootMHD2.ZC"$, $LK,"Partition-Boot-Loader",A="FI:::/System/Boot/BootHD.ZC"$, $LK,"CD-DVD-Boot-Loader",A="FI:::/System/Boot/BootDVD.ZC"$. $ID,-2$$TR,"How do I get Kernel.BIN to boot?"$ -$ID,2$The boot-loaders must be patched by you running $LK,"BootHDIns",A="MN:BootHDIns"$() or $LK,"BootMHDIns",A="MN:BootMHDIns"$(). Those will write the block address into the boot-loader because the boot-loaders do not navigate file systems to find the $LK,"Stage2",A="FI:::/Kernel/KStart16.CC"$ if you relocate it. +$ID,2$The boot-loaders must be patched by you running $LK,"BootHDIns",A="MN:BootHDIns"$() or $LK,"BootMHDIns",A="MN:BootMHDIns"$(). Those will write the block address into the boot-loader because the boot-loaders do not navigate file systems to find the $LK,"Stage2",A="FI:::/Kernel/KStart16.ZC"$ if you relocate it. $ID,-2$$TR,"Why is there some 16-Bit code?"$ -$ID,2$ZealOS is 64-bit. Like all PC operating systems, the boot-loader starts in 16-bit real-mode. ZealOS calls a few $FG,2$BIOS$FG$ info routines, switches to VGA-640x480x4bit, switches to 32-bit, then, 64-bit mode. There is an odd thing called a $FG,2$$TX,"PCI BIOS",HTML="http://www.o3one.org/hwdocs/bios_doc/pci_bios_21.pdf"$$FG$ which is 32-bit used for $FG,2$PCI$FG$ config space access. If supported, ZealOS calls $LK,"that",A="FI:::/Kernel/PCIBIOS.CC"$ a couple times, otherwise using Port I/O for PCI. It must temporarily drop-out-of 64-bit mode for that and stop multi-tasking. +$ID,2$ZealOS is 64-bit. Like all PC operating systems, the boot-loader starts in 16-bit real-mode. ZealOS calls a few $FG,2$BIOS$FG$ info routines, switches to VGA-640x480x4bit, switches to 32-bit, then, 64-bit mode. There is an odd thing called a $FG,2$$TX,"PCI BIOS",HTML="http://www.o3one.org/hwdocs/bios_doc/pci_bios_21.pdf"$$FG$ which is 32-bit used for $FG,2$PCI$FG$ config space access. If supported, ZealOS calls $LK,"that",A="FI:::/Kernel/PCIBIOS.ZC"$ a couple times, otherwise using Port I/O for PCI. It must temporarily drop-out-of 64-bit mode for that and stop multi-tasking. $ID,-2$$TR,"Why are you pushing 32-bit values on the stack?"$ $ID,2$$FG,2$PUSH EAX$FG$ : All stack operations in 64-bit mode are 64-bits. $ID,-2$$TR,"Why are you using 32-bit insts and not setting high 32-bits?"$ @@ -79,7 +79,7 @@ $ID,2$Binary sprite data is stored beyond the terminating $FG,2$NULL$FG$ in text $ID,-2$$TR,"Why are sprites so small?"$ $ID,2$Sprites can be stored as vector graphics so they might take shockingly little room. They can be converted to bitmaps. $ID,-2$$TR,"Why don't I need to recompile /System and /Home files?"$ -$ID,2$If you change code in the $FG,2$/System$FG$ or your $FG,2$/Home$FG$ directory, you don't need to recompile, you just need to reboot because those directories get recompiled when you boot. It uses $LK,"JIT Compile Mode",A="FF:::/Doc/Glossary.DD,JIT Compile Mode"$. There is no $FG,2$.BIN$FG$ file for $FG,2$JIT$FG$ compilation. See $LK,"::/StartOS.CC"$. +$ID,2$If you change code in the $FG,2$/System$FG$ or your $FG,2$/Home$FG$ directory, you don't need to recompile, you just need to reboot because those directories get recompiled when you boot. It uses $LK,"JIT Compile Mode",A="FF:::/Doc/Glossary.DD,JIT Compile Mode"$. There is no $FG,2$.BIN$FG$ file for $FG,2$JIT$FG$ compilation. See $LK,"::/StartOS.ZC"$. $ID,-2$$TR,"Why does it finds files that aren't there?"$ $ID,2$If a file is not found, the parent directories are searched for a file of the same name. $ID,-2$ diff --git a/src/Doc/FileMgr.DD b/src/Doc/FileMgr.DD index 59c4b0d9..989c33c7 100755 --- a/src/Doc/FileMgr.DD +++ b/src/Doc/FileMgr.DD @@ -62,5 +62,5 @@ $ID,-2$ $FG,5$Instructions on Burning CD/DVD's$FG$ $ID,2$Create a temporary dir to hold files and copy files into the holding dir. Make an ISO image of the dir by pressing $FG,2$'M'$FG$ when on top of the dir. Press $FG,2$'B'$FG$ when on top of the CD/DVD ROM drive to burn the ISO, $FG,2$$TX,"\"::/Tmp/CDDVD.ISO\"",D="DEFAULT_ISO_FILENAME"$$FG$ $LK,"blkdev.default_iso_filename",A="MN:CBlkDevGlobals"$, to disk. If you have not recompiled $FG,2$Kernel$FG$ and defined your CD/DVD drive, exit the FileMgr and use $LK,"Mount",A="MN:Mount"$. -$LK,"Making Your Own Distro",A="FI:::/Misc/DoDistro.CC"$ +$LK,"Making Your Own Distro",A="FI:::/Misc/DoDistro.ZC"$ $ID,-2$ \ No newline at end of file diff --git a/src/Doc/Frame.DD b/src/Doc/Frame.DD index feae01b9..16521d71 100755 --- a/src/Doc/Frame.DD +++ b/src/Doc/Frame.DD @@ -1 +1 @@ -$WW,1$If you require separate global variables for multiple instances of a routine, you can use $FG,4$Frame$FG$s. See $LK,"SpriteMeshEd",A="MN:SpriteMeshEd"$(), $LK,"::/Demo/Graphics/Pick3D.CC"$ or $LK,"Noise",A="MN:Noise"$(). +$WW,1$If you require separate global variables for multiple instances of a routine, you can use $FG,4$Frame$FG$s. See $LK,"SpriteMeshEd",A="MN:SpriteMeshEd"$(), $LK,"::/Demo/Graphics/Pick3D.ZC"$ or $LK,"Noise",A="MN:Noise"$(). diff --git a/src/Doc/Glossary.DD b/src/Doc/Glossary.DD index d224c6cd..021f2a12 100755 --- a/src/Doc/Glossary.DD +++ b/src/Doc/Glossary.DD @@ -147,7 +147,7 @@ $ID,2$There is no distinction between $FG,2$task$FG$, $FG,2$process$FG$ or $FG,2 Since there is not friendly disk sharing and all tasks have the same address map, it might be accurate to call ZealOS, "multi-thread/single-process". You run a single application process on $FG,2$Core0$FG$ and it can create threads on the same core or others. If you run multiple processes, it should be safe, but one process will wait until another completely finishes a long disk access. $ID,-2$$TR,"System Task"$ -$ID,2$The System task is immortal. The system task is created at start-up and appears in the small window at the top beneath the user terminal windows. Since the System task is immortal, on its heap go all memory objects which you don't want destroyed by any single task's death. When created, the System task runs the file $LK,"::/StartOS.CC"$. When start-up is finished, the system task enters a server mode where it accepts requests from other tasks. The $LK,"Sys",A="MN:Sys"$("") routine will make the System task compile and run text src code. $FG,2$#include$FG$ statements can be sent to $LK,"Sys",A="MN:Sys"$(""), creating system-wide code and data which are immortal. +$ID,2$The System task is immortal. The system task is created at start-up and appears in the small window at the top beneath the user terminal windows. Since the System task is immortal, on its heap go all memory objects which you don't want destroyed by any single task's death. When created, the System task runs the file $LK,"::/StartOS.ZC"$. When start-up is finished, the system task enters a server mode where it accepts requests from other tasks. The $LK,"Sys",A="MN:Sys"$("") routine will make the System task compile and run text src code. $FG,2$#include$FG$ statements can be sent to $LK,"Sys",A="MN:Sys"$(""), creating system-wide code and data which are immortal. $ID,-2$$TR,"Executive Tasks"$ $ID,2$Each CPU core has an $FG,2$Executive$FG$ task that is immortal. The System task on $FG,2$Core0$FG$ is also its $FG,2$Executive$FG$ task. $ID,-2$$TR,"Code and Data Heaps"$ @@ -205,8 +205,8 @@ $ID,2$$FG,5$$FG,5$*.???.C$FG$ Contiguous files - not fragmented on disk. $FG,5$*.DD$FG$ Text Files -$FG,5$*.CC$FG$ - ZealC src files. The default ZealC compiler type is $FG,2$.CC$FG$. +$FG,5$*.ZC$FG$ + ZealC src files. The default ZealC compiler type is $FG,2$.ZC$FG$. $FG,5$*.PRJ$FG$ ZealC src files to be compiled $FG,2$AOT$FG$. $FG,5$*.HH$FG$ diff --git a/src/Doc/GraphicsOverview.DD b/src/Doc/GraphicsOverview.DD index de096af2..32edddf4 100755 Binary files a/src/Doc/GraphicsOverview.DD and b/src/Doc/GraphicsOverview.DD differ diff --git a/src/Doc/GuideLines.DD b/src/Doc/GuideLines.DD index a264eca0..e2eaf11a 100755 --- a/src/Doc/GuideLines.DD +++ b/src/Doc/GuideLines.DD @@ -2,7 +2,7 @@ $WW,1$$FG,5$$TX+CX,"Directory Structure"$$FG$ $FG,2$/Home$FG$ All your user data should be placed in here to ease backing-up your data. When you install an application it will create a subdirectory of your $FG,2$/Home$FG$ directory for storage. -$FG,2$/Apps$FG$ Applications are placed in subdirectories of $FG,2$/Apps$FG$. Applications should have a file called $FG,2$Install.CC$FG$ which will install the app, possibly making files or directories in $FG,2$/Home$FG$. The file, $FG,2$Load.CC$FG$ will load the application into mem. The file, $FG,2$Run.CC$FG$, will usually load and execute the app. To add an app to your PersonalMenu, use $FG,2$$FG$, insert a macro with the PopUp option checked and invoke the $FG,2$Run.CC$FG$ file. +$FG,2$/Apps$FG$ Applications are placed in subdirectories of $FG,2$/Apps$FG$. Applications should have a file called $FG,2$Install.ZC$FG$ which will install the app, possibly making files or directories in $FG,2$/Home$FG$. The file, $FG,2$Load.ZC$FG$ will load the application into mem. The file, $FG,2$Run.ZC$FG$, will usually load and execute the app. To add an app to your PersonalMenu, use $FG,2$$FG$, insert a macro with the PopUp option checked and invoke the $FG,2$Run.ZC$FG$ file. $FG,2$/Demo$FG$ Here you can find lots of sample code to do various things. @@ -26,13 +26,13 @@ $LK,"~/PersonalMenu.DD"$ a menu viewed with the $FG,2$$FG$ key or by cli $LK,"~/PersonalNotes.DD"$ a personal note file viewed with the $FG,2$$FG$ key. -$LK,"~/MakeHome.CC"$ a file compiled by the $LK,"System Task",A="FF:::/Doc/Glossary.DD,System Task"$ during $LK,"StartOS",A="FF:::/StartOS.CC,MakeHome"$. +$LK,"~/MakeHome.ZC"$ a file compiled by the $LK,"System Task",A="FF:::/Doc/Glossary.DD,System Task"$ during $LK,"StartOS",A="FF:::/StartOS.ZC,MakeHome"$. $FG,4$~/Home*$FG$ Copy $FG,2$Home*$FG$ files from the root into $FG,2$~$FG$ and customize them. These files are invoked when the $LK,"System Task",A="FF:::/Doc/Glossary.DD,System Task"$ starts-up. -$LK,"~/Once.CC"$ a file invoked at the start-up of the first user. Customize this! +$LK,"~/Once.ZC"$ a file invoked at the start-up of the first user. Customize this! -$LK,"~/Registry.CC"$ can be edited by hand or deleted to reset to defaults. Takes affect next boot. +$LK,"~/Registry.ZC"$ can be edited by hand or deleted to reset to defaults. Takes affect next boot. @@ -40,13 +40,13 @@ $FG,5$$TX+CX,"Application Policies"$$FG$ * Place applications in their own $FG,2$/Apps$FG$ subdirectory. -* Make a file called $FG,2$Load.CC$FG$ to load the application. +* Make a file called $FG,2$Load.ZC$FG$ to load the application. -* Make a file called $FG,2$Run.CC$FG$ to load and run the application, preferable by $FG,2$#include$FG$ing the $FG,2$Load.CC$FG$ file. +* Make a file called $FG,2$Run.ZC$FG$ to load and run the application, preferable by $FG,2$#include$FG$ing the $FG,2$Load.ZC$FG$ file. -* Place user data in a subdirectory of $FG,2$/Home$FG$, preferably naming the subdirectory the same as the $FG,2$/Apps$FG$ subdirectory. Or, place data in the $FG,2$Registry.CC$FG$ file. See $LK,"::/Demo/RegistryDemo.CC"$. +* Place user data in a subdirectory of $FG,2$/Home$FG$, preferably naming the subdirectory the same as the $FG,2$/Apps$FG$ subdirectory. Or, place data in the $FG,2$Registry.ZC$FG$ file. See $LK,"::/Demo/RegistryDemo.ZC"$. -* If the app needs files in the $FG,2$/Home$FG$ directory, make an $FG,2$/Apps$FG$ file called $FG,2$Install.CC$FG$ or $FG,2$Install.IN$FG$ to create the $FG,2$/Home$FG$ subdirectory. +* If the app needs files in the $FG,2$/Home$FG$ directory, make an $FG,2$/Apps$FG$ file called $FG,2$Install.ZC$FG$ or $FG,2$Install.IN$FG$ to create the $FG,2$/Home$FG$ subdirectory. @@ -92,7 +92,7 @@ $ID,-5$ $FG,5$$TX+CX,"Hash Sym Tables"$$FG$ -* See $LK,"::/System/Hash.CC"$ for examples of how the hash tables are set-up. Basically, symbols are placed into hash tables and child process hash tables are chained to parents. This provides scopes for variables and functions. +* See $LK,"::/System/Hash.ZC"$ for examples of how the hash tables are set-up. Basically, symbols are placed into hash tables and child process hash tables are chained to parents. This provides scopes for variables and functions. * $FG,2$sys_task->hash_table$FG$ holds the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ symbols loaded in on start-up. diff --git a/src/Doc/Hash.DD b/src/Doc/Hash.DD index 14065d19..6f65aaf3 100755 Binary files a/src/Doc/Hash.DD and b/src/Doc/Hash.DD differ diff --git a/src/Doc/HelloWorld.DD b/src/Doc/HelloWorld.DD index 1bea496c..15249dbe 100755 --- a/src/Doc/HelloWorld.DD +++ b/src/Doc/HelloWorld.DD @@ -1,10 +1,10 @@ $HL,1$//Press F5 in the editor to compile and run. -// --------Hello.CC--------- // +// --------Hello.ZC--------- // "Hello World\n"; -// --------Hello.CC--------- // +// --------Hello.ZC--------- // U0 Main() { "Hello World\n"; @@ -12,7 +12,7 @@ U0 Main() Main; -// --------Hello.CC--------- // +// --------Hello.ZC--------- // U0 MyPrint(U8 *st) { "%s", st; @@ -20,7 +20,7 @@ U0 MyPrint(U8 *st) MyPrint("Hello World\n"); -// --------Hello.CC--------- // +// --------Hello.ZC--------- // U0 MyPrint2(U8 *st1, U8 *st2) //Any number of args. { "%s %s\n", st1, st2; //Any number of args. @@ -28,7 +28,7 @@ U0 MyPrint2(U8 *st1, U8 *st2) //Any number of args. MyPrint2("Hello", "World"); -// --------Hello.CC--------- // +// --------Hello.ZC--------- // U0 MyPrint(U8 *st) { "" st; //Empty with no comma means first is format str. @@ -36,7 +36,7 @@ U0 MyPrint(U8 *st) MyPrint("Hello World\n"); -// --------Hello.CC--------- // +// --------Hello.ZC--------- // asm { MESSAGE: DU8 "Hello World\n", 0; @@ -53,7 +53,7 @@ _HELLO_WORLD1:: Call(_HELLO_WORLD1); -// --------Hello.CC--------- // +// --------Hello.ZC--------- // asm { _HELLO_WORLD2:: //You can only clobber RAX,RBX,RCX,RDX @@ -66,7 +66,7 @@ _HELLO_WORLD2:: Call(_HELLO_WORLD2); -// --------Hello.CC--------- // +// --------Hello.ZC--------- // asm { _MY_PRINT1:: //You can only clobber RAX,RBX,RCX,RDX @@ -83,7 +83,7 @@ _extern _MY_PRINT1 U0 MyPrint(U8 *st); MyPrint("Hello World\n"); - // --------Hello.CC--------- // + // --------Hello.ZC--------- // asm { _MY_PRINT2:: //You can only clobber RAX,RBX,RCX,RDX diff --git a/src/Doc/HelpIndex.DD b/src/Doc/HelpIndex.DD index fc3e8e8c..1ce81d38 100755 Binary files a/src/Doc/HelpIndex.DD and b/src/Doc/HelpIndex.DD differ diff --git a/src/Doc/Install.DD b/src/Doc/Install.DD index 08572c48..3de69f78 100755 --- a/src/Doc/Install.DD +++ b/src/Doc/Install.DD @@ -4,7 +4,7 @@ Burn a CD with software that supports ISO files. Then, boot it. It's a live CD, Dual booting with another operating system is the best way to use ZealOS. It is often used in a virtual machine because it won't boot natively on some machines, though. For native dual booting, you need a partition for ZealOS. Windows often comes with a restore disk that does not allow repartitioning. It's recommended to connect a spare additional hard drive and use the $FG,2$BIOS$FG$ to select which drive to boot. -The $LK,"::/Misc/OSInstall.CC"$ script will automate much of this. It runs if you boot the CD/DVD-ROM. +The $LK,"::/Misc/OSInstall.ZC"$ script will automate much of this. It runs if you boot the CD/DVD-ROM. See $LK,"Boot.DD",A="FI:::/Doc/Boot.DD"$ for an overview of booting. See $LK,"Requirements",A="FI:::/Doc/Requirements.DD"$ for supported hardware. diff --git a/src/Doc/KeyDev.DD b/src/Doc/KeyDev.DD index 756d9142..11b360db 100755 --- a/src/Doc/KeyDev.DD +++ b/src/Doc/KeyDev.DD @@ -11,4 +11,4 @@ $FG,2$0x80000000$FG$ $LK,"KDDocPutKey",A="MN:KDDocPutKey"$() standard document c Since handling individual keys is slow, ZealOS supports PutS() as well. If no puts handler is defined, individual keys are sent. -$LK,"CDoc",A="MN:CDoc"$$FG,2$.user_put_key$FG$ and $LK,"CDoc",A="MN:CDoc"$$FG,2$.user_put_s$FG$ are call back routines which offer some neat tricks. See $LK,"::/Apps/Psalmody/JukeBox.CC"$. There is a variable $LK,"CDoc",A="MN:CDoc"$$FG,2$.user_put_data$FG$ which gets passed to them. +$LK,"CDoc",A="MN:CDoc"$$FG,2$.user_put_key$FG$ and $LK,"CDoc",A="MN:CDoc"$$FG,2$.user_put_s$FG$ are call back routines which offer some neat tricks. See $LK,"::/Apps/Psalmody/JukeBox.ZC"$. There is a variable $LK,"CDoc",A="MN:CDoc"$$FG,2$.user_put_data$FG$ which gets passed to them. diff --git a/src/Doc/Lex.DD b/src/Doc/Lex.DD index e9043a3a..f6e99fa6 100755 --- a/src/Doc/Lex.DD +++ b/src/Doc/Lex.DD @@ -1,3 +1,3 @@ -$WW,1$The compiler's lexical analyzer can be used in your programs to simplify parsing. See $LK,"Doc Parsing",A="FF:::/System/DolDoc/DocPlain.CC,CompCtrlNew"$ or $LK,"Parse Opcode File",A="FF:::/Compiler/AsmInit.CC,Opcodes.DD"$. +$WW,1$The compiler's lexical analyzer can be used in your programs to simplify parsing. See $LK,"Doc Parsing",A="FF:::/System/DolDoc/DocPlain.ZC,CompCtrlNew"$ or $LK,"Parse Opcode File",A="FF:::/Compiler/AsmInit.ZC,Opcodes.DD"$. See $LK,"Tokens",A="MN:TK_IDENT"$. diff --git a/src/Doc/MemoryOverview.DD b/src/Doc/MemoryOverview.DD index ea8e2e8f..a8172059 100755 --- a/src/Doc/MemoryOverview.DD +++ b/src/Doc/MemoryOverview.DD @@ -8,11 +8,11 @@ You can create new, independent heaps using $LK,"HeapCtrlInit",A="MN:HeapCtrlIni Memory alloced by a task will be freed when the task is killed. The $LK,"System Task",A="FF:::/Doc/Glossary.DD,System Task"$ is a task that never dies. Its memory is like kernel memory in other operating systems. See $LK,"SysCAlloc",A="MN:SysCAlloc"$(), $LK,"SysMAlloc",A="MN:SysMAlloc"$(), $LK,"SysMAllocIdent",A="MN:SysMAllocIdent"$() and $LK,"SysStrNew",A="MN:SysStrNew"$(). -All of the regular page tables are marked, "cached". When accessing hardware, however, you need uncached page table. The lowest 4Gig addresses have an alias to access hardware located toward the top of mapped space, $FG,2$0x$TX,"01D7800000",D="DD_UNCACHED_ALIAS"$$FG$. See $LK,"dev.uncached_alias",A="FF:::/Kernel/MultiProc.CC,dev.uncached_alias"$. +All of the regular page tables are marked, "cached". When accessing hardware, however, you need uncached page table. The lowest 4Gig addresses have an alias to access hardware located toward the top of mapped space, $FG,2$0x$TX,"01D7800000",D="DD_UNCACHED_ALIAS"$$FG$. See $LK,"dev.uncached_alias",A="FF:::/Kernel/MultiProc.ZC,dev.uncached_alias"$. During an extended powered-on session of ZealOS, in theory, memory will become fragmented, requiring a reboot. It has never happens to me. -See $LK,"MemRep",A="MN:MemRep"$() and $LK,"::/Demo/MemDemo.CC"$. +See $LK,"MemRep",A="MN:MemRep"$() and $LK,"::/Demo/MemDemo.ZC"$. $FG,5$$TX+CX,"Single System-wide Memory Map"$ @@ -21,7 +21,7 @@ $FG,2$ 0x00$TX,"00007C00",D="DD_KERNEL"$- 0x00$TX,"000370BF",D="DD_KERNEL_END"$$ $ID,2$Kernel module, placed here by the boot-loader, $LK,"BOOT_RAM_BASE",A="MN:BOOT_RAM_BASE"$. $ID,-2$ $FG,2$ 0x00$TX,"00096600",D="DD_BOOT_HIGH_LOC_DVD"$- 0x00$TX,"00096FFF",D="DD_BOOT_HIGH_LOC_DVD_END"$$FG$ -$ID,2$$FG$Boot block relocated here before loading the Kernel module, $LK,"BootDVD",A="FI:::/System/Boot/BootDVD.CC"$ & $LK,"BootHD",A="FI:::/System/Boot/BootHD.CC"$. +$ID,2$$FG$Boot block relocated here before loading the Kernel module, $LK,"BootDVD",A="FI:::/System/Boot/BootDVD.ZC"$ & $LK,"BootHD",A="FI:::/System/Boot/BootHD.ZC"$. $ID,-2$ $FG,2$ 0x00$TX,"00097000",D="DD_MP_VECT"$- 0x00$TX,"0009703B",D="DD_MP_VECT_END"$$FG$ Multicore start-up vect code, $LK,"MPN_VECT",A="MN:MPN_VECT"$. $FG,2$~0x000009F000- 0x000009FFFF$FG$ Extended BIOS data area. @@ -55,8 +55,8 @@ In 2003, Terry Davis wanted to make a no-paging ring-0-only 64-bit operating sys Terry needed VGA A0000-BFFFF memory to be write-through and 0xE0000000-0xFFFFFFFF to be uncached for various devices. All 64-bit computers allow stopping address translation at 2Meg page size, not using 4K. He wanted to use 2Meg for everything because it's faster, with one less level of page tables. He had to make A0000-BFFFF write-through, though, so he could not use 2Meg size on the lowest page. He did the lowest 2Meg area as 4K pages. He also unmapped the first 4K to cause a fault when dereferencing NULL. -In 2016, Terry came-up with an alternate idea. He double mapped the lowest memory with an alias that was uncached. Accessing the lowest 2Meg area directly was cached but the alias he created up at the top of address space was uncached. See $LK,"UncachedAliasAlloc",A="MN:UncachedAliasAlloc"$(). Unfortunately, he could no longer boast of the simplicity of identity mapping everything. Since many of the users are familiar with A0000-BFFFF, it is actually pretty seriously unfortunate that they cannot use the easy-to-understand numbers of A0000-BFFFF, but must access the relocated alias location. See $LK,"text.vga_alias",A="FF:::/Kernel/KMain.CC,text.vga_alias"$. We also no longer cause a fault when dereferencing NULL. +In 2016, Terry came-up with an alternate idea. He double mapped the lowest memory with an alias that was uncached. Accessing the lowest 2Meg area directly was cached but the alias he created up at the top of address space was uncached. See $LK,"UncachedAliasAlloc",A="MN:UncachedAliasAlloc"$(). Unfortunately, he could no longer boast of the simplicity of identity mapping everything. Since many of the users are familiar with A0000-BFFFF, it is actually pretty seriously unfortunate that they cannot use the easy-to-understand numbers of A0000-BFFFF, but must access the relocated alias location. See $LK,"text.vga_alias",A="FF:::/Kernel/KMain.ZC,text.vga_alias"$. We also no longer cause a fault when dereferencing NULL. Then, Terry switched to 1Gig page sizes. For the lowest 4Gig, he set-up an alias up at the top of address space. See $LK,"UncachedAliasAlloc",A="MN:UncachedAliasAlloc"$(). Not all computers support 1Gig page tables, however, so he also supported 2Meg. -Terry's original plan was to allow changing the page tables as needed, so he had code for taking control of 2Meg pages and marking them uncached or whatever. When he did an HDAudio driver, he requested some 32-bit address space as uncached. Today, all of the first 4Gig can be accessed without caching at the $LK,"dev.uncached_alias",A="FF:::/Kernel/MultiProc.CC,dev.uncached_alias"$. +Terry's original plan was to allow changing the page tables as needed, so he had code for taking control of 2Meg pages and marking them uncached or whatever. When he did an HDAudio driver, he requested some 32-bit address space as uncached. Today, all of the first 4Gig can be accessed without caching at the $LK,"dev.uncached_alias",A="FF:::/Kernel/MultiProc.ZC,dev.uncached_alias"$. diff --git a/src/Doc/Menus.DD b/src/Doc/Menus.DD index 8f5c087b..e9c8578d 100755 --- a/src/Doc/Menus.DD +++ b/src/Doc/Menus.DD @@ -25,4 +25,4 @@ The first arg is the message code and it is optional with the default being $LK, Press $FG,2$$FG$ and "Insert ASCII/ScanCode". -See $LK,"::/Demo/PullDownMenu.CC"$. +See $LK,"::/Demo/PullDownMenu.ZC"$. diff --git a/src/Doc/Mouse.DD b/src/Doc/Mouse.DD index 928669e6..9c7eb6a2 100755 --- a/src/Doc/Mouse.DD +++ b/src/Doc/Mouse.DD @@ -1,6 +1,6 @@ $WW,1$$LK,"mouse.pos.x",A="MN:mouse"$ and $LK,"mouse.pos.y",A="MN:mouse"$ can be used to access the x and y coordinates of the mouse. They are relative to the screen, not window. These can be used if you don't want to use message passing. $LK,"mouse.pos.z",A="MN:mouse"$ is the wheel. -$LK,"mouse.pos_text.x",A="MN:CMouseStateGlobals"$ and $LK,"mouse.pos_text.y",A="MN:CMouseStateGlobals"$ are the text column and row. See $LK,"::/Demo/Games/Maze.CC"$. +$LK,"mouse.pos_text.x",A="MN:CMouseStateGlobals"$ and $LK,"mouse.pos_text.y",A="MN:CMouseStateGlobals"$ are the text column and row. See $LK,"::/Demo/Games/Maze.ZC"$. See $LK,"CMouseStateGlobals",A="MN:CMouseStateGlobals"$ and $LK,"CMouseHardStateGlobals",A="MN:CMouseHardStateGlobals"$. diff --git a/src/Doc/MultiCore.DD b/src/Doc/MultiCore.DD index f02b5d51..3aa714a9 100755 --- a/src/Doc/MultiCore.DD +++ b/src/Doc/MultiCore.DD @@ -1,6 +1,6 @@ $WW,1$ZealOS does master-slave multicore instead of SMP. $FG,2$Core0$FG$ is the master. The master core's applications explicitly assign computational jobs to other cores and the ZealOS scheduler does not move tasks between cores. -There are multicore safe locks for file access and heap allocations, however, so ZealOS is symmetrical in some sense. See $LK,"::/Demo/MultiCore/LoadTest.CC"$. +There are multicore safe locks for file access and heap allocations, however, so ZealOS is symmetrical in some sense. See $LK,"::/Demo/MultiCore/LoadTest.ZC"$. Only tasks on $FG,2$Core0$FG$ can have windows, but other cores can help render them. @@ -8,7 +8,7 @@ Each core has an $LK,"Executive Task",A="FF:::/Doc/Glossary.DD,Executive Tasks"$ You give a job to an $LK,"Executive Task",A="FF:::/Doc/Glossary.DD,Executive Tasks"$ with $LK,"JobQueue",A="MN:JobQueue"$() and get the result with $LK,"JobResGet",A="MN:JobResGet"$(). You spawn a task on any core with $LK,"Spawn",A="MN:Spawn"$(). -Note: You must use the $FG,2$LOCK$FG$ asm prefix when changing shared structures in a multicore environment. The $LK,"LBts",A="MN:LBts"$(), $LK,"LBtr",A="MN:LBtr"$() and $LK,"LBtc",A="MN:LBtc"$() insts have $FG,2$LOCK$FG$ prefixes. The compiler has a $FG,2$lock{}$FG$ feature but it doesn't work well. See $LK,"::/Demo/MultiCore/Lock.CC"$. +Note: You must use the $FG,2$LOCK$FG$ asm prefix when changing shared structures in a multicore environment. The $LK,"LBts",A="MN:LBts"$(), $LK,"LBtr",A="MN:LBtr"$() and $LK,"LBtc",A="MN:LBtc"$() insts have $FG,2$LOCK$FG$ prefixes. The compiler has a $FG,2$lock{}$FG$ feature but it doesn't work well. See $LK,"::/Demo/MultiCore/Lock.ZC"$. -See $LK,"::/Demo/Graphics/Transform.CC"$. -See $LK,"::/Kernel/MultiProc.CC"$. +See $LK,"::/Demo/Graphics/Transform.ZC"$. +See $LK,"::/Kernel/MultiProc.ZC"$. diff --git a/src/Doc/ODE.DD b/src/Doc/ODE.DD index aa9a24cc..262ee1aa 100755 --- a/src/Doc/ODE.DD +++ b/src/Doc/ODE.DD @@ -3,4 +3,4 @@ $WW,1$ZealOS has an advanced algorithm for integrating ordinary differential equ See $LK,"CMathODE",A="MN:CMathODE"$ and $LK,"ODEsUpdate",A="MN:ODEsUpdate"$ for an overview. See $LK,"ODECallDerivative",A="MN:ODECallDerivative"$ to see what support there is for masses and springs. -See $LK,"::/Demo/Games/Whap.CC"$, $LK,"::/Demo/Games/Rocket.CC"$, $LK,"::/Demo/Games/MassSpring.CC"$, $LK,"::/Apps/Span/SpanMain.CC"$ or $LK,"::/Apps/X-Caliber/X-Caliber.CC"$. +See $LK,"::/Demo/Games/Whap.ZC"$, $LK,"::/Demo/Games/Rocket.ZC"$, $LK,"::/Demo/Games/MassSpring.ZC"$, $LK,"::/Apps/Span/SpanMain.ZC"$ or $LK,"::/Apps/X-Caliber/X-Caliber.ZC"$. diff --git a/src/Doc/Once.DD b/src/Doc/Once.DD index f8763fae..4b234f02 100755 --- a/src/Doc/Once.DD +++ b/src/Doc/Once.DD @@ -1,14 +1,14 @@ $WW,1$$LK,"KMain",A="MN:KMain"$() - includes $LK,"::/StartOS.CC"$ - includes $LK,"~/MakeHome.CC"$ - includes $LK,"~/HomeSys.CC"$ - calls $LK,"StartUpTasks",A="FF:~/HomeSys.CC,StartUpTasks"$() - includes $LK,"~/Once.CC"$ + includes $LK,"::/StartOS.ZC"$ + includes $LK,"~/MakeHome.ZC"$ + includes $LK,"~/HomeSys.ZC"$ + calls $LK,"StartUpTasks",A="FF:~/HomeSys.ZC,StartUpTasks"$() + includes $LK,"~/Once.ZC"$ calls $LK,"OnceExe",A="MN:OnceExe"$(). -$LK,"SysOnce",A="MN:SysOnce"$() appends src code to $LK,"~/Registry.CC"$ $FG,2$Once/System$FG$ tree, executed at next boot by $FG,2$System$FG$. +$LK,"SysOnce",A="MN:SysOnce"$() appends src code to $LK,"~/Registry.ZC"$ $FG,2$Once/System$FG$ tree, executed at next boot by $FG,2$System$FG$. -$LK,"Once",A="MN:Once"$() appends src code to $LK,"~/Registry.CC"$ $FG,2$Once/User$FG$ tree, executed at next boot by first $FG,2$User$FG$ term. +$LK,"Once",A="MN:Once"$() appends src code to $LK,"~/Registry.ZC"$ $FG,2$Once/User$FG$ tree, executed at next boot by first $FG,2$User$FG$ term. At boot, $LK,"OnceExe",A="MN:OnceExe"$(), executes $FG,2$Once/System$FG$ tree, $LK,"SysOnceFlush",A="MN:SysOnceFlush"$()s it, executes $FG,2$Once/User$FG$ tree and $LK,"OnceFlush",A="MN:OnceFlush"$()s. diff --git a/src/Doc/PreProcessor.DD b/src/Doc/PreProcessor.DD index 6c8ac064..c2e9ad91 100755 --- a/src/Doc/PreProcessor.DD +++ b/src/Doc/PreProcessor.DD @@ -16,4 +16,4 @@ $FG,2$#ifaot,#ifjit $FG$Include code if in $FG,2$AOT$FG$ compiler mode. $FG,2$defined()$FG$ Is a function that can be used in expressions. $FG,2$#help_index$FG$, $FG,2$#help_file$FG$ See $LK,"Help System",A="FI:::/Doc/HelpSystem.DD"$. -See $LK,"PreProcessor",A="FF:::/Compiler/Lex.CC,KW_DEFINE"$. +See $LK,"PreProcessor",A="FF:::/Compiler/Lex.ZC,KW_DEFINE"$. diff --git a/src/Doc/Print.DD b/src/Doc/Print.DD index 4da760d3..d9a6609c 100755 --- a/src/Doc/Print.DD +++ b/src/Doc/Print.DD @@ -13,7 +13,7 @@ $FG,2$'/'$FG$ makes $FG,2$%Q$FG$ and $FG,2$%q$FG$ convert $FG,2$'%'$FG$ to $FG,2 $ID,-2$ : -$ID,2$For $FG,2$"%n"$FG$, $FG,2$"%d"$FG$ or $FG,2$"%u"$FG$, the causes thousands mode. $FG,2$"%h?n"$FG$ will pick a variable exponent multiples of three unit, while $FG,2$"%h-3n"$FG$ will display milli units or $FG,2$"%h6n"$FG$ will display mega units. The $FG,2$'k'$FG$ flag is always on for $FG,2$"%n"$FG$. See $LK,"::/Demo/Print.CC"$. +$ID,2$For $FG,2$"%n"$FG$, $FG,2$"%d"$FG$ or $FG,2$"%u"$FG$, the causes thousands mode. $FG,2$"%h?n"$FG$ will pick a variable exponent multiples of three unit, while $FG,2$"%h-3n"$FG$ will display milli units or $FG,2$"%h6n"$FG$ will display mega units. The $FG,2$'k'$FG$ flag is always on for $FG,2$"%n"$FG$. See $LK,"::/Demo/Print.ZC"$. For $FG,2$"%c"$FG$ or $FG,2$"%C"$FG$, the repeats the char that many times.$ID,-2$ @@ -66,7 +66,7 @@ $LK,"InStr",A="MN:InStr"$(U8 *format, ...) sends text of an $LK,"InFile",A="FF:: $LK,"XTalk",A="MN:XTalk"$(CTask *task, U8 *format, ...) and text to another task's input buffer. $LK,"XTalkStr",A="MN:XTalkStr"$(CTask *task, U8 *format, ...) sends text of an $LK,"InFile",A="FF:::/Doc/Glossary.DD,InFile"$ to the keyboard stream of another TASK but can also do mouse cmds. -$LK,"DocPrint",A="MN:DocPrint"$(CDoc *doc, U8 *format, ...) sends text to a document. You can buffer to a Doc and save it, providing the functionality of $FG,2$fprintf$FG$. See $LK,"::/Demo/Disk/FPrintF.CC"$. +$LK,"DocPrint",A="MN:DocPrint"$(CDoc *doc, U8 *format, ...) sends text to a document. You can buffer to a Doc and save it, providing the functionality of $FG,2$fprintf$FG$. See $LK,"::/Demo/Disk/FPrintF.ZC"$. $LK,"Sys",A="MN:Sys"$(U8 *format, ...) sends text to the $LK,"System Task",A="FF:::/Doc/Glossary.DD,System Task"$ to be compiled and run. $LK,"SysLog",A="MN:SysLog"$(U8 *format, ...) and $LK,"SysErr",A="MN:SysErr"$(U8 *format,...) send text to the $LK,"System Task",A="FF:::/Doc/Glossary.DD,System Task"$ to be displayed. @@ -79,9 +79,9 @@ $LK,"TextPrint",A="MN:TextPrint"$(CTask *task, I64 x, I64 y, I64 attr, U8 *forma $LK,"ExePrint",A="MN:ExePrint"$(U8 *format, ...) compiles and execute a string. Note: It returns the res of the last executed expression. -$LK,"Once",A="MN:Once"$(U8 *format, ...) Writes User code to $LK,"Registry",A="FI:~/Registry.CC"$ to be executed next boot. +$LK,"Once",A="MN:Once"$(U8 *format, ...) Writes User code to $LK,"Registry",A="FI:~/Registry.ZC"$ to be executed next boot. -$LK,"SysOnce",A="MN:SysOnce"$(U8 *format, ...) Writes System code to $LK,"Registry",A="FI:~/Registry.CC"$ to be executed next boot. +$LK,"SysOnce",A="MN:SysOnce"$(U8 *format, ...) Writes System code to $LK,"Registry",A="FI:~/Registry.ZC"$ to be executed next boot. $LK,"InPrint",A="MN:InPrint"$(I64 mS, U8 *format, ...) $LK,"PutChars",A="MN:PutChars"$()s one at a time with a delay. diff --git a/src/Doc/RedSea.DD b/src/Doc/RedSea.DD index 1aba0989..9d54ded3 100755 --- a/src/Doc/RedSea.DD +++ b/src/Doc/RedSea.DD @@ -14,7 +14,7 @@ public class CDirEntry //64-byte fixed-size U8 name[CDIR_FILENAME_LEN]; //See $LK,"char_bmp_filename",A="MN:char_bmp_filename"$, $LK,"FileNameCheck",A="MN:FileNameCheck"$ I64 clus; $HL,0$$FG,7$(blk)$FG,0$$HL,1$ //One sector per cluster. I64 size; //In bytes - CDate datetime; //See $LK,"DateTime",A="::/Doc/TimeDate.DD"$, $LK,"Implementation of DateTime",A="FI:::/Kernel/KDate.CC"$ + CDate datetime; //See $LK,"DateTime",A="::/Doc/TimeDate.DD"$, $LK,"Implementation of DateTime",A="FI:::/Kernel/KDate.ZC"$ }; public class CRedSeaBoot //RedSea is type FAT32 in partition table to fool BIOS. @@ -30,7 +30,7 @@ public class CRedSeaBoot //RedSea is type FAT32 in partition table to fool BIOS. U16 signature2; //0xAA55 }; $HL,0$ -See $LK,"::/Kernel/BlkDev/FileSysRedSea.CC"$ and $LK,"::/System/Boot/DiskISORedSea.CC"$. +See $LK,"::/Kernel/BlkDev/FileSysRedSea.ZC"$ and $LK,"::/System/Boot/DiskISORedSea.ZC"$. To replace ISO9660, make hard-drive partition image of a measured size and copy onto a CD/DVD starting at about sector 20, with EL TORITO booting. 512-byte sectors will be placed on top of 2048-byte CD/DVD sectors, so there will be four blocks per CD/DVD sector. diff --git a/src/Doc/Sprite.DD b/src/Doc/Sprite.DD index a472dc7d..777c49b8 100755 --- a/src/Doc/Sprite.DD +++ b/src/Doc/Sprite.DD @@ -1,7 +1,7 @@ $WW,1$A $LK,"CSprite",A="MN:CSprite"$ is an ordered list of $LK,"these",A="MN:SPT_END"$ elements, created with $FG,2$$FG$. Normally, they are packed together in a list and the address of the first is passed to routines. -See $LK,"::/Demo/Graphics/SpritePlot.CC"$, $LK,"::/Demo/Graphics/SpritePlot3D.CC"$, $LK,"::/Demo/Graphics/SpritePut.CC"$, $LK,"::/Demo/Graphics/SpriteRaw.CC"$ and $LK,"SpriteMeshEd",A="MN:SpriteMeshEd"$(). +See $LK,"::/Demo/Graphics/SpritePlot.ZC"$, $LK,"::/Demo/Graphics/SpritePlot3D.ZC"$, $LK,"::/Demo/Graphics/SpritePut.ZC"$, $LK,"::/Demo/Graphics/SpriteRaw.ZC"$ and $LK,"SpriteMeshEd",A="MN:SpriteMeshEd"$(). Be aware that copying $FG,2$SP$FG$, $FG,2$IB$FG$, or $FG,2$IS$FG$ entries with the clip results in duplicate entries with different nums. You can manually remove dups by editing with $FG,2$$FG$ and setting to the original num. -See $LK,"::/System/Gr/GrSpritePlot.CC",A="FL:::/System/Gr/GrSpritePlot.CC,1"$ for how CSprite are stored.$FG$ +See $LK,"::/System/Gr/GrSpritePlot.ZC",A="FL:::/System/Gr/GrSpritePlot.ZC,1"$ for how CSprite are stored.$FG$ diff --git a/src/Doc/StdOutTask.DD b/src/Doc/StdOutTask.DD index 19872140..2eb55b15 100755 --- a/src/Doc/StdOutTask.DD +++ b/src/Doc/StdOutTask.DD @@ -1 +1 @@ -$WW,1$There is one $LK,"CDoc",A="MN:CDoc"$ for the task's border: $FG,2$Fs->border_doc$FG$. There is a pair for the task's client area: $FG,2$Fs->put_doc$FG$ and $FG,2$Fs->display_doc$FG$. You can, optionally, do double buffering, otherwise $FG,2$Fs->put_doc$FG$ is the same as $FG,2$Fs->display_doc$FG$. See $LK,"::/Demo/Spy.CC"$. +$WW,1$There is one $LK,"CDoc",A="MN:CDoc"$ for the task's border: $FG,2$Fs->border_doc$FG$. There is a pair for the task's client area: $FG,2$Fs->put_doc$FG$ and $FG,2$Fs->display_doc$FG$. You can, optionally, do double buffering, otherwise $FG,2$Fs->put_doc$FG$ is the same as $FG,2$Fs->display_doc$FG$. See $LK,"::/Demo/Spy.ZC"$. diff --git a/src/Doc/Strategy.DD b/src/Doc/Strategy.DD index f0e8afa7..53a2114f 100755 --- a/src/Doc/Strategy.DD +++ b/src/Doc/Strategy.DD @@ -40,7 +40,7 @@ A three button mouse is like a leg you cannot put weight on. ZealOS just does ha * No distinction between $FG,2$thread$FG$, $FG,2$process$FG$ or $FG,2$task$FG$. -* The $LK,"Scheduler",A="FI:::/Kernel/Sched.CC"$ is for home systems. It is not preemptiove. Disk requests are not broken-up, so sharing is bad. It's wonderfully simple. +* The $LK,"Scheduler",A="FI:::/Kernel/Sched.ZC"$ is for home systems. It is not preemptiove. Disk requests are not broken-up, so sharing is bad. It's wonderfully simple. * $LK,"MultiCore",A="FI:::/Doc/MultiCore.DD"$ is done $FG,2$master/slave$FG$, instead of $FG,2$SMP$FG$. $FG,2$Core0$FG$ applications explicitly assigns jobs. Locks are present allowing multicore file, heap, and hardware access, though. diff --git a/src/Doc/TextBase.DD b/src/Doc/TextBase.DD index 8422d084..d4e9eec8 100755 --- a/src/Doc/TextBase.DD +++ b/src/Doc/TextBase.DD @@ -12,4 +12,4 @@ Bit 31 $LK,"Underline",A="MN:ATTRF_UNDERLINE"$ $LK,"GrUpdateTaskWin",A="MN:GrUpdateTaskWin"$() calls $LK,"DocUpdateTaskDocs",A="MN:DocUpdateTaskDocs"$() which calls $LK,"DocRecalc",A="MN:DocRecalc"$() where the document text is plotted into $LK,"gr.text_base",A="MN:CGrGlobals"$. Then, $LK,"GrUpdateTextBG",A="MN:GrUpdateTextBG"$() and $LK,"GrUpdateTextFG",A="MN:GrUpdateTextFG"$() render the $LK,"gr.text_base",A="MN:CGrGlobals"$ onto $LK,"gr.dc2",A="MN:CGrGlobals"$, a raw graphic bitmap. -See $LK,"::/Demo/Games/Maze.CC"$. +See $LK,"::/Demo/Games/Maze.ZC"$. diff --git a/src/Doc/Tips.DD b/src/Doc/Tips.DD index de347039..eea22c8c 100755 --- a/src/Doc/Tips.DD +++ b/src/Doc/Tips.DD @@ -8,7 +8,7 @@ $WW,1$$FG,5$$TX+CX,"Tips"$$FG$ * See $MA-X+PU,"Key Map",LM="KeyMap;View;\n"$ for a list of defined keys. Define your own keys in $LK,"MyPutKey",A="MN:MyPutKey"$(). See $LK,"Keyboard Devices",A="HI:Keyboard Devices/System"$. -* $FG,2$$FG$ maximizes a window. $FG,2$$FG$ closes AutoComplete. $FG,2$$FG$ brings back AutoComplete. $FG,2$$FG$ vertically tiles windows. $FG,2$$FG$ horizontally tiles windows. The $FG,2$ALT$FG$ keys are defined in $LK,"~/HomeKeyPlugIns.CC"$. You can customize them. +* $FG,2$$FG$ maximizes a window. $FG,2$$FG$ closes AutoComplete. $FG,2$$FG$ brings back AutoComplete. $FG,2$$FG$ vertically tiles windows. $FG,2$$FG$ horizontally tiles windows. The $FG,2$ALT$FG$ keys are defined in $LK,"~/HomeKeyPlugIns.ZC"$. You can customize them. * If you make changes to ZealOS files in your $FG,2$/Home$FG$ directory, generally you reboot to make them take effect. (You don't compile anything.) You should have two ZealOS partitions on your hard drive because a syntax error in a start-up file will make the partition unbootable. Boot to the second partition or boot to a standard ZealOS CD/DVD and use $LK,"Mount",A="MN:Mount"$() to mount your hard drive. @@ -21,23 +21,23 @@ $FG,2$Merge("C:/","D:/","+r+d");$FG$ to check your changes. * Use the PullDown menu at the top of the screen to learn commands, or for finding the keyboard controls to games. -* You can adjust the mouse movement rate by setting global variables in your start-up file. See $LK,"mouse scale",A="FF:~/HomeLocalize.CC,mouse_hard.scale"$. +* You can adjust the mouse movement rate by setting global variables in your start-up file. See $LK,"mouse scale",A="FF:~/HomeLocalize.ZC,mouse_hard.scale"$. -* You can set your local time zone by setting the $LK,"local_time_offset",A="MN:local_time_offset"$ global variable in a start-up file. Its units are $LK,"CDATE_FREQ",A="MN:CDATE_FREQ"$. See $LK,"local time",A="FF:~/HomeLocalize.CC,local_time"$. +* You can set your local time zone by setting the $LK,"local_time_offset",A="MN:local_time_offset"$ global variable in a start-up file. Its units are $LK,"CDATE_FREQ",A="MN:CDATE_FREQ"$. See $LK,"local time",A="FF:~/HomeLocalize.ZC,local_time"$. * $FG,2$$FG$ in the editor to reindent a $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ function or renumber an asm routine's local labels. * You can use $FG,2$filter_lines$FG$ in the editor text search form ($FG,2$$FG$) to temporarily display just lines near each match. A value of $FG,2$filter lines$FG$ set to $FG,2$5$FG$ will display lines within 5 lines of matches. Then, you can do another find to a different string and achieve a $FG,2$AND$FG$ search. When finished, press $FG,2$$FG$. -* You can recompile and reinstall the kernel with $LK,"BootHDIns",A="MN:BootHDIns"$(). You'll probably want to make a function for recompiling that uses the $LK,"In",A="MN:In"$() function to answer the config questions. See the technique $LK,"Config Strs",A="FL:::/Demo/AcctExample/TOS/TOSConfig.CC,1"$, $LK,"Update Funs",A="FL:::/Demo/AcctExample/TOS/TOSDistro.CC,1"$. +* You can recompile and reinstall the kernel with $LK,"BootHDIns",A="MN:BootHDIns"$(). You'll probably want to make a function for recompiling that uses the $LK,"In",A="MN:In"$() function to answer the config questions. See the technique $LK,"Config Strs",A="FL:::/Demo/AcctExample/TOS/TOSConfig.ZC,1"$, $LK,"Update Funs",A="FL:::/Demo/AcctExample/TOS/TOSDistro.ZC,1"$. * $LK,"Scale2Mem",A="MN:Scale2Mem"$(min,max,limit=2*1024*1024*1024) can be used for config questions when recompiling. The $LK,"BootHDIns",A="MN:BootHDIns"$() config prompts accept expressions, not just numbers. The default disk cache is $FG,2$Scale2Mem(0x80000,0x8000000)$FG$. -* You can permanently disable $FG,2$AutoComplete$FG$ commenting-out $LK,"ACInit",A="FF:/Home/HomeSys.CC,ACInit"$() in $LK,"~/HomeSys.CC",A="FF:/Home/HomeSys.CC,ACInit"$. +* You can permanently disable $FG,2$AutoComplete$FG$ commenting-out $LK,"ACInit",A="FF:/Home/HomeSys.ZC,ACInit"$() in $LK,"~/HomeSys.ZC",A="FF:/Home/HomeSys.ZC,ACInit"$. * Boolean expressions $BK,1$not$BK,0$ in $FG,2$if$FG$ statements don't have short circuit logic and are compiled inefficiently. -* You can use $LK,"progress1",A="MN:progress1"$-$LK,"progress4",A="MN:progress4"$ in your programs for whatever you like. They're just global variables that are shown on the wallpaper. The original intent was to indicate how far along operations were. There's no coordination, so different apps might interfere. They're most often used for debugging--just values easily viewed. See $LK,"::/Demo/Progress.CC"$. +* You can use $LK,"progress1",A="MN:progress1"$-$LK,"progress4",A="MN:progress4"$ in your programs for whatever you like. They're just global variables that are shown on the wallpaper. The original intent was to indicate how far along operations were. There's no coordination, so different apps might interfere. They're most often used for debugging--just values easily viewed. See $LK,"::/Demo/Progress.ZC"$. * Use $LK,"DocMax",A="MN:DocMax"$() to adjust the size of the cmd line buf. It counts $LK,"CDoc",A="MN:CDoc"$ entries, not lines. @@ -53,7 +53,7 @@ $FG,2$Merge("C:/","D:/","+r+d");$FG$ to check your changes. * You can use $LK,"Option",A="MN:Option"$($LK,"OPTf_WARN_DUP_TYPES",A="MN:OPTf_WARN_DUP_TYPES"$, ON) to find unnecessary local variable type statements. -* $LK,"Option",A="MN:Option"$($LK,"OPTf_ECHO",A="MN:OPTf_ECHO"$, ON) can be placed in $LK,"StartOS.CC",A="FI:::/StartOS.CC"$ to echo start-up scripts. +* $LK,"Option",A="MN:Option"$($LK,"OPTf_ECHO",A="MN:OPTf_ECHO"$, ON) can be placed in $LK,"StartOS.ZC",A="FI:::/StartOS.ZC"$ to echo start-up scripts. * Use $LK,"Plain",A="MN:Plain"$() to edit a plain text file. You'll need this if your file has $FG,2$$$$FG$'s. Use the $LK,"ToDolDoc",A="MN:ToDolDoc"$() utility to convert plain text to DolDoc's by doubling $FG,2$$$$FG$'s. @@ -67,7 +67,7 @@ $FG,2$Merge("C:/","D:/","+r+d");$FG$ to check your changes. * Use $FG,2$$FG$ to enter an extended ASCII char. -* Use $FG,2$$FG$ to toggle between the $LK,"VGA ROM Font",A="FF:::/Kernel/KMain.CC,SYS_FONT_PTR:2"$ and $LK,"Std Font",A="FI:::/Kernel/FontStd.CC"$. +* Use $FG,2$$FG$ to toggle between the $LK,"VGA ROM Font",A="FF:::/Kernel/KMain.ZC,SYS_FONT_PTR:2"$ and $LK,"Std Font",A="FI:::/Kernel/FontStd.ZC"$. * Use $FG,2$$FG$ will capture the screen as a sprite on the clip. You can save the cmd line doc as text with $FG,2$$FG$. @@ -75,7 +75,7 @@ $FG,2$Merge("C:/","D:/","+r+d");$FG$ to check your changes. * You can eye-dropper colors in the $FG,2$$FG$ sprite editor by pressing $FG,2$'c'$FG$. Press $FG,2$'t'$FG$ for transparent. -* There are handy functions--$FG,2$F(),R(),FD()$FG$ and $FG,2$RD()$FG$ which are defined in $LK,"~/HomeWrappers.CC"$. You are encouraged to change them and add more. They will perform find-and-replace operations across multiple files. The $FG,2$+l$FG$ flag is particularly useful since it limits to whole labels. The $FG,2$+lb$FG$ and $FG,2$+la$FG$ flags limit to whole labels just before or after. You are encouraged to add or modify handy wrapper functions to make cmd line operations easier. +* There are handy functions--$FG,2$F(),R(),FD()$FG$ and $FG,2$RD()$FG$ which are defined in $LK,"~/HomeWrappers.ZC"$. You are encouraged to change them and add more. They will perform find-and-replace operations across multiple files. The $FG,2$+l$FG$ flag is particularly useful since it limits to whole labels. The $FG,2$+lb$FG$ and $FG,2$+la$FG$ flags limit to whole labels just before or after. You are encouraged to add or modify handy wrapper functions to make cmd line operations easier. * When using $LK,"Find",A="MN:Find"$() while modifying code, work from the bottom-up so that line numbers are correct. If you work top-down, then inserting or deleting lines causes the lower file links to become incorrect. @@ -83,7 +83,7 @@ $FG,2$Merge("C:/","D:/","+r+d");$FG$ to check your changes. * When using $FG,2$$FG$ to insert links in documents, you can usually leave the $FG,2$Tag Text$FG$ blank and it will be filled-in automatically based on other entries. -* There is a feature of the precompiler that allows code to be executed in the middle of compilation and data inserted into the compilation stream. Click here for an example: $LK,"#exe {",A="FF:::/Kernel/KMain.CC,#exe {"$. +* There is a feature of the precompiler that allows code to be executed in the middle of compilation and data inserted into the compilation stream. Click here for an example: $LK,"#exe {",A="FF:::/Kernel/KMain.ZC,#exe {"$. * If you output to the cmd line and wish to allow users to scroll around and view data, you can use $LK,"View",A="MN:View"$(). @@ -93,7 +93,7 @@ $FG,2$Merge("C:/","D:/","+r+d");$FG$ to check your changes. * You can reactivate $FG,2$AutoComplete$FG$ after closing it by pressing $FG,2$$FG$ or $FG,2$$FG$. -* $FG,2$$FG$ to toggle to/from plain text just the $LK,"CDoc",A="MN:CDoc"$ cmd under the cursor. See $LK,"::/Demo/DolDoc/TextDemo.CC"$. +* $FG,2$$FG$ to toggle to/from plain text just the $LK,"CDoc",A="MN:CDoc"$ cmd under the cursor. See $LK,"::/Demo/DolDoc/TextDemo.ZC"$. * If you toggle to plain text when you are working with graphics in a document, you can add duplicate entries for sprites by entering a $FG,2$$$SP...$$$FG$ cmd with the same num. @@ -107,7 +107,7 @@ $FG,2$Merge("C:/","D:/","+r+d");$FG$ to check your changes. * $LK,"GrFloodFill",A="MN:GrFloodFill"$() is slow. $LK,"GrRect",A="MN:GrRect"$() is fast. -* You can customize the $FG,2$wallpaper$FG$. See $LK,"::/Demo/Graphics/WallPaperFish.CC"$. +* You can customize the $FG,2$wallpaper$FG$. See $LK,"::/Demo/Graphics/WallPaperFish.ZC"$. * Your RAM disks will not be reformatted when you reboot if the memory location has not changed and it finds the disk intact. @@ -115,9 +115,9 @@ $FG,2$Merge("C:/","D:/","+r+d");$FG$ to check your changes. * Using a sub-int array, $FG,2$i.u8[3]$FG$, for example, will force a local variable to non-reg. -* You can delete the $FG,4$~/Registry.CC$FG$ file. The policy is that deleting it will restore defaults. It is a text doc, if you want to edit it. See $LK,"RegDefault",A="MN:RegDefault"$, $LK,"RegAppend",A="MN:RegAppend"$, $LK,"RegExe",A="MN:RegExe"$. Be careful of tree indentations. +* You can delete the $FG,4$~/Registry.ZC$FG$ file. The policy is that deleting it will restore defaults. It is a text doc, if you want to edit it. See $LK,"RegDefault",A="MN:RegDefault"$, $LK,"RegAppend",A="MN:RegAppend"$, $LK,"RegExe",A="MN:RegExe"$. Be careful of tree indentations. -* Study $LK,"::/System/Utils/MemRep.CC"$ and $LK,"WallPaper",A="MN:WallPaper"$() to learn how the system resources are put together. +* Study $LK,"::/System/Utils/MemRep.ZC"$ and $LK,"WallPaper",A="MN:WallPaper"$() to learn how the system resources are put together. * The editor's sel-text mechanism allows for disjoint portions of sel text. This is a feature, not a bug -- you can cut-and-paste disjoint text. @@ -139,6 +139,6 @@ $FG,2$Merge("C:/","D:/","+r+d");$FG$ to check your changes. * With $FG,2$start$FG$/$FG,2$end$FG$, common trailing code is fast. Common leading code is slow.$FG$ -* The first line of the $MA-X+PU,"Psalmody",LM="#include \"::/Apps/Psalmody/Run\"\n"$ $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ song files is a comment with a category recognized by $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$(). The categories are $FG,2$"no nothing"$FG$, $FG,2$"has words"$FG$, $FG,2$"has graphics"$FG$, or $FG,2$"special"$FG$. The third character in the song comment is a digit rating number, shown in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$(). You can set the song rating in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.CC,JukeBox"$() by pressing $FG,2$0$FG$-$FG,2$9$FG$. You can press $FG,2$$FG$ to delete songs. +* The first line of the $MA-X+PU,"Psalmody",LM="#include \"::/Apps/Psalmody/Run\"\n"$ $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ song files is a comment with a category recognized by $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$(). The categories are $FG,2$"no nothing"$FG$, $FG,2$"has words"$FG$, $FG,2$"has graphics"$FG$, or $FG,2$"special"$FG$. The third character in the song comment is a digit rating number, shown in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$(). You can set the song rating in $LK,"JukeBox",A="FF:::/Apps/Psalmody/JukeBox.ZC,JukeBox"$() by pressing $FG,2$0$FG$-$FG,2$9$FG$. You can press $FG,2$$FG$ to delete songs. * $FG,8$"Linux" is a trademark owned by Linus Torvalds.$FG$ \ No newline at end of file diff --git a/src/Doc/Transform.DD b/src/Doc/Transform.DD index 73d5d8b8..89d905be 100755 --- a/src/Doc/Transform.DD +++ b/src/Doc/Transform.DD @@ -1,13 +1,13 @@ $WW,1$$LK,"CDC",A="MN:CDC"$'s have a 4x4 matrix for rotating, scaling, skewing and shifting in 3 dimensions. To make the graphics routines use the transform, you must set the $LK,"DCF_TRANSFORMATION",A="MN:DCF_TRANSFORMATION"$ flag. -The matrix consists of ints that have been scaled 32 bits ($LK,"GR_SCALE",A="MN:GR_SCALE"$). See $LK,"::/Demo/Lectures/FixedPoint.CC"$ to learn why. +The matrix consists of ints that have been scaled 32 bits ($LK,"GR_SCALE",A="MN:GR_SCALE"$). See $LK,"::/Demo/Lectures/FixedPoint.ZC"$ to learn why. -See $LK,"Mat4x4IdentEqu",A="MN:Mat4x4IdentEqu"$(), $LK,"Mat4x4IdentNew",A="MN:Mat4x4IdentNew"$(), $LK,"Mat4x4Equ",A="MN:Mat4x4Equ"$() and $LK,"Mat4x4New",A="MN:Mat4x4New"$(). See $LK,"Mat4x4RotX",A="MN:Mat4x4RotX"$(), $LK,"Mat4x4RotY",A="MN:Mat4x4RotY"$(), $LK,"Mat4x4RotZ",A="MN:Mat4x4RotZ"$() and $LK,"Mat4x4Scale",A="MN:Mat4x4Scale"$() to rotate about axes and scale. Combine them with $LK,"Mat4x4MulMat4x4Equ",A="MN:Mat4x4MulMat4x4Equ"$()/$LK,"Mat4x4MulMat4x4New",A="MN:Mat4x4MulMat4x4New"$() and assign them to the $LK,"CDC",A="MN:CDC"$.$FG,2$dc$FG$ with $LK,"DCMat4x4Set",A="MN:DCMat4x4Set"$(). See $LK,"::/Demo/Graphics/Box.CC"$. +See $LK,"Mat4x4IdentEqu",A="MN:Mat4x4IdentEqu"$(), $LK,"Mat4x4IdentNew",A="MN:Mat4x4IdentNew"$(), $LK,"Mat4x4Equ",A="MN:Mat4x4Equ"$() and $LK,"Mat4x4New",A="MN:Mat4x4New"$(). See $LK,"Mat4x4RotX",A="MN:Mat4x4RotX"$(), $LK,"Mat4x4RotY",A="MN:Mat4x4RotY"$(), $LK,"Mat4x4RotZ",A="MN:Mat4x4RotZ"$() and $LK,"Mat4x4Scale",A="MN:Mat4x4Scale"$() to rotate about axes and scale. Combine them with $LK,"Mat4x4MulMat4x4Equ",A="MN:Mat4x4MulMat4x4Equ"$()/$LK,"Mat4x4MulMat4x4New",A="MN:Mat4x4MulMat4x4New"$() and assign them to the $LK,"CDC",A="MN:CDC"$.$FG,2$dc$FG$ with $LK,"DCMat4x4Set",A="MN:DCMat4x4Set"$(). See $LK,"::/Demo/Graphics/Box.ZC"$. You can rotate single points using $LK,"Mat4x4MulXYZ",A="MN:Mat4x4MulXYZ"$(). -The 4th dimension allows a neat trick where you can place pos shifts (translations), into the matrix and $LK,"Mat4x4MulMat4x4Equ",A="MN:Mat4x4MulMat4x4Equ"$/$LK,"Mat4x4MulMat4x4New",A="MN:Mat4x4MulMat4x4New"$ them to combine rotation/shift operations. Normally, you can't combine pos shift operations. See $LK,"Mat4x4TranslationEqu",A="MN:Mat4x4TranslationEqu"$() and $LK,"::/Demo/Graphics/Transform.CC"$. +The 4th dimension allows a neat trick where you can place pos shifts (translations), into the matrix and $LK,"Mat4x4MulMat4x4Equ",A="MN:Mat4x4MulMat4x4Equ"$/$LK,"Mat4x4MulMat4x4New",A="MN:Mat4x4MulMat4x4New"$ them to combine rotation/shift operations. Normally, you can't combine pos shift operations. See $LK,"Mat4x4TranslationEqu",A="MN:Mat4x4TranslationEqu"$() and $LK,"::/Demo/Graphics/Transform.ZC"$. Finally, $LK,"CDC",A="MN:CDC"$'s have an $FG,2$x$FG$, $FG,2$y$FG$ and $FG,2$z$FG$ which is an additional shift (translation). -The transformation is implemented as a callback on the $LK,"CDC",A="MN:CDC"$'s $FG,2$transform()$FG$ member. The default $FG,2$transform()$FG$ callback is $LK,"DCTransform",A="MN:DCTransform"$(). See $LK,"::/Demo/Games/Talons.CC"$ or $LK,"::/Demo/Games/CastleFrankenstein.CC"$ to see how to change the $FG,2$transform()$FG$ callback for foreshortening. +The transformation is implemented as a callback on the $LK,"CDC",A="MN:CDC"$'s $FG,2$transform()$FG$ member. The default $FG,2$transform()$FG$ callback is $LK,"DCTransform",A="MN:DCTransform"$(). See $LK,"::/Demo/Games/Talons.ZC"$ or $LK,"::/Demo/Games/CastleFrankenstein.ZC"$ to see how to change the $FG,2$transform()$FG$ callback for foreshortening. diff --git a/src/Doc/Welcome.DD b/src/Doc/Welcome.DD index a2f29a12..8cf6b891 100755 --- a/src/Doc/Welcome.DD +++ b/src/Doc/Welcome.DD @@ -13,45 +13,45 @@ It's a kayak, not a Titanic -- it will crash if you do something wrong. You qui Conventional thinking is "failure is not an option" for general purpose operating systems. Since this OS is used in addition to Windows or Linux, however, failure is an option -- just use Windows or Linux if you can't do something. We cherry-pick what it will and won't do, to make it maximally beautiful. The following applications more or less form a basis that spans the range of use that ZealOS is intended for: -$LK,"/Demo/Games/BattleLines.CC",A="FI:::/Demo/Games/BattleLines.CC"$ -$LK,"/Demo/Games/BigGuns.CC",A="FI:::/Demo/Games/BigGuns.CC"$ -$LK,"/Demo/Games/BlackDiamond.CC",A="FI:::/Demo/Games/BlackDiamond.CC"$ -$LK,"/Demo/Games/BomberGolf.CC",A="FI:::/Demo/Games/BomberGolf.CC"$ -$LK,"/Demo/Games/CastleFrankenstein.CC",A="FI:::/Demo/Games/CastleFrankenstein.CC"$ -$LK,"/Demo/Games/CharDemo.CC",A="FI:::/Demo/Games/CharDemo.CC"$ -$LK,"/Demo/Games/CircleTrace.CC",A="FI:::/Demo/Games/CircleTrace.CC"$ -$LK,"/Demo/Games/Collision.CC",A="FI:::/Demo/Games/Collision.CC"$ -$LK,"/Demo/Games/Digits.CC",A="FI:::/Demo/Games/Digits.CC"$ -$LK,"/Demo/Games/DunGen.CC",A="FI:::/Demo/Games/DunGen.CC"$ -$LK,"/Demo/Games/Talons.CC",A="FI:::/Demo/Games/Talons.CC"$ -$LK,"/Demo/Games/ElephantWalk.CC",A="FI:::/Demo/Games/ElephantWalk.CC"$ -$LK,"/Demo/Games/FlapBat.CC",A="FI:::/Demo/Games/FlapBat.CC"$ -$LK,"/Demo/Games/FlatTops.CC",A="FI:::/Demo/Games/FlatTops.CC"$ -$LK,"/Demo/Games/Halogen.CC",A="FI:::/Demo/Games/Halogen.CC"$ -$LK,"/Demo/Games/MassSpring.CC",A="FI:::/Demo/Games/MassSpring.CC"$ -$LK,"/Demo/Games/Maze.CC",A="FI:::/Demo/Games/Maze.CC"$ -$LK,"/Demo/Games/RainDrops.CC",A="FI:::/Demo/Games/RainDrops.CC"$ -$LK,"/Demo/Games/RawHide.CC",A="FI:::/Demo/Games/RawHide.CC"$ -$LK,"/Demo/Games/Rocket.CC",A="FI:::/Demo/Games/Rocket.CC"$ -$LK,"/Demo/Games/RocketScience.CC",A="FI:::/Demo/Games/RocketScience.CC"$ -$LK,"/Demo/Games/Squirt.CC",A="FI:::/Demo/Games/Squirt.CC"$ -$LK,"/Demo/Games/TheDead.CC",A="FI:::/Demo/Games/TheDead.CC"$ -$LK,"/Demo/Games/TicTacToe.CC",A="FI:::/Demo/Games/TicTacToe.CC"$ -$LK,"/Demo/Games/TreeCheckers.CC",A="FI:::/Demo/Games/TreeCheckers.CC"$ -$LK,"/Demo/Games/Varoom.CC",A="FI:::/Demo/Games/Varoom.CC"$ -$LK,"/Demo/Games/Wenceslas.CC",A="FI:::/Demo/Games/Wenceslas.CC"$ -$LK,"/Demo/Games/Whap.CC",A="FI:::/Demo/Games/Whap.CC"$ -$LK,"/Demo/Games/Zing.CC",A="FI:::/Demo/Games/Zing.CC"$ -$LK,"/Demo/Games/ZoneOut.CC",A="FI:::/Demo/Games/ZoneOut.CC"$ -$LK,"/Apps/Psalmody/Examples/childish.CC",A="FI:::/Apps/Psalmody/Examples/childish.CC"$ -$LK,"/Apps/Psalmody/Examples/night.CC",A="FI:::/Apps/Psalmody/Examples/night.CC"$ -$LK,"/Apps/Psalmody/Examples/prosper.CC",A="FI:::/Apps/Psalmody/Examples/prosper.CC"$ +$LK,"/Demo/Games/BattleLines.ZC",A="FI:::/Demo/Games/BattleLines.ZC"$ +$LK,"/Demo/Games/BigGuns.ZC",A="FI:::/Demo/Games/BigGuns.ZC"$ +$LK,"/Demo/Games/BlackDiamond.ZC",A="FI:::/Demo/Games/BlackDiamond.ZC"$ +$LK,"/Demo/Games/BomberGolf.ZC",A="FI:::/Demo/Games/BomberGolf.ZC"$ +$LK,"/Demo/Games/CastleFrankenstein.ZC",A="FI:::/Demo/Games/CastleFrankenstein.ZC"$ +$LK,"/Demo/Games/CharDemo.ZC",A="FI:::/Demo/Games/CharDemo.ZC"$ +$LK,"/Demo/Games/CircleTrace.ZC",A="FI:::/Demo/Games/CircleTrace.ZC"$ +$LK,"/Demo/Games/Collision.ZC",A="FI:::/Demo/Games/Collision.ZC"$ +$LK,"/Demo/Games/Digits.ZC",A="FI:::/Demo/Games/Digits.ZC"$ +$LK,"/Demo/Games/DunGen.ZC",A="FI:::/Demo/Games/DunGen.ZC"$ +$LK,"/Demo/Games/Talons.ZC",A="FI:::/Demo/Games/Talons.ZC"$ +$LK,"/Demo/Games/ElephantWalk.ZC",A="FI:::/Demo/Games/ElephantWalk.ZC"$ +$LK,"/Demo/Games/FlapBat.ZC",A="FI:::/Demo/Games/FlapBat.ZC"$ +$LK,"/Demo/Games/FlatTops.ZC",A="FI:::/Demo/Games/FlatTops.ZC"$ +$LK,"/Demo/Games/Halogen.ZC",A="FI:::/Demo/Games/Halogen.ZC"$ +$LK,"/Demo/Games/MassSpring.ZC",A="FI:::/Demo/Games/MassSpring.ZC"$ +$LK,"/Demo/Games/Maze.ZC",A="FI:::/Demo/Games/Maze.ZC"$ +$LK,"/Demo/Games/RainDrops.ZC",A="FI:::/Demo/Games/RainDrops.ZC"$ +$LK,"/Demo/Games/RawHide.ZC",A="FI:::/Demo/Games/RawHide.ZC"$ +$LK,"/Demo/Games/Rocket.ZC",A="FI:::/Demo/Games/Rocket.ZC"$ +$LK,"/Demo/Games/RocketScience.ZC",A="FI:::/Demo/Games/RocketScience.ZC"$ +$LK,"/Demo/Games/Squirt.ZC",A="FI:::/Demo/Games/Squirt.ZC"$ +$LK,"/Demo/Games/TheDead.ZC",A="FI:::/Demo/Games/TheDead.ZC"$ +$LK,"/Demo/Games/TicTacToe.ZC",A="FI:::/Demo/Games/TicTacToe.ZC"$ +$LK,"/Demo/Games/TreeCheckers.ZC",A="FI:::/Demo/Games/TreeCheckers.ZC"$ +$LK,"/Demo/Games/Varoom.ZC",A="FI:::/Demo/Games/Varoom.ZC"$ +$LK,"/Demo/Games/Wenceslas.ZC",A="FI:::/Demo/Games/Wenceslas.ZC"$ +$LK,"/Demo/Games/Whap.ZC",A="FI:::/Demo/Games/Whap.ZC"$ +$LK,"/Demo/Games/Zing.ZC",A="FI:::/Demo/Games/Zing.ZC"$ +$LK,"/Demo/Games/ZoneOut.ZC",A="FI:::/Demo/Games/ZoneOut.ZC"$ +$LK,"/Apps/Psalmody/Examples/childish.ZC",A="FI:::/Apps/Psalmody/Examples/childish.ZC"$ +$LK,"/Apps/Psalmody/Examples/night.ZC",A="FI:::/Apps/Psalmody/Examples/night.ZC"$ +$LK,"/Apps/Psalmody/Examples/prosper.ZC",A="FI:::/Apps/Psalmody/Examples/prosper.ZC"$ Two things to know about ZealOS are that $UL,1$tasks$UL,0$ have $LK,"MAlloc",A="MN:MAlloc"$/$LK,"Free",A="MN:Free"$ heap memory, not applications, and tasks have compiler symbol tables that persist at a scope like environment variables in other operating systems, and the symbols can include functions. With $FG,2$ZealOS$FG$, the command line feeds right into the $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ compiler, line by line, and it places code into memory it $LK,"MAlloc",A="MN:MAlloc"$()s. The compiler is paused at the command line, waiting for input. Naturally, you $FG,2$#include$FG$ a program to load it into memory and, usually, start it. -During the boot process, many files get $LK,"compiled",A="FI:::/StartOS.CC"$ before you have access to the command line. (Don't worry, booting takes only two seconds.) All the header declarations for the operating system are compiled and are available for use in your programs without needing to $FG,2$#include $FG$them. Everything is truly compiled to native $FG,2$$TX,"x86_64",HTML="http://en.wikipedia.org/wiki/Amd64#AMD64"$$FG$ machine code, nothing is $FG,2$interpreted$FG$ and there is no $FG,2$byte code$FG$. +During the boot process, many files get $LK,"compiled",A="FI:::/StartOS.ZC"$ before you have access to the command line. (Don't worry, booting takes only two seconds.) All the header declarations for the operating system are compiled and are available for use in your programs without needing to $FG,2$#include $FG$them. Everything is truly compiled to native $FG,2$$TX,"x86_64",HTML="http://en.wikipedia.org/wiki/Amd64#AMD64"$$FG$ machine code, nothing is $FG,2$interpreted$FG$ and there is no $FG,2$byte code$FG$. Statements at the global scope -- outside the scope of functions -- execute immediately. There is no $FG,2$main()$FG$ function. Instead, you give meaningful names to what would be $FG,2$main()$FG$ functions and you invoke them by calling them with a statement in the global scope, usually at the bottom of your file. @@ -73,7 +73,7 @@ Once Terry was no longer using standard C/C++ syntax, he decided to change every There are no object files in ZealOS and, normally, you don't make executable files either, but you can. That's known as $LK,"Ahead-of-Time",A="FF:::/Doc/Glossary.DD,AOT Compile Mode"$ compilation. Instead, you $LK,"Just in Time",A="FF:::/Doc/Glossary.DD,JIT Compile Mode"$ compile. -Tasks have no priority and are never removed from the queue. Instead, they often poll whatever they are waiting on and swap-out. (Swapping tasks takes half a microsecond and does not involve disk activity or memory maps.) See $LK,"Scheduler",A="FL:::/Kernel/Sched.CC,1"$. Polling keeps it simple. It might be a problem if you had lots of tasks busy, which rarely happens on a home computer. The order of the tasks in the queue determines front-to-back window order. +Tasks have no priority and are never removed from the queue. Instead, they often poll whatever they are waiting on and swap-out. (Swapping tasks takes half a microsecond and does not involve disk activity or memory maps.) See $LK,"Scheduler",A="FL:::/Kernel/Sched.ZC,1"$. Polling keeps it simple. It might be a problem if you had lots of tasks busy, which rarely happens on a home computer. The order of the tasks in the queue determines front-to-back window order. The $FG,2$FAT32$FG$ filesystem is supported to makes exchanging files with a dual booted other operating system easy and there is the simple, 64-bit ZealOS $LK,"RedSea",A="FI:::/Doc/RedSea.DD"$ filesystem. The $LK,"RedSea",A="FI:::/Doc/RedSea.DD"$ has allocation bitmap for clusters and all files are stored contiguously. You can't grow files. @@ -85,9 +85,9 @@ ZealOS is for hobbyist programmers on single user (at a time) home computers, no There is no distinction between the terms $FG,2$task$FG$, $FG,2$process$FG$ or $FG,2$thread$FG$. All have a task record, $LK,"CTask",A="MN:CTask"$, pointed to by the $FG,2$FS$FG$ segment register and are accessed with $FG,4$Fs->$FG$ while $FG,4$Gs->$FG$ points to a $LK,"CCPU",A="MN:CCPU"$ for the current CPU core. Each task can have just one window, but a task can have children with windows. (The segment registers are just used as extra registers -- there is nothing segmented about ZealOS' memory.) It is approximately the case that $FG,2$ZealOS$FG$ is multi-threading, single-processing. -In $FG,2$ZealOS$FG$, $LK,"System Task",A="FF:::/Doc/Glossary.DD,System Task"$$FG$ refers to the father of all tasks. It's never supposed to die. Since tasks inherit the symbols of parents, system-wide stuff is associated with $FG,2$System$FG$. Its heap is like kernel memory in other operating systems. Since $FG,2$System$FG$ is immortal, it's safe to alloc objects, not tied to any mortal task, from $FG,2$System$FG$'s heap. It stays in a server mode, taking requests, so you can ask it to $FG,2$#include$FG$ something, placing that code system-wide. A funny story is that originally Terry Davis called it the $FG,2$root$FG$ task and even had a $FG,2$/Root$FG$ directory :-) $FG,2$System$FG$ executes $LK,"::/StartOS.CC"$ at boot time. +In $FG,2$ZealOS$FG$, $LK,"System Task",A="FF:::/Doc/Glossary.DD,System Task"$$FG$ refers to the father of all tasks. It's never supposed to die. Since tasks inherit the symbols of parents, system-wide stuff is associated with $FG,2$System$FG$. Its heap is like kernel memory in other operating systems. Since $FG,2$System$FG$ is immortal, it's safe to alloc objects, not tied to any mortal task, from $FG,2$System$FG$'s heap. It stays in a server mode, taking requests, so you can ask it to $FG,2$#include$FG$ something, placing that code system-wide. A funny story is that originally Terry Davis called it the $FG,2$root$FG$ task and even had a $FG,2$/Root$FG$ directory :-) $FG,2$System$FG$ executes $LK,"::/StartOS.ZC"$ at boot time. -For easy back-ups, place everything you author in your $FG,2$/Home$FG$ directory and subdirectories. Then, use $LK,"CopyTree",A="MN:CopyTree"$(). That should make upgrading easy, too. Customizable start-up scripts go in your $FG,2$/Home$FG$ directory. The default start-up scripts are in the root directory. Copy the start-up files you wish to customize into $FG,2$/Home$FG$ and modify them. See $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$. You can make your own distro that includes everything and is a bootable live CD with $LK,"::/Misc/DoDistro.CC"$. +For easy back-ups, place everything you author in your $FG,2$/Home$FG$ directory and subdirectories. Then, use $LK,"CopyTree",A="MN:CopyTree"$(). That should make upgrading easy, too. Customizable start-up scripts go in your $FG,2$/Home$FG$ directory. The default start-up scripts are in the root directory. Copy the start-up files you wish to customize into $FG,2$/Home$FG$ and modify them. See $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$. You can make your own distro that includes everything and is a bootable live CD with $LK,"::/Misc/DoDistro.ZC"$. Typically, your usage pattern through the day will be repeatedly left or right clicking on filenames in a cmd line $LK,"Dir",A="MN:Dir"$() listing. You left-click files to edit them and right-click to $FG,2$#include$FG$ them. To begin a project, type $LK,"Ed",A="MN:Ed"$("filename");, supplying a filename. You can also run programs with $FG,2$$FG$ when in the editor. $FG,2$$FG$ to save and exit the file. You'll need to do a new $LK,"Dir",A="MN:Dir"$() cmd, periodically, so make a macro on your PersonalMenu. Access your PersonalMenu by pressing $FG,2$$FG$, cursoring until you are on top of it and pressing $FG,2$$FG$. @@ -102,13 +102,13 @@ $FG,2$$FG$ closes AutoComplete. $FG,2$$FG$ brings back AutoComplete. $FG,2$$FG$ vertically tiles windows. $FG,2$$FG$ horizontally tiles windows. -The $FG,2$ALT$FG$ keys are defined in $LK,"~/HomeKeyPlugIns.CC"$. You can customize them. +The $FG,2$ALT$FG$ keys are defined in $LK,"~/HomeKeyPlugIns.ZC"$. You can customize them. $FG,2$$FG$ new terminal window. $FG,2$$FG$ switches to the next window. $FG,2$$FG$ kills a window. -$LK,"Find",A="MN:Find"$() is your best friend. There's a wrapper function called $LK,"F",A="MN:F"$() in your $FG,2$~/HomeWrappers.CC$FG$ file. Feel free to make wrapper functions for functions you use often and customize the args. By the way, $LK,"Find",A="MN:Find"$() or $LK,"R",A="MN:R"$() can be used to replace strings across multiple files. You can access $LK,"Find",A="MN:Find"$() using $FG,2$$FG$. +$LK,"Find",A="MN:Find"$() is your best friend. There's a wrapper function called $LK,"F",A="MN:F"$() in your $FG,2$~/HomeWrappers.ZC$FG$ file. Feel free to make wrapper functions for functions you use often and customize the args. By the way, $LK,"Find",A="MN:Find"$() or $LK,"R",A="MN:R"$() can be used to replace strings across multiple files. You can access $LK,"Find",A="MN:Find"$() using $FG,2$$FG$. As you browse code, use the $FG,2$AutoComplete$FG$ window to look-up functions, etc. $FG,2$$FG$ (or whatever number) to follow a symbol to it's source. You can browse deeper and deeper. You go back with $FG,2$$FG$. diff --git a/src/Doc/WhyNotMore.DD b/src/Doc/WhyNotMore.DD index 0981a573..454e7fe0 100755 --- a/src/Doc/WhyNotMore.DD +++ b/src/Doc/WhyNotMore.DD @@ -2,11 +2,11 @@ $WW,1$$FG,5$$TX+CX,"Why Not More?"$$FG$ If a feature cannot be made to work correctly and consistently, professional companies usually remove the feature. Because PC hardware is so diverse, getting things to work on all people's computers is really difficult. For one thing, you practically have to own all the different hardware to write drivers for it. If a company wanted to sell a PC operating system, they would offer a warranty and, therefore, could not get away with amateur behavior. ZealOS absolutely requires 64-bit computers, so we leave behind much trouble, but plenty remains. -The PCI bus interface is what modern hardware uses. Before PCI, life was simple and devices used I/O ports. After studying $LK,"PCI Interrupts",A="FI:::/Demo/Lectures/PCIInterrupts.CC"$ and attempting to do a HDAudio driver, Terry Davis came to realize that modern PCI devices require ten times more code and he cannot even come close to making them work on everyone's machine because with PCI devices there are several models to worry about, unlike with the older ISA bus devices which can be done with one driver. +The PCI bus interface is what modern hardware uses. Before PCI, life was simple and devices used I/O ports. After studying $LK,"PCI Interrupts",A="FI:::/Demo/Lectures/PCIInterrupts.ZC"$ and attempting to do a HDAudio driver, Terry Davis came to realize that modern PCI devices require ten times more code and he cannot even come close to making them work on everyone's machine because with PCI devices there are several models to worry about, unlike with the older ISA bus devices which can be done with one driver. -Currently, ZealOS has no PCI drivers beyond AHCI and networking. Most drivers use I/O ports and operate in ISA bus mode. At this point, we only have one driver for each type of device and it is delightfully simple that way. ZealOS has one $LK,"keyboard",A="FI:::/Kernel/SerialDev/Keyboard.CC"$ driver, one $LK,"mouse",A="FI:::/Kernel/SerialDev/Mouse.CC"$ driver, one $LK,"ATA hard drive",A="FI:::/Kernel/BlkDev/DiskAHCI.CC"$ driver, one $LK,"ATAPI CD/DVD",A="FI:::/Kernel/BlkDev/DiskAHCI.CC"$ driver, one $LK,"32-bit color high-res VBE graphics",A="FI:::/System/Gr/GrScreen.CC"$ video driver and one $LK,"PC Speaker",A="MN:Sound"$ driver. We use the $LK,"PIT timer",A="MN:TimerInit"$ and $LK,"PIC Interrupt Controller",A="MN:IntPICInit"$. We use IRQ0 for timer, IRQ1 for keyboard, and IRQ12 for mouse. If IRQ12 is not firing, we are able to poll the mouse. +Currently, ZealOS has no PCI drivers beyond AHCI and networking. Most drivers use I/O ports and operate in ISA bus mode. At this point, we only have one driver for each type of device and it is delightfully simple that way. ZealOS has one $LK,"keyboard",A="FI:::/Kernel/SerialDev/Keyboard.ZC"$ driver, one $LK,"mouse",A="FI:::/Kernel/SerialDev/Mouse.ZC"$ driver, one $LK,"ATA hard drive",A="FI:::/Kernel/BlkDev/DiskAHCI.ZC"$ driver, one $LK,"ATAPI CD/DVD",A="FI:::/Kernel/BlkDev/DiskAHCI.ZC"$ driver, one $LK,"32-bit color high-res VBE graphics",A="FI:::/System/Gr/GrScreen.ZC"$ video driver and one $LK,"PC Speaker",A="MN:Sound"$ driver. We use the $LK,"PIT timer",A="MN:TimerInit"$ and $LK,"PIC Interrupt Controller",A="MN:IntPICInit"$. We use IRQ0 for timer, IRQ1 for keyboard, and IRQ12 for mouse. If IRQ12 is not firing, we are able to poll the mouse. -In the CPU department, ZealOS has state of the art 64-bit $LK,"long mode",A="FI:::/Kernel/KStart64.CC"$ with $LK,"multicore",A="FI:::/Kernel/MultiProc.CC"$ support. We use the $LK,"APIC",A="MN:MPAPICInit"$ and start-up $LK,"multicore",A="MN:Core0StartMP"$ operation. +In the CPU department, ZealOS has state of the art 64-bit $LK,"long mode",A="FI:::/Kernel/KStart64.ZC"$ with $LK,"multicore",A="FI:::/Kernel/MultiProc.ZC"$ support. We use the $LK,"APIC",A="MN:MPAPICInit"$ and start-up $LK,"multicore",A="MN:Core0StartMP"$ operation. Terry Davis made an incredible accomplishment by getting it to work on practically everyone's computer as long as it is 64-bit and they run inside VMware, QEMU or VirtualBox. diff --git a/src/Doc/Widget.DD b/src/Doc/Widget.DD index a524dc4e..0c2209e3 100755 --- a/src/Doc/Widget.DD +++ b/src/Doc/Widget.DD @@ -39,4 +39,4 @@ $FG,5$Escape$FG$ For macro's, send an $FG,2$$FG$ char to exit before runnin $FG,5$Refresh Data$FG$ updates $FG,2$$$DA...$$$FG$ entry continuously. -$FG,5$Html Link$FG$ stores a link which will be embedded if you generate a html version of a document with $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$. +$FG,5$Html Link$FG$ stores a link which will be embedded if you generate a html version of a document with $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$. diff --git a/src/Doc/ZealC.DD b/src/Doc/ZealC.DD index cdedff5c..4da86617 100755 --- a/src/Doc/ZealC.DD +++ b/src/Doc/ZealC.DD @@ -1,6 +1,6 @@ $WW,1$$FG,5$$TX+CX,"ZealC"$$FG$ -ZealC is a fork of HolyC. The only changes to Terry's HolyC compiler are reformatting, label renames, bugfixes, and additions. Little to no functionality is removed, and nothing is fundamentally altered. Code incompatibilities are usually due to Kernel, System, or user methods changing in name and/or functionality, rather than any differences in the Compiler. See the $LK,"Conversion Script",A="FI:::/System/Utils/ConversionScript.CC"$ for help porting HolyC code to ZealC. +ZealC is a fork of HolyC. The only changes to Terry's HolyC compiler are reformatting, label renames, bugfixes, and additions. Little to no functionality is removed, and nothing is fundamentally altered. Code incompatibilities are usually due to Kernel, System, or user methods changing in name and/or functionality, rather than any differences in the Compiler. See the $LK,"Conversion Script",A="FI:::/System/Utils/ConversionScript.ZC"$ for help porting HolyC code to ZealC. * See $LK,"::/Doc/CompilerOverview.DD"$. @@ -118,7 +118,7 @@ $FG$$ID,-2$ * Allows ranges like "$FG,2$case 4...7:$FG$" in $FG,2$switch$FG$ statements. -* A no case number causes next higher int case in $FG,2$switch$FG$ statements. See $LK,"::/Demo/NullCase.CC"$. +* A no case number causes next higher int case in $FG,2$switch$FG$ statements. See $LK,"::/Demo/NullCase.ZC"$. $ID,2$$FG,2$I64 i; @@ -133,7 +133,7 @@ for (i = 0; i < 20; i++) case: "Eleven\n"; break; //One plus prev case. }$FG$$ID,-2$ -* Switch statements can be nestled with a single switch expression! This is known as a "sub_switch" statement. $FG,2$start$FG$/$FG,2$end$FG$ are used to group cases. Don't goto out of, throw an exception out of, or return out of the $FG,2$start$FG$ front porch area. See $LK,"::/Demo/SubSwitch.CC"$. +* Switch statements can be nestled with a single switch expression! This is known as a "sub_switch" statement. $FG,2$start$FG$/$FG,2$end$FG$ are used to group cases. Don't goto out of, throw an exception out of, or return out of the $FG,2$start$FG$ front porch area. See $LK,"::/Demo/SubSwitch.ZC"$. $ID,2$$FG,2$I64 i; @@ -201,7 +201,7 @@ $FG$$ID,-2$ * There is no question-colon operator. -* ZealOS $LK,"operator precedence",A="FF:::/Compiler/CInit.CC,cmp.binary_ops"$ +* ZealOS $LK,"operator precedence",A="FF:::/Compiler/CInit.ZC,cmp.binary_ops"$ $FG,2$`$FG$, $FG,2$>>$FG$, $FG,2$<<$FG$ $FG,2$*$FG$, $FG,2$/$FG$, $FG,2$%$FG$ $FG,2$&$FG$ @@ -219,7 +219,7 @@ $FG$$ID,-2$ * You can use $LK,"Option",A="MN:Option"$($LK,"OPTf_WARN_DUP_TYPES",A="MN:OPTf_WARN_DUP_TYPES"$, ON) to find duplicate local variable type statements. -* With the $FG,2$#exe{}$FG$ feature in your src code, you can place programs that insert text into the stream of code being compiled. See $LK,"#exe {}",A="FF:::/Kernel/KMain.CC,#exe {"$ for an example where the date/time and compile-time prompting for configuration data is placed into a program. $LK,"StreamPrint",A="MN:StreamPrint"$() places text into a src program stream following the conclusion of the $FG,2$#exe{}$FG$ block. +* With the $FG,2$#exe{}$FG$ feature in your src code, you can place programs that insert text into the stream of code being compiled. See $LK,"#exe {}",A="FF:::/Kernel/KMain.ZC,#exe {"$ for an example where the date/time and compile-time prompting for configuration data is placed into a program. $LK,"StreamPrint",A="MN:StreamPrint"$() places text into a src program stream following the conclusion of the $FG,2$#exe{}$FG$ block. * No $FG,2$#define$FG$ functions exist (Terry was not a fan) @@ -231,25 +231,25 @@ $FG$$ID,-2$ * "$FG,2$$$$FG$" is an escape character. Two dollar signs signify an ordinary $$. See $LK,"DolDoc",A="FI:::/Doc/DolDocOverview.DD"$. In $FG,2$asm$FG$ or $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ code, it also refers to the instruction's address or the offset in a $FG,2$class$FG$ definition. -* $FG,2$union$FG$ is more like a class, so you don't reference it with a $FG,2$union$FG$ label after you define it. Some common unions are declared in $LK,"KernelA.HH",A="MN:U16"$ for 1,2,4 and 8 byte objects. If you place a type in front of a union declaration, that is the type when used by itself. See $LK,"::/Demo/SubIntAccess.CC"$. +* $FG,2$union$FG$ is more like a class, so you don't reference it with a $FG,2$union$FG$ label after you define it. Some common unions are declared in $LK,"KernelA.HH",A="MN:U16"$ for 1,2,4 and 8 byte objects. If you place a type in front of a union declaration, that is the type when used by itself. See $LK,"::/Demo/SubIntAccess.ZC"$. -* $FG,2$class$FG$ member variables can have meta data. $FG,2$format$FG$ and $FG,2$data$FG$ are two meta data types now used. All compiler structures are saved and you can access the compiler's info about classes and variables. See $LK,"::/Demo/ClassMeta.CC"$ and $LK,"DocForm",A="MN:DocForm"$(). +* $FG,2$class$FG$ member variables can have meta data. $FG,2$format$FG$ and $FG,2$data$FG$ are two meta data types now used. All compiler structures are saved and you can access the compiler's info about classes and variables. See $LK,"::/Demo/ClassMeta.ZC"$ and $LK,"DocForm",A="MN:DocForm"$(). -* There is a keyword $FG,2$lastclass$FG$ you use as a default arg. It is set to the class name of the prev arg. See $LK,"::/Demo/LastClass.CC"$, $LK,"ClassRep",A="MN:ClassRep"$(), $LK,"DocForm",A="MN:DocForm"$() and $LK,"::/Demo/Disk/BlkDevRep.CC"$. +* There is a keyword $FG,2$lastclass$FG$ you use as a default arg. It is set to the class name of the prev arg. See $LK,"::/Demo/LastClass.ZC"$, $LK,"ClassRep",A="MN:ClassRep"$(), $LK,"DocForm",A="MN:DocForm"$() and $LK,"::/Demo/Disk/BlkDevRep.ZC"$. -* See $LK,"::/Demo/Exceptions.CC"$. $FG,2$try{} catch{}$FG$ and $FG,2$throw$FG$ are different from C++. $FG,2$throw$FG$ is a function with an 8-byte or less char arg. The char string passed in $FG,2$throw()$FG$ can be accessed from within a $FG,2$catch{}$FG$ using the $FG,2$Fs->except_ch$FG$. Within a $FG,2$catch {}$FG$ block, set the variable $FG,2$Fs->catch_except$FG$ to $FG,2$TRUE$FG$ if you want to terminate the search for a handler. Use $LK,"PutExcept",A="MN:PutExcept"$() as a handler, if you like. +* See $LK,"::/Demo/Exceptions.ZC"$. $FG,2$try{} catch{}$FG$ and $FG,2$throw$FG$ are different from C++. $FG,2$throw$FG$ is a function with an 8-byte or less char arg. The char string passed in $FG,2$throw()$FG$ can be accessed from within a $FG,2$catch{}$FG$ using the $FG,2$Fs->except_ch$FG$. Within a $FG,2$catch {}$FG$ block, set the variable $FG,2$Fs->catch_except$FG$ to $FG,2$TRUE$FG$ if you want to terminate the search for a handler. Use $LK,"PutExcept",A="MN:PutExcept"$() as a handler, if you like. * A function is available similar to $FG,2$sizeof$FG$ which provides the offset of a member of a class. It's called $FG,2$offset$FG$. You place the class name and member inside as in $FG,2$offset(classname.membername)$FG$. It has nothing to do with 16-bit code. Both $FG,2$sizeof$FG$ and $FG,2$offset$FG$ only accept one level of member variables. That is, you can't do $FG,2$sizeof(classname.membername.submembername)$FG$.$FG$ * There is no $FG,2$continue$FG$ statement. Use $FG,2$goto$FG$. -* $FG,2$lock{}$FG$ can be used to apply asm $FG,2$LOCK$FG$ prefixes to code for safe multicore read-modify-write accesses. The code bracked with have $FG,2$LOCK$FG$ asm prefix's applied to relevant insts within. It's a little shoddy. See $LK,"::/Demo/MultiCore/Lock.CC"$. +* $FG,2$lock{}$FG$ can be used to apply asm $FG,2$LOCK$FG$ prefixes to code for safe multicore read-modify-write accesses. The code bracked with have $FG,2$LOCK$FG$ asm prefix's applied to relevant insts within. It's a little shoddy. See $LK,"::/Demo/MultiCore/Lock.ZC"$. * There is a function called $LK,"MSize",A="MN:MSize"$() which gives the size of an object alloced off the heap. For larger size allocations, the system rounds-up to a power of two, so $FG,2$MSize()$FG$ lets you know the real size and you can take full advantage of it. * You CAN $LK,"Free",A="MN:Free"$() a $FG,2$NULL$FG$ pointer. Useful variants of $LK,"MAlloc",A="MN:MAlloc"$() can be found $LK,"Here",A="MN:CAlloc"$. Each task has a heap and you can $FG,2$MAlloc$FG$ and $FG,2$Free$FG$ off-of other task's heaps, or make an independent heap with $LK,"HeapCtrlInit",A="MN:HeapCtrlInit"$(). See $LK,"HeapLog",A="MN:HeapLog"$() for an example. -* The stack does not grow because virtual mem is not used. It's recommended to allocate large local variables from the heap. You can change $LK,"MEM_DEFAULT_STACK",A="MN:MEM_DEFAULT_STACK"$ and recompile $FG,2$Kernel$FG$ or request more when doing a $LK,"Spawn",A="MN:Spawn"$(). You can use $LK,"CallStackGrow",A="MN:CallStackGrow"$(), but it's odd. See $LK,"::/Demo/StackGrow.CC"$. +* The stack does not grow because virtual mem is not used. It's recommended to allocate large local variables from the heap. You can change $LK,"MEM_DEFAULT_STACK",A="MN:MEM_DEFAULT_STACK"$ and recompile $FG,2$Kernel$FG$ or request more when doing a $LK,"Spawn",A="MN:Spawn"$(). You can use $LK,"CallStackGrow",A="MN:CallStackGrow"$(), but it's odd. See $LK,"::/Demo/StackGrow.ZC"$. * Only one base class is allowed. diff --git a/src/Home/DoDistro.CC b/src/Home/DoDistro.ZC similarity index 90% rename from src/Home/DoDistro.CC rename to src/Home/DoDistro.ZC index 3a3655d9..b8b4738c 100755 --- a/src/Home/DoDistro.CC +++ b/src/Home/DoDistro.ZC @@ -15,7 +15,7 @@ U0 MakeMyISO(U8 *_out_iso_filename) return; } - DocTreeFWrite("/System/Define.CC", "LineRep", "DefinePrint(\"DD_ZEALOS_LOC\",\"%,d\");\n", line_count); + DocTreeFWrite("/System/Define.ZC", "LineRep", "DefinePrint(\"DD_ZEALOS_LOC\",\"%,d\");\n", line_count); DefinePrint("DD_ZEALOS_LOC", "%,d", line_count); "Total LOC:%12,d\n\n", line_count; @@ -24,7 +24,7 @@ U0 MakeMyISO(U8 *_out_iso_filename) Del(out_iso_filename); // Generate all HTML docs before ISO creation. - PopUpRunFile("::/Home/HtmlGen.CC"); + PopUpRunFile("::/Home/HtmlGen.ZC"); ProgressBarsReset; progress1_max = 14; @@ -42,7 +42,7 @@ U0 MakeMyISO(U8 *_out_iso_filename) progress1++; CopyTree("/Home", "/Distro/Home"); progress1++; - Del("/Distro/Home/Registry.CC"); + Del("/Distro/Home/Registry.ZC"); CopyTree("/System", "/Distro/System"); progress1++; CopyTree("/Apps", "/Distro/Apps"); @@ -79,4 +79,4 @@ U0 MakeMyISO(U8 *_out_iso_filename) MakeMyISO("/Tmp/MyDistro.ISO.C"); -// Study the account examples $LK,"Config Strs",A="FL:::/Demo/AcctExample/TOS/TOSConfig.CC,1"$, $LK,"Update Funs",A="FL:::/Demo/AcctExample/TOS/TOSDistro.CC,1"$. +// Study the account examples $LK,"Config Strs",A="FL:::/Demo/AcctExample/TOS/TOSConfig.ZC,1"$, $LK,"Update Funs",A="FL:::/Demo/AcctExample/TOS/TOSDistro.ZC,1"$. diff --git a/src/Home/HtmlGen.CC b/src/Home/HtmlGen.ZC similarity index 93% rename from src/Home/HtmlGen.CC rename to src/Home/HtmlGen.ZC index b6fe3f18..0453a0c6 100755 --- a/src/Home/HtmlGen.CC +++ b/src/Home/HtmlGen.ZC @@ -1,17 +1,17 @@ /* This converts the entire OS into HTML. -See $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$. +See $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$. Notice that an entry like $$TX,"GOOGLE",HTML="http://www.google.com"$$ will be converted to text in the html with an html link. -Terry cheated by hardcoding $LK,"www.templeos.org",A="FF:::/Demo/ToHtmlToTXTDemo/ToHtml.CC,www.templeos.org"$ as the website +Terry cheated by hardcoding $LK,"www.templeos.org",A="FF:::/Demo/ToHtmlToTXTDemo/ToHtml.ZC,www.templeos.org"$ as the website for $LK,"ZealOS Links",A="MN:LK_FILE"$. Why don't you copy -$LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$ to your /Home directory +$LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$ to your /Home directory and modify it? You are welcome to link to http://www.templeos.org if you want file that come on the ZealOS distribution. -You can pass html meta data as args to $LK,"ToHtml",A="FF:::/Demo/ToHtmlToTXTDemo/ToHtml.CC,ToHtml"$(). +You can pass html meta data as args to $LK,"ToHtml",A="FF:::/Demo/ToHtmlToTXTDemo/ToHtml.ZC,ToHtml"$(). */ Cd(__DIR__);; diff --git a/src/Home/K.CC b/src/Home/K.ZC similarity index 90% rename from src/Home/K.CC rename to src/Home/K.ZC index 8efef7f3..545a4185 100755 --- a/src/Home/K.CC +++ b/src/Home/K.ZC @@ -30,8 +30,8 @@ if (YorN) "PopUp(\"#include \\\"DoDistro\\\";;" "if (DriveIsWritable)" "{" - "Del(\\\"~/Registry.CC\\\");" - "Del(\\\"~/MakeHome.CC\\\");" + "Del(\\\"~/Registry.ZC\\\");" + "Del(\\\"~/MakeHome.ZC\\\");" "OutU16(0x4004, 0x3400);" "}\");"); diff --git a/src/Home/Net/Drivers/E1000.CC b/src/Home/Net/Drivers/E1000.ZC similarity index 100% rename from src/Home/Net/Drivers/E1000.CC rename to src/Home/Net/Drivers/E1000.ZC diff --git a/src/Home/Net/Drivers/PCNet.CC b/src/Home/Net/Drivers/PCNet.ZC similarity index 99% rename from src/Home/Net/Drivers/PCNet.CC rename to src/Home/Net/Drivers/PCNet.ZC index 5f25ed4b..65826a15 100755 --- a/src/Home/Net/Drivers/PCNet.CC +++ b/src/Home/Net/Drivers/PCNet.ZC @@ -2,7 +2,7 @@ Author: TomAwezome Driver is based on: - - minexew's ShrineOS PCNet.CC implementation + - minexew's ShrineOS PCNet implementation - OSDev AMD_PCNET documentation - AMD PCnet(TM)-PCI datasheet - any other useful sources. diff --git a/src/Home/Net/Drivers/Run.CC b/src/Home/Net/Drivers/Run.ZC similarity index 100% rename from src/Home/Net/Drivers/Run.CC rename to src/Home/Net/Drivers/Run.ZC diff --git a/src/Home/Net/Drivers/VirtIONet.CC b/src/Home/Net/Drivers/VirtIONet.ZC similarity index 100% rename from src/Home/Net/Drivers/VirtIONet.CC rename to src/Home/Net/Drivers/VirtIONet.ZC diff --git a/src/Home/Net/Load.CC b/src/Home/Net/Load.ZC similarity index 100% rename from src/Home/Net/Load.CC rename to src/Home/Net/Load.ZC diff --git a/src/Home/Net/Programs/Gopher.CC b/src/Home/Net/Programs/Gopher.ZC similarity index 98% rename from src/Home/Net/Programs/Gopher.CC rename to src/Home/Net/Programs/Gopher.ZC index bda9fed9..01842f6a 100755 --- a/src/Home/Net/Programs/Gopher.CC +++ b/src/Home/Net/Programs/Gopher.ZC @@ -329,7 +329,7 @@ MemSetI64(gopher_associations, "GopherDlPrompt", 256); gopher_associations['0'] = "GopherTextView"; gopher_associations['1'] = "GopherMenu"; gopher_associations['7'] = "GopherQueryPrompt"; -/* Include this file from your Net/Load.CC, then add more associations */ +/* Include this file from your Net/Load.ZC, then add more associations */ DocMax; diff --git a/src/Home/Net/Programs/TCPChatClient.CC b/src/Home/Net/Programs/TCPChatClient.ZC similarity index 100% rename from src/Home/Net/Programs/TCPChatClient.CC rename to src/Home/Net/Programs/TCPChatClient.ZC diff --git a/src/Home/Net/Programs/TCPChatServer.CC b/src/Home/Net/Programs/TCPChatServer.ZC similarity index 100% rename from src/Home/Net/Programs/TCPChatServer.CC rename to src/Home/Net/Programs/TCPChatServer.ZC diff --git a/src/Home/Net/Programs/UDPChat.CC b/src/Home/Net/Programs/UDPChat.ZC similarity index 100% rename from src/Home/Net/Programs/UDPChat.CC rename to src/Home/Net/Programs/UDPChat.ZC diff --git a/src/Home/Net/Protocols/ARP.CC b/src/Home/Net/Protocols/ARP.ZC similarity index 100% rename from src/Home/Net/Protocols/ARP.CC rename to src/Home/Net/Protocols/ARP.ZC diff --git a/src/Home/Net/Protocols/DHCP.CC b/src/Home/Net/Protocols/DHCP.ZC similarity index 100% rename from src/Home/Net/Protocols/DHCP.CC rename to src/Home/Net/Protocols/DHCP.ZC diff --git a/src/Home/Net/Protocols/DNS.CC b/src/Home/Net/Protocols/DNS.ZC similarity index 100% rename from src/Home/Net/Protocols/DNS.CC rename to src/Home/Net/Protocols/DNS.ZC diff --git a/src/Home/Net/Protocols/Ethernet.CC b/src/Home/Net/Protocols/Ethernet.ZC similarity index 100% rename from src/Home/Net/Protocols/Ethernet.CC rename to src/Home/Net/Protocols/Ethernet.ZC diff --git a/src/Home/Net/Protocols/ICMP.CC b/src/Home/Net/Protocols/ICMP.ZC similarity index 100% rename from src/Home/Net/Protocols/ICMP.CC rename to src/Home/Net/Protocols/ICMP.ZC diff --git a/src/Home/Net/Protocols/IPV4.CC b/src/Home/Net/Protocols/IPV4.ZC similarity index 100% rename from src/Home/Net/Protocols/IPV4.CC rename to src/Home/Net/Protocols/IPV4.ZC diff --git a/src/Home/Net/Protocols/Sockets.CC b/src/Home/Net/Protocols/Sockets.ZC similarity index 100% rename from src/Home/Net/Protocols/Sockets.CC rename to src/Home/Net/Protocols/Sockets.ZC diff --git a/src/Home/Net/Protocols/TCP/MakeTCP.CC b/src/Home/Net/Protocols/TCP/MakeTCP.ZC similarity index 75% rename from src/Home/Net/Protocols/TCP/MakeTCP.CC rename to src/Home/Net/Protocols/TCP/MakeTCP.ZC index 652da877..e2512559 100755 --- a/src/Home/Net/Protocols/TCP/MakeTCP.CC +++ b/src/Home/Net/Protocols/TCP/MakeTCP.ZC @@ -1,4 +1,4 @@ #include "Protocols/TCP/TCP.HH" #include "Protocols/TCP/TCPTree" -#include "Protocols/TCP/TCP.CC" +#include "Protocols/TCP/TCP.ZC" #include "Protocols/TCP/TCPHandler" diff --git a/src/Home/Net/Protocols/TCP/TCP.CC b/src/Home/Net/Protocols/TCP/TCP.ZC similarity index 100% rename from src/Home/Net/Protocols/TCP/TCP.CC rename to src/Home/Net/Protocols/TCP/TCP.ZC diff --git a/src/Home/Net/Protocols/TCP/TCPHandler.CC b/src/Home/Net/Protocols/TCP/TCPHandler.ZC similarity index 100% rename from src/Home/Net/Protocols/TCP/TCPHandler.CC rename to src/Home/Net/Protocols/TCP/TCPHandler.ZC diff --git a/src/Home/Net/Protocols/TCP/TCPTree.CC b/src/Home/Net/Protocols/TCP/TCPTree.ZC similarity index 100% rename from src/Home/Net/Protocols/TCP/TCPTree.CC rename to src/Home/Net/Protocols/TCP/TCPTree.ZC diff --git a/src/Home/Net/Protocols/UDP/MakeUDP.CC b/src/Home/Net/Protocols/UDP/MakeUDP.ZC similarity index 67% rename from src/Home/Net/Protocols/UDP/MakeUDP.CC rename to src/Home/Net/Protocols/UDP/MakeUDP.ZC index 1b530158..94f58fc7 100755 --- a/src/Home/Net/Protocols/UDP/MakeUDP.CC +++ b/src/Home/Net/Protocols/UDP/MakeUDP.ZC @@ -1,3 +1,3 @@ #include "Protocols/UDP/UDP.HH" #include "Protocols/UDP/UDPTree" -#include "Protocols/UDP/UDP.CC" +#include "Protocols/UDP/UDP.ZC" diff --git a/src/Home/Net/Protocols/UDP/UDP.CC b/src/Home/Net/Protocols/UDP/UDP.ZC similarity index 100% rename from src/Home/Net/Protocols/UDP/UDP.CC rename to src/Home/Net/Protocols/UDP/UDP.ZC diff --git a/src/Home/Net/Protocols/UDP/UDPTree.CC b/src/Home/Net/Protocols/UDP/UDPTree.ZC similarity index 100% rename from src/Home/Net/Protocols/UDP/UDPTree.CC rename to src/Home/Net/Protocols/UDP/UDPTree.ZC diff --git a/src/Home/Net/Start.CC b/src/Home/Net/Start.ZC similarity index 100% rename from src/Home/Net/Start.CC rename to src/Home/Net/Start.ZC diff --git a/src/Home/Net/Tests/ARPTest.CC b/src/Home/Net/Tests/ARPTest.ZC similarity index 100% rename from src/Home/Net/Tests/ARPTest.CC rename to src/Home/Net/Tests/ARPTest.ZC diff --git a/src/Home/Net/Tests/DHCPTest0.CC b/src/Home/Net/Tests/DHCPTest0.ZC similarity index 100% rename from src/Home/Net/Tests/DHCPTest0.CC rename to src/Home/Net/Tests/DHCPTest0.ZC diff --git a/src/Home/Net/Tests/DHCPTest1.CC b/src/Home/Net/Tests/DHCPTest1.ZC similarity index 100% rename from src/Home/Net/Tests/DHCPTest1.CC rename to src/Home/Net/Tests/DHCPTest1.ZC diff --git a/src/Home/Net/Tests/DHCPTest2.CC b/src/Home/Net/Tests/DHCPTest2.ZC similarity index 92% rename from src/Home/Net/Tests/DHCPTest2.CC rename to src/Home/Net/Tests/DHCPTest2.ZC index 44342668..ebe95664 100755 --- a/src/Home/Net/Tests/DHCPTest2.CC +++ b/src/Home/Net/Tests/DHCPTest2.ZC @@ -14,7 +14,7 @@ U0 DHCPTest() if (ipv4_globals.local_ip != 0) { "\nThis test will only work on unconfigured network.\n"; - "To force for testing, comment out $FG,0$NetConfigure;$FG$ in $LK,"Run.CC",A="FF:C:/Home/Net/Run.CC,NetConfigure"$.\n\n"; + "To force for testing, comment out $FG,0$NetConfigure;$FG$ in $LK,"Run.ZC",A="FF:C:/Home/Net/Run.ZC,NetConfigure"$.\n\n"; return; } diff --git a/src/Home/Net/Tests/DNSTest.CC b/src/Home/Net/Tests/DNSTest.ZC similarity index 100% rename from src/Home/Net/Tests/DNSTest.CC rename to src/Home/Net/Tests/DNSTest.ZC diff --git a/src/Home/Net/Tests/EthernetTest.CC b/src/Home/Net/Tests/EthernetTest.ZC similarity index 100% rename from src/Home/Net/Tests/EthernetTest.CC rename to src/Home/Net/Tests/EthernetTest.ZC diff --git a/src/Home/Net/Tests/HostTest0.CC b/src/Home/Net/Tests/HostTest0.ZC similarity index 100% rename from src/Home/Net/Tests/HostTest0.CC rename to src/Home/Net/Tests/HostTest0.ZC diff --git a/src/Home/Net/Tests/HostTest1.CC b/src/Home/Net/Tests/HostTest1.ZC similarity index 100% rename from src/Home/Net/Tests/HostTest1.CC rename to src/Home/Net/Tests/HostTest1.ZC diff --git a/src/Home/Net/Tests/ICMPTest.CC b/src/Home/Net/Tests/ICMPTest.ZC similarity index 100% rename from src/Home/Net/Tests/ICMPTest.CC rename to src/Home/Net/Tests/ICMPTest.ZC diff --git a/src/Home/Net/Tests/IPV4Test.CC b/src/Home/Net/Tests/IPV4Test.ZC similarity index 100% rename from src/Home/Net/Tests/IPV4Test.CC rename to src/Home/Net/Tests/IPV4Test.ZC diff --git a/src/Home/Net/Tests/PCNetTest.CC b/src/Home/Net/Tests/PCNetTest.ZC similarity index 100% rename from src/Home/Net/Tests/PCNetTest.CC rename to src/Home/Net/Tests/PCNetTest.ZC diff --git a/src/Home/Net/Tests/PCP.CC b/src/Home/Net/Tests/PCP.ZC similarity index 100% rename from src/Home/Net/Tests/PCP.CC rename to src/Home/Net/Tests/PCP.ZC diff --git a/src/Home/Net/Tests/TCPEchoClient.CC b/src/Home/Net/Tests/TCPEchoClient.ZC similarity index 100% rename from src/Home/Net/Tests/TCPEchoClient.CC rename to src/Home/Net/Tests/TCPEchoClient.ZC diff --git a/src/Home/Net/Tests/TCPEchoServer.CC b/src/Home/Net/Tests/TCPEchoServer.ZC similarity index 100% rename from src/Home/Net/Tests/TCPEchoServer.CC rename to src/Home/Net/Tests/TCPEchoServer.ZC diff --git a/src/Home/Net/Tests/TCPTest0.CC b/src/Home/Net/Tests/TCPTest0.ZC similarity index 100% rename from src/Home/Net/Tests/TCPTest0.CC rename to src/Home/Net/Tests/TCPTest0.ZC diff --git a/src/Home/Net/Tests/TCPTest1.CC b/src/Home/Net/Tests/TCPTest1.ZC similarity index 100% rename from src/Home/Net/Tests/TCPTest1.CC rename to src/Home/Net/Tests/TCPTest1.ZC diff --git a/src/Home/Net/Tests/TCPTest2.CC b/src/Home/Net/Tests/TCPTest2.ZC similarity index 100% rename from src/Home/Net/Tests/TCPTest2.CC rename to src/Home/Net/Tests/TCPTest2.ZC diff --git a/src/Home/Net/Tests/UDPSocketTest0.CC b/src/Home/Net/Tests/UDPSocketTest0.ZC similarity index 100% rename from src/Home/Net/Tests/UDPSocketTest0.CC rename to src/Home/Net/Tests/UDPSocketTest0.ZC diff --git a/src/Home/Net/Tests/UDPSocketTest1.CC b/src/Home/Net/Tests/UDPSocketTest1.ZC similarity index 100% rename from src/Home/Net/Tests/UDPSocketTest1.CC rename to src/Home/Net/Tests/UDPSocketTest1.ZC diff --git a/src/Home/Net/Tests/UDPSocketTest2.CC b/src/Home/Net/Tests/UDPSocketTest2.ZC similarity index 100% rename from src/Home/Net/Tests/UDPSocketTest2.CC rename to src/Home/Net/Tests/UDPSocketTest2.ZC diff --git a/src/Home/Net/Tests/UDPTest0.CC b/src/Home/Net/Tests/UDPTest0.ZC similarity index 100% rename from src/Home/Net/Tests/UDPTest0.CC rename to src/Home/Net/Tests/UDPTest0.ZC diff --git a/src/Home/Net/Tests/UDPTest1.CC b/src/Home/Net/Tests/UDPTest1.ZC similarity index 100% rename from src/Home/Net/Tests/UDPTest1.CC rename to src/Home/Net/Tests/UDPTest1.ZC diff --git a/src/Home/Net/Utilities/BST.CC b/src/Home/Net/Utilities/BST.ZC similarity index 100% rename from src/Home/Net/Utilities/BST.CC rename to src/Home/Net/Utilities/BST.ZC diff --git a/src/Home/Net/Utilities/JSON/JSON.CC b/src/Home/Net/Utilities/JSON/JSON.ZC similarity index 100% rename from src/Home/Net/Utilities/JSON/JSON.CC rename to src/Home/Net/Utilities/JSON/JSON.ZC diff --git a/src/Home/Net/Utilities/Net.HH b/src/Home/Net/Utilities/Net.HH index 61101864..677f37ac 100755 --- a/src/Home/Net/Utilities/Net.HH +++ b/src/Home/Net/Utilities/Net.HH @@ -20,9 +20,9 @@ #define IP_ADDRESS_LENGTH 4 -/* NICs reroute PCI interrupts to software. See $LK,"PCNet",A="FF:C:/Home/Net/Drivers/PCNet.CC,irq = "$. +/* NICs reroute PCI interrupts to software. See $LK,"PCNet",A="FF:C:/Home/Net/Drivers/PCNet.ZC,irq = "$. Net Handler interrupt is generated whenever an entry is - pushed to the NetQueue. See $LK,"NetHandler",A="FF:C:/Home/Net/Utilities/NetHandler.CC,I_NETHANDLER"$. */ + pushed to the NetQueue. See $LK,"NetHandler",A="FF:C:/Home/Net/Utilities/NetHandler.ZC,I_NETHANDLER"$. */ DefinePrint("I_NETHANDLER", "%d", IntEntryAlloc); diff --git a/src/Home/Net/Utilities/NetHandler.CC b/src/Home/Net/Utilities/NetHandler.ZC similarity index 100% rename from src/Home/Net/Utilities/NetHandler.CC rename to src/Home/Net/Utilities/NetHandler.ZC diff --git a/src/Home/Net/Utilities/NetLog.CC b/src/Home/Net/Utilities/NetLog.ZC similarity index 100% rename from src/Home/Net/Utilities/NetLog.CC rename to src/Home/Net/Utilities/NetLog.ZC diff --git a/src/Home/Net/Utilities/NetQueue.CC b/src/Home/Net/Utilities/NetQueue.ZC similarity index 100% rename from src/Home/Net/Utilities/NetQueue.CC rename to src/Home/Net/Utilities/NetQueue.ZC diff --git a/src/Home/PaletteEditor/Load.CC b/src/Home/PaletteEditor/Load.ZC similarity index 100% rename from src/Home/PaletteEditor/Load.CC rename to src/Home/PaletteEditor/Load.ZC diff --git a/src/Home/PaletteEditor/PaletteEdit.CC b/src/Home/PaletteEditor/PaletteEdit.ZC similarity index 99% rename from src/Home/PaletteEditor/PaletteEdit.CC rename to src/Home/PaletteEditor/PaletteEdit.ZC index 718ca511..30e2e785 100755 --- a/src/Home/PaletteEditor/PaletteEdit.CC +++ b/src/Home/PaletteEditor/PaletteEdit.ZC @@ -221,7 +221,7 @@ U0 PESave(Bool prompt, CCtrl *c) tmp1 = StrNew(&doc->filename.name); StrLastRemove(tmp1, "/", tmp1); - StrReplace(tmp1, ".CC", ""); + StrReplace(tmp1, ".ZC", ""); for (i = 0; i < StrLen(tmp1); i++) if ('A' <= tmp1[i] <= 'Z') tmp1[i] = tmp1[i] + 32; diff --git a/src/Home/PaletteEditor/PaletteGod.CC b/src/Home/PaletteEditor/PaletteGod.ZC similarity index 100% rename from src/Home/PaletteEditor/PaletteGod.CC rename to src/Home/PaletteEditor/PaletteGod.ZC diff --git a/src/Home/PaletteEditor/PaletteSelect.CC b/src/Home/PaletteEditor/PaletteSelect.ZC similarity index 90% rename from src/Home/PaletteEditor/PaletteSelect.CC rename to src/Home/PaletteEditor/PaletteSelect.ZC index 50fde30a..5c5d6809 100755 --- a/src/Home/PaletteEditor/PaletteSelect.CC +++ b/src/Home/PaletteEditor/PaletteSelect.ZC @@ -6,7 +6,7 @@ Cd(__DIR__);; public U0 PaletteSet(U8 *palette_name="Slate", Bool persistent=TRUE) {//Pass filename (without ext) as string to load palette U8 *dir = PALETTES_PATH, - *path = MStrPrint("%Q%Q%Q", dir, palette_name, ".CC");//, + *path = MStrPrint("%Q%Q%Q", dir, palette_name, ".ZC");//, // *file = FileRead(path); // I64 temp_file, i; @@ -32,7 +32,7 @@ public I64 PaletteSelect() DocPrint(doc, "$$LTBLUE$$\n\n"); - tmpde1 = FilesFind("~/PaletteEditor/Palettes/*.CC"); + tmpde1 = FilesFind("~/PaletteEditor/Palettes/*.ZC"); if (tmpde1) { diff --git a/src/Home/PaletteEditor/Palettes/Commander.CC b/src/Home/PaletteEditor/Palettes/Commander.ZC similarity index 100% rename from src/Home/PaletteEditor/Palettes/Commander.CC rename to src/Home/PaletteEditor/Palettes/Commander.ZC diff --git a/src/Home/PaletteEditor/Palettes/Green.CC b/src/Home/PaletteEditor/Palettes/Green.ZC similarity index 100% rename from src/Home/PaletteEditor/Palettes/Green.CC rename to src/Home/PaletteEditor/Palettes/Green.ZC diff --git a/src/Home/PaletteEditor/Palettes/Marine.CC b/src/Home/PaletteEditor/Palettes/Marine.ZC similarity index 100% rename from src/Home/PaletteEditor/Palettes/Marine.CC rename to src/Home/PaletteEditor/Palettes/Marine.ZC diff --git a/src/Home/PaletteEditor/Palettes/Slate.CC b/src/Home/PaletteEditor/Palettes/Slate.ZC similarity index 100% rename from src/Home/PaletteEditor/Palettes/Slate.CC rename to src/Home/PaletteEditor/Palettes/Slate.ZC diff --git a/src/Home/PaletteEditor/Palettes/Temple.CC b/src/Home/PaletteEditor/Palettes/Temple.ZC similarity index 100% rename from src/Home/PaletteEditor/Palettes/Temple.CC rename to src/Home/PaletteEditor/Palettes/Temple.ZC diff --git a/src/Home/PaletteEditor/Palettes/Zsnes.CC b/src/Home/PaletteEditor/Palettes/Zsnes.ZC similarity index 100% rename from src/Home/PaletteEditor/Palettes/Zsnes.CC rename to src/Home/PaletteEditor/Palettes/Zsnes.ZC diff --git a/src/Home/PaletteEditor/Run.CC b/src/Home/PaletteEditor/Run.ZC similarity index 100% rename from src/Home/PaletteEditor/Run.CC rename to src/Home/PaletteEditor/Run.ZC diff --git a/src/Home/SSE.CC b/src/Home/SSE.ZC similarity index 100% rename from src/Home/SSE.CC rename to src/Home/SSE.ZC diff --git a/src/HomeKeyPlugIns.CC b/src/HomeKeyPlugIns.ZC similarity index 100% rename from src/HomeKeyPlugIns.CC rename to src/HomeKeyPlugIns.ZC diff --git a/src/HomeLocalize.CC b/src/HomeLocalize.ZC similarity index 100% rename from src/HomeLocalize.CC rename to src/HomeLocalize.ZC diff --git a/src/HomeSys.CC b/src/HomeSys.ZC similarity index 94% rename from src/HomeSys.CC rename to src/HomeSys.ZC index 15133f3a..2820b304 100755 --- a/src/HomeSys.CC +++ b/src/HomeSys.ZC @@ -35,7 +35,7 @@ U0 StartUpTasks() Silent(OFF); //no output to screen if (sys_boot_src.u16[0] != BOOT_SRC_RAM) - PopUp("ExeFile2(\"::/System/ZSplash.CC\");"); + PopUp("ExeFile2(\"::/System/ZSplash.ZC\");"); } StartUpTasks; diff --git a/src/HomeWrappers.CC b/src/HomeWrappers.ZC similarity index 100% rename from src/HomeWrappers.CC rename to src/HomeWrappers.ZC diff --git a/src/Kernel/BlkDev/DiskAHCI.CC b/src/Kernel/BlkDev/DiskAHCI.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskAHCI.CC rename to src/Kernel/BlkDev/DiskAHCI.ZC diff --git a/src/Kernel/BlkDev/DiskATAId.CC b/src/Kernel/BlkDev/DiskATAId.ZC similarity index 97% rename from src/Kernel/BlkDev/DiskATAId.CC rename to src/Kernel/BlkDev/DiskATAId.ZC index 5b329aee..6d505445 100755 --- a/src/Kernel/BlkDev/DiskATAId.CC +++ b/src/Kernel/BlkDev/DiskATAId.ZC @@ -7,7 +7,7 @@ CBlkDev *ATAMount(U8 first_drive_let, I64 type, I64 port_num) res = BlkDevNextFreeSlot(first_drive_let, type); res->port_num = port_num; res->ahci_port = &blkdev.ahci_hba->ports[port_num]; - res->ahci_port->cmd_list_base = NULL; // See $LK+PU,"AHCIAtaInit",A="FF:::/Kernel/BlkDev/DiskAHCI.CC,if (bd->ahci_port->cmd_list_base)"$ ... + res->ahci_port->cmd_list_base = NULL; // See $LK+PU,"AHCIAtaInit",A="FF:::/Kernel/BlkDev/DiskAHCI.ZC,if (bd->ahci_port->cmd_list_base)"$ ... if (BlkDevAdd(res,, FALSE, FALSE)) return res; } diff --git a/src/Kernel/BlkDev/DiskAddDev.CC b/src/Kernel/BlkDev/DiskAddDev.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskAddDev.CC rename to src/Kernel/BlkDev/DiskAddDev.ZC diff --git a/src/Kernel/BlkDev/DiskBlk.CC b/src/Kernel/BlkDev/DiskBlk.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskBlk.CC rename to src/Kernel/BlkDev/DiskBlk.ZC diff --git a/src/Kernel/BlkDev/DiskBlkDev.CC b/src/Kernel/BlkDev/DiskBlkDev.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskBlkDev.CC rename to src/Kernel/BlkDev/DiskBlkDev.ZC diff --git a/src/Kernel/BlkDev/DiskCDDVD.CC b/src/Kernel/BlkDev/DiskCDDVD.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskCDDVD.CC rename to src/Kernel/BlkDev/DiskCDDVD.ZC diff --git a/src/Kernel/BlkDev/DiskCFile.CC b/src/Kernel/BlkDev/DiskCFile.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskCFile.CC rename to src/Kernel/BlkDev/DiskCFile.ZC diff --git a/src/Kernel/BlkDev/DiskCache.CC b/src/Kernel/BlkDev/DiskCache.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskCache.CC rename to src/Kernel/BlkDev/DiskCache.ZC diff --git a/src/Kernel/BlkDev/DiskClus.CC b/src/Kernel/BlkDev/DiskClus.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskClus.CC rename to src/Kernel/BlkDev/DiskClus.ZC diff --git a/src/Kernel/BlkDev/DiskCopy.CC b/src/Kernel/BlkDev/DiskCopy.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskCopy.CC rename to src/Kernel/BlkDev/DiskCopy.ZC diff --git a/src/Kernel/BlkDev/DiskDirA.CC b/src/Kernel/BlkDev/DiskDirA.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskDirA.CC rename to src/Kernel/BlkDev/DiskDirA.ZC diff --git a/src/Kernel/BlkDev/DiskDirB.CC b/src/Kernel/BlkDev/DiskDirB.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskDirB.CC rename to src/Kernel/BlkDev/DiskDirB.ZC diff --git a/src/Kernel/BlkDev/DiskDirContext.CC b/src/Kernel/BlkDev/DiskDirContext.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskDirContext.CC rename to src/Kernel/BlkDev/DiskDirContext.ZC diff --git a/src/Kernel/BlkDev/DiskDrive.CC b/src/Kernel/BlkDev/DiskDrive.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskDrive.CC rename to src/Kernel/BlkDev/DiskDrive.ZC diff --git a/src/Kernel/BlkDev/DiskFile.CC b/src/Kernel/BlkDev/DiskFile.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskFile.CC rename to src/Kernel/BlkDev/DiskFile.ZC diff --git a/src/Kernel/BlkDev/DiskFind.CC b/src/Kernel/BlkDev/DiskFind.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskFind.CC rename to src/Kernel/BlkDev/DiskFind.ZC diff --git a/src/Kernel/BlkDev/DiskFormat.CC b/src/Kernel/BlkDev/DiskFormat.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskFormat.CC rename to src/Kernel/BlkDev/DiskFormat.ZC diff --git a/src/Kernel/BlkDev/DiskStrA.CC b/src/Kernel/BlkDev/DiskStrA.ZC similarity index 98% rename from src/Kernel/BlkDev/DiskStrA.CC rename to src/Kernel/BlkDev/DiskStrA.ZC index 2b1da9a7..1e00af9d 100755 --- a/src/Kernel/BlkDev/DiskStrA.CC +++ b/src/Kernel/BlkDev/DiskStrA.ZC @@ -324,10 +324,10 @@ U8 *DirFile(U8 *dirname, U8 *name=NULL, U8 *_extension=NULL) {/*Strips file from dirname, scans for file upward until found or returns default. -("/Kernel/KHashA.CC",NULL,NULL) returns "D:/Kernel" +("/Kernel/KHashA.ZC",NULL,NULL) returns "D:/Kernel" ("/Kernel",NULL,"PRJ") returns "D:/Kernel/Kernel.PRJ" ("/Kernel/BlkDev",NULL,"PRJ") returns "D:/Kernel/Kernel.PRJ" -("/Apps/Psalmody","Load","CC") returns "D:/Apps/Psalmody/Load.CC" +("/Apps/Psalmody","Load","ZC") returns "D:/Apps/Psalmody/Load.ZC" */ U8 *st = DirNameAbs(dirname), *st2, *st3, *res, *default = NULL, *ext; diff --git a/src/Kernel/BlkDev/DiskStrB.CC b/src/Kernel/BlkDev/DiskStrB.ZC similarity index 100% rename from src/Kernel/BlkDev/DiskStrB.CC rename to src/Kernel/BlkDev/DiskStrB.ZC diff --git a/src/Kernel/BlkDev/FileSysFAT.CC b/src/Kernel/BlkDev/FileSysFAT.ZC similarity index 100% rename from src/Kernel/BlkDev/FileSysFAT.CC rename to src/Kernel/BlkDev/FileSysFAT.ZC diff --git a/src/Kernel/BlkDev/FileSysRedSea.CC b/src/Kernel/BlkDev/FileSysRedSea.ZC similarity index 100% rename from src/Kernel/BlkDev/FileSysRedSea.CC rename to src/Kernel/BlkDev/FileSysRedSea.ZC diff --git a/src/Kernel/BlkDev/MakeBlkDev.CC b/src/Kernel/BlkDev/MakeBlkDev.ZC similarity index 100% rename from src/Kernel/BlkDev/MakeBlkDev.CC rename to src/Kernel/BlkDev/MakeBlkDev.ZC diff --git a/src/Kernel/Display.CC b/src/Kernel/Display.ZC similarity index 100% rename from src/Kernel/Display.CC rename to src/Kernel/Display.ZC diff --git a/src/Kernel/EdLite.CC b/src/Kernel/EdLite.ZC similarity index 99% rename from src/Kernel/EdLite.CC rename to src/Kernel/EdLite.ZC index 52323068..9a98a441 100755 --- a/src/Kernel/EdLite.CC +++ b/src/Kernel/EdLite.ZC @@ -349,7 +349,7 @@ Bool EdLite(U8 *filename, I64 num=1, I64 edf_dof_flags=0) } U0 ToFileLine(U8 *_fl_file_line, U8 **_filename, I64 *_linenum) -{//"FI:D:/Dir/File.CC,123" to "D:/Dir/File.CC" and 123. +{//"FI:D:/Dir/File.ZC,123" to "D:/Dir/File.ZC" and 123. U8 *st, *fl_file_line = StrNew(_fl_file_line); I64 linenum; diff --git a/src/Kernel/FontStd.CC b/src/Kernel/FontStd.ZC similarity index 100% rename from src/Kernel/FontStd.CC rename to src/Kernel/FontStd.ZC diff --git a/src/Kernel/FunSeg.CC b/src/Kernel/FunSeg.ZC similarity index 100% rename from src/Kernel/FunSeg.CC rename to src/Kernel/FunSeg.ZC diff --git a/src/Kernel/Job.CC b/src/Kernel/Job.ZC similarity index 99% rename from src/Kernel/Job.CC rename to src/Kernel/Job.ZC index b9679f44..983a40da 100755 --- a/src/Kernel/Job.CC +++ b/src/Kernel/Job.ZC @@ -240,7 +240,7 @@ Bool JobResScan(CJob *request=NULL, I64 *_res=NULL) } I64 JobResGet(CJob *request=NULL) -{//See $LK,"::/Demo/MultiCore/Lock.CC"$ +{//See $LK,"::/Demo/MultiCore/Lock.ZC"$ I64 res; CJob *tmpc1; @@ -540,7 +540,7 @@ U0 SysErr(U8 *format, ...) } U0 XTalk(CTask *task, U8 *format, ...) -{//Sends text to other task. See $LK,"::/Misc/OSTestSuite.CC"$. +{//Sends text to other task. See $LK,"::/Misc/OSTestSuite.ZC"$. U8 *buf = StrPrintJoin(NULL, format, argc, argv), *st = SysStrNew(buf), *st2 = MStrPrint("\"%%s\",%d;Free(%d);", st, st); TaskText(task, NULL, st2, 0); @@ -578,7 +578,7 @@ U0 InFile(U8 *filename) } U0 In(U8 *format, ...) -{//Send text to own input buffer. See $LK,"::/Demo/AcctExample/TOS/TOSDistro.CC"$. +{//Send text to own input buffer. See $LK,"::/Demo/AcctExample/TOS/TOSDistro.ZC"$. U8 *buf = StrPrintJoin(NULL, format, argc, argv), *st = SysStrNew(buf); InStr("\"%%s\",%d;Free(%d);", st, st); diff --git a/src/Kernel/KConfig.CC b/src/Kernel/KConfig.ZC similarity index 100% rename from src/Kernel/KConfig.CC rename to src/Kernel/KConfig.ZC diff --git a/src/Kernel/KDataTypes.CC b/src/Kernel/KDataTypes.ZC similarity index 100% rename from src/Kernel/KDataTypes.CC rename to src/Kernel/KDataTypes.ZC diff --git a/src/Kernel/KDate.CC b/src/Kernel/KDate.ZC similarity index 100% rename from src/Kernel/KDate.CC rename to src/Kernel/KDate.ZC diff --git a/src/Kernel/KDebug.CC b/src/Kernel/KDebug.ZC similarity index 99% rename from src/Kernel/KDebug.CC rename to src/Kernel/KDebug.ZC index b01b9b2f..7b5734b9 100755 --- a/src/Kernel/KDebug.CC +++ b/src/Kernel/KDebug.ZC @@ -704,7 +704,7 @@ U0 Fault3(I64 fault_num, I64 fault_err_code) } U0 Fault2(I64 fault_num, I64 fault_err_code) -{//Called from $LK,"Fault2",A="FF:::/Kernel/KInterrupts.CC,Fault2"$. +{//Called from $LK,"Fault2",A="FF:::/Kernel/KInterrupts.ZC,Fault2"$. //$BK,1$Be careful not to swap-out and ruin the saved context$BK,0$ Bool was_raw, was_single_user, was_silent, was_in_debug, was_mouse_enabled; I64 i, old_raw_flags = text.raw_flags; diff --git a/src/Kernel/KDefine.CC b/src/Kernel/KDefine.ZC similarity index 100% rename from src/Kernel/KDefine.CC rename to src/Kernel/KDefine.ZC diff --git a/src/Kernel/KExcept.CC b/src/Kernel/KExcept.ZC similarity index 100% rename from src/Kernel/KExcept.CC rename to src/Kernel/KExcept.ZC diff --git a/src/Kernel/KExterns.CC b/src/Kernel/KExterns.ZC similarity index 100% rename from src/Kernel/KExterns.CC rename to src/Kernel/KExterns.ZC diff --git a/src/Kernel/KGlobals.CC b/src/Kernel/KGlobals.ZC similarity index 88% rename from src/Kernel/KGlobals.CC rename to src/Kernel/KGlobals.ZC index 8164dcd9..7da5e5e5 100755 --- a/src/Kernel/KGlobals.CC +++ b/src/Kernel/KGlobals.ZC @@ -1,5 +1,5 @@ //Compiler initializes globals in AOT bin modules to zero. -//$LK,"Globals Set to Zero Here",A="FF:::/Compiler/ParseStatement.CC,Init AOT global to zero"$. +//$LK,"Globals Set to Zero Here",A="FF:::/Compiler/ParseStatement.ZC,Init AOT global to zero"$. CJob sys_macro_head; CTask *sys_macro_task; @@ -13,7 +13,7 @@ CTask *sys_winmgr_task, U8 *rev_bits_table; //Table with U8 bits reversed CDate local_time_offset; F64 *pow10_I64, - sys_os_version = 1.06; + sys_os_version = 1.07; CAutoCompleteDictGlobals acd; CAutoCompleteGlobals ac; @@ -21,7 +21,7 @@ CBlkDevGlobals blkdev; CCountsGlobals counts = {1, 0, 2676302000, 2676302, 2676302000, FALSE}; CDebugGlobals debug; CDevGlobals dev; -CGridGlobals mouse_grid; //See $LK,"::/Demo/Graphics/Grid.CC"$. +CGridGlobals mouse_grid; //See $LK,"::/Demo/Graphics/Grid.ZC"$. CMouseStateGlobals mouse, mouse_last; CKbdStateGlobals kbd; CKeyDevGlobals keydev; diff --git a/src/Kernel/KHashA.CC b/src/Kernel/KHashA.ZC similarity index 100% rename from src/Kernel/KHashA.CC rename to src/Kernel/KHashA.ZC diff --git a/src/Kernel/KHashB.CC b/src/Kernel/KHashB.ZC similarity index 99% rename from src/Kernel/KHashB.CC rename to src/Kernel/KHashB.ZC index 884e7750..a0c3b8d5 100755 --- a/src/Kernel/KHashB.CC +++ b/src/Kernel/KHashB.ZC @@ -241,7 +241,7 @@ I64 HashListAdd(U8 *list, I64 type, CHashTable *table) } I64 HashDefineListAdd(U8 *dname, I64 type, CHashTable *table) -{//Add define list to a hash table. See $LK,"::/System/DolDoc/DocInit.CC",A="FF:::/System/DolDoc/DocInit.CC,HashDefineListAdd"$. +{//Add define list to a hash table. See $LK,"::/System/DolDoc/DocInit.ZC",A="FF:::/System/DolDoc/DocInit.ZC,HashDefineListAdd"$. CHashDefineStr *tmph; if (tmph = HashFind(dname, Fs->hash_table, HTT_DEFINE_STR)) diff --git a/src/Kernel/KInterrupts.CC b/src/Kernel/KInterrupts.ZC similarity index 97% rename from src/Kernel/KInterrupts.CC rename to src/Kernel/KInterrupts.ZC index a1656d48..2108971a 100755 --- a/src/Kernel/KInterrupts.CC +++ b/src/Kernel/KInterrupts.ZC @@ -88,7 +88,7 @@ INT_FAULT:: PUSH U64 CTask.fault_err_code[RSI] PUSH U64 CTask.fault_num[RSI] MOV RSI, CTask.rsi[RSI] - CALL &Fault2 //See $LK,"Fault2",A="FF:::/Kernel/KDebug.CC,Fault2"$ + CALL &Fault2 //See $LK,"Fault2",A="FF:::/Kernel/KDebug.ZC,Fault2"$ JMP I32 RESTORE_FS_TASK INT_FAULT_ERR_CODE_BITMAP:: @@ -109,8 +109,8 @@ U8 *IntEntryGet(I64 irq) U8 *IntEntrySet(I64 irq, U0 (*fp_new_handler)(), I64 type=IDTET_IRQ) {//Set interrupt handler. Returns old handler. See $LK,"IDTET_IRQ",A="MN:IDTET_IRQ"$. -//See $LK,"::/Demo/Lectures/InterruptDemo.CC"$. -//See $LK,"::/Demo/MultiCore/Interrupts.CC"$. +//See $LK,"::/Demo/Lectures/InterruptDemo.ZC"$. +//See $LK,"::/Demo/MultiCore/Interrupts.ZC"$. I64 fp = fp_new_handler; U8 *old_handler; CIDTEntry *entry; diff --git a/src/Kernel/KLoad.CC b/src/Kernel/KLoad.ZC similarity index 98% rename from src/Kernel/KLoad.CC rename to src/Kernel/KLoad.ZC index 4f6bdf74..b54094df 100755 --- a/src/Kernel/KLoad.CC +++ b/src/Kernel/KLoad.ZC @@ -219,7 +219,7 @@ CBinFile *Load(U8 *filename, I64 ld_flags=0, CBinFile *bfh_addr=INVALID_PTR) return NULL; } - //See $LK,"Patch Table Generation",A="FF:::/Compiler/CMain.CC,IET_ABS_ADDR"$ + //See $LK,"Patch Table Generation",A="FF:::/Compiler/CMain.ZC,IET_ABS_ADDR"$ module_align = 1 << bfh->module_align_bits; if (!module_align || bfh->bin_signature != BIN_SIGNATURE_VAL) { @@ -280,7 +280,7 @@ U0 LoadKernel() { HashGenericAdd(KERNEL_MODULE_NAME, HTT_MODULE | HTF_PUBLIC, mem_boot_base - sizeof(CBinFile)); - //Abs patches done here $LK,"CPatchTableAbsAddr",A="FF:::/Kernel/KStart32.CC,CPatchTableAbsAddr"$. + //Abs patches done here $LK,"CPatchTableAbsAddr",A="FF:::/Kernel/KStart32.ZC,CPatchTableAbsAddr"$. LoadPass1(sys_boot_patch_table_base, mem_boot_base, LDF_NO_ABSS | LDF_SILENT); //No main routines diff --git a/src/Kernel/KMain.CC b/src/Kernel/KMain.ZC similarity index 97% rename from src/Kernel/KMain.CC rename to src/Kernel/KMain.ZC index 1064d254..55a4dc51 100755 --- a/src/Kernel/KMain.CC +++ b/src/Kernel/KMain.ZC @@ -141,7 +141,7 @@ U0 Reboot(Bool format_ramdisks=FALSE) } U0 KMain() -{//Continued from $LK,"KStart64.CC",A="FF:::/Kernel/KStart64.CC,I32 &KMain"$ +{//Continued from $LK,"KStart64.ZC",A="FF:::/Kernel/KStart64.ZC,I32 &KMain"$ CBlkDev *bd; OutU8(PCSPKR, InU8(PCSPKR) & ~3); //Sound; @@ -235,7 +235,7 @@ U0 KMain() counts.time_stamp_freq_initial = TimeCal; Cd("/"); try - ExeFile("StartOS"); //Continues $LK,"/StartOS.CC",A="FL:/StartOS.CC,1"$ + ExeFile("StartOS"); //Continues $LK,"/StartOS.ZC",A="FL:/StartOS.ZC,1"$ catch { Raw(ON); diff --git a/src/Kernel/KMathA.CC b/src/Kernel/KMathA.ZC similarity index 100% rename from src/Kernel/KMathA.CC rename to src/Kernel/KMathA.ZC diff --git a/src/Kernel/KMathB.CC b/src/Kernel/KMathB.ZC similarity index 100% rename from src/Kernel/KMathB.CC rename to src/Kernel/KMathB.ZC diff --git a/src/Kernel/KMisc.CC b/src/Kernel/KMisc.ZC similarity index 99% rename from src/Kernel/KMisc.CC rename to src/Kernel/KMisc.ZC index 1f7435f6..f0de38e4 100755 --- a/src/Kernel/KMisc.CC +++ b/src/Kernel/KMisc.ZC @@ -5,7 +5,7 @@ U0 PortNop() } U0 IntCore0TimerHandler(CTask *) -{//Called from $LK,"IntCore0TimerHandler",A="FF:::/Kernel/KInterrupts.CC,IntCore0TimerHandler"$ +{//Called from $LK,"IntCore0TimerHandler",A="FF:::/Kernel/KInterrupts.ZC,IntCore0TimerHandler"$ I64 i; if (mp_count > 1) diff --git a/src/Kernel/KStart16.CC b/src/Kernel/KStart16.ZC similarity index 92% rename from src/Kernel/KStart16.CC rename to src/Kernel/KStart16.ZC index 42d38130..bb00b773 100755 --- a/src/Kernel/KStart16.CC +++ b/src/Kernel/KStart16.ZC @@ -2,7 +2,7 @@ asm {/* See $LK,"::/Doc/Boot.DD"$. ZealOS starts in real, calls some BIOS routines, switches to 32 bit, and 64 bit mode and continues in $LK,"ZealC",A="FI:::/Doc/ZealC.DD"$ at $LK,"KMain",A="MN:KMain"$(). The boot loader jumps here in real-mode (16-bit). -It actually jumps to the $LK,"CBinFile",A="MN:CBinFile"$ header which is placed just before this by $LK,"the compiler",A="FF:::/Compiler/CMain.CC,16 ALIGN"$. +It actually jumps to the $LK,"CBinFile",A="MN:CBinFile"$ header which is placed just before this by $LK,"the compiler",A="FF:::/Compiler/CMain.ZC,16 ALIGN"$. The header begins with a short jmp to the start of this file's code which begins with the following small jump past some data. This file is first in the Kernel image because it is #included first. $LK,"Kernel.PRJ",A="FF:::/Kernel/Kernel.PRJ,KStart16:1"$ @@ -43,7 +43,7 @@ GDT_BOOT_DS: DU64 0x00CF92000000FFFF, 0; //Gets patched. GDT_BOOT_CS: DU64 0x00CF9A000000FFFF, 0; //Gets patched. GDT_CS32: DU64 0x00CF9A000000FFFF, 0; GDT_CS64: DU64 0x00209A0000000000, 0; //The $LK,"Charter",A="FI:::/Doc/Charter.DD"$ says just ring0. -GDT_CS64_RING3: DU64 0x0020FA0000000000, 0; //$LK,"Ring3",A="FI:::/Demo/Lectures/Ring3.CC"$, so you can play with. +GDT_CS64_RING3: DU64 0x0020FA0000000000, 0; //$LK,"Ring3",A="FI:::/Demo/Lectures/Ring3.ZC"$, so you can play with. GDT_DS: DU64 0x00CF92000000FFFF, 0; GDT_DS_RING3: DU64 0x00CFF2000000FFFF, 0; GDT_TR: DU8 MP_PROCESSORS_NUM * 16 DUP(0); @@ -70,12 +70,12 @@ MAX_SCREEN_HEIGHT: DU16 0; //************************************ CORE0_16BIT_INIT:: -//EAX is $LK,"SYS_BOOT_SRC",A="FF:::/Kernel/KStart16.CC,[SYS_BOOT_SRC]"$. (Value passed from boot block, $LK,"BootHD",A="FF:::/System/Boot/BootHD.CC,BOOT_SRC_HARDDRIVE"$, $LK,"BootDVD",A="FF:::/System/Boot/BootDVD.CC,BOOT_SRC_DVD"$, & $LK,"BootRAM",A="FF:::/System/Boot/BootRAM.CC,BOOT_SRC_RAM"$.) +//EAX is $LK,"SYS_BOOT_SRC",A="FF:::/Kernel/KStart16.ZC,[SYS_BOOT_SRC]"$. (Value passed from boot block, $LK,"BootHD",A="FF:::/System/Boot/BootHD.ZC,BOOT_SRC_HARDDRIVE"$, $LK,"BootDVD",A="FF:::/System/Boot/BootDVD.ZC,BOOT_SRC_DVD"$, & $LK,"BootRAM",A="FF:::/System/Boot/BootRAM.ZC,BOOT_SRC_RAM"$.) MOV ECX, EAX MOV AX, (BOOT_RAM_LIMIT - BOOT_STACK_SIZE) / 16 MOV SS, AX MOV SP, BOOT_STACK_SIZE - PUSH ECX //Will be $LK,"SYS_BOOT_SRC",A="FF:::/Kernel/KStart16.CC,[SYS_BOOT_SRC]"$. See $LK,"BootHD",A="FF:::/System/Boot/BootHD.CC,BOOT_SRC_HARDDRIVE"$, $LK,"BootDVD",A="FF:::/System/Boot/BootDVD.CC,BOOT_SRC_DVD"$ & $LK,"BootRAM",A="FF:::/System/Boot/BootRAM.CC,BOOT_SRC_RAM"$. + PUSH ECX //Will be $LK,"SYS_BOOT_SRC",A="FF:::/Kernel/KStart16.ZC,[SYS_BOOT_SRC]"$. See $LK,"BootHD",A="FF:::/System/Boot/BootHD.ZC,BOOT_SRC_HARDDRIVE"$, $LK,"BootDVD",A="FF:::/System/Boot/BootDVD.ZC,BOOT_SRC_DVD"$ & $LK,"BootRAM",A="FF:::/System/Boot/BootRAM.ZC,BOOT_SRC_RAM"$. PUSH EBX CALL U16 GET_IP GET_IP: POP BX @@ -308,7 +308,7 @@ GET_IP: POP BX OUT 0x92, AL POP U32 [SYS_BOOT_BLK] - POP U32 [SYS_BOOT_SRC] //See $LK,"BootHD",A="FF:::/System/Boot/BootHD.CC,BOOT_SRC_HARDDRIVE"$, $LK,"BootDVD",A="FF:::/System/Boot/BootDVD.CC,BOOT_SRC_DVD"$, & $LK,"BootRAM",A="FF:::/System/Boot/BootRAM.CC,BOOT_SRC_RAM"$. + POP U32 [SYS_BOOT_SRC] //See $LK,"BootHD",A="FF:::/System/Boot/BootHD.ZC,BOOT_SRC_HARDDRIVE"$, $LK,"BootDVD",A="FF:::/System/Boot/BootDVD.ZC,BOOT_SRC_DVD"$, & $LK,"BootRAM",A="FF:::/System/Boot/BootRAM.ZC,BOOT_SRC_RAM"$. CLD XOR EAX, EAX diff --git a/src/Kernel/KStart32.CC b/src/Kernel/KStart32.ZC similarity index 97% rename from src/Kernel/KStart32.CC rename to src/Kernel/KStart32.ZC index e3f8bf80..61e2240f 100755 --- a/src/Kernel/KStart32.CC +++ b/src/Kernel/KStart32.ZC @@ -118,5 +118,5 @@ CORE0_32BIT_INIT:: //Entry point for $LK,"BootRAM",A="MN:BootRAM"$. PUSH U32 0 //Return from next call will be 64-bit CALL SYS_ENTER_LONG_MODE - //We fall-through to $LK,"KStart64",A="FL:::/Kernel/KStart64.CC,1"$, next. + //We fall-through to $LK,"KStart64",A="FL:::/Kernel/KStart64.ZC,1"$, next. } diff --git a/src/Kernel/KStart64.CC b/src/Kernel/KStart64.ZC similarity index 97% rename from src/Kernel/KStart64.CC rename to src/Kernel/KStart64.ZC index b69212b3..e4317bf0 100755 --- a/src/Kernel/KStart64.CC +++ b/src/Kernel/KStart64.ZC @@ -81,7 +81,7 @@ USE64 RET //************************************ -SYS_RAM_REBOOT:: //This gets copied high. $LK,"SYS_RAM_REBOOT",A="FF:::/System/Boot/BootRAM.CC,SYS_RAM_REBOOT:2"$ +SYS_RAM_REBOOT:: //This gets copied high. $LK,"SYS_RAM_REBOOT",A="FF:::/System/Boot/BootRAM.ZC,SYS_RAM_REBOOT:2"$ PUSH U32 CGDT.ds //stack seg PUSH U32 BOOT_RAM_LIMIT //stack PUSH U32 0 //flags diff --git a/src/Kernel/KTask.CC b/src/Kernel/KTask.ZC similarity index 98% rename from src/Kernel/KTask.CC rename to src/Kernel/KTask.ZC index e54f1751..d245700c 100755 --- a/src/Kernel/KTask.CC +++ b/src/Kernel/KTask.ZC @@ -128,7 +128,7 @@ CTaskStack *TaskStackNew(I64 stack_size, CTask *task) #exe {Option(OPTf_NO_REG_VAR, ON);}; argpop I64 CallStackGrow(I64 stack_size_threshold, I64 stack_size, /*argpop*/I64 (*fp_addr)(...), ...) {//Grow stack in call with any fixed num of args. -//See $LK,"::/Demo/StackGrow.CC"$. +//See $LK,"::/Demo/StackGrow.ZC"$. CTaskStack *tmps, *tmps2, **_stack; I64 res, *rsp, *rsp2, *old_stack; @@ -249,7 +249,7 @@ I64 TaskInit(CTask *task, I64 stack_size) task->win_bottom = text.rows - 2; if (blkdev.home_dir) - {//Beware System $LK,"TaskInit",A="FF:::/Kernel/KStart64.CC,TaskInit"$. Maybe ok until $LK,"DiskChange",A="FF:::/Kernel/KMain.CC,DiskChange"$(). + {//Beware System $LK,"TaskInit",A="FF:::/Kernel/KStart64.ZC,TaskInit"$. Maybe ok until $LK,"DiskChange",A="FF:::/Kernel/KMain.ZC,DiskChange"$(). task->cur_dv = blkdev.let_to_drive[*blkdev.home_dir - 'A']; task->cur_dir = StrNew(blkdev.home_dir + 2, task); } @@ -262,7 +262,7 @@ I64 TaskInit(CTask *task, I64 stack_size) } CTask *Spawn(U0 (*fp_start_addr)(U8 *data), U8 *data=NULL, U8 *task_name=NULL, - I64 target_cpu=-1, // -1 for current CPU. See $LK,"multi-core",A="FI:::/Demo/MultiCore/LoadTest.CC"$. + I64 target_cpu=-1, // -1 for current CPU. See $LK,"multi-core",A="FI:::/Demo/MultiCore/LoadTest.ZC"$. CTask *parent=NULL, // NULL means sys_task I64 stack_size=0, // 0=default I64 flags=1 << JOBf_ADD_TO_QUE) @@ -590,7 +590,7 @@ I64 TaskEnd() U0 TaskKillDying() {//Delay freeing to prevent asking for trouble with quick reincarnations. -//What if the user is doing this: $LK,"DoTreeCheckers",A="FF:::/Misc/OSTestSuite.CC,DoTreeCheckers"$. +//What if the user is doing this: $LK,"DoTreeCheckers",A="FF:::/Misc/OSTestSuite.ZC,DoTreeCheckers"$. CTaskDying *task, *task1; if (Gs->kill_jiffy < counts.jiffies) diff --git a/src/Kernel/KUtils.CC b/src/Kernel/KUtils.ZC similarity index 100% rename from src/Kernel/KUtils.CC rename to src/Kernel/KUtils.ZC diff --git a/src/Kernel/Kernel.PRJ b/src/Kernel/Kernel.PRJ index ca0ee07b..02d00a32 100755 --- a/src/Kernel/Kernel.PRJ +++ b/src/Kernel/Kernel.PRJ @@ -1,5 +1,5 @@ //Compile this by calling $LK,"BootHDIns",A="MN:BootHDIns"$(). -//Don't do it directly. See $LK,"Comp(\"/Kernel/Kernel\")",A="FF:::/System/Boot/BootHDIns.CC,Comp(\"/Kernel/Kernel\""$. +//Don't do it directly. See $LK,"Comp(\"/Kernel/Kernel\")",A="FF:::/System/Boot/BootHDIns.ZC,Comp(\"/Kernel/Kernel\""$. #exe { Cd(__DIR__);; diff --git a/src/Kernel/KernelA.HH b/src/Kernel/KernelA.HH index 67380dad..eca7a3c8 100755 --- a/src/Kernel/KernelA.HH +++ b/src/Kernel/KernelA.HH @@ -60,7 +60,7 @@ extern class CTask; #help_index "Data Types/Simple" //ZealC union structure is treated as a whole if no member is specified, similar to bit fields. -//See $LK,"::/Demo/SubIntAccess.CC"$. +//See $LK,"::/Demo/SubIntAccess.ZC"$. U16i union U16 { @@ -400,7 +400,7 @@ class CGDT boot_cs, cs32, cs64, //The $LK,"Charter",A="FI:::/Doc/Charter.DD"$ says just ring-0. - cs64_ring3, //$LK,"Ring3",A="FI:::/Demo/Lectures/Ring3.CC"$, in case you want to play around. + cs64_ring3, //$LK,"Ring3",A="FI:::/Demo/Lectures/Ring3.ZC"$, in case you want to play around. ds, ds_ring3, tr[MP_PROCESSORS_NUM], @@ -450,13 +450,13 @@ class CMemE820 #define BIN_SIGNATURE_VAL 'ZCCB' //Zeal ZealC Binary class CBinFile -{//$LK,"Bin File Header Generation",A="FF:::/Compiler/CMain.CC,16 ALIGN"$ by compiler. +{//$LK,"Bin File Header Generation",A="FF:::/Compiler/CMain.ZC,16 ALIGN"$ by compiler. U16 jmp; U8 module_align_bits, reserved; U32 bin_signature; I64 org, - patch_table_offset, //$LK,"Patch Table Generation",A="FF:::/Compiler/CMain.CC,IET_ABS_ADDR"$ + patch_table_offset, //$LK,"Patch Table Generation",A="FF:::/Compiler/CMain.ZC,IET_ABS_ADDR"$ file_size; }; @@ -546,7 +546,7 @@ class CVBEModeShort #help_index "Boot" class CKernel -{//Must match $LK,"OSStartUp",A="FF:::/Kernel/KStart16.CC,MEM_BOOT_BASE"$ +{//Must match $LK,"OSStartUp",A="FF:::/Kernel/KStart16.ZC,MEM_BOOT_BASE"$ CBinFile h; U32 jmp, boot_src, @@ -788,7 +788,7 @@ public class CHashTable }; #help_index "Hash/System" -//Hash table types: $LK,"ST_HTT_TYPES",A="FF:::/Kernel/KDefine.CC,ST_HTT_TYPES"$ +//Hash table types: $LK,"ST_HTT_TYPES",A="FF:::/Kernel/KDefine.ZC,ST_HTT_TYPES"$ #define HTt_EXPORT_SYS_SYM 0 #define HTt_IMPORT_SYS_SYM 1 #define HTt_DEFINE_STR 2 @@ -1522,7 +1522,7 @@ public class CDoc //Linked Text File header I64 (*left_click_link)(CDoc *doc, CDocEntry *doc_e); I64 (*right_click_link)(CDoc *doc, CDocEntry *doc_e); - //See $LK,"::/Apps/Psalmody/JukeBox.CC"$ + //See $LK,"::/Apps/Psalmody/JukeBox.ZC"$ U8 *user_put_data; //Passed to user_put_key() and user_put_s() Bool (*user_put_key)(CDoc *doc, U8 *data, I64 ch, I64 sc); Bool (*user_put_s)(CDoc *doc, U8 *data, U8 *st); @@ -1884,7 +1884,7 @@ class CCodeMisc //Slash value #define SV_R_REG 8 #define SV_I_REG 9 -#define SV_STI_LIKE 10 //$LK,"uasm_slash_val",A="FF:::/Compiler/AsmInit.CC,uasm_slash_val"$ only. +#define SV_STI_LIKE 10 //$LK,"uasm_slash_val",A="FF:::/Compiler/AsmInit.ZC,uasm_slash_val"$ only. #define SV_NONE 11 class CInst { @@ -1956,7 +1956,7 @@ I64 class CAbsCountsI64 }; class CAsmUndefHash -{//Only place created is $LK,"Exp Parser",A="FF:::/Compiler/ParseExp.CC,sizeof(CAsmUndefHash)"$ when an undef is found in an ASM expression. +{//Only place created is $LK,"Exp Parser",A="FF:::/Compiler/ParseExp.ZC,sizeof(CAsmUndefHash)"$ when an undef is found in an ASM expression. CAsmUndefHash *next; CHashExport *hash; }; @@ -3010,9 +3010,9 @@ class CAtapiModeWriteList #define ATAR1_CTRL 2 #help_index "File/FileNames" -#define FILEMASK_JIT "*.CC*;*.HH*" -#define FILEMASK_AOT "*.CC*;*.HH*;*.PRJ*" -#define FILEMASK_SRC "*.CC*;*.HH*;*.IN*;*.PRJ*" +#define FILEMASK_JIT "*.ZC*;*.HH*" +#define FILEMASK_AOT "*.ZC*;*.HH*;*.PRJ*" +#define FILEMASK_SRC "*.ZC*;*.HH*;*.IN*;*.PRJ*" #define FILEMASK_DD FILEMASK_SRC ";*.DD*" #define FILEMASK_TXT FILEMASK_DD ";*.TXT*" #define FILEMASK_GR "*.GR*" @@ -3457,7 +3457,7 @@ public class CDirContext #define FF_CONTIGUOUS 16 #define FF_USE_OLD_DATETIME 32 -public class CFile //See $LK,"::/Demo/Disk/DataBase.CC"$. +public class CFile //See $LK,"::/Demo/Disk/DataBase.ZC"$. { I64 flags; CDirEntry de; @@ -3547,7 +3547,7 @@ public class CBlkPool { I64 locked_flags, alloced_u8s, used_u8s; CMemBlk *mem_free_list, - *mem_free_2meg_list, //This is for Sup1CodeScraps/Mem/Mem2Meg.CC. + *mem_free_2meg_list, //This is for Sup1CodeScraps/Mem/Mem2Meg.ZC. *free_pag_hash[MEM_FREE_PAG_HASH_SIZE], *free_pag_hash2[64 - MEM_PAG_BITS]; }; @@ -3876,7 +3876,7 @@ class CJobCtrl }; #help_index "Messages" -//See $LK,"::/Demo/MessageLoop.CC"$ +//See $LK,"::/Demo/MessageLoop.ZC"$ #define MESSAGE_NULL 0 #define MESSAGE_CMD 1 #define MESSAGE_KEY_DOWN 2 //($LK,"ASCII",A="MN:CH_CTRLA"$,$LK,"scan code",A="FI:::/Doc/CharOverview.DD"$) Press @@ -4004,7 +4004,7 @@ public class CTask //The Fs segment register points to current CTask. scroll_x, scroll_y, scroll_z; //These must be in this order - //for $LK,"TASK_CONTEXT_SAVE",A="FF:::/Kernel/Sched.CC,TASK_CONTEXT_SAVE"$ and $LK,"_TASK_CONTEXT_RESTORE",A="FF:::/Kernel/Sched.CC,_TASK_CONTEXT_RESTORE"$ + //for $LK,"TASK_CONTEXT_SAVE",A="FF:::/Kernel/Sched.ZC,TASK_CONTEXT_SAVE"$ and $LK,"_TASK_CONTEXT_RESTORE",A="FF:::/Kernel/Sched.ZC,_TASK_CONTEXT_RESTORE"$ I64 rip, rflags, rsp, rsi, rax, rcx, rdx, rbx, rbp, rdi, r8, r9, r10, r11, r12, r13, r14, r15; CCPU *gs; CFPU *fpu_mmx; @@ -4273,7 +4273,7 @@ public class CTextGlobals #define DCF_SYMMETRY 0x200 //Must be used with DCF_SYMMETRY set also. -//See $LK,"::/Demo/Games/BigGuns.CC"$ +//See $LK,"::/Demo/Games/BigGuns.ZC"$ #define DCF_JUST_MIRROR 0x400 #define DCF_LOCATE_NEAREST 0x800 @@ -4318,7 +4318,7 @@ public class CDC //0x0000 =100% color.c0 //0x8000 =50% color.c0 50% color.c1 //0x10000=100% color.c1 - //See $LK,"::/Demo/Graphics/SunMoon.CC"$ and $LK,"::/Demo/Graphics/Shading.CC"$. + //See $LK,"::/Demo/Graphics/SunMoon.ZC"$ and $LK,"::/Demo/Graphics/Shading.ZC"$. U64 dither_probability_u16; CDC *brush; diff --git a/src/Kernel/KernelB.HH b/src/Kernel/KernelB.HH index 9a1b0283..f207c52d 100755 --- a/src/Kernel/KernelB.HH +++ b/src/Kernel/KernelB.HH @@ -1,7 +1,7 @@ /* Kernel ASM symbols. $LK,"KernelB",A="FF:::/Kernel/Kernel.PRJ,KernelB"$ Kernel.PRJ $LK,"KernelB",A="FF:::/Compiler/Compiler.PRJ,KernelB"$ Compiler.PRJ -$LK,"KernelB",A="FF:::/StartOS.CC,KernelB"$ StartOS.CC +$LK,"KernelB",A="FF:::/StartOS.ZC,KernelB"$ StartOS.ZC */ #help_index "Bit" @@ -200,7 +200,7 @@ public _intern IC_GS CCPU *Gs(); //GS points to current $LK,"CCPU",A="MN:CCPU"$. public _extern SYS_PCI_BUSES U16 sys_pci_buses; //Number of PCI buses. #help_index "Processor" -public _intern IC_CARRY I64 Carry(); //See $LK,"::/Demo/Carry.CC"$ +public _intern IC_CARRY I64 Carry(); //See $LK,"::/Demo/Carry.ZC"$ public _intern IC_RAX_GET I64 RAXGet(); //Get RAX register value. public _intern IC_RBP_GET U8 *RBPGet(); //Get RBP register value. public _intern IC_RFLAGS_GET I64 RFlagsGet(); //Get RFlags register value. diff --git a/src/Kernel/KeyDev.CC b/src/Kernel/KeyDev.ZC similarity index 100% rename from src/Kernel/KeyDev.CC rename to src/Kernel/KeyDev.ZC diff --git a/src/Kernel/Memory/BlkPool.CC b/src/Kernel/Memory/BlkPool.ZC similarity index 96% rename from src/Kernel/Memory/BlkPool.CC rename to src/Kernel/Memory/BlkPool.ZC index a9c06ec4..3df086a4 100755 --- a/src/Kernel/Memory/BlkPool.CC +++ b/src/Kernel/Memory/BlkPool.ZC @@ -43,7 +43,7 @@ U0 BlkPoolsInit() else code_heap_limit = 0x80000000; - i = code_heap_limit - SYS_16MEG_AREA_LIMIT; //See $LK,"RLf_16MEG_SYS_CODE_BP",A="FF:::/Kernel/Memory/PageTables.CC,RLf_16MEG_SYS_CODE_BP"$ + i = code_heap_limit - SYS_16MEG_AREA_LIMIT; //See $LK,"RLf_16MEG_SYS_CODE_BP",A="FF:::/Kernel/Memory/PageTables.ZC,RLf_16MEG_SYS_CODE_BP"$ BlkPoolAdd(sys_code_bp, SYS_16MEG_AREA_LIMIT, i >> MEM_PAG_BITS); mem_heap_limit = i + SYS_16MEG_AREA_LIMIT - 1; diff --git a/src/Kernel/Memory/HeapCtrl.CC b/src/Kernel/Memory/HeapCtrl.ZC similarity index 92% rename from src/Kernel/Memory/HeapCtrl.CC rename to src/Kernel/Memory/HeapCtrl.ZC index 89a8471b..0ca7062d 100755 --- a/src/Kernel/Memory/HeapCtrl.CC +++ b/src/Kernel/Memory/HeapCtrl.ZC @@ -1,6 +1,6 @@ CHeapCtrl *HeapCtrlInit(CHeapCtrl *hc=NULL, CTask *task=NULL, CBlkPool *bp) {//See $LK,"HeapLog",A="MN:HeapLog"$() for an example. -//Duplicated for $LK,"System Task",A="FF:::/Kernel/KStart64.CC,CHeapCtrl.bp"$. +//Duplicated for $LK,"System Task",A="FF:::/Kernel/KStart64.ZC,CHeapCtrl.bp"$. if (!hc) hc = SysCAlloc(sizeof(CHeapCtrl)); hc->hc_signature = HEAP_CTRL_SIGNATURE_VAL; diff --git a/src/Kernel/Memory/MAllocFree.CC b/src/Kernel/Memory/MAllocFree.ZC similarity index 99% rename from src/Kernel/Memory/MAllocFree.CC rename to src/Kernel/Memory/MAllocFree.ZC index 5eb84d73..92912b7d 100755 --- a/src/Kernel/Memory/MAllocFree.CC +++ b/src/Kernel/Memory/MAllocFree.ZC @@ -222,7 +222,7 @@ MALLOC_FINAL_EXIT: //************************************ _FREE:: -//Be aware of $LK,"heap_hash",A="FF:::/Kernel/Memory/MAllocFree.CC,heap_hash"$ in $LK,"MemPagTaskAlloc",A="MN:MemPagTaskAlloc"$(). +//Be aware of $LK,"heap_hash",A="FF:::/Kernel/Memory/MAllocFree.ZC,heap_hash"$ in $LK,"MemPagTaskAlloc",A="MN:MemPagTaskAlloc"$(). PUSH RBP MOV RBP, RSP PUSH RSI diff --git a/src/Kernel/Memory/MakeMemory.CC b/src/Kernel/Memory/MakeMemory.ZC similarity index 100% rename from src/Kernel/Memory/MakeMemory.CC rename to src/Kernel/Memory/MakeMemory.ZC diff --git a/src/Kernel/Memory/MemPag.CC b/src/Kernel/Memory/MemPag.ZC similarity index 100% rename from src/Kernel/Memory/MemPag.CC rename to src/Kernel/Memory/MemPag.ZC diff --git a/src/Kernel/Memory/MemPhysical.CC b/src/Kernel/Memory/MemPhysical.ZC similarity index 100% rename from src/Kernel/Memory/MemPhysical.CC rename to src/Kernel/Memory/MemPhysical.ZC diff --git a/src/Kernel/Memory/PageTables.CC b/src/Kernel/Memory/PageTables.ZC similarity index 100% rename from src/Kernel/Memory/PageTables.CC rename to src/Kernel/Memory/PageTables.ZC diff --git a/src/Kernel/MultiProc.CC b/src/Kernel/MultiProc.ZC similarity index 97% rename from src/Kernel/MultiProc.CC rename to src/Kernel/MultiProc.ZC index d22424ee..9a7c7cf3 100755 --- a/src/Kernel/MultiProc.CC +++ b/src/Kernel/MultiProc.ZC @@ -4,7 +4,7 @@ USE16 //See $LK,"ZealOS MultiCore",A="FI:::/Doc/MultiCore.DD"$. //This code gets copied to $LK,"MP_VECT_ADDR",A="MN:MP_VECT_ADDR"$. -//See $LK,"MemCopy(MP_VECT_ADDR",A="FF:::/Kernel/MultiProc.CC,MemCopy(mp:2"$. +//See $LK,"MemCopy(MP_VECT_ADDR",A="FF:::/Kernel/MultiProc.ZC,MemCopy(mp:2"$. COREAP_16BIT_INIT:: JMP @@05 @@ -16,7 +16,7 @@ AP_GDT_PTR: DU16 sizeof(CGDT) - 1; WBINVD MOV AX, MP_VECT_ADDR / 16 MOV DS, AX - LGDT U32 [CAP16BitInit.ap_gdt_ptr] //See $LK,"mp->ap_gdt_ptr",A="FF:::/Kernel/MultiProc.CC,mp->ap_gdt_ptr:2"$ + LGDT U32 [CAP16BitInit.ap_gdt_ptr] //See $LK,"mp->ap_gdt_ptr",A="FF:::/Kernel/MultiProc.ZC,mp->ap_gdt_ptr:2"$ MOV EAX, SYS_START_CR0 MOV_CR0_EAX @@ -74,7 +74,7 @@ USE64 } U0 TSSBusy(I64 tr, Bool val=OFF) -{//See $LK,"::/Demo/Lectures/Ring3.CC"$. +{//See $LK,"::/Demo/Lectures/Ring3.ZC"$. LBEqual((&sys_gdt)(U8 *) + tr + 4, 9, val); } @@ -132,7 +132,7 @@ CCPU *CPUStructInit(I64 num, CCPU *c, CTask *executive_task) LBts(&c->idle_task->task_flags, TASKf_IDLE); c->tss = TSSNew(num); } - c->executive_task = executive_task;// It waits for this to be filled-in: $LK,"executive_task",A="FF:::/Kernel/MultiProc.CC,executive_task"$ + c->executive_task = executive_task;// It waits for this to be filled-in: $LK,"executive_task",A="FF:::/Kernel/MultiProc.ZC,executive_task"$ return c; } @@ -230,7 +230,7 @@ CJob *JobQueue(I64 (*fp_addr)(U8 *data), U8 *data=NULL, I64 target_cpu=1, I64 fl I64 job_code=JOBT_CALL, U8 *aux_str=NULL, I64 aux1=0, I64 aux2=0) {//Queue multicore jobs, handled by Executive tasks. //Set flags to zero if you wish to get the res. - //See $LK,"::/Demo/MultiCore/Lock.CC"$ + //See $LK,"::/Demo/MultiCore/Lock.ZC"$ CJobCtrl *ctrl; CJob *tmpc; CTask *executive; @@ -301,7 +301,7 @@ U0 CoreAPExecutiveInit() } U0 Core0StartMP() -{//Called by sys_task during $LK,"start-up",A="FF:::/Kernel/KMain.CC,Core0StartMP"$. +{//Called by sys_task during $LK,"start-up",A="FF:::/Kernel/KMain.ZC,Core0StartMP"$. CTask *task; U8 buf[STR_LEN]; CAP16BitInit *mp = MP_VECT_ADDR; diff --git a/src/Kernel/PCI.CC b/src/Kernel/PCI.ZC similarity index 100% rename from src/Kernel/PCI.CC rename to src/Kernel/PCI.ZC diff --git a/src/Kernel/PCIBIOS.CC b/src/Kernel/PCIBIOS.ZC similarity index 100% rename from src/Kernel/PCIBIOS.CC rename to src/Kernel/PCIBIOS.ZC diff --git a/src/Kernel/QuickSort.CC b/src/Kernel/QuickSort.ZC similarity index 96% rename from src/Kernel/QuickSort.CC rename to src/Kernel/QuickSort.ZC index 08870363..ba70ef1a 100755 --- a/src/Kernel/QuickSort.CC +++ b/src/Kernel/QuickSort.ZC @@ -5,7 +5,7 @@ fp_compare() passes by value instead of ref. For ascending strings: return StrCompare(e1,e2); For ascending ints : return e1-e2; -Maybe, look at $LK,"::/Demo/MultiCore/MPRadix.CC"$. +Maybe, look at $LK,"::/Demo/MultiCore/MPRadix.ZC"$. */ I64 i, *left, *right, pivot; @@ -103,7 +103,7 @@ For ascending strings: return StrCompare(*e1,*e2); For ascending ints : return *e1-*e2; Don't return e1-e2 if numbers can overflow, return -1,0 or 1. -Maybe, look at $LK,"::/Demo/MultiCore/MPRadix.CC"$. +Maybe, look at $LK,"::/Demo/MultiCore/MPRadix.ZC"$. */ U8 *tmp; diff --git a/src/Kernel/Sched.CC b/src/Kernel/Sched.ZC similarity index 100% rename from src/Kernel/Sched.CC rename to src/Kernel/Sched.ZC diff --git a/src/Kernel/SerialDev/Keyboard.CC b/src/Kernel/SerialDev/Keyboard.ZC similarity index 100% rename from src/Kernel/SerialDev/Keyboard.CC rename to src/Kernel/SerialDev/Keyboard.ZC diff --git a/src/Kernel/SerialDev/MakeSerialDev.CC b/src/Kernel/SerialDev/MakeSerialDev.ZC similarity index 100% rename from src/Kernel/SerialDev/MakeSerialDev.CC rename to src/Kernel/SerialDev/MakeSerialDev.ZC diff --git a/src/Kernel/SerialDev/Message.CC b/src/Kernel/SerialDev/Message.ZC similarity index 99% rename from src/Kernel/SerialDev/Message.CC rename to src/Kernel/SerialDev/Message.ZC index 7dc141d9..143c0fce 100755 --- a/src/Kernel/SerialDev/Message.CC +++ b/src/Kernel/SerialDev/Message.ZC @@ -109,7 +109,7 @@ I64 FlushMessages(CTask *task=NULL) I64 MessageGet(I64 *_arg1=NULL, I64 *_arg2=NULL, I64 mask=~1, CTask *task=NULL) {//Wait for a message of type specified by a one in the mask. //Throw-out all messages not in mask. - //Returns $LK,"message_code",A="MN:MESSAGE_CMD"$. See $LK,"::/Demo/MessageLoop.CC"$. + //Returns $LK,"message_code",A="MN:MESSAGE_CMD"$. See $LK,"::/Demo/MessageLoop.ZC"$. I64 res; if (!task) diff --git a/src/Kernel/SerialDev/Mouse.CC b/src/Kernel/SerialDev/Mouse.ZC similarity index 99% rename from src/Kernel/SerialDev/Mouse.CC rename to src/Kernel/SerialDev/Mouse.ZC index 97963b89..f81cc9a5 100755 --- a/src/Kernel/SerialDev/Mouse.CC +++ b/src/Kernel/SerialDev/Mouse.ZC @@ -1,5 +1,5 @@ U0 GridInit() -{//Init mouse grid struct. See $LK,"::/Demo/Graphics/Grid.CC"$. +{//Init mouse grid struct. See $LK,"::/Demo/Graphics/Grid.ZC"$. mouse_grid.x = mouse_grid.y = mouse_grid.z = 8; mouse_grid.x_offset = mouse_grid.y_offset = mouse_grid.z_offset = 0; mouse_grid.x_speed = mouse_grid.y_speed = mouse_grid.z_speed = 1; @@ -45,7 +45,7 @@ U0 MouseUpdate(I64 x, I64 y, I64 z, Bool l, Bool r) } U0 MouseSet(I64 x=I64_MAX, I64 y=I64_MAX, I64 z=I64_MAX, I64 l=I64_MAX, I64 r=I64_MAX) -{//Note: Generates a message. See $LK,"MouseSet",A="FF:::/Demo/Games/Zing.CC,MouseSet"$(). +{//Note: Generates a message. See $LK,"MouseSet",A="FF:::/Demo/Games/Zing.ZC,MouseSet"$(). if (!(0 <= x < sys_vbe_mode.width)) x = mouse.pos.x; if (!(0 <= y < sys_vbe_mode.height)) diff --git a/src/Kernel/StrA.CC b/src/Kernel/StrA.ZC similarity index 100% rename from src/Kernel/StrA.CC rename to src/Kernel/StrA.ZC diff --git a/src/Kernel/StrB.CC b/src/Kernel/StrB.ZC similarity index 98% rename from src/Kernel/StrB.CC rename to src/Kernel/StrB.ZC index 3817c4d2..89bb0cfb 100755 --- a/src/Kernel/StrB.CC +++ b/src/Kernel/StrB.ZC @@ -148,7 +148,7 @@ U0 FlagsScan(U8 *_dst_flags, U8 *list, U8 *src) {/*More than 64 flags. Flags passed by ref. Examples: -$LK,"FlagsScan",A="FF:::/System/Utils/Find.CC,FlagsScan:2"$(&fuf_flags,Define("ST_FILE_UTIL_FLAGS"),fu_flags); +$LK,"FlagsScan",A="FF:::/System/Utils/Find.ZC,FlagsScan:2"$(&fuf_flags,Define("ST_FILE_UTIL_FLAGS"),fu_flags); I64 flags=0; FlagsScan(&flags,"R\0L\0Dump\0Scan\0","+Dump-R"); //Sets Bit#2, Clears Bit#0. diff --git a/src/Kernel/StrPrint.CC b/src/Kernel/StrPrint.ZC similarity index 100% rename from src/Kernel/StrPrint.CC rename to src/Kernel/StrPrint.ZC diff --git a/src/Kernel/StrScan.CC b/src/Kernel/StrScan.ZC similarity index 100% rename from src/Kernel/StrScan.CC rename to src/Kernel/StrScan.ZC diff --git a/src/MakeHome.CC b/src/MakeHome.ZC similarity index 100% rename from src/MakeHome.CC rename to src/MakeHome.ZC diff --git a/src/Misc/Auto/AutoDistro.CC b/src/Misc/Auto/AutoDistro.ZC similarity index 90% rename from src/Misc/Auto/AutoDistro.CC rename to src/Misc/Auto/AutoDistro.ZC index 50041543..be0a04c5 100755 --- a/src/Misc/Auto/AutoDistro.CC +++ b/src/Misc/Auto/AutoDistro.ZC @@ -24,7 +24,7 @@ U0 MakeMyISO(U8 *_out_iso_filename) Move(BOOT_DIR_DVD_KERNEL_BIN_C, "/Distro" BOOT_DIR_KERNEL_BIN_C); CopyTree("/Home", "/Distro/Home"); - Del("/Distro/Home/Registry.CC"); + Del("/Distro/Home/Registry.ZC"); CopyTree("/System", "/Distro/System"); Del("/Distro/System/AutoComplete/ACDefs.DATA"); CopyTree("/Compiler", "/Distro/Compiler"); @@ -33,8 +33,8 @@ U0 MakeMyISO(U8 *_out_iso_filename) DirMake("/Distro/Doc"); Copy("/Doc/EdPullDown.DD", "/Distro/Doc/EdPullDown.DD"); Copy("/Doc/Tips.DD", "/Distro/Doc/Tips.DD"); - Copy("/Misc/Auto/Once.CC", "/Distro/Once.CC"); - Copy("/Misc/Auto/HomeSys.CC", "/Distro/HomeSys.CC"); + Copy("/Misc/Auto/Once.ZC", "/Distro/Once.ZC"); + Copy("/Misc/Auto/HomeSys.ZC", "/Distro/HomeSys.ZC"); Del("/Distro/Misc/PCIDevices.DD"); Del("/Distro/Misc/Bible.TXT"); Del("/Distro/Misc/Clementine.TXT"); diff --git a/src/Misc/Auto/AutoFullDistro0.CC b/src/Misc/Auto/AutoFullDistro0.ZC similarity index 100% rename from src/Misc/Auto/AutoFullDistro0.CC rename to src/Misc/Auto/AutoFullDistro0.ZC diff --git a/src/Misc/Auto/AutoFullDistro1.CC b/src/Misc/Auto/AutoFullDistro1.ZC similarity index 100% rename from src/Misc/Auto/AutoFullDistro1.CC rename to src/Misc/Auto/AutoFullDistro1.ZC diff --git a/src/Misc/Auto/AutoFullDistro2.CC b/src/Misc/Auto/AutoFullDistro2.ZC similarity index 94% rename from src/Misc/Auto/AutoFullDistro2.CC rename to src/Misc/Auto/AutoFullDistro2.ZC index c18854f1..6ed4e235 100755 --- a/src/Misc/Auto/AutoFullDistro2.CC +++ b/src/Misc/Auto/AutoFullDistro2.ZC @@ -12,7 +12,7 @@ U0 MakeMyISO() return; } - DocTreeFWrite("/System/Define.CC", "LineRep", "DefinePrint(\"DD_ZEALOS_LOC\",\"%,d\");\n", line_count); + DocTreeFWrite("/System/Define.ZC", "LineRep", "DefinePrint(\"DD_ZEALOS_LOC\",\"%,d\");\n", line_count); DefinePrint("DD_ZEALOS_LOC", "%,d", line_count); "Total LOC:%12,d\n\n", line_count; @@ -36,7 +36,7 @@ U0 MakeMyISO() progress1++; CopyTree("/Home", "/Distro/Home"); progress1++; - Del("/Distro/Home/Registry.CC"); + Del("/Distro/Home/Registry.ZC"); CopyTree("/System", "/Distro/System"); progress1++; CopyTree("/Apps", "/Distro/Apps"); diff --git a/src/Misc/Auto/AutoInstall.CC b/src/Misc/Auto/AutoInstall.ZC similarity index 91% rename from src/Misc/Auto/AutoInstall.CC rename to src/Misc/Auto/AutoInstall.ZC index 14c2064b..355ae251 100755 --- a/src/Misc/Auto/AutoInstall.CC +++ b/src/Misc/Auto/AutoInstall.ZC @@ -11,14 +11,14 @@ U0 InstallDrive(U8 drv_let) ExePrint("DirMake(\"%C:/Tmp/ScreenShots\");", drv_let); ExePrint("DirMake(\"%C:/Home\");", drv_let); - st = MStrPrint("%C:/Home/DoDistro.CC", drv_let); + st = MStrPrint("%C:/Home/DoDistro.ZC", drv_let); if (!FileFind(st)) - Copy("::/Misc/DoDistro.CC", st); + Copy("::/Misc/DoDistro.ZC", st); Free(st); - st = MStrPrint("%C:/Home/MakeHome.CC", drv_let); + st = MStrPrint("%C:/Home/MakeHome.ZC", drv_let); if (!FileFind(st)) - Copy("::/MakeHome.CC", st); + Copy("::/MakeHome.ZC", st); Free(st); } @@ -96,7 +96,7 @@ U0 VMInstallWiz() BootMHDIns('C'); } - Copy("::/Misc/Auto/BootMHD2.CC", "C:/System/Boot/BootMHD2.CC"); + Copy("::/Misc/Auto/BootMHD2.ZC", "C:/System/Boot/BootMHD2.ZC"); //////////////////////////////////// diff --git a/src/Misc/Auto/BootMHD2.CC b/src/Misc/Auto/BootMHD2.ZC similarity index 97% rename from src/Misc/Auto/BootMHD2.CC rename to src/Misc/Auto/BootMHD2.ZC index 1c333c19..a1410cfa 100755 --- a/src/Misc/Auto/BootMHD2.CC +++ b/src/Misc/Auto/BootMHD2.ZC @@ -117,6 +117,6 @@ BMHD2_HISTART: BMHD2_OLD_CS_RIP: DU16 0, 0; BMHD2_END:: -//Continues here $LK,"::/System/Boot/BootHD.CC",A="FF:::/System/Boot/BootHD.CC,START"$ +//Continues here $LK,"::/System/Boot/BootHD.ZC",A="FF:::/System/Boot/BootHD.ZC,START"$ #assert BMHD2_END - BMHD2_START < MODULE_SIZE } diff --git a/src/Misc/Auto/HomeSys.CC b/src/Misc/Auto/HomeSys.ZC similarity index 100% rename from src/Misc/Auto/HomeSys.CC rename to src/Misc/Auto/HomeSys.ZC diff --git a/src/Misc/Auto/Once.CC b/src/Misc/Auto/Once.ZC similarity index 83% rename from src/Misc/Auto/Once.CC rename to src/Misc/Auto/Once.ZC index a3a8ac2c..2ad35116 100755 --- a/src/Misc/Auto/Once.CC +++ b/src/Misc/Auto/Once.ZC @@ -1,9 +1,9 @@ -// Custom temporary Once.CC used by Auto ISO process. +// Custom temporary Once.ZC used by Auto ISO process. //This file is executed by the //first terminal window upon start-up. -//See $LK,"Once",A="FF:~/HomeSys.CC,Once"$ and $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$. +//See $LK,"Once",A="FF:~/HomeSys.ZC,Once"$ and $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$. U0 Tmp() { diff --git a/src/Misc/DoDistro.CC b/src/Misc/DoDistro.ZC similarity index 92% rename from src/Misc/DoDistro.CC rename to src/Misc/DoDistro.ZC index 1ab92923..3f877a9b 100755 --- a/src/Misc/DoDistro.CC +++ b/src/Misc/DoDistro.ZC @@ -25,7 +25,7 @@ U0 MakeMyISO(U8 *_out_iso_filename) // CopyTree(BOOT_DIR, "/Distro" BOOT_DIR); CopyTree("/Home", "/Distro/Home"); - Del("/Distro/Home/Registry.CC"); + Del("/Distro/Home/Registry.ZC"); CopyTree("/System", "/Distro/System"); CopyTree("/Apps", "/Distro/Apps"); CopyTree("/Compiler", "/Distro/Compiler"); @@ -50,4 +50,4 @@ U0 MakeMyISO(U8 *_out_iso_filename) MakeMyISO("/Tmp/MyDistro.ISO.C"); -// Study the account examples $LK,"Config Strs",A="FL:::/Demo/AcctExample/TOS/TOSConfig.CC,1"$, $LK,"Update Funs",A="FL:::/Demo/AcctExample/TOS/TOSDistro.CC,1"$. +// Study the account examples $LK,"Config Strs",A="FL:::/Demo/AcctExample/TOS/TOSConfig.ZC,1"$, $LK,"Update Funs",A="FL:::/Demo/AcctExample/TOS/TOSDistro.ZC,1"$. diff --git a/src/Misc/OSInstall.CC b/src/Misc/OSInstall.ZC similarity index 97% rename from src/Misc/OSInstall.CC rename to src/Misc/OSInstall.ZC index 5fbd025d..36aced0c 100755 --- a/src/Misc/OSInstall.CC +++ b/src/Misc/OSInstall.ZC @@ -49,7 +49,7 @@ U0 OSFilesMergeInner(CDirEntry *tmpde1, CDirEntry *tmpde2, I64 *_fuf_flags, I64 } U0 OSFilesMerge(U8 *dst_files_find_mask="/*", U8 *src_files_find_mask="/*", U8 *fu_flags=NULL) -{ // See $LK+PU,"Merge",A="FF:::/System/Utils/Merge.CC,public U0 Merge"$. +{ // See $LK+PU,"Merge",A="FF:::/System/Utils/Merge.ZC,public U0 Merge"$. I64 df_flags = 0, fuf_flags = 0; CDirEntry *tmpde1 = NULL, *tmpde2 = NULL; @@ -163,14 +163,14 @@ U0 InstallDrive(U8 drv_let) ExePrint("DirMake(\"%C:/Tmp/ScreenShots\");", drv_let); ExePrint("DirMake(\"%C:/Home\");", drv_let); - st = MStrPrint("%C:/Home/DoDistro.CC", drv_let); + st = MStrPrint("%C:/Home/DoDistro.ZC", drv_let); if (!FileFind(st)) - Copy("::/Misc/DoDistro.CC", st); + Copy("::/Misc/DoDistro.ZC", st); Free(st); - st = MStrPrint("%C:/Home/MakeHome.CC", drv_let); + st = MStrPrint("%C:/Home/MakeHome.ZC", drv_let); if (!FileFind(st)) - Copy("::/MakeHome.CC", st); + Copy("::/MakeHome.ZC", st); Free(st); } diff --git a/src/Misc/OSTestSuite.CC b/src/Misc/OSTestSuite.ZC similarity index 100% rename from src/Misc/OSTestSuite.CC rename to src/Misc/OSTestSuite.ZC diff --git a/src/Misc/Tour/Tour3.IN b/src/Misc/Tour/Tour3.IN index 806c3b2c..b2b50478 100755 --- a/src/Misc/Tour/Tour3.IN +++ b/src/Misc/Tour/Tour3.IN @@ -21,7 +21,7 @@ TourPut( "Now, we're going to edit a file. Normally, " "type it on the command line.\n\n" "$$GREEN$$$$FG$$ to complete the command.\n"); -InPrint(25, "Ed(\"CastleFrankenstein.CC\");"); +InPrint(25, "Ed(\"CastleFrankenstein.ZC\");"); InGetStr("\n"); Message(MESSAGE_KEY_DOWN_UP, 0, SC_CURSOR_UP | SCF_CTRL); @@ -41,7 +41,7 @@ TourPut("Press $$GREEN$$$$FG$$ to abort the editor.\n"); InCharGet(CH_ESC,CH_SHIFT_ESC); -TourPut("Now, run the CastleFrankenstein.CC program. Press $$GREEN$$$$FG$$.\n"); +TourPut("Now, run the CastleFrankenstein.ZC program. Press $$GREEN$$$$FG$$.\n"); InPrint(25, "#include \"CastleFrankenstein\";"); InGetStr("\n"); @@ -66,7 +66,7 @@ TourPut( "$$GREEN$$$$FG$$\tExtended ASCII.\n" "$$GREEN$$$$FG$$\tTerminal window.\n" "$$GREEN$$$$FG$$\tKill task (window).\n", TRUE); -InPrint(50, "Ed(\"CastleFrankenstein.CC\");\n"); +InPrint(50, "Ed(\"CastleFrankenstein.ZC\");\n"); TourPut("Press $$GREEN$$$$FG$$ in the editor to run the file being edited.\n"); diff --git a/src/Misc/Tour/Tour4.IN b/src/Misc/Tour/Tour4.IN index c662ac0c..2454f3c4 100755 --- a/src/Misc/Tour/Tour4.IN +++ b/src/Misc/Tour/Tour4.IN @@ -2,7 +2,7 @@ Message(MESSAGE_KEY_DOWN, 0, SC_CURSOR_DOWN | SCF_CTRL); "\nCd(\"::/Demo/Games\");Dir;\n"; -TourPut( "Now, we're going to add the CastleFrankenstein.CC program " +TourPut( "Now, we're going to add the CastleFrankenstein.ZC program " "to your PersonalMenu.\n\n" "Press $$GREEN$$$$FG$$ to get to your PersonalMenu.\n"); InCharGet(CH_CTRLM); diff --git a/src/Misc/Tour/Tour7.IN b/src/Misc/Tour/Tour7.IN index 10433292..421fe5f4 100755 --- a/src/Misc/Tour/Tour7.IN +++ b/src/Misc/Tour/Tour7.IN @@ -44,7 +44,7 @@ Sleep(2000); TourPut("Notice the number of matches.\n",TRUE); -TourPut( "The wrapper function is in your $$RED$$~/HomeWrappers.CC$$FG$$ file. " +TourPut( "The wrapper function is in your $$RED$$~/HomeWrappers.ZC$$FG$$ file. " "There is a function $$RED$$$$TX+L+PU+UL,\"R\",A=\"MN:R\"$$$$FG$$() for " "find and replace. Feel free to customize.\n", TRUE); @@ -54,7 +54,7 @@ TourPut("Press $$GREEN$$$$FG$$.\n"); Message(MESSAGE_KEY_DOWN, 0, SC_CURSOR_DOWN | SCF_CTRL); "\n"; -"Ed(\"~/HomeWrappers.CC\");"; +"Ed(\"~/HomeWrappers.ZC\");"; InGetStr("\n"); TourPut("Press $$GREEN$$$$FG$$ to abort the source code.\n"); diff --git a/src/Once.CC b/src/Once.ZC similarity index 93% rename from src/Once.CC rename to src/Once.ZC index be0b6d7b..c45446b2 100755 --- a/src/Once.CC +++ b/src/Once.ZC @@ -3,7 +3,7 @@ //This file is executed by the //first terminal window upon start-up. -//See $LK,"Once",A="FF:~/HomeSys.CC,Once"$ and $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$. +//See $LK,"Once",A="FF:~/HomeSys.ZC,Once"$ and $LK,"Home Files",A="FF:::/Doc/GuideLines.DD,/Home Files"$. //Delete the rest from this file. diff --git a/src/PersonalMenu.DD b/src/PersonalMenu.DD index 6b909d32..5fbfc47c 100755 Binary files a/src/PersonalMenu.DD and b/src/PersonalMenu.DD differ diff --git a/src/StartOS.CC b/src/StartOS.ZC similarity index 94% rename from src/StartOS.CC rename to src/StartOS.ZC index 6b4be193..0409e0dc 100755 --- a/src/StartOS.CC +++ b/src/StartOS.ZC @@ -1,5 +1,5 @@ //This is executed by the System task at boot. -//See $LK,"System Start-up",A="FF:::/Kernel/KMain.CC,\"StartOS"$. +//See $LK,"System Start-up",A="FF:::/Kernel/KMain.ZC,\"StartOS"$. #help_index "Compiler/Directive" public extern I8i Option(I64i num, I8i val); diff --git a/src/System/AutoComplete/ACDictGen.CC b/src/System/AutoComplete/ACDictGen.ZC similarity index 100% rename from src/System/AutoComplete/ACDictGen.CC rename to src/System/AutoComplete/ACDictGen.ZC diff --git a/src/System/AutoComplete/ACFill.CC b/src/System/AutoComplete/ACFill.ZC similarity index 100% rename from src/System/AutoComplete/ACFill.CC rename to src/System/AutoComplete/ACFill.ZC diff --git a/src/System/AutoComplete/ACInit.CC b/src/System/AutoComplete/ACInit.ZC similarity index 100% rename from src/System/AutoComplete/ACInit.CC rename to src/System/AutoComplete/ACInit.ZC diff --git a/src/System/AutoComplete/ACTask.CC b/src/System/AutoComplete/ACTask.ZC similarity index 100% rename from src/System/AutoComplete/ACTask.CC rename to src/System/AutoComplete/ACTask.ZC diff --git a/src/System/AutoComplete/MakeAC.CC b/src/System/AutoComplete/MakeAC.ZC similarity index 100% rename from src/System/AutoComplete/MakeAC.CC rename to src/System/AutoComplete/MakeAC.ZC diff --git a/src/System/BlkDev/DiskCheck.CC b/src/System/BlkDev/DiskCheck.ZC similarity index 100% rename from src/System/BlkDev/DiskCheck.CC rename to src/System/BlkDev/DiskCheck.ZC diff --git a/src/System/BlkDev/DiskPart.CC b/src/System/BlkDev/DiskPart.ZC similarity index 100% rename from src/System/BlkDev/DiskPart.CC rename to src/System/BlkDev/DiskPart.ZC diff --git a/src/System/BlkDev/FileMgr.CC b/src/System/BlkDev/FileMgr.ZC similarity index 100% rename from src/System/BlkDev/FileMgr.CC rename to src/System/BlkDev/FileMgr.ZC diff --git a/src/System/BlkDev/MakeZBlkDev.CC b/src/System/BlkDev/MakeZBlkDev.ZC similarity index 100% rename from src/System/BlkDev/MakeZBlkDev.CC rename to src/System/BlkDev/MakeZBlkDev.ZC diff --git a/src/System/BlkDev/Mount.CC b/src/System/BlkDev/Mount.ZC similarity index 97% rename from src/System/BlkDev/Mount.CC rename to src/System/BlkDev/Mount.ZC index 5e5f0eac..9f1c5e02 100755 --- a/src/System/BlkDev/Mount.CC +++ b/src/System/BlkDev/Mount.ZC @@ -146,7 +146,7 @@ public I64 SATARep(I64 bd_type=BDT_NULL) #help_index "Install;File/Cmd Line (Typically);Cmd Line (Typically);" U8 Mount2(U8 boot_drive_let, CDoc *_doc, Bool _caller_is_prtdisk) -{//If _doc, called by $LK,"::/Kernel/KConfig.CC"$ else called by $LK,"Mount",A="MN:Mount"$(). +{//If _doc, called by $LK,"::/Kernel/KConfig.ZC"$ else called by $LK,"Mount",A="MN:Mount"$(). I64 count, total = 0, num_hints, drv_let, type, prt_num, port; U8 blks_buf[STR_LEN], addr_buf[STR_LEN], port_str[STR_LEN], *filename = NULL, *filename2 = NULL, res = 0; @@ -184,7 +184,7 @@ U8 Mount2(U8 boot_drive_let, CDoc *_doc, Bool _caller_is_prtdisk) { whole_drive = FALSE; if (_doc) - { //Called by $LK,"::/Kernel/KConfig.CC"$ + { //Called by $LK,"::/Kernel/KConfig.ZC"$ doc = _doc; make_free = FALSE; } @@ -218,7 +218,7 @@ U8 Mount2(U8 boot_drive_let, CDoc *_doc, Bool _caller_is_prtdisk) case BDT_ATAPI: num_hints = SATARep(type); if (type == BDT_ATAPI && boot_drive_let) - " to use booted CD/DVD\n"; //Only $LK,"::/Kernel/KConfig.CC"$ + " to use booted CD/DVD\n"; //Only $LK,"::/Kernel/KConfig.ZC"$ do { if (num_hints) @@ -264,7 +264,7 @@ U8 Mount2(U8 boot_drive_let, CDoc *_doc, Bool _caller_is_prtdisk) if (!*port_str && _doc) { DocPrint(doc, "\"AHCIBootDVDProbeAll(bd);\n\";\n"); - DocPrint(doc, "AHCIBootDVDProbeAll(bd);\n"); //Only $LK,"::/Kernel/KConfig.CC"$ + DocPrint(doc, "AHCIBootDVDProbeAll(bd);\n"); //Only $LK,"::/Kernel/KConfig.ZC"$ if (drv_let == boot_drive_let) make_free = TRUE; @@ -281,7 +281,7 @@ U8 Mount2(U8 boot_drive_let, CDoc *_doc, Bool _caller_is_prtdisk) } DocPrint(doc, "\"BlkDevAdd(bd, 0x%0X, %Z, %Z);\n\";\n", prt_num, whole_drive, "ST_FALSE_TRUE", make_free, "ST_FALSE_TRUE"); DocPrint(doc, "BlkDevAdd(bd, 0x%0X, %d, %d);\n", prt_num, whole_drive, make_free); - if (_doc) //Called by $LK,"::/Kernel/KConfig.CC"$ + if (_doc) //Called by $LK,"::/Kernel/KConfig.ZC"$ count++; else { //Called by $LK,"Mount",A="MN:Mount"$() @@ -300,7 +300,7 @@ U8 Mount2(U8 boot_drive_let, CDoc *_doc, Bool _caller_is_prtdisk) } total += count; } - while (count && !_caller_is_prtdisk || !total && _doc); //At least 1 if Called by $LK,"::/Kernel/KConfig.CC"$ + while (count && !_caller_is_prtdisk || !total && _doc); //At least 1 if Called by $LK,"::/Kernel/KConfig.ZC"$ Free(filename); Free(filename2); @@ -309,7 +309,7 @@ U8 Mount2(U8 boot_drive_let, CDoc *_doc, Bool _caller_is_prtdisk) } public U8 Mount(Bool caller_is_prtdisk=FALSE) -{//Mount drives. Called from $LK,"DiskPart(Mount)",A="FF:::/System/BlkDev/DiskPart.CC,Mount("$. +{//Mount drives. Called from $LK,"DiskPart(Mount)",A="FF:::/System/BlkDev/DiskPart.ZC,Mount("$. return Mount2(0, NULL, caller_is_prtdisk); } diff --git a/src/System/BlkDev/ZDiskA.CC b/src/System/BlkDev/ZDiskA.ZC similarity index 98% rename from src/System/BlkDev/ZDiskA.CC rename to src/System/BlkDev/ZDiskA.ZC index 20211016..84930fff 100755 --- a/src/System/BlkDev/ZDiskA.CC +++ b/src/System/BlkDev/ZDiskA.ZC @@ -3,7 +3,7 @@ public U8 *BlkDump(I64 blk, Bool write=FALSE) {//Dump disk block. Optionally, write. //If you set write to TRUE, the block will //be written when you press . - //See $LK,"::/Demo/Disk/DiskRaw.CC"$. + //See $LK,"::/Demo/Disk/DiskRaw.ZC"$. U8 *buf = MAlloc(BLK_SIZE); BlkRead(Fs->cur_dv, buf, blk, 1); @@ -25,7 +25,7 @@ public U8 *ClusDump(I64 c, Bool write=FALSE, I64 num=0) {//Dump disk cluster. Optionally, write. //If you set write to TRUE, the cluster will //be written when you press . - //See $LK,"::/Demo/Disk/DiskRaw.CC"$. + //See $LK,"::/Demo/Disk/DiskRaw.ZC"$. //Do $LK,"Dir",A="MN:Dir"$("*",TRUE); to get cluster numbers of files. U8 *buf = MAlloc(Fs->cur_dv->spc << BLK_SIZE_BITS); diff --git a/src/System/BlkDev/ZDiskB.CC b/src/System/BlkDev/ZDiskB.ZC similarity index 100% rename from src/System/BlkDev/ZDiskB.CC rename to src/System/BlkDev/ZDiskB.ZC diff --git a/src/System/Boot/BootDVD.CC b/src/System/Boot/BootDVD.CC deleted file mode 100755 index 5b22ff67..00000000 --- a/src/System/Boot/BootDVD.CC +++ /dev/null @@ -1,183 +0,0 @@ -#define BOOT_HIGH_LOC_DVD ((BOOT_RAM_LIMIT - (BOOT_STACK_SIZE + DVD_BOOT_LOADER_SIZE)) >> 4) - -DefinePrint("DD_BOOT_HIGH_LOC_DVD", "%08X", BOOT_HIGH_LOC_DVD << 4); -DefinePrint("DD_BOOT_HIGH_LOC_DVD_END", "%08X", BOOT_RAM_LIMIT - 1); - -asm { -USE16 -BDVD_START:: -//DL is supposed to have the BIOS drive number - CLD - MOV AX, BOOT_HIGH_LOC_DVD - MOV ES, AX - - CLI - MOV SS, AX - MOV SP, BOOT_STACK_SIZE + DVD_BOOT_LOADER_SIZE - STI - - CALL BDVD_GET_RIP -BDVD_GET_RIP: - POP BX - SUB BX, BDVD_GET_RIP - BDVD_START - SHR BX, 4 -//This copies this bootloader's code to 0x$TX,"00096600",D="DD_BOOT_HIGH_LOC_DVD"$ - MOV AX, CS - ADD AX, BX - MOV DS, AX - MOV CX, DVD_BOOT_LOADER_SIZE - XOR SI, SI - XOR DI, DI - REP_MOVSB - - MOV AX, BOOT_HIGH_LOC_DVD - MOV DS, AX - -//The assembler doesn't support 16-bit very well. - DU8 0xEA; //JMP BOOT_HIGH_LOC_DVD:BDVD_MAIN - DU16 BDVD_MAIN - BDVD_START, BOOT_HIGH_LOC_DVD; - -BDVD_BIOS_DRIVE_NUM: DU8 0; -BDVD_PAGE: DU8 0; - -BDVD_DAP: DU8 16, 0, 1, 0; //One block at a time -BDVD_DAP_BUF: DU16 0, 0; -BDVD_DAP_BLK: DU64 0; - -BDVD_ZEALOS_MESSAGE: DU8 "Loading ZealOS", 0; - -BDVD_NOT64_MESSAGE: DU8 "ZealOS requires a 64-bit capable processor.\n\r", 0; - -//These get patched. -BDVD_BLK_LO:: DU16 0; -BDVD_BLK_HI:: DU16 0; -BDVD_BLK_COUNT:: DU16 0; -BDVD_SHIFT_BLKS:: DU16 0; -BDVD_PROGRESS_STEP:: DU32 0; -BDVD_PROGRESS_VAL:: DU32 0; - -BDVD_PUT_CHAR:: - MOV AH, 0xE - MOV BL, 7 //Might be foreground color on some BIOS's - MOV BH, U8 [BDVD_PAGE - BDVD_START] - INT 0x10 -BDVD_RET:: - RET -BDVD_PUTS:: -@@1: LODSB - TEST AL, AL - JZ BDVD_RET - CALL BDVD_PUT_CHAR - JMP @@1 - -BDVD_MAIN:: - MOV U8 [BDVD_BIOS_DRIVE_NUM - BDVD_START], DL //Passed in by BIOS - - MOV AH, 0xF - INT 0x10 - MOV U8 [BDVD_PAGE - BDVD_START], BH //Video page - - MOV EAX, 0x80000000 - CPUID - CMP EAX, 0x80000001 - JB @@05 - - MOV EAX, 0x80000001 - CPUID - BT EDX, 29 - JC @@15 -@@05: MOV SI, BDVD_NOT64_MESSAGE - BDVD_START - CALL BDVD_PUTS -@@10: JMP @@10 - -@@15: MOV SI, BDVD_ZEALOS_MESSAGE - BDVD_START - CALL BDVD_PUTS - - MOV AX, BOOT_RAM_BASE / 16 - MOV ES, AX - XOR ECX, ECX - MOV CX, U16 [BDVD_BLK_COUNT - BDVD_START] - - MOV EAX, (80 - 7 - 9) * 65536 //80 columns - XOR EDX, EDX - DIV ECX - MOV U32 [BDVD_PROGRESS_STEP - BDVD_START], EAX - MOV U32 [BDVD_PROGRESS_VAL - BDVD_START], 0 - - MOV AX, U16 [BDVD_BLK_LO - BDVD_START] - MOV DX, U16 [BDVD_BLK_HI - BDVD_START] - -@@20: PUSH CX //Block count - -//READ BLOCK - PUSH AX //Block lo - PUSH DX //Block hi - PUSH ES //Buf seg - MOV U16 [BDVD_DAP_BLK - BDVD_START], AX - MOV U16 [BDVD_DAP_BLK + 2 - BDVD_START], DX - MOV AX, ES - MOV U16 [BDVD_DAP_BUF + 2 - BDVD_START], AX //ES:0000 - MOV SI, BDVD_DAP - BDVD_START //DS:SI=DAP - MOV AH, 0x42 - MOV DL, U8 [BDVD_BIOS_DRIVE_NUM - BDVD_START] - INT 0x13 - - POP AX //ES - ADD AX, DVD_BLK_SIZE / 16 - MOV ES, AX - POP DX - POP AX - INC AX - JNZ @@25 - INC DX - -@@25: PUSH AX - MOV BX, U16 [BDVD_PROGRESS_VAL + 2 - BDVD_START] - MOV EAX, U32 [BDVD_PROGRESS_STEP - BDVD_START] - ADD U32 [BDVD_PROGRESS_VAL - BDVD_START], EAX - CMP U16 [BDVD_PROGRESS_VAL + 2 - BDVD_START], BX - JE @@30 - MOV AL, '.' - CALL BDVD_PUT_CHAR -@@30: POP AX - - POP CX - LOOP @@20 - -//Shift backward to align - PUSH DS - MOV BX, U16 [BDVD_SHIFT_BLKS - BDVD_START] - SHL BX, BLK_SIZE_BITS - 4 - MOV CX, U16 [BDVD_BLK_COUNT - BDVD_START] - MOV AX, BOOT_RAM_BASE / 16 - MOV ES, AX - ADD AX, BX - MOV DS, AX -@@35: PUSH CX - XOR SI, SI - XOR DI, DI - MOV CX, DVD_BLK_SIZE / 4 - REP_MOVSD - MOV AX, DS - ADD AX, DVD_BLK_SIZE / 16 - MOV DS, AX - MOV AX, ES - ADD AX, DVD_BLK_SIZE / 16 - MOV ES, AX - POP CX - LOOP @@35 - POP DS - -//See $LK,"AHCIBootDVDProbeAll",A="MN:AHCIBootDVDProbeAll"$(). - MOV EBX, U32 [BDVD_BLK_LO - BDVD_START] - MOV AX, U16 [BDVD_SHIFT_BLKS - BDVD_START] - SHL EAX, 16 - MOV AX, BOOT_SRC_DVD //$MA-X+PU,"See sys_boot_src",LM="Find(\"sys_boot_src\",\"/*\");View;\n"$ - -//The assembler doesn't support 16-bit very well. - DU8 0xEA; //JMP BOOT_RAM_BASE:0000 - DU16 0, BOOT_RAM_BASE / 16; -//Continues here $LK,"::/Kernel/KStart16.CC",A="FL:::/Kernel/KStart16.CC,1"$ -BDVD_END:: -#assert BDVD_END-BDVD_START < DVD_BOOT_LOADER_SIZE -} diff --git a/src/System/Boot/BootDVDIns.CC b/src/System/Boot/BootDVDIns.CC deleted file mode 100755 index 0005e59c..00000000 --- a/src/System/Boot/BootDVDIns.CC +++ /dev/null @@ -1,35 +0,0 @@ -//See $LK,"Install Documentation",A="FI:::/Doc/Install.DD"$. -//Study the account examples: $LK,"Config Strs",A="FL:::/Demo/AcctExample/TOS/TOSConfig.CC,1"$, $LK,"Update Funs",A="FL:::/Demo/AcctExample/TOS/TOSDistro.CC,1"$ - -#include "BootDVD" -#include "DiskISORedSea" - -#help_index "Install" - -#define KERNEL_BIN_C "Kernel.BIN.C" -#define BOOT_DIR "/Boot" -#define BOOT_DIR_DVD_KERNEL_BIN_C BOOT_DIR "/DVD" KERNEL_BIN_C - -U0 MakeAll() -{ - if (Comp("/Compiler/Compiler", "Compiler",, ':')) - throw; - if (Comp("/Kernel/Kernel", "Kernel",, ':')) - throw; -} - -public U0 BootDVDIns(U8 drv_let=0) -{//See $LK,"::/Misc/DoDistro.CC"$. - try - { - if (!Drive(drv_let)) - throw; - MakeAll; - Move("/Kernel/Kernel.BIN", BOOT_DIR_DVD_KERNEL_BIN_C); - } - catch - { - PutExcept; - Beep; - } -} diff --git a/src/System/Boot/BootHD.CC b/src/System/Boot/BootHD.CC deleted file mode 100755 index 9e0097b7..00000000 --- a/src/System/Boot/BootHD.CC +++ /dev/null @@ -1,91 +0,0 @@ -#define MODULE_SIZE 1 * BLK_SIZE -#define BOOT_HIGH_LOC_HD ((BOOT_RAM_LIMIT - (BOOT_STACK_SIZE + MODULE_SIZE)) >> 4) - -DefinePrint("DD_BOOT_HIGH_LOC_HD", "%08X", BOOT_HIGH_LOC_HD << 4); - -asm { -USE16 -BHD_CODE:: - -#define BHD_START (BHD_CODE - offset(CFAT32Boot.code)) - - CLD - - MOV AX, BOOT_HIGH_LOC_HD - MOV ES, AX - - CLI - MOV SS, AX - MOV SP, BOOT_STACK_SIZE + MODULE_SIZE - STI - - CALL BHD_GET_RIP -BHD_GET_RIP: - POP BX - SUB BX, BHD_GET_RIP - BHD_START - SHR BX, 4 -//This copies this bootloader's code to 0x$TX,"00096C00",D="DD_BOOT_HIGH_LOC_HD"$ - MOV AX, CS - ADD AX, BX - MOV DS, AX - MOV CX, MODULE_SIZE - XOR SI, SI - XOR DI, DI - REP_MOVSB - - MOV AX, BOOT_HIGH_LOC_HD - MOV DS, AX - -//The assembler doesn't support 16-bit very well. - DU8 0xEA; //JMP BOOT_HIGH_LOC_HD:BHD_HISTART - DU16 BHD_HISTART - BHD_START, BOOT_HIGH_LOC_HD; - -BHD_BIOS_DRIVE_NUM: DU8 0; - -//Gets patched by $LK,"BootHDIns",A="MN:BootHDIns"$(). -BHD_BLK_COUNT:: DU16 0; - -BHD_DAP: DU8 16, 0, 1, 0; //One block at a time -BHD_DAP_BUF: DU16 0, 0; -//Gets patched by $LK,"BootHDIns",A="MN:BootHDIns"$(). -BHD_DAP_BLK:: //64-bit -BHD_DAP_BLK_LO: DU32 0; -BHD_DAP_BLK_HI: DU32 0; - -BHD_HISTART: - MOV U8 [BHD_BIOS_DRIVE_NUM - BHD_START], DL //Passed in by BIOS - MOV AX, BOOT_RAM_BASE / 16 - MOV ES, AX - XOR ECX, ECX - MOV CX, U16 [BHD_BLK_COUNT - BHD_START] - -@@05: PUSH CX //Block count - -//READ BLOCK - PUSH ES //Buf seg - MOV AX, ES - MOV U16 [BHD_DAP_BUF + 2 - BHD_START], AX //ES:0000 - MOV SI, BHD_DAP - BHD_START //DS:SI=DAP - MOV AH, 0x42 - MOV DL, U8 [BHD_BIOS_DRIVE_NUM - BHD_START] - INT 0x13 - - POP AX //ES - ADD AX, BLK_SIZE / 16 - MOV ES, AX - INC U32 [BHD_DAP_BLK_LO - BHD_START] - JNZ @@10 - INC U32 [BHD_DAP_BLK_HI - BHD_START] - -@@10: POP CX - LOOP @@05 - - XOR EBX, EBX - MOV EAX, BOOT_SRC_HARDDRIVE //$MA-X+PU,"See sys_boot_src",LM="Find(\"sys_boot_src\",\"/*\");View;\n"$ -//The assembler doesn't support 16-bit very well. - DU8 0xEA; //JMP BOOT_RAM_BASE:0000 - DU16 0, BOOT_RAM_BASE / 16; -//Continues here $LK,"::/Kernel/KStart16.CC",A="FL:::/Kernel/KStart16.CC,1"$ -BHD_END:: -#assert BHD_END - BHD_START < MODULE_SIZE - 2 -} diff --git a/src/System/Boot/BootHDIns.CC b/src/System/Boot/BootHDIns.CC deleted file mode 100755 index c2e2cccd..00000000 --- a/src/System/Boot/BootHDIns.CC +++ /dev/null @@ -1,84 +0,0 @@ -//See $LK,"Install Documentation",A="FI:::/Doc/Install.DD"$. -//Study the account examples: $LK,"Config Strs",A="FL:::/Demo/AcctExample/TOS/TOSConfig.CC,1"$, $LK,"Update Funs",A="FL:::/Demo/AcctExample/TOS/TOSDistro.CC,1"$ - -#include "BootHD" - -#help_index "Install" - -#define KERNEL_BIN_C "Kernel.BIN.C" -#define BOOT_DIR "/Boot" -#define BOOT_DIR_KERNEL_BIN_C BOOT_DIR "/" KERNEL_BIN_C - -U0 CompComp() -{ - if (Comp("/Compiler/Compiler", "Compiler",, ':')) - throw; -} - -U0 MakeAll() -{ - CompComp; - if (Comp("/Kernel/Kernel", "Kernel",, ':')) - throw; -} - -public U0 BootHDIns(U8 drv_let=0) -{//$LK,"MakeAll",A="MN:MakeAll"$ and install new boot-loader. - CDrive *drive; - CFAT32Boot br; - CDirEntry de; - I64 i; - - try - { - if (!Drive(drv_let)) - throw; - - drive = Fs->cur_dv; - MakeAll; - - switch (Letter2BlkDevType(drive->drv_let)) - { - case BDT_RAM: - case BDT_ATA: - Move("/Kernel/Kernel.BIN", BOOT_DIR_KERNEL_BIN_C); - - if (!FileFind(BOOT_DIR_KERNEL_BIN_C, &de, FUF_JUST_FILES)) - "No Kernel.BIN.C\n"; - else - { - Free(de.full_name); - "Modifying partition boot record.\n"; - BlkRead(drive, &br, drive->drv_offset, 1); - - br.jump_and_nop[0] = OC_JMP_REL8; - br.jump_and_nop[1] = offset(CFAT32Boot.code) - 2; - -#assert offset(CFAT32Boot.code) >= offset(CRedSeaBoot.code) - - br.jump_and_nop[2] = OC_NOP; - *BHD_BLK_COUNT(U16 *) = (de.size + BLK_SIZE - 1) >> BLK_SIZE_BITS; - *BHD_DAP_BLK(I64 *) = Clus2Blk(drive, de.clus); - - for (i = 0; i < BHD_END - BHD_CODE; i++) - br.code[i] = BHD_CODE(U8 *)[i]; - -#assert sizeof(CFAT32Boot.code) >= BHD_END - BHD_CODE - - for (; i < sizeof(CFAT32Boot.code); i++) - br.code[i] = 0; - - BlkWrite(drive, &br, drive->drv_offset, 1); - } - break; - - default: - throw; - } - } - catch - { - PutExcept; - Beep; - } -} diff --git a/src/System/Boot/BootMHD.CC b/src/System/Boot/BootMHD.CC deleted file mode 100755 index a4168b60..00000000 --- a/src/System/Boot/BootMHD.CC +++ /dev/null @@ -1,105 +0,0 @@ -#define MODULE_SIZE 1 * BLK_SIZE -#define BOOT_HIGH_LOC_MHD ((BOOT_RAM_LIMIT - (BOOT_STACK_SIZE + MODULE_SIZE)) >> 4) - -DefinePrint("DD_BOOT_HIGH_LOC_MHD", "%08X", BOOT_HIGH_LOC_MHD << 4); - -asm { -USE16 -BMHD_START:: -BMHD_CODE:: - CLD - - MOV AX, BOOT_HIGH_LOC_MHD - - CLI - MOV SS, AX - MOV SP, BOOT_STACK_SIZE + MODULE_SIZE - STI - - PUSHF - PUSH DS - PUSH ES - PUSH FS - PUSH GS - PUSH ECX - PUSH EBX - PUSH EDX - PUSH EBP - - MOV ES, AX - - CALL BMHD_GET_RIP -BMHD_GET_RIP: - POP BX - SUB BX, BMHD_GET_RIP-BMHD_START - MOV CX, BX - SHR BX, 4 -//This copies this bootloader's code to 0x$TX,"00096C00",D="DD_BOOT_HIGH_LOC_MHD"$ - MOV AX, CS - PUSH AX - ADD AX, BX - MOV DS, AX - MOV U16 [BMHD_OLD_CS_RIP - BMHD_START], CX - POP U16 [BMHD_OLD_CS_RIP + 2 - BMHD_START] - - MOV CX, MODULE_SIZE - XOR SI, SI - XOR DI, DI - REP_MOVSB - - MOV AX, BOOT_HIGH_LOC_MHD - MOV DS, AX - -//The assembler doesn't support 16-bit very well. - DU8 0xEA; //JMP BOOT_HIGH_LOC_MHD:BMHD_HISTART - DU16 BMHD_HISTART - BMHD_START, BOOT_HIGH_LOC_MHD; - -BMHD_BIOS_DRIVE_NUM: DU8 0; -BMHD_OLD_CS_RIP: DU16 0, 0; -//Gets patched by $LK,"BootHDIns",A="MN:BootHDIns"$(). -BMHD_BLK_COUNT:: DU16 0; - -BMHD_DAP: DU8 16, 0, 1, 0; //One block at a time -BMHD_DAP_BUF: DU16 0, 0; -//Gets patched by $LK,"BootHDIns",A="MN:BootHDIns"$(). -BMHD_DAP_BLK:: //64-bit -BMHD_DAP_BLK_LO: DU32 0; -BMHD_DAP_BLK_HI: DU32 0; - -BMHD_HISTART: - MOV U8 [BMHD_BIOS_DRIVE_NUM - BMHD_START], DL //Passed in by BIOS - MOV AX, BOOT_RAM_BASE / 16 - MOV ES, AX - XOR ECX, ECX - MOV CX, U16 [BMHD_BLK_COUNT - BMHD_START] - -@@05: PUSH CX //Block count - -//READ BLOCK - PUSH ES //Buf seg - MOV AX, ES - MOV U16 [BMHD_DAP_BUF + 2 - BMHD_START], AX //ES:0000 - MOV SI, BMHD_DAP - BMHD_START //DS:SI=DAP - MOV AH, 0x42 - MOV DL, U8 [BMHD_BIOS_DRIVE_NUM - BMHD_START] - INT 0x13 - - POP AX //ES - ADD AX, BLK_SIZE / 16 - MOV ES, AX - INC U32 [BMHD_DAP_BLK_LO - BMHD_START] - JNZ @@10 - INC U32 [BMHD_DAP_BLK_HI - BMHD_START] - -@@10: POP CX - LOOP @@05 - - MOV DL, U8 [BMHD_BIOS_DRIVE_NUM - BMHD_START] - MOV EBX, U32 [BMHD_OLD_CS_RIP - BMHD_START] -//The assembler doesn't support 16-bit very well. - DU8 0xEA; //JMP BOOT_RAM_BASE:0000 - DU16 0, BOOT_RAM_BASE / 16; -//Continues here $LK,"BMHD2_START",A="FF:::/System/Boot/BootMHD2.CC,BMHD2_START"$ -BMHD_END:: -#assert BMHD_END-BMHD_START <= 440 -} diff --git a/src/System/Boot/BootMHD2.CC b/src/System/Boot/BootMHD2.CC deleted file mode 100755 index 6eafbc22..00000000 --- a/src/System/Boot/BootMHD2.CC +++ /dev/null @@ -1,121 +0,0 @@ -#define MODULE_SIZE 2 * BLK_SIZE -#define BOOT_HIGH_LOC_MHD2 ((BOOT_RAM_LIMIT - (BOOT_STACK_SIZE + MODULE_SIZE)) >> 4) - -DefinePrint("DD_BOOT_HIGH_LOC_MHD2", "%08X", BOOT_HIGH_LOC_MHD2 << 4); - -asm { -USE16 -BMHD2_START:: - MOV U32 FS:[0], 'B' + 0x2000 + ('2' + 0x2000) << 16 - - MOV AX, BOOT_HIGH_LOC_MHD2 - MOV ES, AX -//This copies this bootloader's code to 0x$TX,"00096A00",D="DD_BOOT_HIGH_LOC_MHD2"$ - MOV AX, CS - MOV DS, AX - MOV U32 [BMHD2_OLD_CS_RIP - BMHD2_START], EBX - MOV U8 [BMHD2_BIOS_DRIVE_NUM - BMHD2_START], DL - - MOV CX, MODULE_SIZE - XOR SI, SI - XOR DI, DI - REP_MOVSB - - MOV AX, BOOT_HIGH_LOC_MHD2 - MOV DS, AX - -//The assembler doesn't support 16-bit very well. - DU8 0xEA; //JMP BOOT_HIGH_LOC_MHD2:BMHD2_HISTART - DU16 BMHD2_HISTART - BMHD2_START, BOOT_HIGH_LOC_MHD2; - -BMHD2_BOOT_MESSAGE:: - DU8 256 DUP(0); - -BMHD2_BIOS_DRIVE_NUM: DU8 0; -BMHD2_PAGE: DU8 0; -BMHD2_BLK_ARRAY:: DU64 8 DUP(0); - -BMHD2_DAP: DU8 16, 0, 1, 0; //One block at a time -BMHD2_DAP_BUF: DU16 0, 0; -BMHD2_DAP_BLK:: //64-bit -BMHD2_DAP_BLK_LO: DU32 0; -BMHD2_DAP_BLK_HI: DU32 0; - -BMHD2_PUT_CHAR:: - MOV AH, 0xE - MOV BL, 7 //Might be foreground color on some BIOS's - MOV BH, U8 [BMHD2_PAGE - BMHD2_START] - INT 0x10 -BMHD2_RET:: - RET -BMHD2_PUTS:: -@@1: LODSB - TEST AL, AL - JZ BMHD2_RET - CALL BMHD2_PUT_CHAR - JMP @@1 - -BMHD2_GETCHAR: - XOR AH, AH - INT 0x16 - PUSH AX - MOV AH, 0x0E - MOV BX, 0x07 - INT 0x10 - POP AX - RET - -BMHD2_HISTART: - MOV AH, 0xF - INT 0x10 - MOV U8 [BMHD2_PAGE - BMHD2_START], BH //Video page - - MOV U32 FS:[0], 0 -@@5: MOV SI, BMHD2_BOOT_MESSAGE - BMHD2_START - CALL BMHD2_PUTS - CALL BMHD2_GETCHAR - CMP AL, '0' - JB @@5 - CMP AL, '8' - JAE @@5 - AND EAX, 7 - - MOV EBX, U32 BMHD2_BLK_ARRAY - BMHD2_START[EAX * 8] - MOV EAX, U32 BMHD2_BLK_ARRAY + 4 - BMHD2_START[EAX * 8] - - TEST EBX, EBX - JNZ @@10 - TEST EAX, EAX - JZ @@5 - -@@10: MOV U32 [BMHD2_DAP_BLK_LO - BMHD2_START], EBX - MOV U32 [BMHD2_DAP_BLK_HI - BMHD2_START], EAX - - MOV AX, U16 [BMHD2_OLD_CS_RIP - BMHD2_START] - SHR AX, 4 - ADD AX, U16 [BMHD2_OLD_CS_RIP + 2 - BMHD2_START] - MOV U16 [BMHD2_DAP_BUF + 2 - BMHD2_START], AX //ES:0000 - MOV SI, BMHD2_DAP - BMHD2_START //DS:SI=DAP - MOV DL, U8 [BMHD2_BIOS_DRIVE_NUM - BMHD2_START] - MOV AH, 0x42 - INT 0x13 - - POP EBP - POP EDX - POP EBX - POP ECX - XOR EAX, EAX - POP GS - POP FS - POP ES - POP DS - POPF - -//The assembler doesn't support 16-bit very well. - DU8 0xEA; //JMP xxxx:yyyy -BMHD2_OLD_CS_RIP: - DU16 0, 0; -BMHD2_END:: -//Continues here $LK,"::/System/Boot/BootHD.CC",A="FF:::/System/Boot/BootHD.CC,START"$ -#assert BMHD2_END - BMHD2_START < MODULE_SIZE -} diff --git a/src/System/Boot/BootMHDIns.CC b/src/System/Boot/BootMHDIns.CC deleted file mode 100755 index 241dbf30..00000000 --- a/src/System/Boot/BootMHDIns.CC +++ /dev/null @@ -1,180 +0,0 @@ -//See $LK,"Install Documentation",A="FI:::/Doc/Install.DD"$. -//Study the account examples: $LK,"Config Strs",A="FL:::/Demo/AcctExample/TOS/TOSConfig.CC,1"$, $LK,"Update Funs",A="FL:::/Demo/AcctExample/TOS/TOSDistro.CC,1"$ - -#include "BootMHD" -#include "BootMHD2" - -#help_index "Install" - -#define BOOT_DIR "/Boot" -//Stage 2 of master boot loader -#define BOOT_DIR_BOOTMHD2_BIN_C BOOT_DIR "/BootMHD2.BIN.C" -//Old master boot record -#define BOOT_DIR_OLDMBR_BIN_C BOOT_DIR "/OldMBR.BIN.C" - -public U0 BootMHDOldRead(U8 src_drive, U8 dst_drive) -{//Reads MBR from disk drive containing src partition. -//Writes a single block file to dst BOOT_DIR. - CBlkDev *bd = Letter2BlkDev(src_drive); - CDrive *drive; - CMasterBoot mbr; - - Drive(dst_drive); - drive = Fs->cur_dv; - - if (drive->fs_type != FSt_REDSEA && drive->fs_type != FSt_FAT32) - PrintErr("File System Not Supported\n"); - else - { -//Bypass partition bounds-checking - BlkDevLock(bd); - AHCIAtaBlksRead(bd, &mbr, 0, 1); - BlkDevUnlock(bd); - - Drive(dst_drive); - DirMake(BOOT_DIR); - FileWrite(BOOT_DIR_OLDMBR_BIN_C, &mbr, BLK_SIZE); - } -} - -public U0 BootMHDOldWrite(U8 src_drive, U8 dst_drive) -{//Reads OldMBR from src drive BOOT_DIR. -//writes it to the MBR of the drive with dst partition. - CBlkDev *bd = Letter2BlkDev(dst_drive); - CMasterBoot *mbr; - - Drive(src_drive); - - if (mbr = FileRead(BOOT_DIR_OLDMBR_BIN_C)) - { -//Bypass partition bounds-checking - BlkDevLock(bd); - AHCIAtaBlksWrite(bd, mbr, 0, 1); - BlkDevUnlock(bd); - } - Free(mbr); -} - -public U0 BootMHDZero(U8 dst_drive) -{//Set MBR of disk with dst partition to zero. - - //This is dangerous!! - //The ZealOS partitioner doesn't play well - //with other operating systems at this time and you need - //to do this on a drive partitioned by ZealOS - //if you wish to partition with another operating system. - CBlkDev *bd = Letter2BlkDev(dst_drive); - CMasterBoot mbr; - - MemSet(&mbr, 0, BLK_SIZE); -//Bypass partition bounds-checking - BlkDevLock(bd); - AHCIAtaBlksWrite(bd, &mbr, 0, 1); - BlkDevUnlock(bd); -} - -public Bool BootMHDIns(U8 drv_let, U8 *drv_list=NULL) -{//Create new MBR on the disk that has drv_let as a partition. -//Puts stage 2 in BOOT_DIR of drv_let. - CBlkDev *bd, *bd1; - CDrive *drive, *p1; - CMasterBoot mbr; - CDirEntry de; - I64 i, j, size, *_q; - U8 *menu_ptr, *ptr, ch, buf[STR_LEN]; - Bool res = FALSE; - - try - { - if (drv_list) - { - StrCopy(buf, drv_list); - StrUtil(buf, SUF_TO_UPPER); - } - else - { - j = 0; - for (i = 'A'; i <= 'Z'; i++) - buf[j++] = i; - buf[j++] = 0; - } - - Drive(drv_let); - drive = Fs->cur_dv; - - if (drive->fs_type != FSt_REDSEA && drive->fs_type != FSt_FAT32) - PrintErr("File System Not Supported\n"); - else - { - bd = drive->bd; - - if (!FileFind(BOOT_DIR_OLDMBR_BIN_C,, FUF_JUST_FILES)) - BootMHDOldRead(drv_let, drv_let); - - _q = BMHD2_BLK_ARRAY; - MemSet(_q, 0, sizeof(I64) * 8); - menu_ptr = BMHD2_BOOT_MESSAGE; - StrPrint(menu_ptr, "\n\r\n\rZealOS Boot Loader\n\r\n\r"); - j = 0; - - if (FileFind(BOOT_DIR_OLDMBR_BIN_C, &de, FUF_JUST_FILES)) - { - Free(de.full_name); - *_q++ = Clus2Blk(drive, de.clus); - CatPrint(menu_ptr, "0. Old Boot Record\n\r"); - j++; - } - - ptr = buf; - while (ch = *ptr++) - { - if ((p1 = Letter2Drive(ch, FALSE)) && (bd1 = p1->bd) && bd1 == bd) - { - *_q = p1->drv_offset; - "Drive %C:%16X\n", Drive2Letter(p1), *_q; - CatPrint(menu_ptr, "%d. Drive %C\n\r", j++, Drive2Letter(p1)); - _q++; - } - } - CatPrint(menu_ptr, "\n\rSelection:"); - - size = BMHD2_END - BMHD2_START; - FileWrite(BOOT_DIR_BOOTMHD2_BIN_C, BMHD2_START, size); - - if (!FileFind(BOOT_DIR_BOOTMHD2_BIN_C, &de, FUF_JUST_FILES)) - "No Boot Loader Image\n"; - else - { - Free(de.full_name); - - *BMHD_BLK_COUNT(U16 *) = (size + BLK_SIZE - 1) >> BLK_SIZE_BITS; - *BMHD_DAP_BLK(I64 *) = Clus2Blk(drive, de.clus); -//Bypass partition bounds-checking - BlkDevLock(bd); - AHCIAtaBlksRead(bd, &mbr, 0, 1); - - for (i = 0; i < BMHD_END - BMHD_CODE; i++) - mbr.code[i] = BMHD_CODE(U8 *)[i]; - -#assert sizeof(CMasterBoot.code) >= BMHD_END - BMHD_CODE - - for (; i < sizeof(CMasterBoot.code); i++) - mbr.code[i] = 0; - - if (!mbr.media_id) - mbr.media_id = RandU32; - - mbr.zero = 0; - mbr.signature = 0xAA55; - - AHCIAtaBlksWrite(bd, &mbr, 0, 1); - - BlkDevUnlock(bd); - res = TRUE; - } - } - } - catch - PutExcept; - return res; -} diff --git a/src/System/Boot/BootRAM.CC b/src/System/Boot/BootRAM.CC deleted file mode 100755 index a6af49aa..00000000 --- a/src/System/Boot/BootRAM.CC +++ /dev/null @@ -1,59 +0,0 @@ -#help_index "Call" -asm { -_HI_CALL:: - PUSH RBP - MOV RBP, RSP - MOV RAX, U64 16[RBP] - TEST RAX, RAX - JZ @@05 - CALL RAX -@@05: POP RBP - RET1 8 -//************************************ -_HI_MEMCOPY:: - PUSH RBP - MOV RBP, RSP - PUSH RSI - PUSH RDI - CLD - MOV RDI, U64 SF_ARG1[RBP] - MOV RSI, U64 SF_ARG2[RBP] - MOV RCX, U64 SF_ARG3[RBP] - REP_MOVSB - MOV RAX, RDI - POP RDI - POP RSI - POP RBP - RET1 24 -} -_extern _HI_CALL I64 HiCall(U8 *machine_code); -_extern _HI_MEMCOPY U8 *HiMemCopy(U8 *dst, U8 *src, I64 count); - -#help_index "Boot" -public U0 BootRAM(U8 *filename="::" BOOT_DIR_KERNEL_BIN_C) -{//Softboot Kernel.BIN file. No hardware reset. - I64 size; - CKernel *hi_image, *lo_image = mem_boot_base - sizeof(CBinFile), reg *sys_ram_reboot; - do - if (!(hi_image = FileRead(filename, &size))) - return; - while (hi_image < 0x100000); //If alloc from low 640K, just get another copy. - - do - sys_ram_reboot = MAlloc(SYS_RAM_REBOOT_END - SYS_RAM_REBOOT, Fs->code_heap); - while (sys_ram_reboot < 0x100000); - - hi_image->boot_src = BOOT_SRC_RAM; - hi_image->boot_blk = 0; - hi_image->boot_patch_table_base = lo_image(U8 *) + hi_image->h.patch_table_offset; - hi_image->sys_run_level = lo_image->sys_run_level & (RLF_VESA | RLF_16BIT); - MemCopy(&hi_image->start, &lo_image->start, sizeof(CKernel) - offset(CKernel.start)); - - CLI - if (mp_count > 1) - MPHalt; - - HiMemCopy(sys_ram_reboot, SYS_RAM_REBOOT, SYS_RAM_REBOOT_END - SYS_RAM_REBOOT); - HiMemCopy(lo_image, hi_image, size); - HiCall(sys_ram_reboot); -} diff --git a/src/System/Boot/DiskISORedSea.CC b/src/System/Boot/DiskISORedSea.CC deleted file mode 100755 index d0b833a8..00000000 --- a/src/System/Boot/DiskISORedSea.CC +++ /dev/null @@ -1,217 +0,0 @@ -#help_index "File/CD DVD" - -U0 FillU16Palindrome(CPalindromeU16 *dst, U16 w) -{ - dst->big = EndianU16(w); - dst->little = w; -} - -U0 FillU32Palindrome(CPalindromeU32 *dst, I64 d) -{ - dst->big = EndianU32(d); - dst->little = d; -} - -class CElTorito -{ - U16 w[16]; - U8 bootable; // 88=bootable 00=not bootable - U8 media_type; // 0=no emulation 4=hard disk - U16 load_seg; // 0000->07C0 - U8 sys_type; - U8 zero; - U16 sect_count; - U32 load_rba; // start address of virtual disk - U8 zero2[20]; -}; - -U0 RedSeaISO9660Stage1(U8 *iso_filename, U8 *stage2_filename) -{ - CDirEntry de; - CFile *out_file = NULL; - U8 *stage1_buf = CAlloc(DVD_BOOT_LOADER_SIZE); - - if (FileFind(stage2_filename, &de) && (out_file = FOpen(iso_filename, "wc+"))) - { - MemCopy(stage1_buf, BDVD_START, BDVD_END - BDVD_START); - *(BDVD_BLK_LO - BDVD_START + stage1_buf)(U32 *) = de.clus >> 2; - *(BDVD_BLK_COUNT - BDVD_START + stage1_buf)(U16 *) = (de.size + DVD_BLK_SIZE - 1) >> (BLK_SIZE_BITS + 2); - *(BDVD_SHIFT_BLKS - BDVD_START + stage1_buf)(U16 *) = de.clus & 3; - - if (de.clus & 3) - *(BDVD_BLK_COUNT - BDVD_START + stage1_buf)(U16 *) += 1; - - FBlkWrite(out_file, stage1_buf, 20 << 2 + 1 << 2, DVD_BOOT_LOADER_SIZE / BLK_SIZE); - FClose(out_file); - } - Free(stage1_buf); -} - -U0 RedSeaISO9660(U8 *iso_filename, U8 drv_let) -{ - CDrive *drive = Letter2Drive(drv_let); - CISOPriDesc *iso_pri = CAlloc(DVD_BLK_SIZE), - *iso_boot = CAlloc(DVD_BLK_SIZE), - *iso_sup = CAlloc(DVD_BLK_SIZE), - *iso_term = CAlloc(DVD_BLK_SIZE); - I64 iso_size = 0, i, j; - U32 *d; - CElTorito *et = CAlloc(DVD_BLK_SIZE); - U8 *zero_buf = CAlloc(DVD_BLK_SIZE), *st; - CFile *out_file = NULL; - - if (out_file = FOpen(iso_filename, "wc+")) - { - iso_size = FSize(out_file) / DVD_BLK_SIZE; - - for (i = 0; i < drive->bd->drv_offset; i += 4) - FBlkWrite(out_file, zero_buf, i, 4); - - iso_pri->type = ISOT_PRI_VOL_DESC; - StrCopy(iso_pri->id, "CD001"); - iso_pri->version = 1; - FillU16Palindrome(&iso_pri->vol_set_size, 1); - FillU16Palindrome(&iso_pri->vol_seq_num, 1); - FillU16Palindrome(&iso_pri->log_block_size, DVD_BLK_SIZE); - FillU32Palindrome(&iso_pri->vol_space_size, iso_size); - FillU32Palindrome(&iso_pri->root_dir_record, drive->root_clus); - iso_pri->file_structure_version = 1; - StrCopy(iso_pri->publisher_id, "ZealOS RedSea"); - - st = MStrPrint("ZealOS V%0.2f %D %T", sys_os_version, Now, Now); - StrCopy(iso_pri->preparer_id, st); - Free(st); - - MemCopy(iso_sup, iso_pri, DVD_BLK_SIZE); - iso_sup->type = ISOT_SUPPLEMENTARY_DESC; - - iso_boot->type = ISOT_BOOT_RECORD; - StrCopy(iso_boot->id, "CD001"); - iso_boot->version = 1; - StrCopy(iso_boot(U8 *) + 7, "EL TORITO SPECIFICATION"); - - FBlkWrite(out_file, iso_pri, 16 << 2, 4); - iso_term->type = ISOT_TERMINATOR; - StrCopy(iso_term->id, "CD001"); - iso_term->version = 1; - - d = iso_boot(U8 *) + 0x47; - *d = 20 << 2 >> 2; - FBlkWrite(out_file, iso_boot, 17 << 2, 4); - - FBlkWrite(out_file, iso_sup, 18 << 2, 4); - FBlkWrite(out_file, iso_term, 19 << 2, 4); - - et->w[0] = 1; - StrCopy(&et->w[2], "ZealOS"); - et->w[15] = 0xAA55; - - j = 0; - for (i = 0; i < 16; i++) //Checksum - j += et->w[i]; - - et->w[14] = -j; - et->bootable = 0x88; - et->media_type = 0;//0=no emu 2=1.44meg 4=hard drive - et->sect_count = 4; //5 seems like the limit, 4 is safer - et->load_rba = 20 << 2 >> 2 + 1; - FBlkWrite(out_file, et, 20 << 2, 4); - FClose(out_file); - } - Free(zero_buf); - Free(et); - Free(iso_pri); - Free(iso_boot); - Free(iso_sup); - Free(iso_term); -} - -I64 RedSeaISOPass1(CDirEntry *tmpde) -{ - I64 dir_entry_count = 3 + LinkedListCount(tmpde), res = 0; - - while (tmpde) - { - if (tmpde->attr & RS_ATTR_DIR) - { - if (tmpde->sub) - res += RedSeaISOPass1(tmpde->sub); - else - res += BLK_SIZE; //Empty dir - } - else - res += CeilU64(tmpde->size, BLK_SIZE); - - tmpde = tmpde->next; - } - res += CeilU64(dir_entry_count << 6, BLK_SIZE); //Size in bytes - -#assert CDIR_SIZE == 64 - - return res; -} - -public I64 RedSeaISO(U8 *_iso_filename=NULL, U8 *_src_dir, U8 *_stage2_filename=NULL) -{//See $LK,"::/Misc/DoDistro.CC"$. Must be ISO.C - I64 i, res, root_count, root_dir_blks, bitmap_blks, bitmap_blks1; - CDirEntry *tmpde; - U8 buf[STR_LEN], *iso_filename, *src_dir, *stage2_filename; - CDrive *drive = DriveMakeFreeSlot(DriveNextFreeLet('Q')); //First $LK,"BDT_ISO_FILE_WRITE",A="MN:BDT_ISO_FILE_WRITE"$ - CBlkDev *bd = BlkDevNextFreeSlot(drive->drv_let, BDT_ISO_FILE_WRITE); - - if (!IsDir(_src_dir)) - PrintErr("'%s' is not a dir.\n", _src_dir); - else - { - if (!_iso_filename) - _iso_filename = blkdev.default_iso_c_filename; - - iso_filename = ExtChange(_iso_filename, "ISO.C"); - src_dir = DirNameAbs(_src_dir); - - if (_stage2_filename) - { - stage2_filename = FileNameAbs(_stage2_filename); - *stage2_filename = drive->drv_let; - - i = StrLen(src_dir); - if (i != 3) //If not root - i++; //Skip slash - - StrCopy(stage2_filename + 3, stage2_filename + i); - } - else - stage2_filename = NULL; - - tmpde = FilesFind(src_dir, FUF_RECURSE); - root_count = LinkedListCount(tmpde) + 3; - root_dir_blks = CeilU64(root_count << 6, BLK_SIZE) >> BLK_SIZE_BITS; - - if (res = RedSeaISOPass1(tmpde) >> BLK_SIZE_BITS) - { - bd->drv_offset = 19 << 2 + (DVD_BLK_SIZE * 2 + DVD_BOOT_LOADER_SIZE) / BLK_SIZE; - bitmap_blks = 1; - do - { - bitmap_blks1 = bitmap_blks; - bitmap_blks = (res + bitmap_blks + BLK_SIZE << 3 - 1) / BLK_SIZE << 3; - } - while (bitmap_blks != bitmap_blks1); - - bd->max_blk = CeilI64(bd->drv_offset + 1 + bitmap_blks + res, 4); - bd->max_blk--; //Inclusive. - bd->file_disk_name = SysStrNew(iso_filename); - bd->init_root_dir_blks = root_dir_blks; - BlkDevAdd(bd,, TRUE, TRUE); - StrPrint(buf, "%C:/", drive->drv_let); - CopyTree(src_dir, buf, TRUE); - RedSeaISO9660Stage1(iso_filename, stage2_filename); - DriveDel(drive); - BlkDevDel(bd); - } - Free(stage2_filename); - Free(src_dir); - Free(iso_filename); - } - return res; -} diff --git a/src/System/Boot/MakeBoot.CC b/src/System/Boot/MakeBoot.CC deleted file mode 100755 index 45635676..00000000 --- a/src/System/Boot/MakeBoot.CC +++ /dev/null @@ -1,8 +0,0 @@ -Cd(__DIR__);; - -#include "BootDVDIns" -#include "BootHDIns" -#include "BootMHDIns" -#include "BootRAM" - -Cd("..");; diff --git a/src/System/Ctrls/CtrlsA.CC b/src/System/Ctrls/CtrlsA.ZC similarity index 99% rename from src/System/Ctrls/CtrlsA.CC rename to src/System/Ctrls/CtrlsA.ZC index 4d68157d..3b57491a 100755 --- a/src/System/Ctrls/CtrlsA.CC +++ b/src/System/Ctrls/CtrlsA.ZC @@ -366,7 +366,7 @@ U0 LeftClickViewAngles(CCtrl *c, I64 x, I64 y, Bool) } public CCtrl *ViewAnglesNew(CTask *task=NULL) -{//Create view angle ctrl. See $LK,"::/Demo/Graphics/Shading.CC"$. +{//Create view angle ctrl. See $LK,"::/Demo/Graphics/Shading.ZC"$. CCtrl *c; CViewAngles *s; diff --git a/src/System/Ctrls/CtrlsBttn.CC b/src/System/Ctrls/CtrlsBttn.ZC similarity index 97% rename from src/System/Ctrls/CtrlsBttn.CC rename to src/System/Ctrls/CtrlsBttn.ZC index 1004741a..40f42897 100755 --- a/src/System/Ctrls/CtrlsBttn.CC +++ b/src/System/Ctrls/CtrlsBttn.ZC @@ -43,7 +43,7 @@ U0 LeftClickCtrlBttn(CCtrl *c, I64, I64, Bool down) public CCtrl *CtrlBttnNew(I64 x, I64 y, I64 width=-1, I64 height=-1, I64 num_states=1, U8 *state_texts, I32 *state_colors, CCtrlBttnState *_s=NULL) -{//Create button ctrl. See $LK,"::/Apps/Strut/Strut.CC"$. +{//Create button ctrl. See $LK,"::/Apps/Strut/Strut.ZC"$. CCtrl *res; CCtrlBttnState *s; I64 i,j,l; diff --git a/src/System/Ctrls/CtrlsSlider.CC b/src/System/Ctrls/CtrlsSlider.ZC similarity index 100% rename from src/System/Ctrls/CtrlsSlider.CC rename to src/System/Ctrls/CtrlsSlider.ZC diff --git a/src/System/Ctrls/MakeCtrls.CC b/src/System/Ctrls/MakeCtrls.ZC similarity index 100% rename from src/System/Ctrls/MakeCtrls.CC rename to src/System/Ctrls/MakeCtrls.ZC diff --git a/src/System/Debug.CC b/src/System/Debug.ZC similarity index 99% rename from src/System/Debug.CC rename to src/System/Debug.ZC index f263da84..a705e0fe 100755 --- a/src/System/Debug.CC +++ b/src/System/Debug.ZC @@ -1,7 +1,7 @@ #help_index "Debugging/Dump" Bool ClassRep2(CDoc *doc, U8 *_d, U8 *class_name=lastclass, Bool u8_chars, Bool force, I64 depth, I64 max_depth, Bool dynamic, I64 types=HTT_CLASS, I64 offset=0) -{//See $LK,"::/Demo/LastClass.CC"$. +{//See $LK,"::/Demo/LastClass.ZC"$. I64 i, j, stars, *ptr; CMemberList *ml; CDocEntry *doc_e; diff --git a/src/System/Define.CC b/src/System/Define.ZC similarity index 95% rename from src/System/Define.CC rename to src/System/Define.ZC index 31a0002f..ba6abd1a 100755 --- a/src/System/Define.CC +++ b/src/System/Define.ZC @@ -12,7 +12,7 @@ U0 LoadDocDefines() bfh(I64) += bfh->file_size - 1; DefinePrint("DD_KERNEL_END", "%08X", bfh); - //$LK,"DD_BOOT_HIGH_LOC_DVD",A="FF:::/System/Boot/BootDVD.CC,DD_BOOT_HIGH_LOC_DVD"$ + //$LK,"DD_BOOT_HIGH_LOC_DVD",A="FF:::/System/Boot/BootDVD.ZC,DD_BOOT_HIGH_LOC_DVD"$ $TR,"LineRep"$ $ID,2$DefinePrint("DD_ZEALOS_LOC","95,265"); diff --git a/src/System/DevInfo.CC b/src/System/DevInfo.ZC similarity index 100% rename from src/System/DevInfo.CC rename to src/System/DevInfo.ZC diff --git a/src/System/DolDoc/DocBin.CC b/src/System/DolDoc/DocBin.ZC similarity index 100% rename from src/System/DolDoc/DocBin.CC rename to src/System/DolDoc/DocBin.ZC diff --git a/src/System/DolDoc/DocChar.CC b/src/System/DolDoc/DocChar.ZC similarity index 99% rename from src/System/DolDoc/DocChar.CC rename to src/System/DolDoc/DocChar.ZC index 309b5bb4..0efd13ff 100755 --- a/src/System/DolDoc/DocChar.CC +++ b/src/System/DolDoc/DocChar.ZC @@ -712,7 +712,7 @@ ic_form_tab: MemCopy(st, doc_ce->tag, doc_ce->max_col + 1); Free(doc_ce->tag); doc_ce->tag = st; - doc_ce->len = MSize(st) - doc_ce->min_col - 2; //See $LK,"DataTagWidth",A="FA:::/System/DolDoc/DocPlain.CC,DataTagWidth"$ + doc_ce->len = MSize(st) - doc_ce->min_col - 2; //See $LK,"DataTagWidth",A="FA:::/System/DolDoc/DocPlain.ZC,DataTagWidth"$ Free(doc_ce->data); doc_ce->data = MAlloc(doc_ce->len + 2, doc->mem_task); } diff --git a/src/System/DolDoc/DocClipBoard.CC b/src/System/DolDoc/DocClipBoard.ZC similarity index 100% rename from src/System/DolDoc/DocClipBoard.CC rename to src/System/DolDoc/DocClipBoard.ZC diff --git a/src/System/DolDoc/DocCodeTools.CC b/src/System/DolDoc/DocCodeTools.ZC similarity index 99% rename from src/System/DolDoc/DocCodeTools.CC rename to src/System/DolDoc/DocCodeTools.ZC index aca9745a..877514cc 100755 --- a/src/System/DolDoc/DocCodeTools.CC +++ b/src/System/DolDoc/DocCodeTools.ZC @@ -544,7 +544,7 @@ U0 EdCodeTools2(CDoc *doc, I64 tool_action, Bool beep=TRUE) else { Free(prj_file); - st = DirFile(doc->filename.name, "Load", "CC"); + st = DirFile(doc->filename.name, "Load", "ZC"); prj_file = FileNameAbs(st); Free(st); if (FileFind(prj_file)) diff --git a/src/System/DolDoc/DocDblBuf.CC b/src/System/DolDoc/DocDblBuf.ZC similarity index 97% rename from src/System/DolDoc/DocDblBuf.CC rename to src/System/DolDoc/DocDblBuf.ZC index 3f023cac..9c293068 100755 --- a/src/System/DolDoc/DocDblBuf.CC +++ b/src/System/DolDoc/DocDblBuf.ZC @@ -42,7 +42,7 @@ public CDoc *DocBorder(CTask *task=NULL) } public CDoc *DocDblBufStart(CTask *task=NULL) -{//See $LK,"::/Demo/Spy.CC"$ +{//See $LK,"::/Demo/Spy.ZC"$ Bool unlock_ddoc; CDoc *pdoc = DocPut(task), *ddoc = DocDisplay(task), *res; @@ -76,7 +76,7 @@ public CDoc *DocDblBufStart(CTask *task=NULL) } public Bool DocDblBufEnd(CTask *task=NULL) -{//See $LK,"::/Demo/Spy.CC"$ +{//See $LK,"::/Demo/Spy.ZC"$ Bool res = FALSE; CDoc *pdoc = DocPut(task), *ddoc = DocDisplay(task); @@ -97,7 +97,7 @@ public Bool DocDblBufEnd(CTask *task=NULL) } public Bool DocDblBufSwap(CTask *task=NULL) -{//See $LK,"::/Demo/Spy.CC"$ +{//See $LK,"::/Demo/Spy.ZC"$ Bool res = FALSE; CDoc *pdoc = DocPut(task), *ddoc = DocDisplay(task); diff --git a/src/System/DolDoc/DocEd.CC b/src/System/DolDoc/DocEd.ZC similarity index 100% rename from src/System/DolDoc/DocEd.CC rename to src/System/DolDoc/DocEd.ZC diff --git a/src/System/DolDoc/DocExterns.CC b/src/System/DolDoc/DocExterns.ZC similarity index 100% rename from src/System/DolDoc/DocExterns.CC rename to src/System/DolDoc/DocExterns.ZC diff --git a/src/System/DolDoc/DocFile.CC b/src/System/DolDoc/DocFile.ZC similarity index 100% rename from src/System/DolDoc/DocFile.CC rename to src/System/DolDoc/DocFile.ZC diff --git a/src/System/DolDoc/DocFind.CC b/src/System/DolDoc/DocFind.ZC similarity index 100% rename from src/System/DolDoc/DocFind.CC rename to src/System/DolDoc/DocFind.ZC diff --git a/src/System/DolDoc/DocForm.CC b/src/System/DolDoc/DocForm.ZC similarity index 97% rename from src/System/DolDoc/DocForm.CC rename to src/System/DolDoc/DocForm.ZC index 103e4ead..bc789307 100755 --- a/src/System/DolDoc/DocForm.CC +++ b/src/System/DolDoc/DocForm.ZC @@ -116,7 +116,7 @@ U0 DocDataFormat(CDoc *doc, CDocEntry *doc_e, I64 d=DOCM_CANCEL) else { ptr2 = MAlloc(i + 8, doc->mem_task); - doc_e->len = MSize(ptr2) - doc_e->min_col - 2; //See $LK,"DataTagWidth",A="FA:::/System/DolDoc/DocPlain.CC,DataTagWidth"$ + doc_e->len = MSize(ptr2) - doc_e->min_col - 2; //See $LK,"DataTagWidth",A="FA:::/System/DolDoc/DocPlain.ZC,DataTagWidth"$ MemCopy(ptr2, ptr, i + 1); Free(doc_e->tag); doc_e->tag = ptr2; @@ -262,7 +262,7 @@ U0 DocDataScan(CDoc *doc, CDocEntry *doc_e) #help_index "DolDoc/Input;StdIn/DolDoc" public Bool DocForm(U8 *_d, U8 *class_name=lastclass, I64 dof_flags=0, U8 *header=NULL, U8 *footer=NULL) {//User input. Supply a class name that has format definitions. -//See $LK,"::/Demo/DolDoc/Form.CC"$ and $LK,"::/Demo/LastClass.CC"$. +//See $LK,"::/Demo/DolDoc/Form.ZC"$ and $LK,"::/Demo/LastClass.ZC"$. CMemberList *ml; CDocEntry *doc_e; U8 *format; @@ -300,7 +300,7 @@ public Bool DocForm(U8 *_d, U8 *class_name=lastclass, I64 dof_flags=0, U8 *heade doc_e->len = ml->dim.total_count; if (doc_e->de_flags & DOCEF_HAS_TERMINATOR) doc_e->len--; - Free(doc_e->tag); //See $LK,"DataTagWidth",A="FA:::/System/DolDoc/DocPlain.CC,DataTagWidth"$ + Free(doc_e->tag); //See $LK,"DataTagWidth",A="FA:::/System/DolDoc/DocPlain.ZC,DataTagWidth"$ doc_e->tag = MAlloc(doc_e->len + doc_e->min_col + 2, doc->mem_task); //+2 because "_\0" } } @@ -416,6 +416,6 @@ public I64 PopUpMenu(CDoc *doc, I64 dof_flags=0) } public Bool PopUpForm(U8 *_d, U8 *class_name=lastclass, I64 dof_flags=DOF_SIZE_MIN, U8 *header=NULL, U8 *footer=NULL) -{//See $LK,"::/Demo/DolDoc/Form.CC"$ and $LK,"::/Demo/LastClass.CC"$. +{//See $LK,"::/Demo/DolDoc/Form.ZC"$ and $LK,"::/Demo/LastClass.ZC"$. return PopUpPrint("DocForm(0x%X,0x%X,0x%X,0x%X,0x%X);", _d, class_name, dof_flags, header, footer); } diff --git a/src/System/DolDoc/DocGet.CC b/src/System/DolDoc/DocGet.ZC similarity index 100% rename from src/System/DolDoc/DocGet.CC rename to src/System/DolDoc/DocGet.ZC diff --git a/src/System/DolDoc/DocGr.CC b/src/System/DolDoc/DocGr.ZC similarity index 100% rename from src/System/DolDoc/DocGr.CC rename to src/System/DolDoc/DocGr.ZC diff --git a/src/System/DolDoc/DocHighlight.CC b/src/System/DolDoc/DocHighlight.ZC similarity index 98% rename from src/System/DolDoc/DocHighlight.CC rename to src/System/DolDoc/DocHighlight.ZC index 77bc6a7e..a359299e 100755 --- a/src/System/DolDoc/DocHighlight.CC +++ b/src/System/DolDoc/DocHighlight.ZC @@ -6,7 +6,7 @@ CColorROPU32 highlight_hash_type_colors[HTt_TYPES_NUM] = DOC_COLOR_KEYWORD, DOC_COLOR_KEYWORD, DOC_COLOR_REG, 0, 0, 0, 0}; U32 *DocHighlight(CDocEntry *doc_e, U8 *src, I64 len, I64 _tmp_u32_attr) -{//Be aware of $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.CC"$. +{//Be aware of $LK,"::/Demo/ToHtmlToTXTDemo/ToHtml.ZC"$. U32 *res = MAlloc((len + 1) * sizeof(U32)), *dst = res; U8 *ptr; CDocSettings *s = &doc_e->settings; diff --git a/src/System/DolDoc/DocInit.CC b/src/System/DolDoc/DocInit.ZC similarity index 100% rename from src/System/DolDoc/DocInit.CC rename to src/System/DolDoc/DocInit.ZC diff --git a/src/System/DolDoc/DocLink.CC b/src/System/DolDoc/DocLink.ZC similarity index 100% rename from src/System/DolDoc/DocLink.CC rename to src/System/DolDoc/DocLink.ZC diff --git a/src/System/DolDoc/DocMacro.CC b/src/System/DolDoc/DocMacro.ZC similarity index 100% rename from src/System/DolDoc/DocMacro.CC rename to src/System/DolDoc/DocMacro.ZC diff --git a/src/System/DolDoc/DocNew.CC b/src/System/DolDoc/DocNew.ZC similarity index 99% rename from src/System/DolDoc/DocNew.CC rename to src/System/DolDoc/DocNew.ZC index 36f450d4..b83cc7f4 100755 --- a/src/System/DolDoc/DocNew.CC +++ b/src/System/DolDoc/DocNew.ZC @@ -41,7 +41,7 @@ Bool IsEditableText(CDocEntry *doc_e) } CDocEntry *DocEntryNewBase(CDoc *doc, I64 type, I64 de_flags=0, I64 x=0, I64 y=0, I64 page_line_num=0) -{//See also $LK,"MAllocIdent",A="FF:::/System/DolDoc/DocRecalc.CC,MAllocIdent"$ and $MA-X+PU,"CDocEntry",LM="F(\"sizeof(CDocEntry)\");View;"$. +{//See also $LK,"MAllocIdent",A="FF:::/System/DolDoc/DocRecalc.ZC,MAllocIdent"$ and $MA-X+PU,"CDocEntry",LM="F(\"sizeof(CDocEntry)\");View;"$. CDocEntry *res = CAlloc(sizeof(CDocEntryBase), doc->mem_task); res->type = type; diff --git a/src/System/DolDoc/DocPlain.CC b/src/System/DolDoc/DocPlain.ZC similarity index 100% rename from src/System/DolDoc/DocPlain.CC rename to src/System/DolDoc/DocPlain.ZC diff --git a/src/System/DolDoc/DocPopUp.CC b/src/System/DolDoc/DocPopUp.ZC similarity index 98% rename from src/System/DolDoc/DocPopUp.CC rename to src/System/DolDoc/DocPopUp.ZC index 40e01c0a..b8d31020 100755 --- a/src/System/DolDoc/DocPopUp.CC +++ b/src/System/DolDoc/DocPopUp.ZC @@ -305,10 +305,10 @@ public F64 PopUpRangeF64Log(F64 lo, F64 hi, I64 steps, U8 *format="%9.4f", U8 *h public I64 SysFile(U8 *filename, Bool warn_ext=TRUE) {//Make sys_task execute file. Bool okay = TRUE; - U8 *name = FileNameAbs(filename), *name2 = ExtDefault(name, "CC"); + U8 *name = FileNameAbs(filename), *name2 = ExtDefault(name, "ZC"); I64 res = 0; - if (warn_ext && !FilesFindMatch(name2, FILEMASK_JIT) && !PopUpCancelOk(ST_WARN_ST "Not .CC File\n\n")) + if (warn_ext && !FilesFindMatch(name2, FILEMASK_JIT) && !PopUpCancelOk(ST_WARN_ST "Not .ZC File\n\n")) okay = FALSE; if (okay) res = Sys("#include \"%s\";", name2); @@ -321,10 +321,10 @@ public I64 SysFile(U8 *filename, Bool warn_ext=TRUE) public I64 PopUpFile(U8 *filename, Bool warn_ext=TRUE, CTask *parent=NULL, CTask **_pu_task=NULL) {//$LK,"ExeFile2",A="MN:ExeFile2"$() in $LK,"PopUp",A="MN:PopUp"$ task. Cont as User. Bool okay = TRUE; - U8 *st, *name = FileNameAbs(filename), *name2 = ExtDefault(name, "CC"); + U8 *st, *name = FileNameAbs(filename), *name2 = ExtDefault(name, "ZC"); I64 res = 0; - if (warn_ext && !FilesFindMatch(name2, FILEMASK_JIT) && !PopUpCancelOk(ST_WARN_ST "Not .CC File\n\n")) + if (warn_ext && !FilesFindMatch(name2, FILEMASK_JIT) && !PopUpCancelOk(ST_WARN_ST "Not .ZC File\n\n")) okay = FALSE; if (okay) { @@ -340,7 +340,7 @@ public I64 PopUpFile(U8 *filename, Bool warn_ext=TRUE, CTask *parent=NULL, CTask public I64 PopUpRunFile(U8 *filename, I64 ccf_flags=0, ...) {//$LK,"ExeFile",A="MN:ExeFile"$() with args using $LK,"LastFun",A="MN:LastFun"$() in $LK,"PopUp",A="MN:PopUp"$ task. - U8 *st, *name = FileNameAbs(filename), *name2 = ExtDefault(name, "CC"); + U8 *st, *name = FileNameAbs(filename), *name2 = ExtDefault(name, "ZC"); I64 res = 0; st = MStrPrint("\"$$$$WW+H,1$$$$\"; ExeFile2(\"%s\", 0x%X); LastFun(0x%X, 0x%X);", name2, ccf_flags, argc, argv); diff --git a/src/System/DolDoc/DocPutKey.CC b/src/System/DolDoc/DocPutKey.ZC similarity index 99% rename from src/System/DolDoc/DocPutKey.CC rename to src/System/DolDoc/DocPutKey.ZC index c519aac5..fa782149 100755 --- a/src/System/DolDoc/DocPutKey.CC +++ b/src/System/DolDoc/DocPutKey.ZC @@ -424,7 +424,7 @@ public U0 DocPutKey(CDoc *doc, I64 ch=0, I64 sc=0) else break; } - if (st2 = DirFile(st, "Run", "CC")) + if (st2 = DirFile(st, "Run", "ZC")) { if (FileFind(st2)) { diff --git a/src/System/DolDoc/DocPutS.CC b/src/System/DolDoc/DocPutS.ZC similarity index 100% rename from src/System/DolDoc/DocPutS.CC rename to src/System/DolDoc/DocPutS.ZC diff --git a/src/System/DolDoc/DocRecalc.CC b/src/System/DolDoc/DocRecalc.ZC similarity index 100% rename from src/System/DolDoc/DocRecalc.CC rename to src/System/DolDoc/DocRecalc.ZC diff --git a/src/System/DolDoc/DocRecalcLib.CC b/src/System/DolDoc/DocRecalcLib.ZC similarity index 98% rename from src/System/DolDoc/DocRecalcLib.CC rename to src/System/DolDoc/DocRecalcLib.ZC index 7437ac19..175da6a2 100755 --- a/src/System/DolDoc/DocRecalcLib.CC +++ b/src/System/DolDoc/DocRecalcLib.ZC @@ -205,7 +205,7 @@ public I64 DocMax(I64 i=I64_MAX) //Adjusts the size of the cmd line buf. //Normally, the cmd line deletes entries //when more are added and the old scroll up. - //See $LK,"max_entries",A="FF:::/System/DolDoc/DocTerm.CC,max_entries"$. + //See $LK,"max_entries",A="FF:::/System/DolDoc/DocTerm.ZC,max_entries"$. I64 res; CDoc *doc; diff --git a/src/System/DolDoc/DocRun.CC b/src/System/DolDoc/DocRun.ZC similarity index 100% rename from src/System/DolDoc/DocRun.CC rename to src/System/DolDoc/DocRun.ZC diff --git a/src/System/DolDoc/DocTerm.CC b/src/System/DolDoc/DocTerm.ZC similarity index 98% rename from src/System/DolDoc/DocTerm.CC rename to src/System/DolDoc/DocTerm.ZC index b9178b50..0021095a 100755 --- a/src/System/DolDoc/DocTerm.CC +++ b/src/System/DolDoc/DocTerm.ZC @@ -133,7 +133,7 @@ I64 TermRightClickLink(CDoc *doc, CDocEntry *doc_e) case RIGHT_INCLUDE: if (FileExtDot(st) && !FilesFindMatch(st, FILEMASK_JIT)) { - if (!PopUpCancelOk(ST_WARN_ST "Not .CC File\n\n")) + if (!PopUpCancelOk(ST_WARN_ST "Not .ZC File\n\n")) { send_new_line = TRUE; break; @@ -148,7 +148,7 @@ I64 TermRightClickLink(CDoc *doc, CDocEntry *doc_e) case RIGHT_AINCLUDE: if (FileExtDot(st) && !FilesFindMatch(st, FILEMASK_JIT)) { - if (!PopUpCancelOk(ST_WARN_ST "Not .CC File\n\n")) + if (!PopUpCancelOk(ST_WARN_ST "Not .ZC File\n\n")) { send_new_line = TRUE; break; diff --git a/src/System/DolDoc/DocTree.CC b/src/System/DolDoc/DocTree.ZC similarity index 100% rename from src/System/DolDoc/DocTree.CC rename to src/System/DolDoc/DocTree.ZC diff --git a/src/System/DolDoc/DocWidgetWiz.CC b/src/System/DolDoc/DocWidgetWiz.ZC similarity index 100% rename from src/System/DolDoc/DocWidgetWiz.CC rename to src/System/DolDoc/DocWidgetWiz.ZC diff --git a/src/System/DolDoc/MakeDoc.CC b/src/System/DolDoc/MakeDoc.ZC similarity index 100% rename from src/System/DolDoc/MakeDoc.CC rename to src/System/DolDoc/MakeDoc.ZC diff --git a/src/System/Externs.CC b/src/System/Externs.ZC similarity index 100% rename from src/System/Externs.CC rename to src/System/Externs.ZC diff --git a/src/System/God/GodBible.CC b/src/System/God/GodBible.ZC similarity index 100% rename from src/System/God/GodBible.CC rename to src/System/God/GodBible.ZC diff --git a/src/System/God/GodExterns.CC b/src/System/God/GodExterns.ZC similarity index 100% rename from src/System/God/GodExterns.CC rename to src/System/God/GodExterns.ZC diff --git a/src/System/God/GodSong.CC b/src/System/God/GodSong.ZC similarity index 100% rename from src/System/God/GodSong.CC rename to src/System/God/GodSong.ZC diff --git a/src/System/God/HolySpirit.CC b/src/System/God/HolySpirit.ZC similarity index 100% rename from src/System/God/HolySpirit.CC rename to src/System/God/HolySpirit.ZC diff --git a/src/System/God/MakeGod.CC b/src/System/God/MakeGod.ZC similarity index 100% rename from src/System/God/MakeGod.CC rename to src/System/God/MakeGod.ZC diff --git a/src/System/Gr/Gr.HH b/src/System/Gr/Gr.HH index 2d4ef45c..c3b40407 100755 --- a/src/System/Gr/Gr.HH +++ b/src/System/Gr/Gr.HH @@ -152,8 +152,8 @@ public class CSpritePtMeshU8s : CSpriteBase #help_index "Graphics/Sprite;Sprites;Sprites/Binary" -// See $LK,"Sprites",A="HI:Sprites"$. See $LK,"::/System/Gr/GrSpritePlot.CC",A="FL:::/System/Gr/GrSpritePlot.CC,1"$ and -// $LK,"::/Demo/Graphics/SpriteRaw.CC"$ for how CSprite are stored. +// See $LK,"Sprites",A="HI:Sprites"$. See $LK,"::/System/Gr/GrSpritePlot.ZC",A="FL:::/System/Gr/GrSpritePlot.ZC,1"$ and +// $LK,"::/Demo/Graphics/SpriteRaw.ZC"$ for how CSprite are stored. public class CSprite { CSprite *next,*last; diff --git a/src/System/Gr/GrAsm.CC b/src/System/Gr/GrAsm.ZC similarity index 100% rename from src/System/Gr/GrAsm.CC rename to src/System/Gr/GrAsm.ZC diff --git a/src/System/Gr/GrBitMap.CC b/src/System/Gr/GrBitMap.ZC similarity index 99% rename from src/System/Gr/GrBitMap.CC rename to src/System/Gr/GrBitMap.ZC index d4b7e7d5..baf38404 100755 --- a/src/System/Gr/GrBitMap.CC +++ b/src/System/Gr/GrBitMap.ZC @@ -2101,7 +2101,7 @@ gr_done: public I64 GrHLine(CDC *dc=gr.dc, I64 x1, I64 x2, I64 y, I64 z1=0, I64 z2=0) {//3D. No transformation or thick. //Returns count of pixs changed - //Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. + //Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. I64 dist, dx, dz, z, res = 0, i, j, d; U8 *dst; CColorROPU32 c, c2, color = dc->color, bkcolor = dc->bkcolor, dither_colors; @@ -2315,7 +2315,7 @@ gr_done: public I64 GrVLine(CDC *dc=gr.dc, I64 x, I64 y1, I64 y2, I64 z1=0, I64 z2=0) {//3D. No transformation or thick. //Returns count of pixs changed - //Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. + //Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. I64 dist, dy, dz, z, res = 0, i, j, d; U8 *dst; CColorROPU32 c, c2, color = dc->color, bkcolor = dc->bkcolor, dither_colors; diff --git a/src/System/Gr/GrComposites.CC b/src/System/Gr/GrComposites.ZC similarity index 99% rename from src/System/Gr/GrComposites.CC rename to src/System/Gr/GrComposites.ZC index a67f5285..464b342b 100755 --- a/src/System/Gr/GrComposites.CC +++ b/src/System/Gr/GrComposites.ZC @@ -377,7 +377,7 @@ mesh_done: } public U0 DrawWaitMouse(CDC *dc, I64 x, I64 y) -{//This is a callback. See $LK,"::/Demo/Graphics/Grid.CC"$. +{//This is a callback. See $LK,"::/Demo/Graphics/Grid.ZC"$. I64 old_pen_width = dc->thick; CColorROPU32 old_color = dc->color; diff --git a/src/System/Gr/GrDC.CC b/src/System/Gr/GrDC.ZC similarity index 98% rename from src/System/Gr/GrDC.CC rename to src/System/Gr/GrDC.ZC index 320c759b..aa65bc61 100755 --- a/src/System/Gr/GrDC.CC +++ b/src/System/Gr/GrDC.ZC @@ -4,7 +4,7 @@ #define GR_SCALE (1<<32) public U0 Mat4x4MulXYZ(I64 *r, I64 *_x, I64 *_y, I64 *_z) -{//Rotate 3D point using 4x4 matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Rotate 3D point using 4x4 matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. I64 x1, y1, z1, xx = *_x, yy = *_y, zz = *_z; x1 = (r[0 * 4 + 0] * xx + r[0 * 4 + 1] * yy + r[0 * 4 + 2] * zz + r[0 * 4 + 3]) >> 32; @@ -17,7 +17,7 @@ public U0 Mat4x4MulXYZ(I64 *r, I64 *_x, I64 *_y, I64 *_z) public U0 DCTransform(CDC *dc, I64 *_x, I64 *_y, I64 *_z) {//This is the default dc->transform() callback. -//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. Mat4x4MulXYZ(dc->r, _x, _y, _z); *_x += dc->x; *_y += dc->y; @@ -25,7 +25,7 @@ public U0 DCTransform(CDC *dc, I64 *_x, I64 *_y, I64 *_z) } public I64 *Mat4x4IdentEqu(I64 *r) -{//Set matrix to identity. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Set matrix to identity. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. MemSet(r, 0, sizeof(I64)*16); r[0 * 4 + 0].i32[1] = 1; r[1 * 4 + 1].i32[1] = 1; @@ -36,7 +36,7 @@ public I64 *Mat4x4IdentEqu(I64 *r) } public I64 *Mat4x4IdentNew(CTask *mem_task=NULL) -{//MAlloc an identity matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//MAlloc an identity matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. return Mat4x4IdentEqu(MAlloc(sizeof(I64) * 16, mem_task)); } @@ -49,7 +49,7 @@ public I64 Mat4x4NormSqr65536(I64 *r) } public U0 DCMat4x4Set(CDC *dc=NULL, I64 *r) -{//Set device context's rot matrix. Will be $LK,"Free",A="MN:Free"$d() in $LK,"DCDel",A="MN:DCDel"$().Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Set device context's rot matrix. Will be $LK,"Free",A="MN:Free"$d() in $LK,"DCDel",A="MN:DCDel"$().Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. //The main purpose is to set matrix norm for thick scaling. //NULL as dc means gr.dc if (!dc) @@ -168,7 +168,7 @@ public U0 DCReset(CDC *dc) public U0 DCExtentsInit(CDC *dc=NULL) {//Init markers for extent of next newly drawn graphics. //NULL means gr.dc - //See $LK,"::/Demo/Graphics/Extents.CC"$ + //See $LK,"::/Demo/Graphics/Extents.ZC"$ //You should clear the record flag yourself if (!dc) dc = gr.dc; diff --git a/src/System/Gr/GrEnd.CC b/src/System/Gr/GrEnd.ZC similarity index 100% rename from src/System/Gr/GrEnd.CC rename to src/System/Gr/GrEnd.ZC diff --git a/src/System/Gr/GrExterns.CC b/src/System/Gr/GrExterns.ZC similarity index 100% rename from src/System/Gr/GrExterns.CC rename to src/System/Gr/GrExterns.ZC diff --git a/src/System/Gr/GrGlobals.CC b/src/System/Gr/GrGlobals.ZC similarity index 95% rename from src/System/Gr/GrGlobals.CC rename to src/System/Gr/GrGlobals.ZC index 8c8366ab..07dc2bc3 100755 --- a/src/System/Gr/GrGlobals.CC +++ b/src/System/Gr/GrGlobals.ZC @@ -22,7 +22,7 @@ public class CGrGlobals U0 (*fp_wall_paper)(CTask *task); U0 (*fp_draw_mouse)(CDC *dc, I64 x, I64 y); U0 (*fp_draw_grab_mouse)(CDC *dc, I64 x, I64 y, Bool closed); - U8 *empty_sprite; //Gets assigned $LK,"gr.empty_sprite",A="FF:::/System/Mouse.CC,empty_sprite"$ + U8 *empty_sprite; //Gets assigned $LK,"gr.empty_sprite",A="FF:::/System/Mouse.ZC,empty_sprite"$ #define GR_PEN_BRUSHES_NUM 64 CDC *pen_brushes [GR_PEN_BRUSHES_NUM], @@ -43,7 +43,7 @@ public class CGrGlobals public CBGR24 gr_palette[COLORS_NUM]; -//See $LK,"RLf_VESA",A="FF:::/Kernel/KStart16.CC,RLf_VESA"$ +//See $LK,"RLf_VESA",A="FF:::/Kernel/KStart16.ZC,RLf_VESA"$ //See $LK,"SysGrInit",A="MN:SysGrInit"$() //Allows consts to be used instead of variables. HashPublic("GR_WIDTH", HTT_DEFINE_STR);; diff --git a/src/System/Gr/GrInitA.CC b/src/System/Gr/GrInitA.ZC similarity index 100% rename from src/System/Gr/GrInitA.CC rename to src/System/Gr/GrInitA.ZC diff --git a/src/System/Gr/GrInitB.CC b/src/System/Gr/GrInitB.ZC similarity index 100% rename from src/System/Gr/GrInitB.CC rename to src/System/Gr/GrInitB.ZC diff --git a/src/System/Gr/GrMath.CC b/src/System/Gr/GrMath.ZC similarity index 98% rename from src/System/Gr/GrMath.CC rename to src/System/Gr/GrMath.ZC index e9df5e66..c85e627e 100755 --- a/src/System/Gr/GrMath.CC +++ b/src/System/Gr/GrMath.ZC @@ -9,7 +9,7 @@ public Bool Line(U8 *aux_data, I64 x1, I64 y1, I64 z1, I64 x2, I64 y2, I64 z2, Bool (*fp_plot)(U8 *aux, I64 x, I64 y, I64 z), I64 step=1, I64 start=0) {//Step through line segment calling callback. -//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. I64 i, j, d, dx = x2 - x1, dy = y2 - y1, dz = z2 - z1, _x, _y, _z, adx = AbsI64(dx), ady = AbsI64(dy), adz = AbsI64(dz); Bool first = TRUE; @@ -102,7 +102,7 @@ public Bool Line(U8 *aux_data, I64 x1, I64 y1, I64 z1, I64 x2, I64 y2, I64 z2, #help_index "Graphics/Math/3D Transformation" public I64 *Mat4x4MulMat4x4Equ(I64 *dst, I64 *m1, I64 *m2) -{//Multiply 4x4 matrices and store in dst. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Multiply 4x4 matrices and store in dst. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. //Conceptually, the transform m1 is applied after m2 I64 i, j, k; F64 sum; @@ -122,7 +122,7 @@ public I64 *Mat4x4MulMat4x4Equ(I64 *dst, I64 *m1, I64 *m2) } public I64 *Mat4x4MulMat4x4New(I64 *m1, I64 *m2, CTask *mem_task=NULL) -{//Multiply 4x4 matrices. Return MAlloced matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Multiply 4x4 matrices. Return MAlloced matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. //Conceptually, the transform m1 is applied after m2 return Mat4x4MulMat4x4Equ(MAlloc(sizeof(I64) * 16, mem_task), m1, m2); } @@ -140,7 +140,7 @@ public I64 *Mat4x4New(I64 *src, CTask *mem_task=NULL) } public I64 *Mat4x4RotX(I64 *m, F64 è) -{//Rot matrix about X axis. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Rot matrix about X axis. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. F64 my_cos = Cos(è) * GR_SCALE, my_sin = Sin(è) * GR_SCALE; I64 r[16], r2[16]; @@ -156,7 +156,7 @@ public I64 *Mat4x4RotX(I64 *m, F64 } public I64 *Mat4x4RotY(I64 *m, F64 ê) -{//Rot matrix about Y axis. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Rot matrix about Y axis. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. F64 my_cos = Cos(ê) * GR_SCALE, my_sin = Sin(ê) * GR_SCALE; I64 r[16], r2[16]; @@ -172,7 +172,7 @@ public I64 *Mat4x4RotY(I64 *m, F64 } public I64 *Mat4x4RotZ(I64 *m, F64 é) -{//Rot matrix about Z axis. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Rot matrix about Z axis. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. F64 my_cos=Cos(é)*GR_SCALE, my_sin=Sin(é)*GR_SCALE; I64 r[16], r2[16]; @@ -214,7 +214,7 @@ public U0 DCThickScale(CDC *dc=gr.dc) } public I64 *Mat4x4TranslationEqu(I64 *r, I64 x, I64 y, I64 z) -{//Set translation values in 4x4 matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Set translation values in 4x4 matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. r[0 * 4 + 3] = x << 32; r[1 * 4 + 3] = y << 32; r[2 * 4 + 3] = z << 32; @@ -224,7 +224,7 @@ public I64 *Mat4x4TranslationEqu(I64 *r, I64 x, I64 y, I64 z) } public I64 *Mat4x4TranslationAdd(I64 *r, I64 x, I64 y, I64 z) -{//Add translation to 4x4 matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Add translation to 4x4 matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. r[0 * 4 + 3] += x << 32; r[1 * 4 + 3] += y << 32; r[2 * 4 + 3] += z << 32; @@ -301,7 +301,7 @@ public Bool DCSymmetry3Set(CDC *dc=gr.dc, I64 x1, I64 y1, I64 z1, I64 x2, I64 y2 } public U0 DCReflect(CDC *dc, I64 *_x, I64 *_y, I64 *_z) -{//Reflect 3D point about device context's symmetry. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Reflect 3D point about device context's symmetry. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. I64 x = *_x << 32, y = *_y << 32, z = *_z << 32, diff --git a/src/System/Gr/GrPalette.CC b/src/System/Gr/GrPalette.ZC similarity index 100% rename from src/System/Gr/GrPalette.CC rename to src/System/Gr/GrPalette.ZC diff --git a/src/System/Gr/GrPrimatives.CC b/src/System/Gr/GrPrimatives.ZC similarity index 99% rename from src/System/Gr/GrPrimatives.CC rename to src/System/Gr/GrPrimatives.ZC index b65a550a..a3fb9f57 100755 --- a/src/System/Gr/GrPrimatives.CC +++ b/src/System/Gr/GrPrimatives.ZC @@ -738,7 +738,7 @@ public Bool Gr3BSpline(CDC *dc=gr.dc, CD3I32 *ctrl, I64 count, Bool closed=FALSE I64 GrLineFat3(CDC *dc=gr.dc, I64 x1, I64 y1, I64 z1, I64 x2, I64 y2, I64 z2, I64 width, I64 start=0) {//Step through line segment calling callback. -//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. I64 res = 0, i, j, d, dx = x2 - x1, dy = y2 - y1, dz = z2 - z1, _x, _y, _z, d_lo, d_hi, adx = AbsI64(dx), ady = AbsI64(dy), adz = AbsI64(dz); diff --git a/src/System/Gr/GrScreen.CC b/src/System/Gr/GrScreen.ZC similarity index 99% rename from src/System/Gr/GrScreen.CC rename to src/System/Gr/GrScreen.ZC index aa344e04..b9562f54 100755 --- a/src/System/Gr/GrScreen.CC +++ b/src/System/Gr/GrScreen.ZC @@ -402,7 +402,7 @@ U0 GrUpdateScreen32() } U0 GrUpdateScreen() -{//Called by the Window Manager $LK,"HERE",A="FF:::/System/WinMgr.CC,GrUpdateScreen"$, 30 times a second. +{//Called by the Window Manager $LK,"HERE",A="FF:::/System/WinMgr.ZC,GrUpdateScreen"$, 30 times a second. CDC *dc; if (text.is_fb_busy) diff --git a/src/System/Gr/GrSpritePlot.CC b/src/System/Gr/GrSpritePlot.ZC similarity index 100% rename from src/System/Gr/GrSpritePlot.CC rename to src/System/Gr/GrSpritePlot.ZC diff --git a/src/System/Gr/GrTextBase.CC b/src/System/Gr/GrTextBase.ZC similarity index 100% rename from src/System/Gr/GrTextBase.CC rename to src/System/Gr/GrTextBase.ZC diff --git a/src/System/Gr/MakeGr.CC b/src/System/Gr/MakeGr.ZC similarity index 100% rename from src/System/Gr/MakeGr.CC rename to src/System/Gr/MakeGr.ZC diff --git a/src/System/Gr/ScreenCast.CC b/src/System/Gr/ScreenCast.ZC similarity index 100% rename from src/System/Gr/ScreenCast.CC rename to src/System/Gr/ScreenCast.ZC diff --git a/src/System/Gr/SpriteBitMap.CC b/src/System/Gr/SpriteBitMap.ZC similarity index 100% rename from src/System/Gr/SpriteBitMap.CC rename to src/System/Gr/SpriteBitMap.ZC diff --git a/src/System/Gr/SpriteCode.CC b/src/System/Gr/SpriteCode.ZC similarity index 100% rename from src/System/Gr/SpriteCode.CC rename to src/System/Gr/SpriteCode.ZC diff --git a/src/System/Gr/SpriteEd.CC b/src/System/Gr/SpriteEd.ZC similarity index 99% rename from src/System/Gr/SpriteEd.CC rename to src/System/Gr/SpriteEd.ZC index 6922292f..8cc55c8f 100755 --- a/src/System/Gr/SpriteEd.CC +++ b/src/System/Gr/SpriteEd.ZC @@ -1415,7 +1415,7 @@ I64 SpriteEd(CDoc *doc, CDocEntry *doc_ce, I64 x, I64 y, CSprite **_head, I64 *_ #help_index "Graphics/Sprite;Sprites;Graphics/Math/3D Transformation" public U8 *SpriteTransform(U8 *elems, I64 *r) -{//Rotate Sprite using 4x4 matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{//Rotate Sprite using 4x4 matrix. Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. U8 *res; CSprite *head = Sprite2SpriteQueue(elems); diff --git a/src/System/Gr/SpriteMain.CC b/src/System/Gr/SpriteMain.ZC similarity index 99% rename from src/System/Gr/SpriteMain.CC rename to src/System/Gr/SpriteMain.ZC index d7635504..2057db91 100755 --- a/src/System/Gr/SpriteMain.CC +++ b/src/System/Gr/SpriteMain.ZC @@ -110,7 +110,7 @@ Bool PopUpExtents(I64 *_x1, I64 *_x2, I64 *_y1, I64 *_y2) } U0 SpriteScreenInit(CDC *dc, I64, I64) -{ //Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CC"$. +{ //Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.ZC"$. I64 xx, yy, old_pen_width = dc->thick; CColorROPU32 old_color = dc->color; diff --git a/src/System/Gr/SpriteMesh.CC b/src/System/Gr/SpriteMesh.ZC similarity index 99% rename from src/System/Gr/SpriteMesh.CC rename to src/System/Gr/SpriteMesh.ZC index 3dbcfc98..106d4378 100755 --- a/src/System/Gr/SpriteMesh.CC +++ b/src/System/Gr/SpriteMesh.ZC @@ -1113,7 +1113,7 @@ If head points to a mesh, it will load it. Returns a newly malloced mesh or NULL. -See $LK,"::/Demo/Graphics/SpritePlot3D.CC"$. +See $LK,"::/Demo/Graphics/SpritePlot3D.ZC"$. $WW,0$*/ CCtrl *c = CtrlFindUnique(Fs, CTRLT_VIEWING_ANGLES); CViewAngles *s, *old_s; diff --git a/src/System/Gr/SpriteNew.CC b/src/System/Gr/SpriteNew.ZC similarity index 99% rename from src/System/Gr/SpriteNew.CC rename to src/System/Gr/SpriteNew.ZC index 7cb1fd93..6fbe9ddf 100755 --- a/src/System/Gr/SpriteNew.CC +++ b/src/System/Gr/SpriteNew.ZC @@ -141,7 +141,7 @@ public U8 *DC2Sprite(CDC *tmpb) } public U8 *SpriteElem2Summary(CSprite *tmpg) -{//Study $LK,"::/Demo/Graphics/SpriteText.CC"$. +{//Study $LK,"::/Demo/Graphics/SpriteText.ZC"$. U8 buf[STR_LEN], buf2[STR_LEN]; I32 *ptr; diff --git a/src/System/Gr/SpriteSideBar.CC b/src/System/Gr/SpriteSideBar.ZC similarity index 100% rename from src/System/Gr/SpriteSideBar.CC rename to src/System/Gr/SpriteSideBar.ZC diff --git a/src/System/Hash.CC b/src/System/Hash.ZC similarity index 100% rename from src/System/Hash.CC rename to src/System/Hash.ZC diff --git a/src/System/InFile.CC b/src/System/InFile.ZC similarity index 100% rename from src/System/InFile.CC rename to src/System/InFile.ZC diff --git a/src/System/MakeSystem.CC b/src/System/MakeSystem.ZC similarity index 100% rename from src/System/MakeSystem.CC rename to src/System/MakeSystem.ZC diff --git a/src/System/Math.CC b/src/System/Math.ZC similarity index 100% rename from src/System/Math.CC rename to src/System/Math.ZC diff --git a/src/System/MathODE.CC b/src/System/MathODE.ZC similarity index 99% rename from src/System/MathODE.CC rename to src/System/MathODE.ZC index 44a34edf..7ba252e7 100755 --- a/src/System/MathODE.CC +++ b/src/System/MathODE.ZC @@ -626,7 +626,7 @@ U0 ODERK5OneStep(CMathODE *ode) F64 ode_alloced_factor = 0.75; U0 ODEsUpdate(CTask *task) -{/* This routine is called by the $LK,"window mgr",A="FF:::/System/Gr/GrScreen.CC,ODEsUpdate"$on a continuous +{/* This routine is called by the $LK,"window mgr",A="FF:::/System/Gr/GrScreen.ZC,ODEsUpdate"$on a continuous basis to allow real-time simulation. It is intended to provide ress good enough for games. It uses a runge-kutta integrator which is a better algorithm than doing it with Euler. diff --git a/src/System/Memory.CC b/src/System/Memory.ZC similarity index 100% rename from src/System/Memory.CC rename to src/System/Memory.ZC diff --git a/src/System/Menu.CC b/src/System/Menu.ZC similarity index 100% rename from src/System/Menu.CC rename to src/System/Menu.ZC diff --git a/src/System/Mouse.CC b/src/System/Mouse.ZC similarity index 89% rename from src/System/Mouse.CC rename to src/System/Mouse.ZC index b5a8398a..4a976be5 100755 Binary files a/src/System/Mouse.CC and b/src/System/Mouse.ZC differ diff --git a/src/System/Registry.CC b/src/System/Registry.ZC similarity index 92% rename from src/System/Registry.CC rename to src/System/Registry.ZC index 367e85ee..79dca4cd 100755 --- a/src/System/Registry.CC +++ b/src/System/Registry.ZC @@ -1,5 +1,5 @@ #help_index "Registry" -#define REGISTRY_FILENAME "~/Registry.CC" +#define REGISTRY_FILENAME "~/Registry.ZC" CDoc *sys_registry_doc = NULL; I64 sys_message_flags[1] = {0}; @@ -98,7 +98,7 @@ public Bool RegAppend(U8 *path, U8 *format, ...) } public Bool OneTimePopUp(U8 *_flags, I64 flag_num, U8 *message) -{//See $LK,"::/Apps/X-Caliber/X-Caliber.CC"$. +{//See $LK,"::/Apps/X-Caliber/X-Caliber.ZC"$. Bool res = FALSE; CDoc *doc = DocNew; CDocEntry *doc_e; @@ -156,7 +156,7 @@ public U0 OnceFlush() } public U0 SysOnce(U8 *format, ...) -{//Add System code to $LK,"~/Registry.CC"$, executed next boot. +{//Add System code to $LK,"~/Registry.ZC"$, executed next boot. U8 *buf = StrPrintJoin(NULL, format, argc, argv); if (!Bt(&sys_run_level, RLf_ONCE_SYSTEM)) @@ -166,7 +166,7 @@ public U0 SysOnce(U8 *format, ...) } public U0 Once(U8 *format, ...) -{//Add User code to $LK,"~/Registry.CC"$, executed next boot. +{//Add User code to $LK,"~/Registry.ZC"$, executed next boot. U8 *buf = StrPrintJoin(NULL, format, argc, argv); if (!Bt(&sys_run_level, RLf_ONCE_USER)) @@ -176,7 +176,7 @@ public U0 Once(U8 *format, ...) } public U0 SysOnceDrive(U8 drv_let=0, U8 *format, ...) -{//Add System code to drive $LK,"~/Registry.CC"$, executed next boot. +{//Add System code to drive $LK,"~/Registry.ZC"$, executed next boot. U8 *buf = StrPrintJoin(NULL, format, argc, argv); I64 old_drive_let = *sys_registry_doc->filename.name; @@ -190,7 +190,7 @@ public U0 SysOnceDrive(U8 drv_let=0, U8 *format, ...) } public U0 OnceDrive(U8 drv_let=0, U8 *format, ...) -{//Add User code to drive $LK,"~/Registry.CC"$, executed next boot. +{//Add User code to drive $LK,"~/Registry.ZC"$, executed next boot. U8 *buf = StrPrintJoin(NULL, format, argc, argv); I64 old_drive_let = *sys_registry_doc->filename.name; @@ -204,7 +204,7 @@ public U0 OnceDrive(U8 drv_let=0, U8 *format, ...) } public U0 OnceExe() -{//Execute Once code. Call goes in $LK,"~/Once.CC"$. +{//Execute Once code. Call goes in $LK,"~/Once.ZC"$. try { diff --git a/src/System/Sound.CC b/src/System/Sound.ZC similarity index 100% rename from src/System/Sound.CC rename to src/System/Sound.ZC diff --git a/src/System/TaskSettings.CC b/src/System/TaskSettings.ZC similarity index 100% rename from src/System/TaskSettings.CC rename to src/System/TaskSettings.ZC diff --git a/src/System/Training.CC b/src/System/Training.ZC similarity index 100% rename from src/System/Training.CC rename to src/System/Training.ZC diff --git a/src/System/Utils/BinRep.CC b/src/System/Utils/BinRep.ZC similarity index 97% rename from src/System/Utils/BinRep.CC rename to src/System/Utils/BinRep.ZC index a2137357..8956875f 100755 --- a/src/System/Utils/BinRep.CC +++ b/src/System/Utils/BinRep.ZC @@ -26,7 +26,7 @@ DefineListLoad("ST_BIN_FILE_TYPES", "END\0" public Bool BinRep(U8 *filename) {//Reports imports, exports, etc for a .BIN file -//See $LK,"Patch Table Generation",A="FF:::/Compiler/CMain.CC,IET_ABS_ADDR"$ and $LK,"Load",A="MN:Load"$(). +//See $LK,"Patch Table Generation",A="FF:::/Compiler/CMain.ZC,IET_ABS_ADDR"$ and $LK,"Load",A="MN:Load"$(). U8 *fbuf, *ptr, *sptr, *absname; I64 i, j, size, etype; Bool res = FALSE; diff --git a/src/System/Utils/CPURep.CC b/src/System/Utils/CPURep.ZC similarity index 100% rename from src/System/Utils/CPURep.CC rename to src/System/Utils/CPURep.ZC diff --git a/src/System/Utils/ConversionScript.CC b/src/System/Utils/ConversionScript.ZC similarity index 97% rename from src/System/Utils/ConversionScript.CC rename to src/System/Utils/ConversionScript.ZC index 24b95d49..38b95151 100755 --- a/src/System/Utils/ConversionScript.CC +++ b/src/System/Utils/ConversionScript.ZC @@ -1,6 +1,6 @@ U0 Cvt(U8 *ff_mask="*", U8 *fu_flags="+r+l-i+S") { - FR(".HC", ".CC", ff_mask); + FR(".HC", ".ZC", ff_mask); Find("MemCpy", ff_mask, fu_flags, "MemCopy"); Find("MemCmp", ff_mask, fu_flags, "MemCompare"); @@ -51,7 +51,7 @@ U0 Cvt(U8 *ff_mask="*", U8 *fu_flags="+r+l-i+S") Find("adam_task", ff_mask, fu_flags, "sys_task"); Find("JobQue", ff_mask, fu_flags, "JobQueue"); Find("MSG_", ff_mask, CatPrint(fu_flags, "-l"), "MESSAGE_"); - Find(".HC", ff_mask, fu_flags, ".CC"); + Find(".HC", ff_mask, fu_flags, ".ZC"); CatPrint(fu_flags, "+l"); Find("Msg", ff_mask, fu_flags, "Message"); Find("MusicSettingsRst",ff_mask, fu_flags, "MusicSettingsReset"); diff --git a/src/System/Utils/Diff.CC b/src/System/Utils/Diff.ZC similarity index 100% rename from src/System/Utils/Diff.CC rename to src/System/Utils/Diff.ZC diff --git a/src/System/Utils/DocUtils.CC b/src/System/Utils/DocUtils.ZC similarity index 100% rename from src/System/Utils/DocUtils.CC rename to src/System/Utils/DocUtils.ZC diff --git a/src/System/Utils/Find.CC b/src/System/Utils/Find.ZC similarity index 100% rename from src/System/Utils/Find.CC rename to src/System/Utils/Find.ZC diff --git a/src/System/Utils/HeapLog.CC b/src/System/Utils/HeapLog.ZC similarity index 100% rename from src/System/Utils/HeapLog.CC rename to src/System/Utils/HeapLog.ZC diff --git a/src/System/Utils/LineRep.CC b/src/System/Utils/LineRep.ZC similarity index 100% rename from src/System/Utils/LineRep.CC rename to src/System/Utils/LineRep.ZC diff --git a/src/System/Utils/LinkCheck.CC b/src/System/Utils/LinkCheck.ZC similarity index 100% rename from src/System/Utils/LinkCheck.CC rename to src/System/Utils/LinkCheck.ZC diff --git a/src/System/Utils/MakeUtils.CC b/src/System/Utils/MakeUtils.ZC similarity index 100% rename from src/System/Utils/MakeUtils.CC rename to src/System/Utils/MakeUtils.ZC diff --git a/src/System/Utils/MemRep.CC b/src/System/Utils/MemRep.ZC similarity index 100% rename from src/System/Utils/MemRep.CC rename to src/System/Utils/MemRep.ZC diff --git a/src/System/Utils/Merge.CC b/src/System/Utils/Merge.ZC similarity index 100% rename from src/System/Utils/Merge.CC rename to src/System/Utils/Merge.ZC diff --git a/src/System/Utils/Profiler.CC b/src/System/Utils/Profiler.ZC similarity index 98% rename from src/System/Utils/Profiler.CC rename to src/System/Utils/Profiler.ZC index 2deeac20..1797c05e 100755 --- a/src/System/Utils/Profiler.CC +++ b/src/System/Utils/Profiler.ZC @@ -9,7 +9,7 @@ I64 pf_buf_in_ptr = 0, pf_depth; I64 pf_prof_active = 0; U0 ProfTimerInt(CTask *task) -{//See $LK,"profiler_timer_irq",A="FF:::/Kernel/KInterrupts.CC,profiler_timer_irq"$. +{//See $LK,"profiler_timer_irq",A="FF:::/Kernel/KInterrupts.ZC,profiler_timer_irq"$. I64 i, k; if (Bt(&pf_prof_active, 0)) diff --git a/src/System/Utils/StrUtils.CC b/src/System/Utils/StrUtils.ZC similarity index 100% rename from src/System/Utils/StrUtils.CC rename to src/System/Utils/StrUtils.ZC diff --git a/src/System/Utils/SysRep.CC b/src/System/Utils/SysRep.ZC similarity index 100% rename from src/System/Utils/SysRep.CC rename to src/System/Utils/SysRep.ZC diff --git a/src/System/Utils/TaskRep.CC b/src/System/Utils/TaskRep.ZC similarity index 100% rename from src/System/Utils/TaskRep.CC rename to src/System/Utils/TaskRep.ZC diff --git a/src/System/Utils/ToDolDoc.CC b/src/System/Utils/ToDolDoc.ZC similarity index 100% rename from src/System/Utils/ToDolDoc.CC rename to src/System/Utils/ToDolDoc.ZC diff --git a/src/System/Utils/ToTXT.CC b/src/System/Utils/ToTXT.ZC similarity index 100% rename from src/System/Utils/ToTXT.CC rename to src/System/Utils/ToTXT.ZC diff --git a/src/System/Utils/VideoRep.CC b/src/System/Utils/VideoRep.ZC similarity index 100% rename from src/System/Utils/VideoRep.CC rename to src/System/Utils/VideoRep.ZC diff --git a/src/System/WallPaper.CC b/src/System/WallPaper.ZC similarity index 100% rename from src/System/WallPaper.CC rename to src/System/WallPaper.ZC diff --git a/src/System/Win.CC b/src/System/Win.ZC similarity index 100% rename from src/System/Win.CC rename to src/System/Win.ZC diff --git a/src/System/WinMgr.CC b/src/System/WinMgr.ZC similarity index 100% rename from src/System/WinMgr.CC rename to src/System/WinMgr.ZC diff --git a/src/System/ZSplash.CC b/src/System/ZSplash.ZC similarity index 100% rename from src/System/ZSplash.CC rename to src/System/ZSplash.ZC