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
|
|
|
|
|
|
|
|
|
public List<KeyValuePair<string, int>> GetCpuFlagsAndRegisters()
|
|
|
|
|
{
|
2013-11-11 16:55:08 +00:00
|
|
|
|
return new List<KeyValuePair<string, int>>
|
|
|
|
|
{
|
|
|
|
|
new KeyValuePair<string, int>("A", theMachine.CPU.A),
|
|
|
|
|
new KeyValuePair<string, int>("P", theMachine.CPU.P),
|
|
|
|
|
new KeyValuePair<string, int>("PC", theMachine.CPU.PC),
|
|
|
|
|
new KeyValuePair<string, int>("S", theMachine.CPU.S),
|
|
|
|
|
new KeyValuePair<string, int>("X", theMachine.CPU.X),
|
|
|
|
|
new KeyValuePair<string, int>("Y", theMachine.CPU.Y),
|
2013-11-11 17:57:53 +00:00
|
|
|
|
new KeyValuePair<string, int>("B", theMachine.CPU.fB ? 1 : 0),
|
|
|
|
|
new KeyValuePair<string, int>("C", theMachine.CPU.fC ? 1 : 0),
|
|
|
|
|
new KeyValuePair<string, int>("D", theMachine.CPU.fD ? 1 : 0),
|
|
|
|
|
new KeyValuePair<string, int>("I", theMachine.CPU.fI ? 1 : 0),
|
|
|
|
|
new KeyValuePair<string, int>("N", theMachine.CPU.fN ? 1 : 0),
|
|
|
|
|
new KeyValuePair<string, int>("V", theMachine.CPU.fV ? 1 : 0),
|
|
|
|
|
new KeyValuePair<string, int>("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
|
|
|
|
}
|
|
|
|
|
}
|