SparrowOSTS_121127.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:45:28 +02:00
1 parent 0e9364ff4c
commit e57428affb
1218 files changed
+247142 -165507

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
//The HOME/Registry.CPP.Z file is C+ code.
//You can execute a branch of it. The Adam
//branch is executed in the Adam task boot phase.
//Normally, you will place var declarations
//in the branch you make, but since an arthmetic expression
//is valid in C+ you can place simple expressions
//without vars.
AcctRegSetDftEntry("DemoCompany/Game1","F64 best_score=1.23;\n");
AcctRegSetDftEntry("DemoCompany/Game1/SimpleVal","1234;\n");
AcctRegExecuteBranch("DemoCompany/Game1");
U0 Game()
{
I64 i=AcctRegExecuteBranch("DemoCompany/Game1/SimpleVal");
"High Score:%6.5f\n",best_score;
"Val:%d\n",i;
i++;
best_score=tNP;
//You could combine these into one write by making
//the $$TR$$ and $$ID,2$$, $$ID-2$$, cmds yourself.
AcctRegWriteBranch("DemoCompany/Game1","F64 best_score=%9.5f;\n",best_score);
AcctRegWriteBranch("DemoCompany/Game1/SimpleVal","%d;\n",i);
}
Game;