ok once more (bwidow requested up to over 140,000)

git-svn-id: svn://dspnet.fr/mame/trunk@23206 749742ba-7341-0410-aadc-df50b521781e
emuopts.c: Added a new option -statename which allows to specify the location of state saving, 
relative to -state_directory (whose usage remains unchanged). Syntax is basically the same 
as snapname, allowing for the  / character as path separator, %g as the driver name, and 
%d_[media] as the image name mounted in the "media" device. 

For example, using -statename foo/%g when running "mame wrally" will store save states into 
the folder sta/foo/wrally/ ; using -statename %g/%d_cart when running "mess nes -cart smb" 
will store save states into the folder sta/nes/smb/ ; using -statename %g/%d_cdrm when
running "mess pce -cart cdsys -cdrm draculax" will store save states into sta/pce/draculax/
Specifying a media switch which is not available (e.g. %d_cdrm in a c64) or a media switch
where no image is mounted (e.g. %d_cdrm in pce while playing a hucard game) will revert
the option to its default value %g and save states will be stored in sta/*gamename*/ as in
previous versions. [Fabio Priuli]

Needless to say, this option is very useful with home computers and consoles in MESS since it
allows to have 36 save slots for each game instead of 36 for the whole system library

Notice that a clean compile is required, due to the addition to the running_machine class

git-svn-id: svn://dspnet.fr/mame/trunk@23207 749742ba-7341-0410-aadc-df50b521781e
msm5205.c: modernized the device. [Fabio Priuli]

git-svn-id: svn://dspnet.fr/mame/trunk@23208 749742ba-7341-0410-aadc-df50b521781e
(MESS) pce.c: moved more functions into the class. nw.

git-svn-id: svn://dspnet.fr/mame/trunk@23209 749742ba-7341-0410-aadc-df50b521781e
modernized rest in pce (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@23210 749742ba-7341-0410-aadc-df50b521781e
(MESS) pce.c: cleanups. nw.

git-svn-id: svn://dspnet.fr/mame/trunk@23211 749742ba-7341-0410-aadc-df50b521781e
z80dart: Refactored dart_channel to be of device_t kin. (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@23212 749742ba-7341-0410-aadc-df50b521781e
(MESS) Applix: added cassette (not working)

git-svn-id: svn://dspnet.fr/mame/trunk@23213 749742ba-7341-0410-aadc-df50b521781e
Added ds2401 rom loading to digital i/o board, rather than specifying it in each game. Fixes Mambo A Go-Go booting. [smf]

git-svn-id: svn://dspnet.fr/mame/trunk@23214 749742ba-7341-0410-aadc-df50b521781e
z80dart: Refactored z80dart_channel to implement device_serial_interface. (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@23215 749742ba-7341-0410-aadc-df50b521781e
(MESS) Applix: Reduced tag lookups, again

git-svn-id: svn://dspnet.fr/mame/trunk@23216 749742ba-7341-0410-aadc-df50b521781e
MT 04420 [Robbbert]

git-svn-id: svn://dspnet.fr/mame/trunk@23217 749742ba-7341-0410-aadc-df50b521781e
MT 04839 [Robbbert]

git-svn-id: svn://dspnet.fr/mame/trunk@23218 749742ba-7341-0410-aadc-df50b521781e
updated comment (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@23219 749742ba-7341-0410-aadc-df50b521781e
z80dart: Cleanup. (nw)

git-svn-id: svn://dspnet.fr/mame/trunk@23220 749742ba-7341-0410-aadc-df50b521781e
harddriv.c: labeled ADC inputs, nw

git-svn-id: svn://dspnet.fr/mame/trunk@23221 749742ba-7341-0410-aadc-df50b521781e
MT 04836 [Robbbert]

git-svn-id: svn://dspnet.fr/mame/trunk@23222 749742ba-7341-0410-aadc-df50b521781e
Harem: Makes more sense to have three lives as default, nw

git-svn-id: svn://dspnet.fr/mame/trunk@23223 749742ba-7341-0410-aadc-df50b521781e
Flipped hcrash inputs to use WEC Le Mans 24-type, noticed that there are two bugs in it too, nw

git-svn-id: svn://dspnet.fr/mame/trunk@23225 749742ba-7341-0410-aadc-df50b521781e
(MESS) pce.c: moved the cd addon to be a separate device. now save states 
work in the driver for HuCard games, not yet for CD games. [Fabio Priuli]

git-svn-id: svn://dspnet.fr/mame/trunk@23226 749742ba-7341-0410-aadc-df50b521781e