2013-11-11 03:20:33 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using EMU7800.Core;
|
2012-10-23 03:33:57 +00:00
|
|
|
|
|
2013-11-13 03:32:25 +00:00
|
|
|
|
namespace BizHawk.Emulation.Cores.Atari.Atari7800
|
2012-10-23 03:33:57 +00:00
|
|
|
|
{
|
|
|
|
|
partial class Atari7800
|
|
|
|
|
{
|
|
|
|
|
public byte[] rom;
|
2012-12-12 03:40:18 +00:00
|
|
|
|
//Bios7800 NTSC_BIOS;
|
|
|
|
|
//Bios7800 PAL_BIOS;
|
2012-10-23 03:33:57 +00:00
|
|
|
|
public byte[] hsbios;
|
2012-12-12 03:40:18 +00:00
|
|
|
|
public byte[] bios;
|
2012-10-23 03:33:57 +00:00
|
|
|
|
Cart cart;
|
2012-12-12 03:40:18 +00:00
|
|
|
|
MachineBase theMachine;
|
|
|
|
|
EMU7800.Win.GameProgram GameInfo;
|
2012-12-12 03:47:05 +00:00
|
|
|
|
public byte[] hsram = new byte[2048];
|
2013-11-11 03:20:33 +00:00
|
|
|
|
|
2014-04-19 22:23:13 +00:00
|
|
|
|
public Dictionary<string, int> GetCpuFlagsAndRegisters()
|
2013-11-11 03:20:33 +00:00
|
|
|
|
{
|
2014-04-19 22:23:13 +00:00
|
|
|
|
return new Dictionary<string, int>
|
2013-11-11 16:55:08 +00:00
|
|
|
|
{
|
2014-04-19 22:23:13 +00:00
|
|
|
|
{ "A", theMachine.CPU.A },
|
|
|
|
|
{ "P", theMachine.CPU.P },
|
|
|
|
|
{ "PC", theMachine.CPU.PC },
|
|
|
|
|
{ "S", theMachine.CPU.S },
|
|
|
|
|
{ "X", theMachine.CPU.X },
|
|
|
|
|
{ "Y", theMachine.CPU.Y },
|
|
|
|
|
{ "Flag B", theMachine.CPU.fB ? 1 : 0 },
|
|
|
|
|
{ "Flag C", theMachine.CPU.fC ? 1 : 0 },
|
|
|
|
|
{ "Flag D", theMachine.CPU.fD ? 1 : 0 },
|
|
|
|
|
{ "Flag I", theMachine.CPU.fI ? 1 : 0 },
|
|
|
|
|
{ "Flag N", theMachine.CPU.fN ? 1 : 0 },
|
|
|
|
|
{ "Flag V", theMachine.CPU.fV ? 1 : 0 },
|
|
|
|
|
{ "Flag Z", theMachine.CPU.fZ ? 1 : 0 }
|
2013-11-11 16:55:08 +00:00
|
|
|
|
};
|
2013-11-11 03:20:33 +00:00
|
|
|
|
}
|
2012-10-23 03:33:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|