diff --git a/Assets/gamedb/gamedb.txt b/Assets/gamedb/gamedb.txt
index b7e844ec40..7c596bae3d 100644
--- a/Assets/gamedb/gamedb.txt
+++ b/Assets/gamedb/gamedb.txt
@@ -1,4 +1,5 @@
#include gamedb_a2600.txt
+#include gamedb_a7800.txt
#include gamedb_appleII.txt
#include gamedb_coleco.txt
#include gamedb_e_cards.txt
diff --git a/BizHawk.Client.ApiHawk/Classes/BizHawkSystemIdToCoreSystemEnumConverter.cs b/BizHawk.Client.ApiHawk/Classes/BizHawkSystemIdToCoreSystemEnumConverter.cs
index b40ec818a1..0316c0f78c 100644
--- a/BizHawk.Client.ApiHawk/Classes/BizHawkSystemIdToCoreSystemEnumConverter.cs
+++ b/BizHawk.Client.ApiHawk/Classes/BizHawkSystemIdToCoreSystemEnumConverter.cs
@@ -34,6 +34,9 @@ namespace BizHawk.Client.ApiHawk
case "A78":
return CoreSystem.Atari2600;
+ case "A7800":
+ return CoreSystem.Atari7800;
+
case "Coleco":
return CoreSystem.ColecoVision;
diff --git a/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj b/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj
index a417cb6b75..0330eac5e4 100644
--- a/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj
+++ b/BizHawk.Client.EmuHawk/BizHawk.Client.EmuHawk.csproj
@@ -372,6 +372,12 @@
ColecoControllerSettings.cs
+
+ Form
+
+
+ A7800ControllerSettings.cs
+
Form
@@ -1196,6 +1202,7 @@
+
@@ -1338,6 +1345,9 @@
ColecoControllerSettings.cs
+
+ A7800ControllerSettings.cs
+
IntvControllerSettings.cs
diff --git a/BizHawk.Client.EmuHawk/MainForm.Designer.cs b/BizHawk.Client.EmuHawk/MainForm.Designer.cs
index 33fc42b28a..3d8cd97254 100644
--- a/BizHawk.Client.EmuHawk/MainForm.Designer.cs
+++ b/BizHawk.Client.EmuHawk/MainForm.Designer.cs
@@ -290,8 +290,10 @@
this.AutoloadKeypadMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.paletteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.AtariSubMenu = new System.Windows.Forms.ToolStripMenuItem();
- this.AtariSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.GBSubMenu = new System.Windows.Forms.ToolStripMenuItem();
+ this.AtariSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.A7800SubMenu = new System.Windows.Forms.ToolStripMenuItem();
+ this.A7800ControllerSettingsMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.GBSubMenu = new System.Windows.Forms.ToolStripMenuItem();
this.GBcoreSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.LoadGBInSGBMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator28 = new System.Windows.Forms.ToolStripSeparator();
@@ -456,7 +458,8 @@
this.SMSSubMenu,
this.TI83SubMenu,
this.AtariSubMenu,
- this.GBSubMenu,
+ this.A7800SubMenu,
+ this.GBSubMenu,
this.GBASubMenu,
this.PSXSubMenu,
this.SNESSubMenu,
@@ -2655,10 +2658,26 @@
this.AtariSettingsToolStripMenuItem.Size = new System.Drawing.Size(125, 22);
this.AtariSettingsToolStripMenuItem.Text = "Settings...";
this.AtariSettingsToolStripMenuItem.Click += new System.EventHandler(this.AtariSettingsToolStripMenuItem_Click);
- //
- // GBSubMenu
- //
- this.GBSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ //
+ // A7800SubMenu
+ //
+ this.A7800SubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.A7800ControllerSettingsMenuItem});
+ this.A7800SubMenu.Name = "A7800SubMenu";
+ this.A7800SubMenu.Size = new System.Drawing.Size(56, 19);
+ this.A7800SubMenu.Text = "&A7800";
+ this.A7800SubMenu.DropDownOpened += new System.EventHandler(this.A7800SubMenu_DropDownOpened);
+ //
+ // A7800SettingsToolStripMenuItem
+ //
+ this.A7800ControllerSettingsMenuItem.Name = "A7800ControllerSettingsMenuItem";
+ this.A7800ControllerSettingsMenuItem.Size = new System.Drawing.Size(125, 22);
+ this.A7800ControllerSettingsMenuItem.Text = "Settings...";
+ this.A7800ControllerSettingsMenuItem.Click += new System.EventHandler(this.A7800SettingsToolStripMenuItem_Click);
+ //
+ // GBSubMenu
+ //
+ this.GBSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.GBcoreSettingsToolStripMenuItem,
this.LoadGBInSGBMenuItem,
this.toolStripSeparator28,
@@ -4097,6 +4116,7 @@
private System.Windows.Forms.ToolStripMenuItem PCEBGViewerMenuItem;
private System.Windows.Forms.ToolStripMenuItem ScreenshotContextMenuItem;
private System.Windows.Forms.ToolStripMenuItem AtariSubMenu;
+ private System.Windows.Forms.ToolStripMenuItem A7800SubMenu;
private System.Windows.Forms.ToolStripMenuItem NESSoundChannelsMenuItem;
private System.Windows.Forms.ToolStripMenuItem SNESSubMenu;
private System.Windows.Forms.ToolStripMenuItem SnesGfxDebuggerMenuItem;
@@ -4167,6 +4187,7 @@
private System.Windows.Forms.ToolStripMenuItem GenesisSubMenu;
private System.Windows.Forms.ToolStripMenuItem GenesisSettingsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem AtariSettingsToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem A7800ControllerSettingsMenuItem;
private System.Windows.Forms.ToolStripMenuItem MovieSettingsMenuItem;
private System.Windows.Forms.ToolStripMenuItem CoresSubMenu;
private System.Windows.Forms.ToolStripMenuItem GBInSGBMenuItem;
diff --git a/BizHawk.Client.EmuHawk/MainForm.Events.cs b/BizHawk.Client.EmuHawk/MainForm.Events.cs
index 84c74537e3..404f07c535 100644
--- a/BizHawk.Client.EmuHawk/MainForm.Events.cs
+++ b/BizHawk.Client.EmuHawk/MainForm.Events.cs
@@ -1212,7 +1212,6 @@ namespace BizHawk.Client.EmuHawk
private void CoresSubMenu_DropDownOpened(object sender, EventArgs e)
{
Atari7800WithEmu7800MenuItem.Visible = VersionInfo.DeveloperBuild; // Don't expose Atari7800Hawk in releases yet
-
GBInSGBMenuItem.Checked = Global.Config.GB_AsSGB;
NesInQuickNESMenuItem.Checked = Global.Config.NES_InQuickNES;
gBAWithMGBAToolStripMenuItem.Checked = Global.Config.GBA_UsemGBA;
@@ -1981,6 +1980,20 @@ namespace BizHawk.Client.EmuHawk
#endregion
+ #region Atari7800
+
+ private void A7800SubMenu_DropDownOpened(object sender, EventArgs e)
+ {
+ A7800ControllerSettingsMenuItem.Enabled = !Global.MovieSession.Movie.IsActive;
+ }
+
+ private void A7800SettingsToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ new A7800ControllerSettings().ShowDialog();
+ }
+
+ #endregion
+
#region GB
private void GBSubMenu_DropDownOpened(object sender, EventArgs e)
diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs
index 05367e71bc..21dff09bae 100644
--- a/BizHawk.Client.EmuHawk/MainForm.cs
+++ b/BizHawk.Client.EmuHawk/MainForm.cs
@@ -1785,6 +1785,7 @@ namespace BizHawk.Client.EmuHawk
GBSubMenu.Visible = false;
GBASubMenu.Visible = false;
AtariSubMenu.Visible = false;
+ A7800SubMenu.Visible = false;
SNESSubMenu.Visible = false;
PSXSubMenu.Visible = false;
ColecoSubMenu.Visible = false;
@@ -1835,6 +1836,9 @@ namespace BizHawk.Client.EmuHawk
case "A26":
AtariSubMenu.Visible = true;
break;
+ case "A7800":
+ A7800SubMenu.Visible = true;
+ break;
case "PSX":
PSXSubMenu.Visible = true;
break;
diff --git a/BizHawk.Client.EmuHawk/config/A7800/A7800ControllerSettings.Designer.cs b/BizHawk.Client.EmuHawk/config/A7800/A7800ControllerSettings.Designer.cs
new file mode 100644
index 0000000000..882cbaea8c
--- /dev/null
+++ b/BizHawk.Client.EmuHawk/config/A7800/A7800ControllerSettings.Designer.cs
@@ -0,0 +1,147 @@
+namespace BizHawk.Client.EmuHawk
+{
+ partial class A7800ControllerSettings
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(A7800ControllerSettings));
+ this.OkBtn = new System.Windows.Forms.Button();
+ this.CancelBtn = new System.Windows.Forms.Button();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.Port2ComboBox = new System.Windows.Forms.ComboBox();
+ this.Port1ComboBox = new System.Windows.Forms.ComboBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // OkBtn
+ //
+ this.OkBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.OkBtn.Location = new System.Drawing.Point(170, 249);
+ this.OkBtn.Name = "OkBtn";
+ this.OkBtn.Size = new System.Drawing.Size(60, 23);
+ this.OkBtn.TabIndex = 3;
+ this.OkBtn.Text = "&OK";
+ this.OkBtn.UseVisualStyleBackColor = true;
+ this.OkBtn.Click += new System.EventHandler(this.OkBtn_Click);
+ //
+ // CancelBtn
+ //
+ this.CancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.CancelBtn.Location = new System.Drawing.Point(236, 249);
+ this.CancelBtn.Name = "CancelBtn";
+ this.CancelBtn.Size = new System.Drawing.Size(60, 23);
+ this.CancelBtn.TabIndex = 4;
+ this.CancelBtn.Text = "&Cancel";
+ this.CancelBtn.UseVisualStyleBackColor = true;
+ this.CancelBtn.Click += new System.EventHandler(this.CancelBtn_Click);
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(9, 94);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(38, 13);
+ this.label5.TabIndex = 16;
+ this.label5.Text = "Port 2:";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(12, 44);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(38, 13);
+ this.label4.TabIndex = 15;
+ this.label4.Text = "Port 1:";
+ //
+ // Port2ComboBox
+ //
+ this.Port2ComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.Port2ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.Port2ComboBox.FormattingEnabled = true;
+ this.Port2ComboBox.Location = new System.Drawing.Point(12, 110);
+ this.Port2ComboBox.Name = "Port2ComboBox";
+ this.Port2ComboBox.Size = new System.Drawing.Size(284, 21);
+ this.Port2ComboBox.TabIndex = 14;
+ //
+ // Port1ComboBox
+ //
+ this.Port1ComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.Port1ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.Port1ComboBox.FormattingEnabled = true;
+ this.Port1ComboBox.Location = new System.Drawing.Point(12, 60);
+ this.Port1ComboBox.Name = "Port1ComboBox";
+ this.Port1ComboBox.Size = new System.Drawing.Size(284, 21);
+ this.Port1ComboBox.TabIndex = 13;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(12, 14);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(146, 13);
+ this.label1.TabIndex = 17;
+ this.label1.Text = "A7800 Controller Settings";
+ //
+ // A7800ControllerSettings
+ //
+ this.AcceptButton = this.OkBtn;
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.CancelButton = this.CancelBtn;
+ this.ClientSize = new System.Drawing.Size(308, 284);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.label5);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.Port2ComboBox);
+ this.Controls.Add(this.Port1ComboBox);
+ this.Controls.Add(this.CancelBtn);
+ this.Controls.Add(this.OkBtn);
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+ this.Name = "A7800ControllerSettings";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "Controller Settings";
+ this.Load += new System.EventHandler(this.IntvControllerSettings_Load);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button OkBtn;
+ private System.Windows.Forms.Button CancelBtn;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.ComboBox Port2ComboBox;
+ private System.Windows.Forms.ComboBox Port1ComboBox;
+ private System.Windows.Forms.Label label1;
+ }
+}
\ No newline at end of file
diff --git a/BizHawk.Client.EmuHawk/config/A7800/A7800ControllerSettings.cs b/BizHawk.Client.EmuHawk/config/A7800/A7800ControllerSettings.cs
new file mode 100644
index 0000000000..d087d2558c
--- /dev/null
+++ b/BizHawk.Client.EmuHawk/config/A7800/A7800ControllerSettings.cs
@@ -0,0 +1,60 @@
+using System;
+using System.Linq;
+using System.Windows.Forms;
+
+using BizHawk.Client.Common;
+using BizHawk.Emulation.Cores.Atari.A7800Hawk;
+
+namespace BizHawk.Client.EmuHawk
+{
+ public partial class A7800ControllerSettings : Form
+ {
+ private A7800Hawk.A7800SyncSettings _syncSettings;
+
+ public A7800ControllerSettings()
+ {
+ InitializeComponent();
+ }
+
+ private void IntvControllerSettings_Load(object sender, EventArgs e)
+ {
+ _syncSettings = ((A7800Hawk)Global.Emulator).GetSyncSettings().Clone();
+
+ var possibleControllers = A7800HawkControllerDeck.ValidControllerTypes.Select(t => t.Key);
+
+ foreach (var val in possibleControllers)
+ {
+ Port1ComboBox.Items.Add(val);
+ Port2ComboBox.Items.Add(val);
+ }
+
+ Port1ComboBox.SelectedItem = _syncSettings.Port1;
+ Port2ComboBox.SelectedItem = _syncSettings.Port2;
+ }
+
+ private void OkBtn_Click(object sender, EventArgs e)
+ {
+ bool changed =
+ _syncSettings.Port1 != Port1ComboBox.SelectedItem.ToString()
+ || _syncSettings.Port2 != Port2ComboBox.SelectedItem.ToString();
+
+ if (changed)
+ {
+ _syncSettings.Port1 = Port1ComboBox.SelectedItem.ToString();
+ _syncSettings.Port2 = Port2ComboBox.SelectedItem.ToString();
+
+ GlobalWin.MainForm.PutCoreSyncSettings(_syncSettings);
+ }
+
+ DialogResult = DialogResult.OK;
+ Close();
+ }
+
+ private void CancelBtn_Click(object sender, EventArgs e)
+ {
+ GlobalWin.OSD.AddMessage("Controller settings aborted");
+ DialogResult = DialogResult.Cancel;
+ Close();
+ }
+ }
+}
diff --git a/BizHawk.Client.EmuHawk/config/A7800/A7800ControllerSettings.resx b/BizHawk.Client.EmuHawk/config/A7800/A7800ControllerSettings.resx
new file mode 100644
index 0000000000..ca821b54f8
--- /dev/null
+++ b/BizHawk.Client.EmuHawk/config/A7800/A7800ControllerSettings.resx
@@ -0,0 +1,624 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+
+ AAABAAwAMDAQAAAABABoBgAAxgAAACAgEAAAAAQA6AIAAC4HAAAYGBAAAAAEAOgBAAAWCgAAEBAQAAAA
+ BAAoAQAA/gsAADAwAAAAAAgAqA4AACYNAAAgIAAAAAAIAKgIAADOGwAAGBgAAAAACADIBgAAdiQAABAQ
+ AAAAAAgAaAUAAD4rAAAwMAAAAAAgAKglAACmMAAAICAAAAAAIACoEAAATlYAABgYAAAAACAAiAkAAPZm
+ AAAQEAAAAAAgAGgEAAB+cAAAKAAAADAAAABgAAAAAQAEAAAAAACABAAAAAAAAAAAAAAQAAAAEAAAAAAA
+ AAAAAIAAAIAAAACAgACAAAAAgACAAICAAACAgIAAwMDAAAAA/wAA/wAAAP//AP8AAAD/AP8A//8AAP//
+ /wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAHR3AAAAAAAAAAAAAAAAAAAAAAAAAAAAdHdEcAAAAAAAAAAAAAAAAA
+ AAAAAAAAAHd0d3QAAAAAAAAAAAAAAAAAAAAAAAAAAEd8d3UAAAAAAAAAAAAAAAAAAAAAAAAAB3yHfHZw
+ AAAAAAAAAAAAAAAAAAAAAAAAd3fIyHVwAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////
+ AAD///////8AAP///////wAA//h/////AAD/4D////8AAP/AP////wAA/8A/////AAD/gB////8AAP8A
+ H////wAA/wAf////AAD+AB////8AAP4AH////wAA/gAf////AAD8AB////8AAPwAH////wAA/AAP////
+ AAD8AA////8AAPgAD//+BwAA+AAH//ADAAD4AAP/wAMAAPgAAP8AAwAA+AAAAAADAAD4AAAAAAMAAPgA
+ AAAABwAA+AAAAAAHAAD4AAAAAA8AAPgAAAAAHwAA/AAAAAA/AAD8AAAAAH8AAP4AAAAA/wAA/4AAAAP/
+ AAD/4AAAB/8AAP/4AAAf/wAA/8AAAH//AAD8A+AD//8AAPgP/A///wAA////////AAD///////8AAP//
+ /////wAA////////AAD///////8AAP///////wAA////////AAAoAAAAIAAAAEAAAAABAAQAAAAAAAAC
+ AAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/
+ AAAA//8A/wAAAP8A/wD//wAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdwAAAAAAAAAAAAAAAA
+ AAd0dAAAAAAAAAAAAAAAAAB3x3cAAAAAAAAAAAAAAAAAd3fHcAAAAAAAAAAAAAAAB3yMh3AAAAAAAAAA
+ AAAAAAfIeMdwAAAAAAAAAAAAAAAHjIyHQAAAAAAAAAAAAAAAfId4yHAAAAAAAAAAAAAAAHjIyIdQAAAA
+ AAAAAAAAAAB3iId4YAAAAAAAAAdwAAAAjIiIiIUAAAAAAHd3dAAAB4iIiHh8cAAAAHd3x4dwAAd4iIiI
+ h3Z3d3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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////8AAP//
+ /////wAA////////AAD///////8AAP///////wAA////////AAD/+H////8AAP/gH////wAA/8Af////
+ AAD/gA////8AAP+AD////wAA/wAP////AAD/AA////8AAP4AB////wAA/gAH////AAD8AAf///8AAPwA
+ B////wAA/AAH////AAD8AAf///8AAPgAB////wAA+AAH//4HAAD4AAP/8AEAAPgAAf/AAQAA8AAA/wAA
+ AADwAAAAAAAAAPAAAAAAAAAA8AAAAAAAAADwAAAAAAEAAPAAAAAAAQAA8AAAAAADAADwAAAAAAcAAPAA
+ AAAADwAA+AAAAAAfAAD4AAAAAD8AAPwAAAAAfwAA/gAAAAD/AAD/gAAAA/8AAP/gAAAH/wAAgAAAAB//
+ AAAAAAAAf/8AAAAD4AP//wAAgB/8H///AAD///////8AAP///////wAA////////AAD///////8AAP//
+ /////wAA////////AAAoAAAAIAAAAEAAAAABACAAAAAAAIAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAA//8AAP//AADh/wAAwf8AAMH/
+ AACB/wAAgfkAAIDAAACAAAAAgAAAAIAAAACAAQAAAAcAAAAPAAAOfwAA//8AAA==
+
+
+
\ No newline at end of file
diff --git a/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/A7800HawkSchema.cs b/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/A7800HawkSchema.cs
new file mode 100644
index 0000000000..1c4fa60977
--- /dev/null
+++ b/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/A7800HawkSchema.cs
@@ -0,0 +1,247 @@
+using System.Collections.Generic;
+using System.Drawing;
+
+using BizHawk.Common.ReflectionExtensions;
+using BizHawk.Emulation.Common;
+using BizHawk.Emulation.Cores.Atari.A7800Hawk;
+
+namespace BizHawk.Client.EmuHawk
+{
+ [SchemaAttributes("A7800Hawk")]
+ public class A7800HawkSchema : IVirtualPadSchema
+ {
+ private string UnpluggedControllerName => typeof(UnpluggedController).DisplayName();
+ private string StandardControllerName => typeof(StandardController).DisplayName();
+
+ public IEnumerable GetPadSchemas(IEmulator core)
+ {
+ var intvSyncSettings = ((A7800Hawk)core).GetSyncSettings().Clone();
+ var port1 = intvSyncSettings.Port1;
+ var port2 = intvSyncSettings.Port2;
+
+ if (port1 == StandardControllerName)
+ {
+ yield return JoystickController(1);
+ }
+
+ if (port2 == StandardControllerName)
+ {
+ yield return JoystickController(2);
+ }
+
+ }
+
+ private static PadSchema ProLineController(int controller)
+ {
+ return new PadSchema
+ {
+ DisplayName = "Player " + controller,
+ IsConsole = false,
+ DefaultSize = new Size(174, 74),
+ MaxSize = new Size(174, 74),
+ Buttons = new[]
+ {
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Up",
+ DisplayName = "",
+ Icon = Properties.Resources.BlueUp,
+ Location = new Point(23, 15),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Down",
+ DisplayName = "",
+ Icon = Properties.Resources.BlueDown,
+ Location = new Point(23, 36),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Left",
+ DisplayName = "",
+ Icon = Properties.Resources.Back,
+ Location = new Point(2, 24),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Right",
+ DisplayName = "",
+ Icon = Properties.Resources.Forward,
+ Location = new Point(44, 24),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Trigger",
+ DisplayName = "1",
+ Location = new Point(120, 24),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Trigger 2",
+ DisplayName = "2",
+ Location = new Point(145, 24),
+ Type = PadSchema.PadInputType.Boolean
+ }
+ }
+ };
+ }
+
+ private static PadSchema JoystickController(int controller)
+ {
+ return new PadSchema
+ {
+ DisplayName = "Player " + controller,
+ IsConsole = false,
+ DefaultSize = new Size(174, 74),
+ MaxSize = new Size(174, 74),
+ Buttons = new[]
+ {
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Up",
+ DisplayName = "",
+ Icon = Properties.Resources.BlueUp,
+ Location = new Point(23, 15),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Down",
+ DisplayName = "",
+ Icon = Properties.Resources.BlueDown,
+ Location = new Point(23, 36),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Left",
+ DisplayName = "",
+ Icon = Properties.Resources.Back,
+ Location = new Point(2, 24),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Right",
+ DisplayName = "",
+ Icon = Properties.Resources.Forward,
+ Location = new Point(44, 24),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Trigger",
+ DisplayName = "1",
+ Location = new Point(120, 24),
+ Type = PadSchema.PadInputType.Boolean
+ }
+ }
+ };
+ }
+
+ private static PadSchema PaddleController(int controller)
+ {
+ return new PadSchema
+ {
+ DisplayName = "Player " + controller,
+ IsConsole = false,
+ DefaultSize = new Size(250, 74),
+ Buttons = new[]
+ {
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Paddle",
+ DisplayName = "Paddle",
+ Location = new Point(23, 15),
+ Type = PadSchema.PadInputType.FloatSingle
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Trigger",
+ DisplayName = "1",
+ Location = new Point(12, 90),
+ Type = PadSchema.PadInputType.Boolean
+ }
+ }
+ };
+ }
+
+ private static PadSchema LightGunController(int controller)
+ {
+ return new PadSchema
+ {
+ DisplayName = "Light Gun",
+ IsConsole = false,
+ DefaultSize = new Size(356, 290),
+ MaxSize = new Size(356, 290),
+ Buttons = new[]
+ {
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " VPos",
+ Location = new Point(14, 17),
+ Type = PadSchema.PadInputType.TargetedPair,
+ TargetSize = new Size(256, 240),
+ SecondaryNames = new[]
+ {
+ "P" + controller + " HPos",
+ }
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "P" + controller + " Trigger",
+ DisplayName = "Trigger",
+ Location = new Point(284, 17),
+ Type = PadSchema.PadInputType.Boolean
+ }
+ }
+ };
+ }
+
+ private static PadSchema ConsoleButtons()
+ {
+ return new PadSchema
+ {
+ DisplayName = "Console",
+ IsConsole = true,
+ DefaultSize = new Size(215, 50),
+ Buttons = new[]
+ {
+ new PadSchema.ButtonSchema
+ {
+ Name = "Select",
+ DisplayName = "Select",
+ Location = new Point(10, 15),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "Reset",
+ DisplayName = "Reset",
+ Location = new Point(60, 15),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "Power",
+ DisplayName = "Power",
+ Location = new Point(108, 15),
+ Type = PadSchema.PadInputType.Boolean
+ },
+ new PadSchema.ButtonSchema
+ {
+ Name = "Pause",
+ DisplayName = "Pause",
+ Location = new Point(158, 15),
+ Type = PadSchema.PadInputType.Boolean
+ }
+ }
+ };
+ }
+ }
+}
diff --git a/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj b/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj
index ed3b3663c5..a48dd0cc63 100644
--- a/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj
+++ b/BizHawk.Emulation.Cores/BizHawk.Emulation.Cores.csproj
@@ -208,12 +208,12 @@
C64.cs
- C64.cs
+ C64.cs
C64.cs
-
+
@@ -221,7 +221,7 @@
-
+
@@ -382,10 +382,16 @@
A7800Hawk.cs
+
+ A7800Hawk.cs
+
+
+
+
+
A7800Hawk.cs
-
@@ -1377,4 +1383,4 @@
-->
-
+
\ No newline at end of file
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IDebuggable.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IDebuggable.cs
index 45809e725e..056eb62a0a 100644
--- a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IDebuggable.cs
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IDebuggable.cs
@@ -54,11 +54,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
}
}
- public IMemoryCallbackSystem MemoryCallbacks
- {
- [FeatureNotImplemented]
- get { throw new NotImplementedException(); }
- }
+ public IMemoryCallbackSystem MemoryCallbacks { get; private set; }
public bool CanStep(StepType type)
{
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IEmulator.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IEmulator.cs
index c739349520..09ad452125 100644
--- a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IEmulator.cs
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IEmulator.cs
@@ -1,4 +1,5 @@
using BizHawk.Emulation.Common;
+using System;
namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
{
@@ -6,15 +7,29 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
{
public IEmulatorServiceProvider ServiceProvider { get; }
- public ControllerDefinition ControllerDefinition { get; private set; }
+ public ControllerDefinition ControllerDefinition => _controllerDeck.Definition;
//Maria related variables
public int cycle;
public int cpu_cycle;
public int scanline;
+ // there are 4 maria cycles in a CPU cycle (fast access, both NTSC and PAL)
+ // if the 6532 or TIA are accessed (PC goes to one of those addresses) the next access will be slower by 1/2 a CPU cycle
+ // i.e. it will take 6 Maria cycles instead of 4
+ public bool slow_access = false;
+
public void FrameAdvance(IController controller, bool render, bool rendersound)
{
+ if (_tracer.Enabled)
+ {
+ cpu.TraceCallback = s => _tracer.Put(s);
+ }
+ else
+ {
+ cpu.TraceCallback = null;
+ }
+
_frame++;
if (controller.IsPressed("Power"))
@@ -29,6 +44,9 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
_lagcount++;
}
+ // read the controller state here for now
+ GetControllerState(controller);
+
scanline = 0;
// actually execute the frame
@@ -37,18 +55,61 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
maria.Execute(cycle, scanline);
cycle++;
cpu_cycle++;
+ tia._hsyncCnt++;
+
+ // the time a cpu cycle takes depends on the status of the address bus
+ // any address in range of the TIA or m6532 takes an extra cycle to complete
+ if (cpu_cycle==(4 + (slow_access ? 2 : 0)))
+ {
+ cpu.ExecuteOne();
+ cpu_cycle = 0;
+ }
+
+ // determine if the next access will be fast or slow
+ if (cpu.PC < 0x0400)
+ {
+ if ((cpu.PC & 0xFF) < 0x20)
+ {
+ if ((A7800_control_register & 0x1) == 0 && (cpu.PC < 0x20))
+ {
+ slow_access = false;
+ }
+ else
+ {
+ slow_access = true;
+ }
+ }
+ else if (cpu.PC < 0x300)
+ {
+ slow_access = true;
+ }
+ else
+ {
+ slow_access = false;
+ }
+ }
if (cycle == 454)
{
scanline++;
cycle = 0;
+ tia._hsyncCnt = 0;
}
}
}
+ private void GetControllerState(IController controller)
+ {
+ InputCallbacks.Call();
+
+ ushort port1 = _controllerDeck.ReadPort1(controller);
+
+ ushort port2 = _controllerDeck.ReadPort2(controller);
+ }
+
public int Frame => _frame;
public string SystemId => "A7800";
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.ISettable.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.ISettable.cs
new file mode 100644
index 0000000000..7f646316af
--- /dev/null
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.ISettable.cs
@@ -0,0 +1,91 @@
+using System;
+using Newtonsoft.Json;
+
+using BizHawk.Common;
+using BizHawk.Emulation.Common;
+
+namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
+{
+ public partial class A7800Hawk : IEmulator, IStatable, ISettable
+ {
+ public A7800Settings GetSettings()
+ {
+ return _settings.Clone();
+ }
+
+ public A7800SyncSettings GetSyncSettings()
+ {
+ return _syncSettings.Clone();
+ }
+
+ public bool PutSettings(A7800Settings o)
+ {
+ _settings = o;
+ return false;
+ }
+
+ public bool PutSyncSettings(A7800SyncSettings o)
+ {
+ bool ret = A7800SyncSettings.NeedsReboot(_syncSettings, o);
+ _syncSettings = o;
+ return ret;
+ }
+
+ private A7800Settings _settings = new A7800Settings();
+ private A7800SyncSettings _syncSettings = new A7800SyncSettings();
+
+ public class A7800Settings
+ {
+ public A7800Settings Clone()
+ {
+ return (A7800Settings)MemberwiseClone();
+ }
+ }
+
+ public class A7800SyncSettings
+ {
+ private string _port1 = A7800HawkControllerDeck.DefaultControllerName;
+ private string _port2 = A7800HawkControllerDeck.DefaultControllerName;
+
+ [JsonIgnore]
+ public string Port1
+ {
+ get { return _port1; }
+ set
+ {
+ if (!A7800HawkControllerDeck.ValidControllerTypes.ContainsKey(value))
+ {
+ throw new InvalidOperationException("Invalid controller type: " + value);
+ }
+
+ _port1 = value;
+ }
+ }
+
+ [JsonIgnore]
+ public string Port2
+ {
+ get { return _port2; }
+ set
+ {
+ if (!A7800HawkControllerDeck.ValidControllerTypes.ContainsKey(value))
+ {
+ throw new InvalidOperationException("Invalid controller type: " + value);
+ }
+
+ _port2 = value;
+ }
+ }
+
+ public A7800SyncSettings Clone()
+ {
+ return (A7800SyncSettings)MemberwiseClone();
+ }
+
+ public static bool NeedsReboot(A7800SyncSettings x, A7800SyncSettings y)
+ {
+ return !DeepEquality.DeepEquals(x, y);
+ }
+ }
+ }
+}
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IStatable.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IStatable.cs
index 96356abb5b..872bc6b442 100644
--- a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IStatable.cs
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.IStatable.cs
@@ -53,6 +53,8 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
ser.Sync("Lag", ref _lagcount);
ser.Sync("Frame", ref _frame);
ser.Sync("IsLag", ref _islag);
+ _controllerDeck.SyncState(ser);
+
ser.EndSection();
}
}
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.cs
index 1ea8b6aea8..32c4872461 100644
--- a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.cs
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800Hawk.cs
@@ -12,7 +12,8 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
isPorted: false,
isReleased: true)]
[ServiceNotApplicable(typeof(ISettable<,>), typeof(IDriveLight))]
- public partial class A7800Hawk : IEmulator, ISaveRam, IDebuggable, IStatable, IInputPollable, IRegionable
+ public partial class A7800Hawk : IEmulator, ISaveRam, IDebuggable, IStatable, IInputPollable, IRegionable,
+ ISettable
{
// this register selects between 2600 and 7800 mode in the A7800
// however, we already have a 2600 emulator so this core will only be loading A7800 games
@@ -25,14 +26,20 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
public byte[] Maria_regs = new byte[0x20];
public byte[] RAM = new byte[0x1000];
public byte[] regs_6532 = new byte[0x80];
+ public byte[] hs_bios_mem = new byte[0x800];
- private readonly byte[] _rom;
- private readonly byte[] _hsbios;
- private readonly byte[] _bios;
- private readonly byte[] _hsram = new byte[2048];
+ public readonly byte[] _rom;
+ public readonly byte[] _hsbios;
+ public readonly byte[] _bios;
+ public readonly byte[] _hsram = new byte[2048];
private int _frame = 0;
+ public string s_mapper;
+ public MapperBase mapper;
+
+ private readonly ITraceable _tracer;
+
public MOS6502X cpu;
public Maria maria;
private bool _isPAL;
@@ -45,10 +52,14 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
maria = new Maria();
tia = new TIA();
-
- ser.Register(maria);
- ser.Register(tia);
- ServiceProvider = ser;
+ cpu = new MOS6502X
+ {
+ ReadMemory = ReadMemory,
+ WriteMemory = WriteMemory,
+ PeekMemory = ReadMemory,
+ DummyReadMemory = ReadMemory,
+ OnExecFetch = ExecFetch
+ };
maria = new Maria
{
@@ -56,6 +67,9 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
};
CoreComm = comm;
+
+ _controllerDeck = new A7800HawkControllerDeck(_syncSettings.Port1, _syncSettings.Port2);
+
byte[] highscoreBios = comm.CoreFileProvider.GetFirmware("A78", "Bios_HSC", false, "Some functions may not work without the high score BIOS.");
byte[] palBios = comm.CoreFileProvider.GetFirmware("A78", "Bios_PAL", false, "The game will not run if the correct region BIOS is not available.");
byte[] ntscBios = comm.CoreFileProvider.GetFirmware("A78", "Bios_NTSC", false, "The game will not run if the correct region BIOS is not available.");
@@ -74,7 +88,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
// if none found default is zero
// also check for PAL region
string hash_md5 = null;
- string s_mapper = null;
+ s_mapper = null;
hash_md5 = "md5:" + rom.HashMD5(0, rom.Length);
var gi = Database.CheckDatabase(hash_md5);
@@ -82,22 +96,24 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
if (gi != null)
{
var dict = gi.GetOptionsDict();
- if (!dict.ContainsKey("PAL"))
+ if (dict.ContainsKey("PAL"))
{
_isPAL = true;
}
- if (!dict.ContainsKey("board"))
+ if (dict.ContainsKey("board"))
{
s_mapper = dict["board"];
}
else
- throw new Exception("No Board selected for this mapper");
+ throw new Exception("No Board selected for this game");
}
else
{
throw new Exception("ROM not in gamedb");
}
+ Reset_Mapper(s_mapper);
+
_rom = rom;
_hsbios = highscoreBios;
_bios = _isPAL ? palBios : ntscBios;
@@ -111,21 +127,31 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
if (_isPAL)
{
maria._frameHz = 50;
+ maria._screen_width = 454;
+ maria._screen_height = 313;
maria._palette = PALPalette;
}
else
{
maria._frameHz = 60;
+ maria._screen_width = 454;
+ maria._screen_height = 263;
maria._palette = NTSCPalette;
}
+ ser.Register(maria);
+ ser.Register(tia);
+ ServiceProvider = ser;
+
+ _tracer = new TraceBuffer { Header = cpu.TraceHeader };
+ ser.Register(_tracer);
HardReset();
}
public DisplayType Region => _isPAL ? DisplayType.PAL : DisplayType.NTSC;
- public A7800HawkControl ControlAdapter { get; private set; }
+ private readonly A7800HawkControllerDeck _controllerDeck;
private void HardReset()
{
@@ -142,7 +168,24 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
Maria_regs = new byte[0x20];
RAM = new byte[0x1000];
regs_6532 = new byte[0x80];
- }
+
+ cpu_cycle = 0;
+ }
+
+ private void ExecFetch(ushort addr)
+ {
+ //MemoryCallbacks.CallExecutes(addr);
+ }
+
+ private void Reset_Mapper(string m)
+ {
+ if (m=="0")
+ {
+ mapper = new MapperDefault();
+ }
+
+ mapper.Core = this;
+ }
/*
* MariaTables.cs
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800HawkControl.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800HawkControl.cs
deleted file mode 100644
index ddb0815b14..0000000000
--- a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800HawkControl.cs
+++ /dev/null
@@ -1,409 +0,0 @@
-using System;
-
-using EMU7800.Core;
-using BizHawk.Emulation.Common;
-
-namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
-{
- public class A7800HawkControl
- {
- private static readonly ControllerDefinition Joystick = new ControllerDefinition
- {
- Name = "Atari 7800 Joystick Controller",
- BoolButtons =
- {
- // hard reset, not passed to EMU7800
- "Power",
-
- // on the console
- "Reset",
- "Select",
- "BW", // should be "Color"??
- "Left Difficulty", // better not put P# on these as they might not correspond to player numbers
- "Right Difficulty",
-
- // ports
- "P1 Up", "P1 Down", "P1 Left", "P1 Right", "P1 Trigger",
- "P2 Up", "P2 Down", "P2 Left", "P2 Right", "P2 Trigger"
- }
- };
-
- private static readonly ControllerDefinition Paddles = new ControllerDefinition
- {
- Name = "Atari 7800 Paddle Controller",
- BoolButtons =
- {
- // hard reset, not passed to EMU7800
- "Power",
-
- // on the console
- "Reset",
- "Select",
- "BW", // should be "Color"??
- "Left Difficulty", // better not put P# on these as they might not correspond to player numbers
- "Right Difficulty",
-
- // ports
- "P1 Trigger",
- "P2 Trigger",
- "P3 Trigger",
- "P4 Trigger"
- },
- FloatControls = // should be in [0..700000]
- {
- "P1 Paddle",
- "P2 Paddle",
- "P3 Paddle",
- "P4 Paddle"
- },
- FloatRanges =
- {
- // what is the center point supposed to be here?
- new[] { 0.0f, 0.0f, 700000.0f },
- new[] { 0.0f, 0.0f, 700000.0f },
- new[] { 0.0f, 0.0f, 700000.0f },
- new[] { 0.0f, 0.0f, 700000.0f }
- }
- };
-
- private static readonly ControllerDefinition Keypad = new ControllerDefinition
- {
- Name = "Atari 7800 Keypad Controller",
- BoolButtons =
- {
- // hard reset, not passed to EMU7800
- "Power",
-
- // on the console
- "Reset",
- "Select",
- "BW", // should be "Color"??
- "Toggle Left Difficulty", // better not put P# on these as they might not correspond to player numbers
- "Toggle Right Difficulty",
-
- // ports
- "P1 Keypad1", "P1 Keypad2", "P1 Keypad3",
- "P1 Keypad4", "P1 Keypad5", "P1 Keypad6",
- "P1 Keypad7", "P1 Keypad8", "P1 Keypad9",
- "P1 KeypadA", "P1 Keypad0", "P1 KeypadP",
- "P2 Keypad1", "P2 Keypad2", "P2 Keypad3",
- "P2 Keypad4", "P2 Keypad5", "P2 Keypad6",
- "P2 Keypad7", "P2 Keypad8", "P2 Keypad9",
- "P2 KeypadA", "P2 Keypad0", "P2 KeypadP",
- "P3 Keypad1", "P3 Keypad2", "P3 Keypad3",
- "P3 Keypad4", "P3 Keypad5", "P3 Keypad6",
- "P3 Keypad7", "P3 Keypad8", "P3 Keypad9",
- "P3 KeypadA", "P3 Keypad0", "P3 KeypadP",
- "P4 Keypad1", "P4 Keypad2", "P4 Keypad3",
- "P4 Keypad4", "P4 Keypad5", "P4 Keypad6",
- "P4 Keypad7", "P4 Keypad8", "P4 Keypad9",
- "P4 KeypadA", "P4 Keypad0", "P4 KeypadP"
- }
- };
-
- private static readonly ControllerDefinition Driving = new ControllerDefinition
- {
- Name = "Atari 7800 Driving Controller",
- BoolButtons =
- {
- // hard reset, not passed to EMU7800
- "Power",
-
- // on the console
- "Reset",
- "Select",
- "BW", // should be "Color"??
- "Toggle Left Difficulty", // better not put P# on these as they might not correspond to player numbers
- "Toggle Right Difficulty",
-
- // ports
- "P1 Trigger",
- "P2 Trigger"
- },
- FloatControls = // should be in [0..3]
- {
- "P1 Driving",
- "P2 Driving"
- },
- FloatRanges =
- {
- new[] { 0.0f, 0.0f, 3.0f },
- new[] { 0.0f, 0.0f, 3.0f },
- new[] { 0.0f, 0.0f, 3.0f }
- }
- };
-
- private static readonly ControllerDefinition BoosterGrip = new ControllerDefinition
- {
- Name = "Atari 7800 Booster Grip Controller",
- BoolButtons =
- {
- // hard reset, not passed to EMU7800
- "Power",
-
- // on the console
- "Reset",
- "Select",
- "BW", // should be "Color"??
- "Toggle Left Difficulty", // better not put P# on these as they might not correspond to player numbers
- "Toggle Right Difficulty",
-
- // ports
- // NB: as referenced by the emu, p1t2 = p1t2, p1t3 = p2t2, p2t2 = p3t2, p2t3 = p4t2
- "P1 Up", "P1 Down", "P1 Left", "P1 Right", "P1 Trigger", "P1 Trigger 2", "P1 Trigger 3",
- "P2 Up", "P2 Down", "P2 Left", "P2 Right", "P2 Trigger", "P2 Trigger 2", "P2 Trigger 3"
- }
- };
-
- private static readonly ControllerDefinition ProLineJoystick = new ControllerDefinition
- {
- Name = "Atari 7800 ProLine Joystick Controller",
- BoolButtons =
- {
- // hard reset, not passed to EMU7800
- "Power",
-
- // on the console
- "Reset",
- "Select",
- "Pause",
- "Toggle Left Difficulty", // better not put P# on these as they might not correspond to player numbers
- "Toggle Right Difficulty",
-
- // ports
- "P1 Up", "P1 Down", "P1 Left", "P1 Right", "P1 Trigger", "P1 Trigger 2",
- "P2 Up", "P2 Down", "P2 Left", "P2 Right", "P2 Trigger", "P2 Trigger 2"
- }
- };
-
- private static readonly ControllerDefinition Lightgun = new ControllerDefinition
- {
- Name = "Atari 7800 Light Gun Controller",
- BoolButtons =
- {
- // hard reset, not passed to EMU7800
- "Power",
-
- // on the console
- "Reset",
- "Select",
- "Pause",
- "Left Difficulty", // better not put P# on these as they might not correspond to player numbers
- "Right Difficulty",
-
- // ports
- "P1 Trigger",
- "P2 Trigger"
- },
- FloatControls = // vpos should be actual scanline number. hpos should be in [0..319]??
- {
- "P1 VPos", "P1 HPos",
- "P2 VPos", "P2 HPos"
- },
- FloatRanges =
- {
- // how many scanlines are there again??
- new[] { 0.0f, 0.0f, 240.0f },
- new[] { 0.0f, 0.0f, 319.0f },
- new[] { 0.0f, 0.0f, 240.0f },
- new[] { 0.0f, 0.0f, 319.0f }
- }
- };
-
- private struct ControlAdapter
- {
- public readonly ControllerDefinition Type;
- public readonly Controller Left;
- public readonly Controller Right;
- public readonly Action Convert;
-
- public ControlAdapter(ControllerDefinition type, Controller left, Controller right, Action convert)
- {
- Type = type;
- Left = left;
- Right = right;
- Convert = convert;
- }
- }
-
- private static readonly ControlAdapter[] Adapters =
- {
- new ControlAdapter(Joystick, Controller.Joystick, Controller.Joystick, ConvertJoystick),
- new ControlAdapter(Paddles, Controller.Paddles, Controller.Paddles, ConvertPaddles),
- new ControlAdapter(Keypad, Controller.Keypad, Controller.Keypad, ConvertKeypad),
- new ControlAdapter(Driving, Controller.Driving, Controller.Driving, ConvertDriving),
- new ControlAdapter(BoosterGrip, Controller.BoosterGrip, Controller.BoosterGrip, ConvertBoosterGrip),
- new ControlAdapter(ProLineJoystick, Controller.ProLineJoystick, Controller.ProLineJoystick, ConvertProLineJoystick),
- new ControlAdapter(Lightgun, Controller.Lightgun, Controller.Lightgun, ConvertLightgun),
- };
-
- private static void ConvertConsoleButtons(IController c, InputState s)
- {
- s.RaiseInput(0, MachineInput.Reset, c.IsPressed("Reset"));
- s.RaiseInput(0, MachineInput.Select, c.IsPressed("Select"));
- s.RaiseInput(0, MachineInput.Color, c.IsPressed("BW"));
- if (c.IsPressed("Toggle Left Difficulty"))
- {
- s.RaiseInput(0, MachineInput.LeftDifficulty, c.IsPressed("Toggle Left Difficulty"));
- }
-
- if (c.IsPressed("Toggle Right Difficulty"))
- {
- s.RaiseInput(0, MachineInput.RightDifficulty, c.IsPressed("Toggle Right Difficulty"));
- }
- }
-
- private static void ConvertConsoleButtons7800(IController c, InputState s)
- {
- s.RaiseInput(0, MachineInput.Reset, c.IsPressed("Reset"));
- s.RaiseInput(0, MachineInput.Select, c.IsPressed("Select"));
- s.RaiseInput(0, MachineInput.Color, c.IsPressed("Pause"));
- if (c.IsPressed("Toggle Left Difficulty"))
- {
- s.RaiseInput(0, MachineInput.LeftDifficulty, c.IsPressed("Toggle Left Difficulty"));
- }
-
- if (c.IsPressed("Toggle Right Difficulty"))
- {
- s.RaiseInput(0, MachineInput.RightDifficulty, c.IsPressed("Toggle Right Difficulty"));
- }
- }
-
- private static void ConvertDirections(IController c, InputState s, int p)
- {
- string ps = $"P{p + 1} ";
- s.RaiseInput(p, MachineInput.Up, c.IsPressed(ps + "Up"));
- s.RaiseInput(p, MachineInput.Down, c.IsPressed(ps + "Down"));
- s.RaiseInput(p, MachineInput.Left, c.IsPressed(ps + "Left"));
- s.RaiseInput(p, MachineInput.Right, c.IsPressed(ps + "Right"));
- }
-
- private static void ConvertTrigger(IController c, InputState s, int p)
- {
- string ps = $"P{p + 1} ";
- s.RaiseInput(p, MachineInput.Fire, c.IsPressed(ps + "Trigger"));
- }
-
- private static void ConvertJoystick(IController c, InputState s)
- {
- s.ClearControllerInput();
- ConvertConsoleButtons(c, s);
- ConvertDirections(c, s, 0);
- ConvertDirections(c, s, 1);
- ConvertTrigger(c, s, 0);
- ConvertTrigger(c, s, 1);
- }
-
- private static void ConvertPaddles(IController c, InputState s)
- {
- s.ClearControllerInput();
- ConvertConsoleButtons(c, s);
- for (int i = 0; i < 4; i++)
- {
- string ps = $"P{i + 1} ";
- ConvertTrigger(c, s, i);
- s.RaisePaddleInput(i, 700000, (int)c.GetFloat(ps + "Trigger"));
- }
- }
-
- private static void ConvertKeypad(IController c, InputState s)
- {
- s.ClearControllerInput();
- ConvertConsoleButtons(c, s);
- for (int i = 0; i < 4; i++)
- {
- string ps = $"P{i + 1} ";
- s.RaiseInput(i, MachineInput.NumPad1, c.IsPressed(ps + "Keypad1"));
- s.RaiseInput(i, MachineInput.NumPad2, c.IsPressed(ps + "Keypad2"));
- s.RaiseInput(i, MachineInput.NumPad3, c.IsPressed(ps + "Keypad3"));
- s.RaiseInput(i, MachineInput.NumPad4, c.IsPressed(ps + "Keypad4"));
- s.RaiseInput(i, MachineInput.NumPad5, c.IsPressed(ps + "Keypad5"));
- s.RaiseInput(i, MachineInput.NumPad6, c.IsPressed(ps + "Keypad6"));
- s.RaiseInput(i, MachineInput.NumPad7, c.IsPressed(ps + "Keypad7"));
- s.RaiseInput(i, MachineInput.NumPad8, c.IsPressed(ps + "Keypad8"));
- s.RaiseInput(i, MachineInput.NumPad9, c.IsPressed(ps + "Keypad9"));
- s.RaiseInput(i, MachineInput.NumPadMult, c.IsPressed(ps + "KeypadA"));
- s.RaiseInput(i, MachineInput.NumPad0, c.IsPressed(ps + "Keypad0"));
- s.RaiseInput(i, MachineInput.NumPadHash, c.IsPressed(ps + "KeypadP"));
- }
- }
-
- private static readonly MachineInput[] Drvlut =
- {
- MachineInput.Driving0,
- MachineInput.Driving1,
- MachineInput.Driving2,
- MachineInput.Driving3
- };
-
- private static void ConvertDriving(IController c, InputState s)
- {
- s.ClearControllerInput();
- ConvertConsoleButtons(c, s);
- ConvertTrigger(c, s, 0);
- ConvertTrigger(c, s, 1);
- s.RaiseInput(0, Drvlut[(int)c.GetFloat("P1 Driving")], true);
- s.RaiseInput(1, Drvlut[(int)c.GetFloat("P2 Driving")], true);
- }
-
- private static void ConvertBoosterGrip(IController c, InputState s)
- {
- s.ClearControllerInput();
- ConvertConsoleButtons(c, s);
- ConvertDirections(c, s, 0);
- ConvertDirections(c, s, 1);
-
- // weird mapping is intentional
- s.RaiseInput(0, MachineInput.Fire, c.IsPressed("P1 Trigger"));
- s.RaiseInput(0, MachineInput.Fire2, c.IsPressed("P1 Trigger 2"));
- s.RaiseInput(1, MachineInput.Fire2, c.IsPressed("P1 Trigger 3"));
- s.RaiseInput(1, MachineInput.Fire, c.IsPressed("P2 Trigger"));
- s.RaiseInput(2, MachineInput.Fire2, c.IsPressed("P2 Trigger 2"));
- s.RaiseInput(3, MachineInput.Fire2, c.IsPressed("P2 Trigger 3"));
- }
-
- private static void ConvertProLineJoystick(IController c, InputState s)
- {
- s.ClearControllerInput();
- ConvertConsoleButtons7800(c, s);
- ConvertDirections(c, s, 0);
- ConvertDirections(c, s, 1);
- s.RaiseInput(0, MachineInput.Fire, c.IsPressed("P1 Trigger"));
- s.RaiseInput(0, MachineInput.Fire2, c.IsPressed("P1 Trigger 2"));
- s.RaiseInput(1, MachineInput.Fire, c.IsPressed("P2 Trigger"));
- s.RaiseInput(1, MachineInput.Fire2, c.IsPressed("P2 Trigger 2"));
- }
-
- private static void ConvertLightgun(IController c, InputState s)
- {
- s.ClearControllerInput();
- ConvertConsoleButtons7800(c, s);
- ConvertTrigger(c, s, 0);
- ConvertTrigger(c, s, 1);
- s.RaiseLightgunPos(0, (int)c.GetFloat("P1 VPos"), (int)c.GetFloat("P1 HPos"));
- s.RaiseLightgunPos(1, (int)c.GetFloat("P2 VPos"), (int)c.GetFloat("P2 HPos"));
- }
-
- public Action Convert { get; private set; }
-
- public ControllerDefinition ControlType { get; private set; }
-
- public A7800HawkControl(MachineBase mac)
- {
- var l = mac.InputState.LeftControllerJack;
- var r = mac.InputState.RightControllerJack;
-
- foreach (var a in Adapters)
- {
- if (a.Left == l && a.Right == r)
- {
- Convert = a.Convert;
- ControlType = a.Type;
- return;
- }
- }
-
- throw new Exception($"Couldn't connect Atari 7800 controls \"{l}\" and \"{r}\"");
- }
- }
-}
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800HawkControllerDeck.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800HawkControllerDeck.cs
new file mode 100644
index 0000000000..131ab32082
--- /dev/null
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800HawkControllerDeck.cs
@@ -0,0 +1,100 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+using BizHawk.Common;
+using BizHawk.Common.ReflectionExtensions;
+using BizHawk.Emulation.Common;
+
+namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
+{
+ public class A7800HawkControllerDeck
+ {
+ public A7800HawkControllerDeck(string controller1Name, string controller2Name)
+ {
+ if (!ValidControllerTypes.ContainsKey(controller1Name))
+ {
+ throw new InvalidOperationException("Invalid controller type: " + controller1Name);
+ }
+
+ if (!ValidControllerTypes.ContainsKey(controller2Name))
+ {
+ throw new InvalidOperationException("Invalid controller type: " + controller2Name);
+ }
+
+ Port1 = (IPort)Activator.CreateInstance(ValidControllerTypes[controller1Name], 1);
+ Port2 = (IPort)Activator.CreateInstance(ValidControllerTypes[controller2Name], 2);
+
+ Definition = new ControllerDefinition
+ {
+ Name = "A7800 Controller",
+ BoolButtons = Port1.Definition.BoolButtons
+ .Concat(Port2.Definition.BoolButtons)
+ .Concat(new[]
+ {
+ "Power",
+ "Reset",
+ "Select",
+ "BW", // should be "Color"??
+ "Left Difficulty", // better not put P# on these as they might not correspond to player numbers
+ "Right Difficulty"
+ })
+ .ToList()
+ };
+
+ Definition.FloatControls.AddRange(Port1.Definition.FloatControls);
+ Definition.FloatControls.AddRange(Port2.Definition.FloatControls);
+
+ Definition.FloatRanges.AddRange(Port1.Definition.FloatRanges);
+ Definition.FloatRanges.AddRange(Port2.Definition.FloatRanges);
+ }
+
+ public byte ReadPort1(IController c)
+ {
+ return Port1.Read(c);
+ }
+
+ public byte ReadPort2(IController c)
+ {
+ return Port2.Read(c);
+ }
+
+ public ControllerDefinition Definition { get; }
+
+ public void SyncState(Serializer ser)
+ {
+ ser.BeginSection("Port1");
+ Port1.SyncState(ser);
+ ser.EndSection();
+
+ ser.BeginSection("Port2");
+ Port2.SyncState(ser);
+ ser.EndSection();
+ }
+
+ private readonly IPort Port1;
+ private readonly IPort Port2;
+
+ private static Dictionary _controllerTypes;
+
+ public static Dictionary ValidControllerTypes
+ {
+ get
+ {
+ if (_controllerTypes == null)
+ {
+ _controllerTypes = typeof(A7800HawkControllerDeck).Assembly
+ .GetTypes()
+ .Where(t => typeof(IPort).IsAssignableFrom(t))
+ .Where(t => !t.IsAbstract && !t.IsInterface)
+ .ToDictionary(tkey => tkey.DisplayName());
+ }
+
+ return _controllerTypes;
+ }
+ }
+
+ public static string DefaultControllerName => typeof(StandardController).DisplayName();
+ }
+
+}
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800HawkControllers.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800HawkControllers.cs
new file mode 100644
index 0000000000..72ca92171d
--- /dev/null
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/A7800HawkControllers.cs
@@ -0,0 +1,104 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Linq;
+
+using BizHawk.Common;
+using BizHawk.Emulation.Common;
+
+namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
+{
+ ///
+ /// Represents a controller plugged into a controller port on the intellivision
+ ///
+ public interface IPort
+ {
+ byte Read(IController c);
+
+ ControllerDefinition Definition { get; }
+
+ void SyncState(Serializer ser);
+
+ int PortNum { get; }
+ }
+
+ [DisplayName("Unplugged Controller")]
+ public class UnpluggedController : IPort
+ {
+ public UnpluggedController(int portNum)
+ {
+ PortNum = portNum;
+ Definition = new ControllerDefinition
+ {
+ BoolButtons = new List()
+ };
+ }
+
+ public byte Read(IController c)
+ {
+ return 0;
+ }
+
+ public ControllerDefinition Definition { get; }
+
+ public void SyncState(Serializer ser)
+ {
+ // Do nothing
+ }
+
+ public int PortNum { get; }
+ }
+
+ [DisplayName("Joystick Controller")]
+ public class StandardController : IPort
+ {
+ public StandardController(int portNum)
+ {
+ PortNum = portNum;
+ Definition = new ControllerDefinition
+ {
+ BoolButtons = BaseDefinition
+ .Select(b => "P" + PortNum + " " + b)
+ .ToList()
+ };
+ }
+
+ public int PortNum { get; }
+
+ public byte Read(IController c)
+ {
+ byte result = 0;
+ for (int i = 0; i < 5; i++)
+ {
+ if (c.IsPressed(Definition.BoolButtons[i]))
+ {
+ result |= HandControllerButtons[i];
+ }
+ }
+
+ return result;
+ }
+
+ public ControllerDefinition Definition { get; }
+
+
+ public void SyncState(Serializer ser)
+ {
+ // Nothing todo, I think
+ }
+
+ private static readonly string[] BaseDefinition =
+ {
+ "U", "D", "L", "R", "Fire"
+ };
+
+ private static byte[] HandControllerButtons =
+ {
+ 0x60, // UP
+ 0xC0, // Down
+ 0xA0, // Left
+ 0x48, // Right
+ 0x81 // Fire
+ };
+ }
+}
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Mappers/MapperBase.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Mappers/MapperBase.cs
new file mode 100644
index 0000000000..7b67757591
--- /dev/null
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Mappers/MapperBase.cs
@@ -0,0 +1,36 @@
+using BizHawk.Common;
+using System;
+
+namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
+{
+ public class MapperBase
+ {
+ public A7800Hawk Core { get; set; }
+
+ public virtual byte ReadMemory(ushort addr)
+ {
+ return 0;
+ }
+
+ public virtual byte PeekMemory(ushort addr)
+ {
+ return 0;
+ }
+
+ public virtual void WriteMemory(ushort addr, byte value)
+ {
+ }
+
+ public virtual void PokeMemory(ushort addr, byte value)
+ {
+ }
+
+ public virtual void SyncState(Serializer ser)
+ {
+ }
+
+ public virtual void Dispose()
+ {
+ }
+ }
+}
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Mappers/MapperDefault.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Mappers/MapperDefault.cs
new file mode 100644
index 0000000000..a92a98d8d3
--- /dev/null
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Mappers/MapperDefault.cs
@@ -0,0 +1,100 @@
+using BizHawk.Common;
+using BizHawk.Common.NumberExtensions;
+using System;
+
+namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
+{
+ // Default mapper with no bank switching
+ // Just need to keep track of high score bios stuff
+ public class MapperDefault : MapperBase
+ {
+ public override byte ReadMemory(ushort addr)
+ {
+ if (addr < 0x480)
+ {
+ // Nothing here
+ return 0xFF;
+ }
+ else if (addr < 0x1800)
+ {
+ //could be hsbios RAM here
+ if (addr >= 0x1000 && Core._hsbios != null)
+ {
+ return Core._hsram[addr - 0x1000];
+ }
+ return 0xFF;
+ }
+ else if (addr < 0x4000)
+ {
+ // could be either RAM mirror or ROM
+ if (addr >= 0x3000 && Core._hsbios != null)
+ {
+ return Core._hsbios[addr - 0x3000];
+ }
+ else
+ {
+ return Core.RAM[0x800 + addr & 0x7FF];
+ }
+ }
+ else
+ {
+ // cartridge and other OPSYS
+ if ((Core._rom.Length >= 0x10000 - addr) && Core.A7800_control_register.Bit(2))
+ {
+ return Core._rom[Core._rom.Length - (0x10000 - addr)];
+ }
+ else if (addr >= 0xF000 && !Core.A7800_control_register.Bit(2))
+ {
+ return Core._bios[addr - 0xF000];
+ }
+ else
+ {
+ return 0xFF;
+ }
+ }
+ }
+
+ public override byte PeekMemory(ushort addr)
+ {
+ return ReadMemory(addr);
+ }
+
+ public override void WriteMemory(ushort addr, byte value)
+ {
+ if (addr < 0x480)
+ {
+ // Nothing here
+ }
+ else if (addr < 0x1800)
+ {
+ //could be hsbios RAM here
+ if (addr >= 0x1000 && Core._hsbios != null)
+ {
+ Core._hsram[addr - 0x1000] = value;
+ }
+ }
+ else if (addr < 0x4000)
+ {
+ // could be either RAM mirror or ROM
+ if (addr >= 0x3000 && Core._hsbios != null)
+ {
+ }
+ else
+ {
+ Core.RAM[0x800 + addr & 0x7FF] = value;
+ }
+ }
+ else
+ {
+ // cartridge and other OPSYS
+ }
+ }
+
+ public override void PokeMemory(ushort addr, byte value)
+ {
+ WriteMemory(addr, value);
+ }
+
+
+ }
+}
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Maria.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Maria.cs
index a142a32bb7..95f136866b 100644
--- a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Maria.cs
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/Maria.cs
@@ -7,7 +7,9 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
// Emulates the Atari 7800 Maria graphics chip
public class Maria : IVideoProvider
{
- public int _frameHz;
+ public int _frameHz = 60;
+ public int _screen_width = 454;
+ public int _screen_height = 263;
public int[] _vidbuffer;
public int[] _palette;
@@ -17,10 +19,10 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
return _vidbuffer;
}
- public int VirtualWidth => 275;
- public int VirtualHeight => BufferHeight;
- public int BufferWidth { get; private set; }
- public int BufferHeight { get; private set; }
+ public int VirtualWidth => 454;
+ public int VirtualHeight => _screen_height;
+ public int BufferWidth => 454;
+ public int BufferHeight => _screen_height;
public int BackgroundColor => unchecked((int)0xff000000);
public int VsyncNumerator => _frameHz;
public int VsyncDenominator => 1;
@@ -28,11 +30,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
// the Maria chip can directly access memory
public Func ReadMemory;
- // there are 4 maria cycles in a CPU cycle (fast access, both NTSC and PAL)
- // if the 6532 or TIA are accessed (PC goes to one of those addresses) the next access will be slower by 1/2 a CPU cycle
- // i.e. it will take 6 Maria cycles instead of 4
- public bool slow_access = false;
-
// each frame contains 263 scanlines
// each scanline consists of 113.5 CPU cycles (fast access) which equates to 454 Maria cycles
// In total there are 29850.5 CPU cycles (fast access) in a frame
@@ -43,7 +40,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
public void Reset()
{
-
+ _vidbuffer = new int[VirtualWidth * VirtualHeight];
}
}
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/MemoryMap.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/MemoryMap.cs
index 64f6211966..a7541855c6 100644
--- a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/MemoryMap.cs
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/MemoryMap.cs
@@ -55,7 +55,8 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
}
else if (addr < 0x480)
{
- return 0xFF; // cartridge space available
+ // cartridge space available
+ return mapper.ReadMemory(addr);
}
else if (addr < 0x500)
{
@@ -64,7 +65,8 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
}
else if (addr < 0x1800)
{
- return 0xFF; // cartridge space available
+ // cartridge space available
+ return mapper.ReadMemory(addr);
}
else if (addr < 0x2800)
{
@@ -72,11 +74,12 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
}
else if (addr < 0x4000)
{
- return RAM[addr - 0x2800 + 0x800];
+ // could be either RAM mirror or ROM
+ return mapper.ReadMemory(addr);
}
else
{
- return 0xFF; // cartridge and other OPSYS
+ return mapper.ReadMemory(addr);
}
}
@@ -125,6 +128,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
else if (addr < 0x480)
{
// cartridge space available
+ mapper.WriteMemory(addr, value);
}
else if (addr < 0x500)
{
@@ -134,6 +138,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
else if (addr < 0x1800)
{
// cartridge space available
+ mapper.WriteMemory(addr, value);
}
else if (addr < 0x2800)
{
@@ -141,13 +146,16 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
}
else if (addr < 0x4000)
{
- RAM[addr - 0x2800 + 0x800] = value;
+ // could be either RAM mirror or ROM
+ mapper.WriteMemory(addr, value);
}
else
{
// cartridge and other OPSYS
+ mapper.WriteMemory(addr, value);
}
}
+
}
}
diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/TIA_Sound/TIA.cs b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/TIA_Sound/TIA.cs
index 4c6ef5f20d..2fea119618 100644
--- a/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/TIA_Sound/TIA.cs
+++ b/BizHawk.Emulation.Cores/Consoles/Atari/A7800Hawk/TIA_Sound/TIA.cs
@@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
private bool _doTicks;
- private byte _hsyncCnt;
+ public int _hsyncCnt;
private int _capChargeStart;
private bool _capCharging;
public int AudioClocks; // not savestated
@@ -37,7 +37,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
public void Execute(int cycles)
{
// do the audio sampling
- if (_hsyncCnt == 36 || _hsyncCnt == 148)
+ if (_hsyncCnt == 113 || _hsyncCnt == 340)
{
LocalAudioCycles[AudioClocks] += (short)(AUD[0].Cycle() / 2);
LocalAudioCycles[AudioClocks] += (short)(AUD[1].Cycle() / 2);