feat(furvm): add call instruction

This commit is contained in:
2026-06-11 15:09:30 +02:00
parent 6ca5fcc995
commit 3f6d0adef6
5 changed files with 33 additions and 5 deletions
+8
View File
@@ -51,6 +51,14 @@ public:
* @return The byte.
*/
constexpr byte byte(std::size_t offset) const { return m_bytecode.at(offset); }
public:
/**
* @brief Returns a function from this module.
*
* @param id Id of the function.
* @return The function.
*/
constexpr const function_p& function_at(function_handle id) const { return m_functions.at(id); }
private:
module_handle m_id;
bytecode_t m_bytecode;