sim: added branchreg and stackop
[calu.git] / 3c_disasm / instr / branch.cpp
index 405acc0854acaa53e6e7581a828390c4b935b519..28ff4ebaee30acec0097030c1b3e95db4be2dfe6 100644 (file)
@@ -88,8 +88,8 @@ void Cbranch::execInstr()
                case 1:
                        {
                        CDat sp = this->m_cpu->getStack();
-                       this->m_cpu->setRAM(sp, pc);
                        sp -= 4;
+                       this->m_cpu->setRAM(sp, pc);
                        this->m_cpu->setStack(sp);
                        }
                case 0: