added WF8 bankswitching (TODO: doc and autodetect)

(cherry picked from commit 4814f216cd69f5382b85f961e8729c4fc28f115e)
This commit is contained in:
thrust26 2024-05-27 20:46:17 +02:00
parent 49166ca994
commit f65a7b79bd
4 changed files with 25 additions and 1 deletions

View File

@ -129,6 +129,7 @@ Bankswitch::BSList = {{
{ "UASW" , "UASW (8K UA swapped banks)" }, { "UASW" , "UASW (8K UA swapped banks)" },
{ "WD" , "WD (Pink Panther)" }, { "WD" , "WD (Pink Panther)" },
{ "WDSW" , "WDSW (Pink Panther, bad)" }, { "WDSW" , "WDSW (Pink Panther, bad)" },
{ "WF8" , "WF8 (Coleco, white label)" },
{ "X07" , "X07 (64K AtariAge)" }, { "X07" , "X07 (64K AtariAge)" },
#if defined(CUSTOM_ARM) #if defined(CUSTOM_ARM)
{ "CUSTOM" , "CUSTOM (ARM)" } { "CUSTOM" , "CUSTOM (ARM)" }
@ -193,6 +194,7 @@ Bankswitch::Sizes = {{
{ 8_KB, 8_KB }, // _UASW { 8_KB, 8_KB }, // _UASW
{ 8_KB, 8_KB }, // _WD { 8_KB, 8_KB }, // _WD
{ 8_KB, 8_KB+5 }, // _WDSW { 8_KB, 8_KB+5 }, // _WDSW
{ 8_KB, 8_KB }, // _WF8
{ 64_KB, 64_KB }, // _X07 { 64_KB, 64_KB }, // _X07
#if defined(CUSTOM_ARM) #if defined(CUSTOM_ARM)
{ Bankswitch::any_KB, Bankswitch::any_KB } { Bankswitch::any_KB, Bankswitch::any_KB }
@ -286,6 +288,7 @@ Bankswitch::ExtensionMap Bankswitch::ourExtensions = {
{ "UASW" , Bankswitch::Type::_UASW }, { "UASW" , Bankswitch::Type::_UASW },
{ "WD" , Bankswitch::Type::_WD }, { "WD" , Bankswitch::Type::_WD },
{ "WDSW" , Bankswitch::Type::_WDSW }, { "WDSW" , Bankswitch::Type::_WDSW },
{ "WF8" , Bankswitch::Type::_WF8 },
{ "X07" , Bankswitch::Type::_X07 } { "X07" , Bankswitch::Type::_X07 }
}; };
@ -346,5 +349,6 @@ Bankswitch::NameToTypeMap Bankswitch::ourNameToTypes = {
{ "UASW" , Bankswitch::Type::_UASW }, { "UASW" , Bankswitch::Type::_UASW },
{ "WD" , Bankswitch::Type::_WD }, { "WD" , Bankswitch::Type::_WD },
{ "WDSW" , Bankswitch::Type::_WDSW }, { "WDSW" , Bankswitch::Type::_WDSW },
{ "WF8" , Bankswitch::Type::_WF8 },
{ "X07" , Bankswitch::Type::_X07 } { "X07" , Bankswitch::Type::_X07 }
}; };

View File

@ -44,7 +44,8 @@ class Bankswitch
_CM, _CTY, _CV, _DF, _DFSC, _DPC, _DPCP, _E0, _CM, _CTY, _CV, _DF, _DFSC, _DPC, _DPCP, _E0,
_E7, _EF, _EFSC, _F0, _F4, _F4SC, _F6, _F6SC, _E7, _EF, _EFSC, _F0, _F4, _F4SC, _F6, _F6SC,
_F8, _F8SC, _FA, _FA2, _FC, _FE, _GL, _MDM, _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 #ifdef CUSTOM_ARM
_CUSTOM, _CUSTOM,
#endif #endif

View File

@ -607,6 +607,7 @@
<ClCompile Include="..\..\debugger\gui\CartWDWidget.cxx"> <ClCompile Include="..\..\debugger\gui\CartWDWidget.cxx">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\debugger\gui\CartWF8Widget.cxx" />
<ClCompile Include="..\..\debugger\gui\CartX07Widget.cxx"> <ClCompile Include="..\..\debugger\gui\CartX07Widget.cxx">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
</ClCompile> </ClCompile>
@ -684,6 +685,7 @@
<ClCompile Include="..\..\emucore\CartMVC.cxx" /> <ClCompile Include="..\..\emucore\CartMVC.cxx" />
<ClCompile Include="..\..\emucore\CartTVBoy.cxx" /> <ClCompile Include="..\..\emucore\CartTVBoy.cxx" />
<ClCompile Include="..\..\emucore\CartWD.cxx" /> <ClCompile Include="..\..\emucore\CartWD.cxx" />
<ClCompile Include="..\..\emucore\CartWF8.cxx" />
<ClCompile Include="..\..\emucore\CompuMate.cxx" /> <ClCompile Include="..\..\emucore\CompuMate.cxx" />
<ClCompile Include="..\..\emucore\ControllerDetector.cxx" /> <ClCompile Include="..\..\emucore\ControllerDetector.cxx" />
<ClCompile Include="..\..\emucore\DispatchResult.cxx" /> <ClCompile Include="..\..\emucore\DispatchResult.cxx" />
@ -1562,6 +1564,7 @@
<ClInclude Include="..\..\debugger\gui\CartWDWidget.hxx"> <ClInclude Include="..\..\debugger\gui\CartWDWidget.hxx">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\debugger\gui\CartWF8Widget.hxx" />
<ClInclude Include="..\..\debugger\gui\CartX07Widget.hxx"> <ClInclude Include="..\..\debugger\gui\CartX07Widget.hxx">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug-NoDebugger|x64'">true</ExcludedFromBuild>
</ClInclude> </ClInclude>
@ -1646,6 +1649,7 @@
<ClInclude Include="..\..\emucore\CartMVC.hxx" /> <ClInclude Include="..\..\emucore\CartMVC.hxx" />
<ClInclude Include="..\..\emucore\CartTVBoy.hxx" /> <ClInclude Include="..\..\emucore\CartTVBoy.hxx" />
<ClInclude Include="..\..\emucore\CartWD.hxx" /> <ClInclude Include="..\..\emucore\CartWD.hxx" />
<ClInclude Include="..\..\emucore\CartWF8.hxx" />
<ClInclude Include="..\..\emucore\CompuMate.hxx" /> <ClInclude Include="..\..\emucore\CompuMate.hxx" />
<ClInclude Include="..\..\emucore\ConsoleIO.hxx" /> <ClInclude Include="..\..\emucore\ConsoleIO.hxx" />
<ClInclude Include="..\..\emucore\ConsoleTiming.hxx" /> <ClInclude Include="..\..\emucore\ConsoleTiming.hxx" />

View File

@ -1224,6 +1224,12 @@
<ClCompile Include="SerialPortWINDOWS.cxx"> <ClCompile Include="SerialPortWINDOWS.cxx">
<Filter>Source Files\os</Filter> <Filter>Source Files\os</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\emucore\CartWF8.cxx">
<Filter>Source Files\emucore</Filter>
</ClCompile>
<ClCompile Include="..\..\debugger\gui\CartWF8Widget.cxx">
<Filter>Source Files\debugger\gui</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="..\..\emucore\AtariVox.hxx"> <ClInclude Include="..\..\emucore\AtariVox.hxx">
@ -2483,6 +2489,15 @@
<ClInclude Include="Windows.hxx"> <ClInclude Include="Windows.hxx">
<Filter>Header Files\os</Filter> <Filter>Header Files\os</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\common\md5type.hxx">
<Filter>Header Files\common</Filter>
</ClInclude>
<ClInclude Include="..\..\emucore\CartWF8.hxx">
<Filter>Header Files\emucore</Filter>
</ClInclude>
<ClInclude Include="..\..\debugger\gui\CartWF8Widget.hxx">
<Filter>Header Files\debugger\gui</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="stella.ico"> <None Include="stella.ico">