Fix issue with jump instruction and incorrect addressing
authorbylex <mbilek06@gmail.com>
Thu, 10 Oct 2024 13:06:37 +0000 (15:06 +0200)
committerbylex <mbilek06@gmail.com>
Thu, 10 Oct 2024 13:06:37 +0000 (15:06 +0200)
assembler.c

index e4cfa61e91cacbb730eb7ccc6cd3bbd1d48d8722..10728d0b510e8fba32e902c853b62805d835c6d1 100644 (file)
@@ -151,7 +151,7 @@ struct inst_t parse_line(char* line_buffer, struct label_t* labels, unsigned int
                token_count++;
                token = strtok(NULL, " ");
        }
-       current_addr = current_addr + 4;
+       current_addr = current_addr + 2;
        return inst;
 }