Added cmd-line option: -s7 empty to remove the HDD Controller card from slot 7
This commit is contained in:
parent
2ba55e0c12
commit
419238bb54
2 changed files with 21 additions and 6 deletions
|
@ -12,13 +12,21 @@
|
|||
follows:
|
||||
</p>
|
||||
-d1 <pathname><br>
|
||||
Start with a disk in drive-1 (and auto power-on the Apple II)<br><br>
|
||||
Start with a floppy disk in drive-1 (and auto power-on the Apple II)<br><br>
|
||||
-d2 <pathname><br>
|
||||
Start with a disk in drive-2<br><br>
|
||||
Start with a floppy disk in drive-2<br><br>
|
||||
-h1 <pathname><br>
|
||||
Start with hard disk 1 plugged-in (and auto power-on the Apple II). NB. Hard disk controller card gets enabled.<br><br>
|
||||
-h2 <pathname><br>
|
||||
Start with hard disk 2 plugged-in. NB. Hard disk controller card gets enabled.<br><br>
|
||||
-s7 empty<br>
|
||||
Remove the hard disk controller card from slot 7.<br>
|
||||
Useful to allow a floppy disk to boot from slot 6, drive 1. Use in combination with -d1.<br><br>
|
||||
-r <number of pages><br>
|
||||
Emulate a RAMworks III card with 1 to 127 pages (each page is 64K, giving a max of 8MB)<br><br>
|
||||
-load-state <savestate><br>
|
||||
Load a save-state file<br>
|
||||
NB. This takes precedent over the -d1,d2,h1,h2,s7 and -r switches.<br><br>
|
||||
-f<br>
|
||||
Start in full-screen mode<br><br>
|
||||
-fs-height=<best|nnnn><br>
|
||||
|
@ -28,8 +36,6 @@
|
|||
<li>nnnn: select a specific resolution with height=nnnn pixels</li>
|
||||
</ul>
|
||||
NB. This changes the display resolution (and restores on exit).<br><br>
|
||||
-r <number of pages><br>
|
||||
Emulate a RAMworks III card with 1 to 127 pages (each page is 64K, giving a max of 8MB)<br><br>
|
||||
-f8rom <rom-file><br>
|
||||
Use custom 2K ROM at [$F800..$FFFF]. <rom-file> must be 2048 bytes long<br><br>
|
||||
-printscreen<br>
|
||||
|
@ -56,8 +62,6 @@
|
|||
(current memory address high byte)
|
||||
i.e. 00:20 20 20 20 ... for page $20</li>
|
||||
</ul>
|
||||
-load-state <savestate><br>
|
||||
Load a save-state file<br><br>
|
||||
-modem<br>
|
||||
Shorthand for passing -dtr -dcd -dsr<br>
|
||||
Use with GBBS Pro (or any other BBS package). See the <a href="http://www.callapple.org/documentation/books/gbbs-pro-2-2/">GBBS Pro 2.2</a> book from Call-A.P.P.L.E.
|
||||
|
|
|
@ -1021,6 +1021,7 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int)
|
|||
bool bSetFullScreen = false;
|
||||
bool bBoot = false;
|
||||
bool bChangedDisplayResolution = false;
|
||||
bool bSlot7Empty = false;
|
||||
UINT bestWidth = 0, bestHeight = 0;
|
||||
LPSTR szImageName_drive[NUM_DRIVES] = {NULL,NULL};
|
||||
LPSTR szImageName_harddisk[NUM_HARDDISKS] = {NULL,NULL};
|
||||
|
@ -1068,6 +1069,13 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int)
|
|||
lpNextArg = GetNextArg(lpNextArg);
|
||||
szImageName_harddisk[HARDDISK_2] = lpCmdLine;
|
||||
}
|
||||
else if (strcmp(lpCmdLine, "-s7") == 0)
|
||||
{
|
||||
lpCmdLine = GetCurrArg(lpNextArg);
|
||||
lpNextArg = GetNextArg(lpNextArg);
|
||||
if (strcmp(lpCmdLine, "empty") == 0)
|
||||
bSlot7Empty = true;
|
||||
}
|
||||
else if (strcmp(lpCmdLine, "-load-state") == 0)
|
||||
{
|
||||
lpCmdLine = GetCurrArg(lpNextArg);
|
||||
|
@ -1351,6 +1359,9 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int)
|
|||
|
||||
InsertHardDisks(szImageName_harddisk, bBoot);
|
||||
szImageName_harddisk[HARDDISK_1] = szImageName_harddisk[HARDDISK_2] = NULL; // Don't insert on a restart
|
||||
|
||||
if (bSlot7Empty)
|
||||
HD_SetEnabled(false);
|
||||
}
|
||||
|
||||
MemInitialize();
|
||||
|
|
Loading…
Add table
Reference in a new issue