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);