From f65a7b79bd2eb3a22372e4778d7d088974ee457b Mon Sep 17 00:00:00 2001 From: thrust26 Date: Mon, 27 May 2024 20:46:17 +0200 Subject: [PATCH] added WF8 bankswitching (TODO: doc and autodetect) (cherry picked from commit 4814f216cd69f5382b85f961e8729c4fc28f115e) --- src/emucore/Bankswitch.cxx | 4 ++++ src/emucore/Bankswitch.hxx | 3 ++- src/os/windows/Stella.vcxproj | 4 ++++ src/os/windows/Stella.vcxproj.filters | 15 +++++++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/emucore/Bankswitch.cxx b/src/emucore/Bankswitch.cxx index fcda1e67a..71ee27c4c 100644 --- a/src/emucore/Bankswitch.cxx +++ b/src/emucore/Bankswitch.cxx @@ -129,6 +129,7 @@ Bankswitch::BSList = {{ { "UASW" , "UASW (8K UA swapped banks)" }, { "WD" , "WD (Pink Panther)" }, { "WDSW" , "WDSW (Pink Panther, bad)" }, + { "WF8" , "WF8 (Coleco, white label)" }, { "X07" , "X07 (64K AtariAge)" }, #if defined(CUSTOM_ARM) { "CUSTOM" , "CUSTOM (ARM)" } @@ -193,6 +194,7 @@ Bankswitch::Sizes = {{ { 8_KB, 8_KB }, // _UASW { 8_KB, 8_KB }, // _WD { 8_KB, 8_KB+5 }, // _WDSW + { 8_KB, 8_KB }, // _WF8 { 64_KB, 64_KB }, // _X07 #if defined(CUSTOM_ARM) { Bankswitch::any_KB, Bankswitch::any_KB } @@ -286,6 +288,7 @@ Bankswitch::ExtensionMap Bankswitch::ourExtensions = { { "UASW" , Bankswitch::Type::_UASW }, { "WD" , Bankswitch::Type::_WD }, { "WDSW" , Bankswitch::Type::_WDSW }, + { "WF8" , Bankswitch::Type::_WF8 }, { "X07" , Bankswitch::Type::_X07 } }; @@ -346,5 +349,6 @@ Bankswitch::NameToTypeMap Bankswitch::ourNameToTypes = { { "UASW" , Bankswitch::Type::_UASW }, { "WD" , Bankswitch::Type::_WD }, { "WDSW" , Bankswitch::Type::_WDSW }, + { "WF8" , Bankswitch::Type::_WF8 }, { "X07" , Bankswitch::Type::_X07 } }; diff --git a/src/emucore/Bankswitch.hxx b/src/emucore/Bankswitch.hxx index 87d238845..2da2c5397 100644 --- a/src/emucore/Bankswitch.hxx +++ b/src/emucore/Bankswitch.hxx @@ -44,7 +44,8 @@ class Bankswitch _CM, _CTY, _CV, _DF, _DFSC, _DPC, _DPCP, _E0, _E7, _EF, _EFSC, _F0, _F4, _F4SC, _F6, _F6SC, _F8, _F8SC, _FA, _FA2, _FC, _FE, _GL, _MDM, - _MVC, _SB, _TVBOY, _UA, _UASW, _WD, _WDSW, _X07, + _MVC, _SB, _TVBOY, _UA, _UASW, _WD, _WDSW, _WF8, + _X07, #ifdef CUSTOM_ARM _CUSTOM, #endif diff --git a/src/os/windows/Stella.vcxproj b/src/os/windows/Stella.vcxproj index 8966c984d..170d18b3c 100755 --- a/src/os/windows/Stella.vcxproj +++ b/src/os/windows/Stella.vcxproj @@ -607,6 +607,7 @@ true + true @@ -684,6 +685,7 @@ + @@ -1562,6 +1564,7 @@ true + true @@ -1646,6 +1649,7 @@ + diff --git a/src/os/windows/Stella.vcxproj.filters b/src/os/windows/Stella.vcxproj.filters index 366c42c1c..36e2eff2f 100644 --- a/src/os/windows/Stella.vcxproj.filters +++ b/src/os/windows/Stella.vcxproj.filters @@ -1224,6 +1224,12 @@ Source Files\os + + Source Files\emucore + + + Source Files\debugger\gui + @@ -2483,6 +2489,15 @@ Header Files\os + + Header Files\common + + + Header Files\emucore + + + Header Files\debugger\gui +