feat(furvm): introduce jump and jump not zero instructions

This commit is contained in:
2026-06-14 23:49:29 +02:00
parent e809eb82c7
commit eec25e3aea
2 changed files with 25 additions and 0 deletions
+15
View File
@@ -86,6 +86,21 @@ enum class instruction_t : byte {
*/
Call,
/**
* @brief Jumps to an instruction relative to the current instruction.
*
* Jumps to an instruction relative to the current instruction with offset denoted by next byte.
*/
Jump,
/**
* @brief Jumps to an instruction relative to the current instruction if top thing on the stack is not zero.
*
* Jumps to an instruction relative to the current instruction with offset denoted by next byte if the top thing on
* the stack is not zero (is true).
*/
JumpNotZero,
/**
* @brief Pops the current call frame.
*/