add halt command handling

This commit is contained in:
EDiasAlberto 2024-06-04 04:24:56 +01:00
parent 129bdf3954
commit 1d1089634f

View File

@ -74,6 +74,11 @@ a64inst_instruction *parser(char asmLine[]){
return(instr); return(instr);
} }
if(strcmp(asmLine, HALT_ASM_CMD) == 0){
instr->type = a64inst_HALT;
return(instr);
}
//"opcode operand1, {operand2}, ..." //"opcode operand1, {operand2}, ..."
char *stringptr = strdup(asmLine); char *stringptr = strdup(asmLine);