summaryrefslogtreecommitdiff
path: root/src/sys/include/np/piir.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-02 20:06:06 -0400
committerIan Moffett <ian@osmora.org>2025-10-02 20:06:06 -0400
commitc904bc2b78045bd81cfc3603422c385cbf7adc75 (patch)
treec5a0dd4b35a8ee69512b18c12f774b3699a24d0a /src/sys/include/np/piir.h
parentee1e4b1e7cce34ff049c5ee48c8bbeef6c6e5596 (diff)
kern: np: Add support for return statements
This commit introduces lexical, parsing and code generation support for the return statements. As of now, one is only able to return unsigned integers but this will be expanded upon in the future Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/np/piir.h')
-rw-r--r--src/sys/include/np/piir.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/include/np/piir.h b/src/sys/include/np/piir.h
index d108776..5625409 100644
--- a/src/sys/include/np/piir.h
+++ b/src/sys/include/np/piir.h
@@ -56,6 +56,7 @@ typedef int8_t md_byte_t;
#define PIIR_LOAD_R32 0x03 /* Load 32-bit register */
#define PIIR_LOAD_R64 0x04 /* Load 64-bit register */
#define PIIR_RET_NIL 0x05 /* Return nothing */
+#define PIIR_RET_NUM 0x06 /* Return a number */
/*
* Represents the PIIR virtual machine for storing