feat(furvm): add stack underflow exception

This commit is contained in:
2026-06-07 12:02:36 +02:00
parent 464b24eeed
commit 48c6da1134
4 changed files with 57 additions and 4 deletions
+2 -1
View File
@@ -8,9 +8,10 @@
#include <cstddef>
#include <memory>
static constexpr std::array<furvm::byte, 3> s_bytecode = {
static constexpr std::array<furvm::byte, 4> s_bytecode = {
furvm::byte(furvm::instruction_t::PushB2I),
67,
furvm::byte(furvm::instruction_t::Drop),
furvm::byte(furvm::instruction_t::Return),
};