mirror of
https://github.com/holub/mame
synced 2025-06-07 21:33:45 +03:00
Fix some bit instructions in the m65ce02 core
This commit is contained in:
parent
5779ea5aee
commit
52dcb22148
@ -222,7 +222,7 @@ bbr_ce_zpb
|
|||||||
TMP = read_pc();
|
TMP = read_pc();
|
||||||
TMP2 = read(TMP);
|
TMP2 = read(TMP);
|
||||||
TMP = read_pc();
|
TMP = read_pc();
|
||||||
if(!(TMP2 & (1 << (inst_state & 7))))
|
if(!(TMP2 & (1 << ((inst_state >> 4) & 7))))
|
||||||
PC += INT8(TMP);
|
PC += INT8(TMP);
|
||||||
prefetch();
|
prefetch();
|
||||||
|
|
||||||
@ -231,7 +231,7 @@ bbs_ce_zpb
|
|||||||
TMP = read_pc();
|
TMP = read_pc();
|
||||||
TMP2 = read(TMP);
|
TMP2 = read(TMP);
|
||||||
TMP = read_pc();
|
TMP = read_pc();
|
||||||
if(TMP2 & (1 << (inst_state & 7)))
|
if(TMP2 & (1 << ((inst_state >> 4) & 7)))
|
||||||
PC += INT8(TMP);
|
PC += INT8(TMP);
|
||||||
prefetch();
|
prefetch();
|
||||||
|
|
||||||
@ -1077,7 +1077,7 @@ plz_imp
|
|||||||
rmb_ce_bzp
|
rmb_ce_bzp
|
||||||
TMP = read_pc();
|
TMP = read_pc();
|
||||||
TMP2 = read(TMP);
|
TMP2 = read(TMP);
|
||||||
TMP2 &= ~(1 << (inst_state & 7));
|
TMP2 &= ~(1 << ((inst_state >> 4) & 7));
|
||||||
write(TMP, TMP2);
|
write(TMP, TMP2);
|
||||||
prefetch();
|
prefetch();
|
||||||
|
|
||||||
@ -1310,7 +1310,7 @@ sei_ce_imp
|
|||||||
smb_ce_bzp
|
smb_ce_bzp
|
||||||
TMP = read_pc();
|
TMP = read_pc();
|
||||||
TMP2 = read(TMP);
|
TMP2 = read(TMP);
|
||||||
TMP2 |= 1 << (inst_state & 7);
|
TMP2 |= 1 << ((inst_state >> 4) & 7);
|
||||||
write(TMP, TMP2);
|
write(TMP, TMP2);
|
||||||
prefetch();
|
prefetch();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user