mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-05-02 19:00:47 +08:00
✨ change intg to repl output operand
This commit is contained in:
@@ -259,7 +259,7 @@ void vm::run(
|
||||
#ifndef _MSC_VER
|
||||
// using labels as values/computed goto
|
||||
const void* oprs[] = {
|
||||
&&vmexit, &&intg, &&intl, &&loadg,
|
||||
&&vmexit, &&repl, &&intl, &&loadg,
|
||||
&&loadl, &&loadu, &&pnum, &&pnil,
|
||||
&&pstr, &&newv, &&newh, &&newf,
|
||||
&&happ, &¶, &&deft, &&dyn,
|
||||
@@ -292,7 +292,7 @@ void vm::run(
|
||||
#else
|
||||
typedef void (vm::*nafunc)();
|
||||
const nafunc oprs[] = {
|
||||
nullptr, &vm::o_intg,
|
||||
nullptr, &vm::o_repl,
|
||||
&vm::o_intl, &vm::o_loadg,
|
||||
&vm::o_loadl, &vm::o_loadu,
|
||||
&vm::o_pnum, &vm::o_pnil,
|
||||
@@ -376,7 +376,7 @@ vmexit:
|
||||
goto *code[++ctx.pc];\
|
||||
}
|
||||
|
||||
intg: exec_nodie(o_intg ); // +imm[pc] (detected at codegen)
|
||||
repl: exec_nodie(o_repl ); // 0
|
||||
intl: exec_nodie(o_intl ); // -0
|
||||
loadg: exec_nodie(o_loadg ); // -1
|
||||
loadl: exec_nodie(o_loadl ); // -1
|
||||
|
||||
Reference in New Issue
Block a user