aboutsummaryrefslogtreecommitdiff
path: root/asm/parser.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-11-01 22:09:39 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-11-01 22:09:39 +0000
commit90e04542a284f642b0a3a56ed568b5d5828bc376 (patch)
tree49560373f8b33f772e48940cdabbc86cc01ae7b2 /asm/parser.c
parent26dea6ce72ce6fe4011e5a7dbfad9de9330c75f7 (diff)
downloadovm-90e04542a284f642b0a3a56ed568b5d5828bc376.tar.gz
ovm-90e04542a284f642b0a3a56ed568b5d5828bc376.tar.bz2
ovm-90e04542a284f642b0a3a56ed568b5d5828bc376.zip
Implemented stack versions of MGET and MSET in assembler
Diffstat (limited to 'asm/parser.c')
-rw-r--r--asm/parser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/asm/parser.c b/asm/parser.c
index 73cd7be..4b5eee1 100644
--- a/asm/parser.c
+++ b/asm/parser.c
@@ -230,6 +230,12 @@ perr_t parse_next_inst(token_stream_t *stream, inst_t *ret)
case TOKEN_MGET:
ret->opcode = OP_MGET_BYTE;
return parse_utype_inst_with_operand(stream, ret);
+ case TOKEN_MSET_STACK:
+ ret->opcode = OP_MSET_STACK_BYTE;
+ return parse_utype_inst(stream, ret);
+ case TOKEN_MGET_STACK:
+ ret->opcode = OP_MGET_STACK_BYTE;
+ return parse_utype_inst(stream, ret);
case TOKEN_MDELETE:
ret->opcode = OP_MDELETE;
break;