aboutsummaryrefslogtreecommitdiff
path: root/src/as_op.h
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-03-25 17:31:08 +0800
committerMistivia <i@mistivia.com>2025-03-25 17:31:08 +0800
commit39e2a605f6d8ebcc3cb454daae3d0a4298df2eb6 (patch)
tree9d0933cdcb0d4bb2d80316f106611a4aa9024dd4 /src/as_op.h
parentd1195499338ba4b6536f8a6a56564622eb07469f (diff)
add codegen
Diffstat (limited to 'src/as_op.h')
-rw-r--r--src/as_op.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/as_op.h b/src/as_op.h
index d02c29f..cb45fc1 100644
--- a/src/as_op.h
+++ b/src/as_op.h
@@ -3,7 +3,7 @@
enum op {
OP_SP, OP_SSP, OP_BP, OP_SBP, OP_PC, OP_RV, OP_SRV,
- OP_IMM,
+ OP_IMM, OP_REL,
OP_LD8, OP_LD16, OP_LD32, OP_LD,
OP_ST8, OP_ST16, OP_ST32, OP_ST,
OP_DUP, OP_POP, OP_SWAP, OP_OVER, OP_ROT,
@@ -24,8 +24,7 @@ enum op {
enum op str2op(const char *str);
int isOp(const char *str);
int op_size(enum op op);
-int is_ld_op(enum op);
-int is_st_op(enum op);
+int is_pseudo_op(enum op op);
#endif