From 9f92eb476672ffe3ab2b1edc178ef9095814a597 Mon Sep 17 00:00:00 2001 From: EDiasAlberto Date: Wed, 12 Jun 2024 16:54:38 +0100 Subject: [PATCH] fix tokeniseOperands param order --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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