summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2015-02-01 00:40:32 +0100
committer hap <happppp@users.noreply.github.com>2015-02-01 00:40:32 +0100
commit4a18ab8682c722bca364de67787bd471d04d6d72 (patch)
tree7361959e7734e6ed712aafe86b1f965202b6234a
parent6b75e786a3693138e8c49f61b28e0730c2231b0b (diff)
bugfix
-rw-r--r--src/emu/cpu/amis2000/amis2000op.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/amis2000/amis2000op.inc b/src/emu/cpu/amis2000/amis2000op.inc
index 5a188a3f336..504fc174379 100644
--- a/src/emu/cpu/amis2000/amis2000op.inc
+++ b/src/emu/cpu/amis2000/amis2000op.inc
@@ -110,7 +110,7 @@ void amis2000_device::op_lbep()
{
UINT8 param = m_op & 0x03;
m_bu = param & m_bu_mask;
- m_bl = m_e + 1;
+ m_bl = (m_e + 1) & 0xf;
}
}
@@ -146,7 +146,7 @@ void amis2000_device::op_lam()
// LAM _Y: load ACC with RAM, xor BU with _Y
m_acc = ram_r();
UINT8 param = ~m_op & 0x03;
- m_bu ^= param & m_bu_mask;
+ m_bu ^= (param & m_bu_mask);
}
void amis2000_device::op_xc()
@@ -156,7 +156,7 @@ void amis2000_device::op_xc()
m_acc = ram_r();
ram_w(old_acc);
UINT8 param = ~m_op & 0x03;
- m_bu ^= param & m_bu_mask;
+ m_bu ^= (param & m_bu_mask);
}
void amis2000_device::op_xci()