PCE - sort out 16 bit vs 21 bit buses, and remove an InvalidOperationException in the disassembler
This commit is contained in:
parent
d831d1c218
commit
d3a9535ade
|
@ -26,13 +26,9 @@ namespace BizHawk.Emulation.Cores.Components.H6280
|
|||
|
||||
public string Disassemble(MemoryDomain m, uint addr, out int length)
|
||||
{
|
||||
if (m.Size != 0x10000)
|
||||
throw new InvalidOperationException("Something needs to be figured out...");
|
||||
|
||||
return DisassembleExt((ushort)addr, out length,
|
||||
(a) => m.PeekByte(a),
|
||||
(a) => (ushort)(m.PeekByte(a) | m.PeekByte(a + 1) << 8));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -474,7 +474,7 @@ namespace BizHawk.Emulation.Cores.PCEngine
|
|||
(addr, value) => Ram[addr] = value);
|
||||
domains.Add(MainMemoryDomain);
|
||||
|
||||
var SystemBusDomain = new MemoryDomain("System Bus", 0x200000, MemoryDomain.Endian.Little,
|
||||
var SystemBusDomain = new MemoryDomain("System Bus (21 bit)", 0x200000, MemoryDomain.Endian.Little,
|
||||
(addr) =>
|
||||
{
|
||||
if (addr < 0 || addr >= 0x200000)
|
||||
|
@ -489,7 +489,7 @@ namespace BizHawk.Emulation.Cores.PCEngine
|
|||
});
|
||||
domains.Add(SystemBusDomain);
|
||||
|
||||
var CpuBusDomain = new MemoryDomain("CPU Bus", 0x10000, MemoryDomain.Endian.Little,
|
||||
var CpuBusDomain = new MemoryDomain("System Bus", 0x10000, MemoryDomain.Endian.Little,
|
||||
(addr) =>
|
||||
{
|
||||
if (addr < 0 || addr >= 0x10000)
|
||||
|
|
Loading…
Reference in New Issue