Changed asm/parser instruction push-reg->push.reg

This commit is contained in:
2023-10-31 20:37:11 +00:00
parent c534a53b6f
commit 228f548bd9
2 changed files with 4 additions and 4 deletions

View File

@@ -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) else if (token.str_size >= 4 && strncmp(opcode, "PUSH", 4) == 0)
{ {
size_t oplen = 5; 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; oplen = 9;
ret->opcode = OP_PUSH_REGISTER_BYTE; ret->opcode = OP_PUSH_REGISTER_BYTE;

View File

@@ -9,9 +9,9 @@
pop.byte pop.byte
pop.hword pop.hword
pop.word pop.word
push-reg.byte 1 push.reg.byte 1
push-reg.hword 2 push.reg.hword 2
push-reg.word 3 push.reg.word 3
mov.byte 1 mov.byte 1
mov.hword 2 mov.hword 2
mov.word 3 mov.word 3