projects
/
maturita.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b212757
)
Fix incorrect function parameters in jmp instruction
author
bylex
<mbilek06@gmail.com>
Thu, 10 Oct 2024 13:40:50 +0000
(15:40 +0200)
committer
bylex
<mbilek06@gmail.com>
Thu, 10 Oct 2024 13:40:50 +0000
(15:40 +0200)
opcodes.h
patch
|
blob
|
blame
|
history
diff --git
a/opcodes.h
b/opcodes.h
index 49e08fbc742cf3a4a8afd5d5df4e671cc75e594a..dd4e2d434dcae2bd89016da724e67db5dc4b509c 100644
(file)
--- a/
opcodes.h
+++ b/
opcodes.h
@@
-104,7
+104,7
@@
void swp(uint8_t reg, uint8_t addr_1, uint8_t addr_2)
-void jmp(uint8_t
addr_1, uint8_t addr_2, uint8_t unused_1
)
+void jmp(uint8_t
unused_1, uint8_t addr_1, uint8_t addr_2
)
{
uint16_t addr = (uint16_t)addr_1 << 8 | addr_2;
current_instruction = addr;