feat(furvm): add variables

This commit is contained in:
2026-06-14 14:22:45 +02:00
parent f0fe6b4179
commit f6f716e8c9
4 changed files with 86 additions and 3 deletions
+15 -1
View File
@@ -65,6 +65,20 @@ enum class instruction_t : byte {
*/
Mod,
/**
* @brief Pushes a variable onto the stack.
*
* Fetches a variable denoted by next two bytes in little-endian and pushes it onto the stack.
*/
Load,
/**
* @brief Stores an element from the stack in a variable.
*
* Pops a thing from the stack and stores it in a variable denoted by next two bytes in little-endian.
*/
Store,
/**
* @brief Calls a function.
*
@@ -96,4 +110,4 @@ struct instruction {
} // namespace furvm
#endif // FURVM_INSTRUCTION_HPP
#endif // FURVM_INSTRUCTION_HPP