A7800Hawk: update mapper for pokey

Needed for Ball Blazer
This commit is contained in:
alyosha-tas 2017-08-25 11:04:50 -04:00 committed by GitHub
parent cfb2bc8ed4
commit a907bb7f01
1 changed files with 9 additions and 1 deletions

View File

@ -31,6 +31,10 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
return Core.RAM[0x800 + addr & 0x7FF];
}
}
else if (addr < 0x8000 && Core.is_pokey)
{
return Core.pokey.ReadReg(addr & 0xF);
}
else
{
// cartridge and other OPSYS
@ -75,8 +79,12 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
Core.RAM[0x800 + addr & 0x7FF] = value;
}
}
else
else if (addr < 0x8000 && Core.is_pokey)
{
Core.pokey.WriteReg(addr & 0xF, value);
}
else
{
// cartridge and other OPSYS
}
}