|
Listslots adding options to command line?
#390646 - 04/12/21 08:54 PM
|
|
|
This is a question about sdlmame but I guess it's pretty much the same for the Windows command line.
How do you specify additional options for slot devices on the command line? For example I can put the 'quadralink' serial card into NuBus slot B by doing this:
Code:
$ mame maciicx -nbb quadralink
But the quadralink card adds 4 serial ports each with additional options for either 'terminal' or 'null_modem'.
Code:
nbb:quadralink:serport0 null_modem RS232 Null Modem terminal Serial Terminal
nbb:quadralink:serport1 null_modem RS232 Null Modem terminal Serial Terminal
nbb:quadralink:serport2 null_modem RS232 Null Modem terminal Serial Terminal
nbb:quadralink:serport3 null_modem RS232 Null Modem terminal Serial Terminal
Is there a way to set this up on the command line before starting the emulation? The only way I've been able to do it is through the Mame UI "slot devices" menu item after the emulation is started.
|
|
|
kmg |
Your Humble Servant
|
|
|
Reged: 04/12/21
|
Posts: 19
|
|
|
Send PM
|
|
|
Re: Listslots adding options to command line?
[Re: mochamame1]
#390647 - 04/12/21 09:28 PM
|
|
|
This work?
Code:
mame maciicx -nbb quadralink -nbb:quadralink:serport0 terminal
I don't have the required roms to check but MAME doesn't barf parsing the command line.
|
|
|
|
Re: Listslots adding options to command line?
[Re: kmg]
#390650 - 04/13/21 02:56 AM
|
|
|
Yes it does! Thanks very much! Now I understand how to specify those extra options on the command line.
|
|
|
kmg |
Your Humble Servant
|
|
|
Reged: 04/12/21
|
Posts: 19
|
|
|
Send PM
|
|
|
Re: Listslots adding options to command line?
[Re: mochamame1]
#390652 - 04/13/21 04:09 AM
|
|
|
Excellent! Yeah, the MAME documentation could really use a few fleshed-out examples from different systems under its description of the very useful -listslots command line option. It's not entirely clear that the "SLOT NAME" column there can be used as a command line option with a dash and that it can be followed by any argument next to it in the "SLOT OPTIONS" column. Even less clear is the fact that when you do say:
Code:
$ mame maciicx -nbb quadralink -listslots
that MAME gives you all the children SLOT NAMES of the quadralink and that you can then use "-nbb:quadralink:serport0" etc. Not everybody is a coder that understands how MAME's device and slot hierarchy works!
|
|
|
|
Re: Listslots adding options to command line?
[Re: kmg]
#390653 - 04/13/21 04:10 AM
|
|
|
Quote:
Code:
mame maciicx -nbb quadralink -nbb:quadralink:serport0 terminal
I don't have the required roms to check but MAME doesn't barf parsing the command line.
There's also an easy way to check an option specification like this whether or not you have the ROMs: the -listdevices command parses slot options and includes all selected ones in its output.
|
|
|
kmg |
Your Humble Servant
|
|
|
Reged: 04/12/21
|
Posts: 19
|
|
|
Send PM
|
|
|
Re: Listslots adding options to command line?
[Re: AJR Hacker]
#390654 - 04/13/21 04:42 AM
|
|
|
Cool, thanks. The command line docs actually tell us that for -listdevices but I'm not sure I knew Tend to use -listslots for figuring out command line stuff and -listdevices more just for edification.
|
|
|
|
Re: Listslots adding options to command line?
[Re: kmg]
#390655 - 04/13/21 07:21 AM
|
|
|
Thanks also for the tip about -listdevices. I knew about this command but didn't realize that similar to -listslots it also gives you additional information if you first specify a slot option.
Code:
$ mame maciicx -listdevices Driver maciicx (Macintosh IIcx): Macintosh IIcx . . . nb9 NuBus slot 48gc Apple 4*8 video card 48gc_screen Video Screen @ 25.17 MHz nba NuBus slot nbb NuBus slot ncr5380 NCR 5380 SCSI @ 7.83 MHz nubus NuBus palette palette . . .
But if you do it like this you get more info:
Code:
$ mame maciicx -nbb quadralink -listdevices Driver maciicx (Macintosh IIcx): Macintosh IIcx . . . nb9 NuBus slot 48gc Apple 4*8 video card 48gc_screen Video Screen @ 25.17 MHz nba NuBus slot nbb NuBus slot quadralink Applied Engineering Quadralink serial card scc1 Zilog Z8530 SCC @ 3.68 MHz cha Z80 SCC Channel chb Z80 SCC Channel scc2 Zilog Z8530 SCC @ 3.68 MHz cha Z80 SCC Channel chb Z80 SCC Channel serport0 RS232 Port serport1 RS232 Port serport2 RS232 Port serport3 RS232 Port ncr5380 NCR 5380 SCSI @ 7.83 MHz nubus NuBus palette palette . . .
|
|
|