diff --git a/src/parser.c b/src/parser.c index ba29ccf..64c748f 100644 --- a/src/parser.c +++ b/src/parser.c @@ -213,7 +213,7 @@ void parser_instruction(char asmLine[], a64inst_instruction *instr) { strcpy(stringptr, asmLine); char *opcode = strtok(stringptr, " "); - char *operands = strtok(NULL, ""); + char *operands = strtok(stringptr, ""); if(strcmp(opcode, ".int") == 0){ //type is directive