diff options
-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 |