RamWorks III: default to 2MiB (32x 64K banks). (#478)

This commit is contained in:
tomcw 2025-01-19 20:47:48 +00:00
parent 02b6bbdbb5
commit ef088e49ae
4 changed files with 5 additions and 5 deletions

View File

@ -89,9 +89,9 @@
Remove the No-Slot clock (NSC).<br><br>
-aux &lt;empty|std80|ext80|rw3&gt;<br>
Remove ('empty') or insert 80-Column('std80'), Extended 80-Column('ext80') or RamWorks III('rw3') card into auxiliary slot in Apple //e.<br>
NB. 'rw3' will default to 8128KiB (127 banks of 64K) unless overriden by -r switch.<br><br>
NB. 'rw3' will default to 2MiB (32 banks of 64K) unless overriden by -r switch.<br><br>
-r &lt;number of banks&gt;<br>
Emulate a RamWorks III card with 1 to 256 banks (each bank is 64K, giving a max of 16MB) in the auxiliary slot in an Apple //e machine.<br>
Emulate a RamWorks III card with 1 to 256 banks (each bank is 64K, giving a max of 16MiB) in the auxiliary slot in an Apple //e machine.<br>
(Implicitly inserts a RamWorks III card into the aux slot.)<br><br>
-load-state &lt;savestate&gt;<br>
Load a save-state file (and auto power-on the Apple II).<br>

View File

@ -317,7 +317,7 @@ bool ProcessCmdLine(LPSTR lpCmdLine)
{
g_cmdLine.auxSlotInsert = CT_RamWorksIII;
if (!g_cmdLine.uRamWorksExPages)
g_cmdLine.uRamWorksExPages = kMaxExMemoryBanksRealRW3; // default to ~8MB (ie. the max for the real RW3 card)
g_cmdLine.uRamWorksExPages = kDefaultExMemoryBanksRealRW3;
}
else
{

View File

@ -52,7 +52,7 @@ extern LPBYTE memVidHD;
#ifdef RAMWORKS
const UINT kMaxExMemoryBanks = 256; // 256 * aux mem(64K) + main mem(64K) = 16MB + 64K
const UINT kMaxExMemoryBanksRealRW3 = 127; // Real RW3 was limited to 127x64MB, so ~8MB in total
const UINT kDefaultExMemoryBanksRealRW3 = 32; // Real RamWorks III would default to 2MB
#endif
void RegisterIoHandler(UINT uSlot, iofunction IOReadC0, iofunction IOWriteC0, iofunction IOReadCx, iofunction IOWriteCx, LPVOID lpSlotParameter, BYTE* pExpansionRom);

View File

@ -281,7 +281,7 @@ void LoadConfiguration(bool loadImages)
GetCardMgr().InsertAux(type, noUpdateRegistry);
SetExpansionMemType(type, noUpdateRegistry);
RegLoadValue(regSection.c_str(), REGVALUE_AUX_NUM_BANKS, TRUE, &dwTmp, kMaxExMemoryBanksRealRW3);
RegLoadValue(regSection.c_str(), REGVALUE_AUX_NUM_BANKS, TRUE, &dwTmp, kDefaultExMemoryBanksRealRW3);
SetRamWorksMemorySize(dwTmp, noUpdateRegistry);
}
}