feat: introduce array and get instruction

This commit is contained in:
2026-07-06 10:53:48 +02:00
parent 81a439b2ad
commit 7c74850aff
4 changed files with 106 additions and 16 deletions
+13
View File
@@ -25,6 +25,19 @@ enum class instruction_t : byte {
*/
PushConstant,
/**
* @brief Pushes a new array onto the stack.
*
* Type is the next 4 bytes in little-endian.
* If the type is dynamic the array's size will be popped off of the stack.
*/
Array,
/**
* @brief Pushes an element from an array onto the stack.
*/
Get,
/**
* @brief Pops top element from the stack.
*/