This commit is contained in:
Andre Wagner
2026-05-02 15:25:09 -05:00
parent f9733f3b20
commit 1d24570f1b
6 changed files with 51 additions and 26 deletions

View File

@@ -32,18 +32,21 @@ enum class Instruction : uint8_t {
Duplicate = 0x05,
// local variables
SetLocal8 = 0xa3,
SetLocal16 = 0xc3,
SetLocal32 = 0xe3,
GetLocal8 = 0xa4,
GetLocal16 = 0xc4,
GetLocal32 = 0xe4,
SetGlobal8 = 0xa5,
SetGlobal16 = 0xc5,
SetGlobal32 = 0xe5,
GetGlobal8 = 0xa6,
GetGlobal16 = 0xc6,
GetGlobal32 = 0xe6,
PushValues8 = 0xa3,
PushValues16 = 0xc3,
PushValues32 = 0xe3,
SetValue8 = 0xab,
SetValue16 = 0xcb,
SetValue32 = 0xeb,
DuplicateValue8 = 0xa4,
DuplicateValue16 = 0xc4,
DuplicateValue32 = 0xe4,
SetGlobal8 = 0xa5,
SetGlobal16 = 0xc5,
SetGlobal32 = 0xe5,
GetGlobal8 = 0xa6,
GetGlobal16 = 0xc6,
GetGlobal32 = 0xe6,
// function operations
Call8 = 0xa7,