summaryrefslogtreecommitdiff
path: root/src/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-03 19:22:37 -0400
committerIan Moffett <ian@osmora.org>2025-10-03 19:23:36 -0400
commit2025b837c6e5e65d2d2f2b472620e4b639af8755 (patch)
treea59055d0ba1e041d2422da722053aeee34bf7e6c /src/sys/include
parentb7c88d4a4d9e06a2984eb0812db407e3f49a629a (diff)
np: codegen: Support returning symbols / strings
Introduce support for returning symbols or strings in memory by using the symbol table and REX prefixes for 64-bit register accesses Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-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 b892231..46f88d1 100644
--- a/src/sys/include/np/piir.h
+++ b/src/sys/include/np/piir.h
@@ -58,6 +58,7 @@ typedef int8_t reg_t;
#define PIIR_LOAD_R64 0x04 /* Load 64-bit register */
#define PIIR_RET_NIL 0x05 /* Return nothing */
#define PIIR_RET_NUM 0x06 /* Return a number */
+#define PIIR_RET_SYMBOL 0x07 /* Return a symbol */
/*
* Represents the PIIR virtual machine for storing