projects
/
calu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[sim] andx ignored h/l-bit
[calu.git]
/
3c_disasm
/
instr
/
andx.cpp
diff --git
a/3c_disasm/instr/andx.cpp
b/3c_disasm/instr/andx.cpp
index fed223707d6fd4b77978d7ba2c888cb6a249bd6f..6bc03410beaa53449263d06b99b7f05e5f9beb85 100644
(file)
--- a/
3c_disasm/instr/andx.cpp
+++ b/
3c_disasm/instr/andx.cpp
@@
-61,6
+61,9
@@
void Candx::execInstr()
{
CDat val = this->m_cpu->getRegister(this->m_rd);
CDat imm = generate16ImmFill(this->m_imm);
+ if(this->m_hl) {
+ imm <<= 16;
+ }
val &= imm;
this->m_cpu->setRegister(this->m_rd, val);