Commit Graph

15598 Commits

Author SHA1 Message Date
Aaron Giles
f3de08a9f8 Created ioport_manager and moved the port list to it.
Removed global port lookups, now all lookups must be
done through device_t::ioport().
2012-04-22 05:07:46 +00:00
R. Belmont
094ba4f266 Another Clang fix [Balrog] 2012-04-22 02:47:03 +00:00
Michaël Banaan Ananas
0866030f2f some updates, nothing to see yet from the outside 2012-04-22 02:41:47 +00:00
Michaël Banaan Ananas
7936bd18b7 keys for the other game too, from andreas 2012-04-22 01:03:06 +00:00
Brian Troha
806c214597 paradise.c: Correct Penky Dipswitch chart from manual - NW 2012-04-21 23:42:20 +00:00
Brian Troha
b41e16264b pokechmp.c: Correct dipswitches as per manual and add dipswitch locations. [Brian Troha] 2012-04-21 23:26:27 +00:00
Brian Troha
2cf4aa7f80 sangho.c: Filled in some dipswitches for Sexy Boom & Puzzle Star and added dipswitch locations. [Brian Troha] 2012-04-21 23:07:44 +00:00
Brian Troha
09dc79eb51 sliver.c: Minor DSW name change - NW 2012-04-21 21:23:42 +00:00
Brian Troha
d274892de4 sliver.c: Filled in / Corrected all dipswitches for Sliver and added dipswitch locations [Brian Troha] 2012-04-21 21:20:18 +00:00
Brian Troha
0a8eb0f2e6 gumbo.c: Added dipswitch locations to all sets in the driver. [Brian Troha] 2012-04-21 20:46:41 +00:00
Brian Troha
368b5e3fff paradise.c: Corrected Difficulty DSW for Penky and added notes about alternate DSW settings as found in scanned Pins & Dip manual. [Brian Troha] 2012-04-21 20:22:32 +00:00
Michaël Banaan Ananas
655ea9373f small update 2012-04-21 20:00:18 +00:00
Miodrag Milanovic
fa0beabf41 fix for default attribute in slotoption of xml output (no whatsnew) 2012-04-21 16:07:01 +00:00
smf-
4897746866 and the rest... 2012-04-21 11:46:16 +00:00
smf-
85236463a6 set correct region size and endian for flash roms. 2012-04-21 11:44:32 +00:00
Miodrag Milanovic
7d0cdbf5b9 Sync with MESS (nw) 2012-04-21 08:47:50 +00:00
Michaël Banaan Ananas
2d07e5aa47 amaticmg.c: figured out encryption [Andreas Naive] 2012-04-21 00:25:21 +00:00
Michaël Banaan Ananas
685bfe7ed6 new NOT WORKING game
----------------------
Golden Arrow [hap, Kevin Mullins]
2012-04-20 23:38:29 +00:00
Michaël Banaan Ananas
20c8d254d6 (unkmeyco -> casbjack) 2012-04-20 21:24:48 +00:00
Michaël Banaan Ananas
85ea0671ca (defaulting LOG to off) 2012-04-20 20:40:44 +00:00
Aaron Giles
5594694605 Make memory shares follow the same pattern as memory
regions and memory banks, accessible only via the device.
2012-04-20 19:57:41 +00:00
Michaël Banaan Ananas
95fcb3ceec (renamed BITSWITCH -> BSW, and state/machine wldarrow -> meyc8080) 2012-04-20 16:41:23 +00:00
Scott Stone
b7a1d964e0 CPS-3 update [Team CPS-1]:
* Fixed CD Catalog # for jojoba 990927
  and properly renamed the chd
* Realigned the games table
2012-04-20 16:34:05 +00:00
Aaron Giles
0466e27746 Cleaned up required_/optional_<object> templates.
Added new ones for memory banks and memory regions.
Removed debugging verbose printfs.
2012-04-20 16:08:24 +00:00
Scott Stone
4d32568ca0 Refactored a few things related to reels and use of layouts allowing for more function with less work [David Haywood]
Comment:  I need to check a few more things, see how bad performance gets if we force some elements to render each update rather than using cached bitmaps, the idea of ending up with up to 200,000 temporary bitmaps for each 16 segment LED with the existing code is quite frankly horrendous, but from what I understand it's entirely possible it could happen.
2012-04-20 14:51:24 +00:00
Miodrag Milanovic
f841751e50 Sync with MESS (no whatsnew) 2012-04-20 09:59:23 +00:00
Miodrag Milanovic
c9deec8e1d fix for 16bit device callback from Judge (no whatsnew) 2012-04-20 07:12:43 +00:00
Aaron Giles
b486b4d040 Typo fix. Also forgot to mention in the last
whatsnew that the SSIO PROM has been moved
to within the Midway SSIO device now.
2012-04-20 05:58:34 +00:00
Aaron Giles
18f33f4eff Changed device->subregion to device->memregion. Moved
memory_region management into the memory manager instead
of directly in the machine. Hid the global region method;
now all regions must be looked up relative to a device.

If you're a member function, you can just use memregion("tag") 
directly. If you're a global function or a device referencing
global regions, use machine().root_device().memregion("tag")
to look up regions relative to the root.

S&R to convert all references:

machine([()]*)\.region
machine\1\.root_device\(\).subregion

Then remove redundant machine().root_device() within src/mame:

([ \t])machine\(\)\.root_device\(\)\.
\1

And use state->memregion() if we have a state variable present:

(state *= *[^;]+driver_data[^}]+)([^ \t]*)machine[()]*\.root_device\(\)\.
\1state->

Finally some cleanup:

screen.state->
state->

device->state->
state->

space->state->
state->

