diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-31 20:37:11 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-31 20:37:11 +0000 |
commit | 228f548bd9096415d3f9ee6cf0f5355f6c6f133b (patch) | |
tree | 4ff8d430fb811a23f87d75eebf731ce18e049170 | |
parent | c534a53b6fe1de24374c2957cedf5940cae84f6c (diff) | |
download | ovm-228f548bd9096415d3f9ee6cf0f5355f6c6f133b.tar.gz ovm-228f548bd9096415d3f9ee6cf0f5355f6c6f133b.tar.bz2 ovm-228f548bd9096415d3f9ee6cf0f5355f6c6f133b.zip |
Changed asm/parser instruction push-reg->push.reg
-rw-r--r-- | asm/parser.c | 2 | ||||
-rw-r--r-- | examples/instruction-test.asm | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/asm/parser.c b/asm/parser.c index cc97e1c..8292e39 100644 --- a/asm/parser.c +++ b/asm/parser.c @@ -169,7 +169,7 @@ perr_t parse_next_inst(token_stream_t *stream, inst_t *ret) else if (token.str_size >= 4 && strncmp(opcode, "PUSH", 4) == 0) { size_t oplen = 5; - if (token.str_size >= 8 && strncmp(opcode, "PUSH-REG", 8) == 0) + if (token.str_size >= 8 && strncmp(opcode, "PUSH.REG", 8) == 0) { oplen = 9; ret->opcode = OP_PUSH_REGISTER_BYTE; diff --git a/examples/instruction-test.asm b/examples/instruction-test.asm index 6a8f172..e6df2f9 100644 --- a/examples/instruction-test.asm +++ b/examples/instruction-test.asm @@ -9,9 +9,9 @@ pop.byte pop.hword pop.word - push-reg.byte 1 - push-reg.hword 2 - push-reg.word 3 + push.reg.byte 1 + push.reg.hword 2 + push.reg.word 3 mov.byte 1 mov.hword 2 mov.word 3 |