projects
/
maturita.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a84fd73
)
Fix stack instructions
author
bylex
<mbilek06@gmail.com>
Wed, 26 Feb 2025 07:49:04 +0000
(08:49 +0100)
committer
bylex
<mbilek06@gmail.com>
Wed, 26 Feb 2025 07:49:04 +0000
(08:49 +0100)
opcodes.c
patch
|
blob
|
blame
|
history
diff --git
a/opcodes.c
b/opcodes.c
index 50f40fe9f57e3df26c4f4ee18ac152b2737619a1..d8c3673bc4e67254abf44285c47767a1182c671f 100644
(file)
--- a/
opcodes.c
+++ b/
opcodes.c
@@
-155,6
+155,7
@@
void pts(uint8_t source_reg, uint8_t unused_1, uint8_t unused_2)
{
stack[stack_pointer++] = regs[source_reg];
}
+ current_instruction += 2;
return;
}
@@
-169,6
+170,7
@@
void pfs(uint8_t dest_reg, uint8_t unused_1, uint8_t unused_2)
{
regs[dest_reg] = stack[--stack_pointer];
}
+ current_instruction += 2;
return;
}