projects
/
calu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sim: call pushed current pc instead of next pc onto stack
[calu.git]
/
3c_disasm
/
instr
/
branchreg.cpp
diff --git
a/3c_disasm/instr/branchreg.cpp
b/3c_disasm/instr/branchreg.cpp
index 16a251f630d6070782dc7f5d786a0719f8c47a83..2bd92358c821357573c2c55072945da3b74f0c25 100644
(file)
--- a/
3c_disasm/instr/branchreg.cpp
+++ b/
3c_disasm/instr/branchreg.cpp
@@
-75,7
+75,7
@@
void Cbranchreg::execInstr()
if(this->m_typ == 1) {
CDat sp = this->m_cpu->getStack();
sp -= 4;
- this->m_cpu->setRAM(sp, this->m_cpu->get
Cur
PC());
+ this->m_cpu->setRAM(sp, this->m_cpu->get
Next
PC());
this->m_cpu->setStack(sp);
}
this->m_cpu->setNextPC(pc);