A7800Hawk: small cleanup
This commit is contained in:
parent
84c9f83d28
commit
d66b7f61b8
|
@ -279,7 +279,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
{
|
||||
return 0x80;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public int Frame => _frame;
|
||||
|
|
|
@ -48,24 +48,21 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
MemoryDomain.Endian.Little,
|
||||
addr => RAM[addr+0x840],
|
||||
(addr, value) => RAM[addr+0x840] = value,
|
||||
1
|
||||
),
|
||||
1),
|
||||
new MemoryDomainDelegate(
|
||||
"Ram Block 1",
|
||||
0xC0,
|
||||
MemoryDomain.Endian.Little,
|
||||
addr => RAM[addr+0x940],
|
||||
(addr, value) => RAM[addr+0x940] = value,
|
||||
1
|
||||
),
|
||||
1),
|
||||
new MemoryDomainDelegate(
|
||||
"System Bus",
|
||||
0X10000,
|
||||
MemoryDomain.Endian.Little,
|
||||
addr => PeekSystemBus(addr),
|
||||
(addr, value) => PokeSystemBus(addr, value),
|
||||
1
|
||||
)
|
||||
1)
|
||||
};
|
||||
|
||||
MemoryDomains = new MemoryDomainList(domains);
|
||||
|
|
|
@ -76,7 +76,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
|
||||
_settings = (A7800Settings)settings ?? new A7800Settings();
|
||||
_syncSettings = (A7800SyncSettings)syncSettings ?? new A7800SyncSettings();
|
||||
|
||||
_controllerDeck = new A7800HawkControllerDeck(_syncSettings.Port1, _syncSettings.Port2);
|
||||
|
||||
byte[] highscoreBios = comm.CoreFileProvider.GetFirmware("A78", "Bios_HSC", false, "Some functions may not work without the high score BIOS.");
|
||||
|
@ -173,7 +172,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
{
|
||||
s_mapper = "0";
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -137,5 +137,4 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
|
||||
public static string DefaultControllerName => typeof(StandardController).DisplayName();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
// Emulates the M6532 RIOT Chip
|
||||
public class M6532
|
||||
{
|
||||
|
||||
public A7800Hawk Core { get; set; }
|
||||
|
||||
public byte _ddRa = 0x00;
|
||||
|
|
|
@ -124,7 +124,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
Core.tia._hsyncCnt = 0;
|
||||
Core.cpu.RDY = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// "The end of vblank is made up of a DMA startup plus a long shut down"
|
||||
|
@ -284,7 +283,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
scanline_buffer[pixel] = _palette[Core.Maria_regs[0x00]];
|
||||
}
|
||||
|
||||
|
||||
// send buffer to the video buffer
|
||||
_vidbuffer[(scanline - 21) * 320 + pixel] = scanline_buffer[pixel];
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
}
|
||||
else
|
||||
{
|
||||
return 0xFF; // TODO: What if Maria is off?
|
||||
return 0x80; // TODO: What if Maria is off?
|
||||
}
|
||||
}
|
||||
else if ((addr & 0xFF80) == 0x280)
|
||||
|
|
Loading…
Reference in New Issue