From a2c5d8dcc9f6ea746adf1f67ec7cf1129d75d1e5 Mon Sep 17 00:00:00 2001 From: Martin Perner Date: Mon, 1 Nov 2010 21:11:27 +0100 Subject: [PATCH] sim: bugfix @ push --- 3c_disasm/instr/stackop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3c_disasm/instr/stackop.cpp b/3c_disasm/instr/stackop.cpp index 4cac8be..d4a1a77 100644 --- a/3c_disasm/instr/stackop.cpp +++ b/3c_disasm/instr/stackop.cpp @@ -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; -- 2.25.1