From: bylex Date: Thu, 10 Oct 2024 13:06:37 +0000 (+0200) Subject: Fix issue with jump instruction and incorrect addressing X-Git-Url: https://git.bylex.cz/?a=commitdiff_plain;h=7c6ca51abbab912beb060f11eabbc5b2343b707c;p=maturita.git Fix issue with jump instruction and incorrect addressing --- diff --git a/assembler.c b/assembler.c index e4cfa61..10728d0 100644 --- a/assembler.c +++ b/assembler.c @@ -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; }