This commit is contained in:
Andre Wagner
2026-04-30 09:27:28 -05:00
parent 8720bd1cd9
commit 5843a19b2f
9 changed files with 113 additions and 15 deletions

View File

@@ -27,7 +27,19 @@ void VM::call(size_t n_params)
void VM::run_until_return()
{
size_t level = stack_.fp_level();
while (stack_.fp_level() >= level)
step();
}
void VM::step()
{
Operation op = code_.operation(loc_.top());
switch (op.instruction) {
// TODO
}
loc_.top() = op.next_location;
}
} // tyche