VERSION,FREEMEM,RIGHT$実装

This commit is contained in:
otya128 committed 2015-08-27 21:35:15 +09:00
1 parent 7eabb17a22
commit f149ce596f
4 files changed
+30 -5

No files matched your search

+7 -1
View File
@@ -168,8 +168,14 @@ class Compiler
sysVariable["CSRY"] = new CSRY();
global["CSRZ"] = VMVariable(-1);
sysVariable["CSRZ"] = new CSRZ();
addSystemVariable("VERSION", new Version());
addSystemVariable("FREEMEM", new FreeMem());
}
void addSystemVariable(wstring name, SystemVariable var)
{
global[name] = VMVariable(-1);
sysVariable[name] = var;
}
SystemVariable[wstring] sysVariable;
Code[] code;
VMVariable[wstring] global;