From 327adb17f4b49d98c11f7288b04f516ba9ba0faf Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 25 Apr 2024 02:57:01 +0530 Subject: [PATCH] Added clarifying comments for WORD_ROUTINES and STACK_ROUTINES --- vm/runtime.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vm/runtime.h b/vm/runtime.h index 7fd72b8..eda35e1 100644 --- a/vm/runtime.h +++ b/vm/runtime.h @@ -100,6 +100,7 @@ static const push_f PUSH_ROUTINES[] = { [OP_PUSH_WORD] = vm_push_word, }; +/* Operations that have input determined at deserializing i.e. */ err_t vm_push_byte_register(vm_t *, word); err_t vm_push_hword_register(vm_t *, word); err_t vm_push_word_register(vm_t *, word); @@ -146,6 +147,7 @@ static const word_f WORD_ROUTINES[] = { [OP_MSET_WORD] = vm_mset_word, }; +/* Operations that take input from the stack */ err_t vm_malloc_stack_byte(vm_t *); err_t vm_malloc_stack_hword(vm_t *); err_t vm_malloc_stack_word(vm_t *);