From c948865eceabc8944b887201d8de66be131cbc06 Mon Sep 17 00:00:00 2001 From: tudnai Date: Mon, 27 Jul 2020 23:55:55 -0700 Subject: [PATCH] First preparations for configurable CPU definitions --- A2Mac.xcodeproj/project.pbxproj | 4 + .../xcshareddata/xcschemes/A2Mac.xcscheme | 4 +- src/cpu/6502.c | 2 +- src/cpu/6502_std.h | 229 ++++++++++++++++++ src/cpu/6502_und.h | 183 ++++++++++++++ 5 files changed, 419 insertions(+), 3 deletions(-) create mode 100644 src/cpu/6502_std.h create mode 100644 src/cpu/6502_und.h diff --git a/A2Mac.xcodeproj/project.pbxproj b/A2Mac.xcodeproj/project.pbxproj index 878eea6..b863807 100644 --- a/A2Mac.xcodeproj/project.pbxproj +++ b/A2Mac.xcodeproj/project.pbxproj @@ -310,6 +310,8 @@ 320B3FC324AD88B0005EA133 /* power.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = power.png; sourceTree = ""; }; 320B4FC024B182DD00070038 /* Apple Disk II.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Apple Disk II.png"; sourceTree = ""; }; 320F2A8724CFD74000671B35 /* Steve2Icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Steve2Icon.icns; sourceTree = ""; }; + 320F2A8924CFFBE300671B35 /* 6502_std.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = 6502_std.h; sourceTree = ""; }; + 320F2A8A24D0001600671B35 /* 6502_und.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = 6502_und.h; sourceTree = ""; }; 323D042D248980600086A901 /* Preferences.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Preferences.storyboard; sourceTree = ""; }; 323D042F24898AB70086A901 /* PreferencesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesViewController.swift; sourceTree = ""; }; 323D04312489BFD80086A901 /* PreferencesWindowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesWindowController.swift; sourceTree = ""; }; @@ -675,6 +677,8 @@ 32439F7522ECD8AD0077AAE0 /* instructions */, 32439F8522ECD8AD0077AAE0 /* 6502.h */, 32439F7422ECD8AD0077AAE0 /* 6502.c */, + 320F2A8924CFFBE300671B35 /* 6502_std.h */, + 320F2A8A24D0001600671B35 /* 6502_und.h */, 32440B69247CA1CE000F9DA1 /* 65C02.c */, 32440B67247CA1AF000F9DA1 /* 6502_vanilla.c */, ); diff --git a/A2Mac.xcodeproj/xcshareddata/xcschemes/A2Mac.xcscheme b/A2Mac.xcodeproj/xcshareddata/xcschemes/A2Mac.xcscheme index 04557f2..9ce3ecb 100644 --- a/A2Mac.xcodeproj/xcshareddata/xcschemes/A2Mac.xcscheme +++ b/A2Mac.xcodeproj/xcshareddata/xcschemes/A2Mac.xcscheme @@ -61,8 +61,8 @@