pasky better do something cool with this to warrant janking up my HuC6280 core
This commit is contained in:
parent
8b006b3b59
commit
2dc01eab33
|
@ -59,6 +59,7 @@ namespace BizHawk.Emulation.Cores.Components.H6280
|
|||
LagIFlag = FlagI;
|
||||
|
||||
if (Debug) Logger(State());
|
||||
CoreComm.MemoryCallbackSystem.CallExecute(PC);
|
||||
|
||||
byte opcode = ReadMemory(PC++);
|
||||
switch (opcode)
|
||||
|
|
|
@ -3,14 +3,16 @@ using System.Globalization;
|
|||
using System.IO;
|
||||
|
||||
using BizHawk.Common;
|
||||
using BizHawk.Emulation.Common;
|
||||
|
||||
namespace BizHawk.Emulation.Cores.Components.H6280
|
||||
{
|
||||
public sealed partial class HuC6280
|
||||
{
|
||||
public HuC6280()
|
||||
public HuC6280(CoreComm comm)
|
||||
{
|
||||
Reset();
|
||||
CoreComm = comm;
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
|
@ -347,6 +349,8 @@ namespace BizHawk.Emulation.Cores.Components.H6280
|
|||
public Action<int, byte> WriteVDC;
|
||||
public Action<int> ThinkAction = delegate { };
|
||||
|
||||
public CoreComm CoreComm;
|
||||
|
||||
public byte ReadMemory(ushort address)
|
||||
{
|
||||
byte page = MPR[address >> 13];
|
||||
|
|
|
@ -93,7 +93,7 @@ namespace BizHawk.Emulation.Cores.PCEngine
|
|||
void Init(GameInfo game, byte[] rom)
|
||||
{
|
||||
Controller = NullController.GetNullController();
|
||||
Cpu = new HuC6280();
|
||||
Cpu = new HuC6280(CoreComm);
|
||||
VCE = new VCE();
|
||||
VDC1 = new VDC(this, Cpu, VCE);
|
||||
PSG = new HuC6280PSG();
|
||||
|
|
|
@ -27,9 +27,9 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
|
|||
VdpCommand vdpCommand;
|
||||
int TmsMode = 4;
|
||||
|
||||
bool VIntPending; // FIXME put in savestate
|
||||
bool HIntPending; // FIXME put in savestate
|
||||
int lineIntLinesRemaining; // FIXME put in savestate
|
||||
bool VIntPending;
|
||||
bool HIntPending;
|
||||
int lineIntLinesRemaining;
|
||||
|
||||
SMS Sms;
|
||||
VdpMode mode;
|
||||
|
|
|
@ -494,6 +494,7 @@ namespace HuC6280
|
|||
w.WriteLine(" LagIFlag = FlagI;");
|
||||
w.WriteLine();
|
||||
w.WriteLine(" if (Debug) Logger(State());");
|
||||
w.WriteLine(" CoreComm.MemoryCallbackSystem.CallExecute(PC);");
|
||||
w.WriteLine();
|
||||
w.WriteLine(" byte opcode = ReadMemory(PC++);");
|
||||
w.WriteLine(" switch (opcode)");
|
||||
|
|
Loading…
Reference in New Issue