PRIVATE: some more functions implemented

This commit is contained in:
neuromancer 2021-01-02 14:19:23 -03:00 committed by Eugene Sandulenko
parent cae1b214a8
commit ccef0fb704
4 changed files with 112 additions and 44 deletions

View file

@ -33,7 +33,6 @@ void saveSetting(char *name)
Common::String s(name);
settingcode.setVal(s, psetting);
debug("setting %s %x, %x, %x", name, psetting, psetting->prog, psetting->stack);
}
void loadSetting(Common::String *name)
@ -104,17 +103,11 @@ int funcpush() //(char *name, int nargs)
debug("executing %s with %d params", s.str, n.val);
for (int i = 0; i < n.val; i++) {
arg = pop();
//if (arg.sym != NULL)
// debug("arg name", arg->sym->name.c_str());
debug("%d", arg.val);
//debug("%d", arg.val);
args.insert(args.begin(), arg) ;
}
execFunction(s.str, args);
//pc++;
//d.sym = (Symbol *)(*pc++);
//printf("var pushing %s", d.sym->name);
//push(d);
return 0;
}
@ -237,14 +230,6 @@ int ne()
return 0;
}
int print() /* pop top value from stack, print it */
{
Datum d;
d = pop();
//printf("\t%d\n", d.val);
return 0;
}
Inst *code(Inst f) /* install one instruction or operand */
{
Inst *oprogp = progp;