From 1d1089634fbdfbf1c7b0d0a65285c28b9004e017 Mon Sep 17 00:00:00 2001 From: EDiasAlberto Date: Tue, 4 Jun 2024 04:24:56 +0100 Subject: [PATCH] add halt command handling --- src/parser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parser.c b/src/parser.c index b736d29..15f010a 100644 --- a/src/parser.c +++ b/src/parser.c @@ -74,6 +74,11 @@ a64inst_instruction *parser(char asmLine[]){ return(instr); } + if(strcmp(asmLine, HALT_ASM_CMD) == 0){ + instr->type = a64inst_HALT; + return(instr); + } + //"opcode operand1, {operand2}, ..." char *stringptr = strdup(asmLine);