feat(furvm): add clone function to thing

Closes #9
This commit is contained in:
2026-06-10 19:32:07 +02:00
parent efe028a54f
commit 0534359503
6 changed files with 91 additions and 15 deletions
+3 -1
View File
@@ -8,9 +8,11 @@
#include <cstddef>
#include <memory>
static constexpr std::array<furvm::byte, 4> s_bytecode = {
static constexpr std::array<furvm::byte, 6> s_bytecode = {
furvm::byte(furvm::instruction_t::PushB2I),
67,
furvm::byte(furvm::instruction_t::Clone),
furvm::byte(furvm::instruction_t::Drop),
furvm::byte(furvm::instruction_t::Drop),
furvm::byte(furvm::instruction_t::Return),
};