And a few hand-tweaks.
2012-04-20 05:54:39 +00:00
Aaron Giles
776d29c90f Memory banks are now device-relative only. Global lookups
are private. Renamed device_t::subbank to device_t::membank
and updated a few remaining users of the global lookup.
2012-04-19 20:59:50 +00:00
Aaron Giles
b5b7808cb7 Remove global memory banking functions in favor of referencing
subbanks of a device and directly acting on them.

First round S&R:

memory_configure_bank( *)\(( *)([^,]+), *([^,]+), *
\3.root_device().subbank\1\(\2\4\2\)->configure_entries\1\(\2

memory_configure_bank_decrypted( *)\(( *)([^,]+), *([^,]+), *
\3.root_device().subbank\1\(\2\4\2\)->configure_decrypted_entries\1\(\2

memory_set_bank( *)\(( *)([^,]+), *([^,]+), *
\3.root_device().subbank\1\(\2\4\2\)->set_entry\1\(\2

memory_set_bankptr( *)\(( *)([^,]+), *([^,]+), *
\3.root_device().subbank\1\(\2\4\2\)->set_base\1\(\2


Then convert single entries to simpler form:

configure_entries( *\( *[^,]+, *)1 *, *([^,]+),[^)]+\)
configure_entry\1\2\)

configure_decrypted_entries( *\( *[^,]+, *)1 *, *([^,]+),[^)]+\)
configure_decrypted_entry\1\2\)


Remove renundant root_device lookup for methods:

([ \t])machine\(\)\.root_device\(\)\.
\1


Use state-> instead of root_device lookup where available (this
one must be done by hand unfortunately):

([^ \t]*)machine[()]*\.root_device\(\)\.
state->
2012-04-19 20:35:01 +00:00
Aaron Giles
70eab27301 Fix most remaining regressions. 2012-04-19 07:47:35 +00:00
Aaron Giles
c931255796 Use an OKI address map instead of memcpy to handle ADPCM
banking for the Williams ADPCM sound board.
2012-04-18 20:02:48 +00:00
Michaël Banaan Ananas
97f2edd3f4 (rm note about missing sound) 2012-04-18 19:48:09 +00:00
Michaël Banaan Ananas
c47f8d57b0 small cleanup on OKI access 2012-04-18 19:46:34 +00:00
Aaron Giles
523c35daed Now that memory_bank is exposed as an object, removed all the global
bank manipulation APIs from memory_manager, and instead added a
memory_manager::bank("tag") function which will return a pointer to
the representative memory_bank. Operations can then be performed as
expected directly on the memory_bank. Most code did not need an update
yet, as I haven't done the search/replace to move away from global
functions (which still exist for now).

Added device_t::subbank("tag") to return a bank that is owned by the
given device.

Switched YM2151 interfaces over to devcb callbacks.

Created proper sound devices for the Williams NARC, CVSD and ADPCM
sound boards. Updated midyunit, midtunit, williams(joust2), and
mcr68(archrivl/pigskin/trisport) to use the new devices.
2012-04-18 19:40:59 +00:00
Michaël Banaan Ananas
6718512f0a check if voice is playing *before* possibly starting an invalid sample (MT bug 485) 2012-04-18 19:39:55 +00:00
Scott Stone
55265da530 Preliminary work on Scorpion 4 lamps + more set resorting [David Haywood]
Discovered similarities in gotcha.c to Data East Bootleg sprites, also happening to be the closest implementation to Silver Millennium in the sources.  Refactored each based on this information.  [David Haywood]
2012-04-18 18:25:26 +00:00
Miodrag Milanovic
912f74766d Made TIA modern device (no whatsnew) 2012-04-18 17:25:26 +00:00
smf-
33cddd265e apply bitswap/xor to all mem(n) roms except the header 2012-04-18 14:01:44 +00:00
Scott Stone
bcbfc417de Added some better command handling to stop SC4 games from overwriting their attract mode messages with garbage. [James Wallace]
Comment:  Unfortunately MAME's artwork system can't cope with the changes in brightness and flashing, so we just ignore them entirely.
2012-04-17 23:57:56 +00:00
Michaël Banaan Ananas
fee0f44df1 rm old and obsolete hack 2012-04-17 23:35:40 +00:00
Michaël Banaan Ananas
7144c2ae78 get rid of duplicated code 2012-04-17 23:17:25 +00:00
Aaron Giles
80b23c9ec0 audio/mcr -> audio/midway 2012-04-17 18:55:15 +00:00
Miodrag Milanovic
ed505a2205 Removed the rest DIRECT_UPDATE_HANDLERS from mame section (no whatsnew) 2012-04-17 16:18:43 +00:00
Michaël Banaan Ananas
8be5555e52 (update prev commit) 2012-04-17 16:15:20 +00:00
Michaël Banaan Ananas
dc38487ba1 exponential volume table sounds much better (music doesn't drown sfx anymore) 2012-04-17 15:58:57 +00:00
Miodrag Milanovic
257bd20979 some DIRECT_UPDATE_HANDLER - > DIRECT_UPDATE_MEMBER (nw) 2012-04-17 15:00:27 +00:00
Aaron Giles
9091010c87 Broke dependency between mcr68 and mcr by creating
sound devices for each of the Midway 8-bit sound
boards. This will also aid in eventually hooking them
up to pinballs.

Enhanced the mixer interface support to allow for
more than one output line. To use this you need to
use the MCFG_MIXER_ROUTE macro instead of 
MCFG_SOUND_ROUTE so that the mixer output index can
be specified. See midway_ssio_device for an example.
2012-04-17 14:58:05 +00:00
Scott Stone
59769e3f30 new clones
------------
Hot Mind (Fit of Fighting Hardware) [f20v] (NOT WORKING)
2012-04-17 14:46:33 +00:00