aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 171a0a1..2c5ee64 100644
--- a/src/main.c
+++ b/src/main.c
@@ -41,6 +41,9 @@ typedef union
word as_word;
} data_t;
+#define DBYTE(BYTE) ((data_t){.as_byte = (BYTE)})
+#define DWORD(WORD) ((data_t){.as_word = (WORD)})
+
void vm_push_byte(vm_t *vm, data_t b)
{
if (vm->stack.pointer >= VM_STACK_MAX)