Fix compile for cop400 using mentioned fix from QMC2(nw)

This commit is contained in:
Scott Stone 2017-01-10 08:47:10 -05:00
parent b4e5fdcedb
commit 5e55ce601e
3 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ CPU_DISASSEMBLE(cop410)
{
int page = pc >> 6;
if (page == 2 | page == 3) //JP pages 2,3
if (page == 2 || page == 3) //JP pages 2,3
{
address = (uint16_t)((pc & 0x180) | (opcode & 0x7F));
util::stream_format(stream, "JP %03x", address);

View file

@ -22,7 +22,7 @@ CPU_DISASSEMBLE(cop420)
{
int page = pc >> 6;
if (page == 2 | page == 3) //JP pages 2,3
if (page == 2 || page == 3) //JP pages 2,3
{
address = (uint16_t)((pc & 0x380) | (opcode & 0x7F));
util::stream_format(stream, "JP %03x", address);

View file

@ -22,7 +22,7 @@ CPU_DISASSEMBLE(cop444)
{
int page = pc >> 6;
if (page == 2 | page == 3) //JP pages 2,3
if (page == 2 || page == 3) //JP pages 2,3
{
address = (uint16_t)((pc & 0x780) | (opcode & 0x7F));
util::stream_format(stream, "JP %03x", address);