projects
/
calu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sim: new instructions, bugfix in others
[calu.git]
/
3c_disasm
/
instr
/
subi.cpp
diff --git
a/3c_disasm/instr/subi.cpp
b/3c_disasm/instr/subi.cpp
index 69ba7e1029526eb08dcfceb9f0ca05479ebf7416..701599c3323c84108c848c3ae34cb3c19ebc2960 100644
(file)
--- a/
3c_disasm/instr/subi.cpp
+++ b/
3c_disasm/instr/subi.cpp
@@
-65,7
+65,9
@@
void Csubi::execInstr()
CDat ra = this->m_cpu->getRegister(m_ra);
CDatd reg = ra - this->m_imm;
this->m_cpu->setRegister(m_rd, reg);
CDat ra = this->m_cpu->getRegister(m_ra);
CDatd reg = ra - this->m_imm;
this->m_cpu->setRegister(m_rd, reg);
- this->m_cpu->updateFlags(reg, ra, this->m_imm);
+ if(!this->m_d) {
+ this->m_cpu->updateFlags(reg, ra, this->m_imm);
+ }
}
std::string Csubi::toString()
}
std::string Csubi::toString()