sim: bugfix @ push
authorMartin Perner <martin@perner.cc>
Mon, 1 Nov 2010 20:11:27 +0000 (21:11 +0100)
committerMartin Perner <martin@perner.cc>
Mon, 1 Nov 2010 20:11:27 +0000 (21:11 +0100)
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;