From ef28378dcd281aac07fcecb46fc3af3a02eed2a6 Mon Sep 17 00:00:00 2001 From: pjgat09 Date: Thu, 15 Mar 2012 21:08:53 +0000 Subject: [PATCH] Atari 2600: added stub for the new TIA --- BizHawk.Emulation/Consoles/Atari/2600/TIA.cs | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 BizHawk.Emulation/Consoles/Atari/2600/TIA.cs diff --git a/BizHawk.Emulation/Consoles/Atari/2600/TIA.cs b/BizHawk.Emulation/Consoles/Atari/2600/TIA.cs new file mode 100644 index 0000000000..aa2797d019 --- /dev/null +++ b/BizHawk.Emulation/Consoles/Atari/2600/TIA.cs @@ -0,0 +1,43 @@ +using System; +using System.Globalization; +using System.IO; +using BizHawk.Emulation.CPUs.M6507; +using System.Collections.Generic; + +namespace BizHawk.Emulation.Consoles.Atari +{ + // Emulates the TIA + public partial class TIA + { + Atari2600 core; + + byte hsyncCnt = 0; + + struct playerData + { + public byte grp; + public byte dgrp; + public byte color; + public byte hPosCnt; + public byte scanCnt; + public byte HM; + public bool reflect; + public bool delay; + public byte nusiz; + }; + + playerData player0; + playerData player1; + + public TIA(Atari2600 core) + { + this.core = core; + } + + // Execute TIA cycles + + // Every 4 cycles, increment the hsync counter + // if in visible part of screen, parse playfield + + } +} \ No newline at end of file