VM basics #5

Merged
andre merged 9 commits from vm into master 2026-04-30 13:34:49 -05:00
Showing only changes of commit 990128f41d - Show all commits

View File

@@ -84,9 +84,7 @@ TEST(VM, BasicCode)
VM vm; VM vm;
vm.load_bytecode(std::move(ba)); vm.load_bytecode(std::move(ba));
printf("%s\n", vm.debug_stack().c_str());
vm.call(0); vm.call(0);
printf("%s\n", vm.debug_stack().c_str());
int32_t result = vm.to_integer(-1); int32_t result = vm.to_integer(-1);
ASSERT_EQ(result, 5); ASSERT_EQ(result, 5);