projects
/
maturita.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94d8b41
)
Fix issue with jump instruction and incorrect addressing
author
bylex
<mbilek06@gmail.com>
Thu, 10 Oct 2024 13:06:37 +0000
(15:06 +0200)
committer
bylex
<mbilek06@gmail.com>
Thu, 10 Oct 2024 13:06:37 +0000
(15:06 +0200)
assembler.c
patch
|
blob
|
blame
|
history
diff --git
a/assembler.c
b/assembler.c
index e4cfa61e91cacbb730eb7ccc6cd3bbd1d48d8722..10728d0b510e8fba32e902c853b62805d835c6d1 100644
(file)
--- 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;
}