From 034337cb2857ce79469ee770d334e089602c1f2e Mon Sep 17 00:00:00 2001 From: tomcw Date: Sat, 27 Oct 2018 18:48:47 +0100 Subject: [PATCH] Saturn: Change cmd-line to -s0 --- source/Applewin.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/source/Applewin.cpp b/source/Applewin.cpp index cb785c33..5dddcdf8 100644 --- a/source/Applewin.cpp +++ b/source/Applewin.cpp @@ -1264,19 +1264,16 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int) uRamWorksExPages = 1; } #endif - else if (strcmp(lpCmdLine, "-saturn") == 0) // 64 = Saturn 64K (4 banks), 128 = Saturn 128K (8 banks) + else if (strcmp(lpCmdLine, "-s0") == 0) { lpCmdLine = GetCurrArg(lpNextArg); lpNextArg = GetNextArg(lpNextArg); // "The boards consist of 16K banks of memory (4 banks for the 64K board, 8 banks for the 128K), accessed one at a time" - Ref: "64K/128K RAM BOARD", Saturn Systems, Ch.1 Introduction(pg-5) - uSaturnBanks = atoi(lpCmdLine) / 16; // number of 16K Banks [1..8] - if (uSaturnBanks > Saturn128K::kMaxSaturnBanks) + if (strcmp(lpCmdLine, "saturn") == 0 || strcmp(lpCmdLine, "saturn128") == 0) uSaturnBanks = Saturn128K::kMaxSaturnBanks; - else - if (uSaturnBanks < 1) - uSaturnBanks = 1; - + else if (strcmp(lpCmdLine, "saturn64") == 0) + uSaturnBanks = Saturn128K::kMaxSaturnBanks/2; } else if (strcmp(lpCmdLine, "-f8rom") == 0) // Use custom 2K ROM at [$F800..$FFFF] {