sim: bugfix @ push
[calu.git] / 3c_disasm / instr / stackop.cpp
index 4cac8becba99cf98a4af67b5fd27458519f1f480..d4a1a774f3ea19bca5e04b54d09a2e2f21b76f61 100644 (file)
@@ -77,8 +77,8 @@ void Cstackop::execInstr()
 
        switch(this->m_typ) {
                case 0:
-                       this->m_cpu->setRegister(m_rd, this->m_cpu->getRAM(sp));
                        sp += 4;
+                       this->m_cpu->setRegister(m_rd, this->m_cpu->getRAM(sp));
                        break;
                case 1:
                        sp += 4;