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