A7800Hawk: Fix Holey DMA

Fixes Xenophobe
This commit is contained in:
alyosha-tas 2017-07-20 12:22:15 -04:00 committed by GitHub
parent c01850df2b
commit 9038a4b8a5
1 changed files with 8 additions and 10 deletions

View File

@ -203,7 +203,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
if (cycle == 440 && !sl_DMA_complete && do_dma && (DMA_phase == DMA_GRAPHICS || DMA_phase == DMA_HEADER))
{
//Console.WriteLine(scanline);
Console.WriteLine(scanline);
if (current_DLL_offset == 0)
{
@ -403,7 +403,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
addr_t = ReadMemory((ushort)(GFX_Objects[GFX_index, header_counter].addr + i));
addr_t |= (ushort)((Core.Maria_regs[0x14] + current_DLL_offset) << 8);
if ((current_DLL_H16 && addr_t.Bit(12)) || (current_DLL_H8 && addr_t.Bit(11)))
if (((current_DLL_H16 && addr_t.Bit(12)) || (current_DLL_H8 && addr_t.Bit(11))) && (addr_t > 0x8000))
{
if (i * ch_size < 64)
{
@ -444,7 +444,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
{
addr_t = (ushort)(GFX_Objects[GFX_index, header_counter].addr + (current_DLL_offset << 8) + i);
if ((current_DLL_H16 && addr_t.Bit(12)) || (current_DLL_H8 && addr_t.Bit(11)))
if (((current_DLL_H16 && addr_t.Bit(12)) || (current_DLL_H8 && addr_t.Bit(11))) && (addr_t > 0x8000))
{
GFX_Objects[GFX_index, header_counter].obj[i] = 0;
graphics_read_time -= 3;
@ -760,7 +760,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
if (index < 320)
{
color = Core.Maria_regs[local_palette + color];
// the top 4 bits from this are the color, the bottom 4 are the luminosity
@ -769,7 +768,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
}
}
}
}
else
{