summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/m6502
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2014-05-23 23:26:09 +0000
committer Dirk Best <mail@dirk-best.de>2014-05-23 23:26:09 +0000
commit52dcb22148d7a332e1ac0fff395857f8decb3de6 (patch)
treeb84c57d8416928b1879d49566facbd62ebed0e41 /src/emu/cpu/m6502
parent5779ea5aeee949cfb359c1c24c21819b234ffc50 (diff)
Fix some bit instructions in the m65ce02 core
Diffstat (limited to 'src/emu/cpu/m6502')
-rw-r--r--src/emu/cpu/m6502/om65ce02.lst8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/m6502/om65ce02.lst b/src/emu/cpu/m6502/om65ce02.lst
index 742f4fb0ede..a10f64fa1ef 100644
--- a/src/emu/cpu/m6502/om65ce02.lst
+++ b/src/emu/cpu/m6502/om65ce02.lst
@@ -222,7 +222,7 @@ bbr_ce_zpb
TMP = read_pc();
TMP2 = read(TMP);
TMP = read_pc();
- if(!(TMP2 & (1 << (inst_state & 7))))
+ if(!(TMP2 & (1 << ((inst_state >> 4) & 7))))
PC += INT8(TMP);
prefetch();
@@ -231,7 +231,7 @@ bbs_ce_zpb
TMP = read_pc();
TMP2 = read(TMP);
TMP = read_pc();
- if(TMP2 & (1 << (inst_state & 7)))
+ if(TMP2 & (1 << ((inst_state >> 4) & 7)))
PC += INT8(TMP);
prefetch();
@@ -1077,7 +1077,7 @@ plz_imp
rmb_ce_bzp
TMP = read_pc();
TMP2 = read(TMP);
- TMP2 &= ~(1 << (inst_state & 7));
+ TMP2 &= ~(1 << ((inst_state >> 4) & 7));
write(TMP, TMP2);
prefetch();
@@ -1310,7 +1310,7 @@ sei_ce_imp
smb_ce_bzp
TMP = read_pc();
TMP2 = read(TMP);
- TMP2 |= 1 << (inst_state & 7);
+ TMP2 |= 1 << ((inst_state >> 4) & 7);
write(TMP, TMP2);
prefetch();