Date: Sun, Nov 7, 2010 at 3:43 PM
Subject: [patch] Split entangled drivers
To: submit@mamedev.org
Cc: atariace@hotmail.com
Hi mamedev,
This patch takes some driver_device classes that cover multiple
drivers and splits them so that each driver gets their own
driver_device class. In most cases, these drivers got entangled
because of audio/mcu code that was shared between multiple drivers.
The first patch breaks that dependency by making a separate base class
for the common code and having each driver_device derive from that.
That solution isn't really the typical MAME approach, so the second
incremental patch changes them into proper devices.
espial/marineb/zodiak
- common code duplicated
m52/m57/m58/m62/travrusa
- common code in audio/irem.c
junofrst/pooyan/rallyx/rocnrope/timeplt/tutankm
- common code in audio/timeplt.c
hyperspt/sbasketb/trackfld/yiear
- common code in audio/trackfld and audio/hyprolyb.c
40love/bking/buggychl/msisaac
- common code in machine/buggychl.c
This takes full pathname/filename to the font, and the name can have styles
appended as in Windows: [b] for bold, [i] for italic, [s] for strikethrough,
and [u] for underlined. Fonts are rendered at a size of 120 points and scaled
down by the core, which looks superb on high-res displays. (Liberation Sans
that comes with most recent distros looks really good).
Warning: Linux/BSD builds now require SDL_ttf 2.x. On Fedora the required
package names are "SDL_ttf" and "SDL_ttf-devel".
---------------------------------------------------
Bygone [Cananas, Mr. Do, S. Brown, J. Bijl,ranger_lennier, F. Xerri, Gor, Kevin Eshbach, Smitdogg, Tormod, Guru, Tomasz Slanina , The
Dumping Union]
Added Motor 0 & 1, and Zings sounds.
Zings sound not hooked up until address for Fires & Zings is found.
Fixed operation of DISCRETE_COUNTER_7492 [Derrick Renaud]
---------- Not Whats New stuff ----------
If anyone can figure out the address/bits for the Zings/Fires sounds that would be great. I figured out all the others. FWIW, it does not seem to be any of the bits at 0x1000, The bits should be high, then go low to trigger the sound effect.
Zings has a oneshot with a minimum 0.2s length which is extended while the trigger is low.
Fires goes low to fully charge a cap. As long as it is low, the shot will be at full volume, then decay after it goes high.
Thanks,
D.
. maglord/maglordh - Mixed up crc's, fixed
. flipshot - Added correct p1
. kotm2 - Tagged MVS AND AES VERSION
. miexchng - Added correct c3/c4
. Updated game pcb info
. Continued to document mask ROM types
Removed old DISCRETE_74LS624 code and replaced it with new 74LS629 based code.
Updated Mario to use new DISCRETE_74LS624 and DISCRETE_XTIME_logic modules.
----
Some not whats.new stuff:
I also fixed the regression to Galaxian.
I made a DISCRETE_DECLARE_CONTEXT() macro to clean up the discrete module code and make it easier for any future possible C++ conversion.