From 228f548bd9096415d3f9ee6cf0f5355f6c6f133b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 31 Oct 2023 20:37:11 +0000 Subject: Changed asm/parser instruction push-reg->push.reg --- asm/parser.c | 2 +- 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 -- cgit v1.2.3-13-gbd6f