Commit Graph

10264 Commits

Author SHA1 Message Date
R. Belmont
168ab9c7bc New games added as GAME_NOT_WORKING
-----------------------------------
Faster Than Speed [Cah4e3, R. Belmont]
Wave Runner GP [Cah4e3, R. Belmont]
2010-10-02 19:55:49 +00:00
Angelo Salese
ccf58f9577 Fix for a 32x game 2010-10-02 19:10:16 +00:00
Angelo Salese
b0ea8f45bf Sync MAME with latest megadrive code 2010-10-01 18:38:50 +00:00
Angelo Salese
726845063e Haze: some preliminary Mega CD work 2010-10-01 14:53:16 +00:00
Scott Stone
0e06b974ec Adjustments to allow selecting the sample rate of WAV and AVI file writes even if -nosound is selected. 2010-10-01 11:05:37 +00:00
Tomasz Slanina
515f174659 Fixed OS X compiler warning. 2010-09-30 23:37:57 +00:00
Angelo Salese
fb279c038a Yet more 32x (PWM FIFO) 2010-09-30 18:49:10 +00:00
Angelo Salese
d8c577adc5 Some other refactoring ... 2010-09-30 12:03:56 +00:00
Michaël Banaan Ananas
6086522fb6 mt bugfix
04063: All sets in solomon.c: All characters in the game are missing (player and enemies)
2010-09-30 11:16:41 +00:00
Angelo Salese
e36e09d872 More 32x from Haze 2010-09-30 10:41:28 +00:00
Roberto Fresca
b0ebbeb290 Fixed assert in goldnpkr.c [Aaron Giles] 2010-09-30 08:14:43 +00:00
Aaron Giles
0c9d45f0a2 Fix type found by clang. 2010-09-30 07:04:05 +00:00
Aaron Giles
ce80e373b2 Since PNG writing is used for MNG as well, switch back to default compression
instead of best compression in order to keep the performance reasonable.
2010-09-30 05:19:33 +00:00
Aaron Giles
dc07b3d04a Enable wavwrite (and aviwrite) sound even if -nosound is specified. 2010-09-30 05:15:24 +00:00
Angelo Salese
4a74bdbf24 Another 32x bug-fix 2010-09-30 01:16:24 +00:00
Angelo Salese
8d4b357fa9 Some 32x refactoring from Haze 2010-09-29 19:19:11 +00:00
Angelo Salese
3ccaef0768 Another 32x bugfix from Haze 2010-09-29 17:29:40 +00:00
Angelo Salese
f849dadac0 More 32x improvements by Haze (not worth) 2010-09-29 14:44:20 +00:00
Aaron Giles
0cf6785f97 Fix bug where multiple sampleof attributes could be output, resulting in
invalid XML.
2010-09-29 14:44:12 +00:00
Angelo Salese
e1a32f54d8 Fixed unaligned 16 and 32-bit i/o accesses in i386 CPU core [Barry Rodewald] 2010-09-29 11:42:38 +00:00
Angelo Salese
13dce3ebe6 Haze: Improved 32x irq behaviour (not worth) 2010-09-29 09:46:19 +00:00
Roberto Fresca
ea883ba417 Golden Poker driver updates... [Roberto Fresca]
* Added 3 new Witch Card sets.
 * Added 3 new Falcons Wild sets (from 3 different hardwares).
 * Hooked the second CPU (still encrypted) to the Falcon hardware.
 * Partially decrypted the second CPU program from Falcon hardware.
 * Figured out the Falcons Wild (Video Klein) memory map and machine.
 * Defeated the evil Video Klein's Witch Card hardware.
 * Reworked inputs for some sets.
 * Added lamps layouts/connections to the new sets.
 * Figured out the multiplexed data/address from Falcon's boards sound.
 * Added full sound support to Falcon hardware.
 * Reorganized and partially cleaned-up the driver.
 * Added more technical notes.


New games added or promoted from NOT_WORKING status
---------------------------------------------------
Witch Card (Falcon, enhanced sound) [Roberto Fresca, Team Europe]
Witch Card (German, set 3, alt gfx) [Roberto Fresca, Team Europe]
Witch Game (Video Klein) [Roberto Fresca, Team Europe]
Falcons Wild - Wild Card 1991 (TVG) [Roberto Fresca, Team Europe]
Falcons Wild - World Wide Poker (Video Klein) [Roberto Fresca, Team Europe]


New games marked as GAME_NOT_WORKING
------------------------------------
Falcons Wild - World Wide Poker (Falcon original) [Roberto Fresca, Darran]
2010-09-29 05:31:10 +00:00
Scott Stone
89e7e7e881 Haze: Cleaned up DMA function when SVP is used (Virtua Racing Genesis), avoiding duplicate code. (no whatsnew) 2010-09-29 03:25:16 +00:00
Scott Stone
1fb365862c Haze: Simplified VDP data reading to use read_word now that the RV bit of 32x is emulated (can use read-word on the 68k space without breaking Tempo Graphics)
Added a function to SH2 to allow the 32x to tell it when data is available to DMA, prevents excessive polling with high frequency timer in Chaotix, and improves performance in said game.
2010-09-29 02:01:20 +00:00
Angelo Salese
d4ac99e093 ... and last one for today. 2010-09-29 00:57:44 +00:00
Phil Bennett
c4912b63ed viper.c: Added the 941a01 BIOS and p911e missing NVRAM dump [John Bud @ Jamma+] 2010-09-29 00:23:05 +00:00
Phil Bennett
f042740b12 naomi.c: Added Mamonoro cartridge description [f205v]
---------- Forwarded message ----------
From: f205v <f205v.f205v@gmail.com>
Date: Mon, Sep 13, 2010 at 9:35 AM
Subject: naomi.c small update
To: submit@mamedev.org


Dear Aaron,
please find herewith attached a small update to naomi.c driver against 0.139u2.
It contains a description of "Mamonoro" cart.
All the best
----
Ciao
Antonio (f205v)
www.citylan.it
2010-09-28 23:56:59 +00:00
Phil Bennett
4f6ad532ba Neo-Geo updates [Johnboy]:
* savagere, kizuna - Reverted C1 change from u2 (chip was bad, C1 was correct)
 * gururin - Added correct M1 ROM
 * quizdai2 - Tagged as MVS and AES version
 * Started to document mask ROM types
2010-09-28 23:53:16 +00:00
Phil Bennett
ca4f9b65d9 Fixed Mallet Madness RAMDAC test failure. 2010-09-28 23:44:08 +00:00
Angelo Salese
e4a1200191 Another one ... 2010-09-28 23:34:05 +00:00
Phil Bennett
7f9f603298 New clones added
----------------
Omega Race (set 2) [Dave France, The Dumping Union]
2010-09-28 23:30:07 +00:00
Phil Bennett
b3c7023d87 New clones added
----------------
Final Lap 3 (Japan - Rev C) [Smitdogg, Guru, The Dumping Union]
2010-09-28 22:39:58 +00:00
Angelo Salese
5f6ee0b35e More 32x (sorry about being silly) 2010-09-28 22:01:08 +00:00
Angelo Salese
f5af59a6ff Fixed a SH-2 with TSTM opcode [R.Belmont] 2010-09-28 21:43:28 +00:00
Angelo Salese
3b55a59870 Yet more 32x 2010-09-28 21:29:26 +00:00
Angelo Salese
b0e81c11ba Still 32x, still not worth 2010-09-28 20:46:59 +00:00
Angelo Salese
0e04bda7d3 another 32x fix (not worth) 2010-09-28 19:15:21 +00:00
Angelo Salese
28bb97a62b Misc 32x improvemnts (not worth) 2010-09-28 18:40:31 +00:00
Angelo Salese
ef7ac67d9c Emulated basic 32x PWM timer (not worth) 2010-09-28 17:12:05 +00:00
Angelo Salese
5a212b726e Implemented support for SH-2 cycle steal mode, used by Fever Soccer [David Haywood] 2010-09-28 14:38:24 +00:00
Curt Coder
79c96d826d Fixed Fairchild F8 CPU interrupt handling. [Curt Coder] 2010-09-28 13:30:52 +00:00
Roberto Fresca
bf18c1056b Improvements to Piccolo Poker 100. [Roberto Fresca]
* Added a workaround to get the game booting.
 * Created inputs from the scratch.
 * Promoted to 'working'.
 * Added technical and game notes.


New games added or promoted from NOT_WORKING status
---------------------------------------------------
Piccolo Poker 100 [Roberto Fresca]
2010-09-28 10:19:57 +00:00
Angelo Salese
2c51688e01 Megadrive: changed way the z80 window into 68k space works so that it automatically can handle things like the 32x. [David Haywood] 2010-09-28 09:56:20 +00:00
Miodrag Milanovic
8941018939 Synced asc sound device from MESS (no whatsnew)
R.B. sorry for this, was afraid it could be forgotten to be synced.
2010-09-28 07:54:25 +00:00
Phil Bennett
5e5ab51db0 Keep MSVC happy 2010-09-27 23:26:16 +00:00
Scott Stone
a038d11057 Haze: DMA fix to correct issues with Fever Soccer (no whatsnew) 2010-09-27 23:08:31 +00:00
Brian Troha
cb0383635b new clone added: Xmen: Cota (new Asian set)
New Clone Added
----------------------------------
X-Men: Children of the Atom (Asia 950105) [Razoola]
2010-09-27 22:05:26 +00:00
Brian Troha
8b197b9eef new game (not working): Mallet Madness (Hanaho Games)
Game stops working due to "BAD" RAMDAC at u12

New Game
---------------------------------
Mallet Madness v2.1 [Brian Troha, The Dumping Union]
2010-09-27 21:53:48 +00:00
R. Belmont
6bc248ae49 680x0: '030 MMU now emulates translation cache; fixed misinterpreted MMU opcodes [R. Belmont] 2010-09-27 16:39:18 +00:00
Angelo Salese
ac0b9c471a Added sprite buffering to Mirage Youjuu Mahjongden, confirmed by a real PCB video [Angelo Salese] 2010-09-27 14:42:06 +00:00
Angelo Salese
3f73813ebe Haze: not using the timers for the DMA causes issues in ST-V, I don't know why yet. (not worth) 2010-09-27 10:58:43 +00:00
Angelo Salese
959aafaf6a Fixed 8-bit dram (framebuffer) access for 32x [David Haywood] 2010-09-27 02:22:40 +00:00
Angelo Salese
21aa2c8cf4 Identified DVD interface CPU (h8) as per Phil B. suggestion, disabled by default because it also trips unemulated opcodes 2010-09-27 00:31:36 +00:00
Angelo Salese
24e2de5cc4 Give an option of how to handle the DMA timing... with or without the MAME timers (without is a lot faster..) (not worth) 2010-09-26 23:53:49 +00:00
Angelo Salese
992f1f7384 Put the SH2 DMA on a timer. This is needed because Knuckles Chaotix on the 32X can't be done with 'Instant DMA' due the SH2 DMA is used to read from a FIFO port which is being filled by the 68k during the transfer. [David Haywood]
Haze: "I need to review save state support in the core again, a few extra things probably need saving now.

It might be possible to avoid the high frequency timer if it causes too many performance issues by moving the update of the DMA to the EXECUTE loop instead.  
(I want to experiment with this before updating the save state support, however if somebody else wants to fix savestates in the meantime they're welcome, 
as long as they don't get offended if their code gets changed...)"
2010-09-26 22:55:28 +00:00
Scott Stone
8c8e75b948 Compile fix for duplicate define 2010-09-26 22:50:14 +00:00
Ryan Holtz
179a81a030 Ported over CD-i cleanup from MESS. [Harmony] 2010-09-26 22:08:49 +00:00
Angelo Salese
a383b8b20d Removed IRQ hack in Niyanpai HW [Angelo Salese] 2010-09-26 21:11:49 +00:00
Angelo Salese
6b77f5930d Fixed game name as per DFJustin 2010-09-26 21:06:04 +00:00
Angelo Salese
11f6af8053 Hacked DVD comms check, pretty sure that it won't be an easy job to identify the CPU :/ 2010-09-26 21:03:47 +00:00
mariuszw1
4999f4c3e1 New clones added
-----------------
Hit Me [Siftware]

New set is the parent, as it is clearly newer revision of the code: one more rom, added attract mode and title screen.
2010-09-26 20:15:53 +00:00
Angelo Salese
e1c6009b0a Added sound 2010-09-26 19:26:46 +00:00
Angelo Salese
2d2cb17f75 More improvements, game is playable with a debug trick 2010-09-26 18:02:52 +00:00
Angelo Salese
f254437d76 Added V9958 hook-up, shows some graphics (with broken timings) 2010-09-26 16:37:26 +00:00
Angelo Salese
72c62e09b2 new NOT WORKING
---------------------
Cosplay Heaven 5 [alien_mame, Angelo Salese]
2010-09-26 15:17:06 +00:00
Olivier Galibert
3630d2dbbc raiden2: checkpoint current state 2010-09-25 11:13:41 +00:00
Roberto Zandona
f77bae5d04 amiga: revert to previous code; the change breaks ar_fast 2010-09-24 14:13:11 +00:00
Angelo Salese
5e074c2cbc Haze: use the right gfxdecode for mtrain (not worth) 2010-09-24 11:32:09 +00:00
Curt Coder
a8e6b8a5dd Modified Z80-DMA reset command (C3) to not randomly clear registers. [Curt Coder] 2010-09-24 10:47:58 +00:00
Roberto Zandona
d8b555862a amiga: improved offset in copper waiting 2010-09-24 10:00:52 +00:00
Angelo Salese
36dc4b8474 Added some kovsh bootleg clones from MAMEplus (not worth mentioning) 2010-09-24 09:35:27 +00:00
Andrew Gardner
d893399c85 Debugger (SDL) : Closing a memory window no longer segfaults. [Andrew Gardner] 2010-09-24 04:18:10 +00:00
Andrew Gardner
7c4604633c Debugger (SDL) : Window locations in the SDL debugger are now saved and
loaded at exit and startup. [Andrew Gardner]
2010-09-24 04:13:19 +00:00
mariuszw1
2d5d6d55f0 New clones added
----------------------------
Puckman Pockimon (set 2) [Guru]
2010-09-23 21:01:37 +00:00
Angelo Salese
bc50703b99 new working games
---------------------
Tetris / Bloxeed (Korean System 16 bootleg) (ISG Selection Master Type 2006) [Anonymous]
2010-09-23 17:44:09 +00:00
mariuszw1
5e5ab06913 Renamed recently added sets to Gun Fight (set 2) and Sea Wolf (set 2) (no whatsnew) 2010-09-22 21:18:15 +00:00
mariuszw1
045e4256ac New clones added
----------------------------
Gun Fight (older?) [Siftware]
2010-09-22 20:49:48 +00:00
mariuszw1
475041b04f New clones added
----------------------------
Sea Wolf (older?) [Siftware]
2010-09-22 20:25:44 +00:00
Curt Coder
70131a8275 Added xtal for MESS. (no whatsnew) 2010-09-22 16:21:14 +00:00
Aaron Giles
442e1a2ccf Modernized liberator driver, added save state support.
Moved generalized EAROM handling to atarigen.

Added new (modern) address map macros for referencing member
functions in base classes: AM_READ_BASE(_class, _member),
AM_WRITE_BASE, AM_READWRITE_BASE, etc.

Added BSD licenses to atarigen and er2055.
2010-09-22 08:12:01 +00:00
Aaron Giles
bf5dfbe9b4 Fixed address space for the ER2055. 2010-09-21 15:42:33 +00:00
Aaron Giles
dc84302fe5 Added ER2055 device. Changed liberator over to using it. Other Atari games
to follow.
2010-09-21 15:40:32 +00:00
Aaron Giles
4bd7781816 Added e2prom address space to x2212 so that the latched contents can be viewed.
Fixed some logic bugs in the line states on the x2212.

Hooked up x2212 in foodf.
2010-09-21 14:11:30 +00:00
Aaron Giles
9b7a65c490 Changed memory width stubs to fill unpopulated regions with the appropriate
portion of the unmap value.

Changed X2212 device to return unmapped bits for the upper 4 bits.
2010-09-21 13:26:27 +00:00
Aaron Giles
748bbd2b07 Enable vertical scroll bars in debugger comboboxes, and resize them to
show the full text.
2010-09-21 05:20:05 +00:00
Aaron Giles
5ad0330174 Converted x2212 to a modern device. Updated starwars and firefox.
Changed ccastles and cloud9 to use the x2212 instead of the hacked-up
fake version they had.
2010-09-21 05:04:42 +00:00
R. Belmont
2e11d3dc96 M68k: Add more conditionals and FGETEXP instruction [R. Belmont] 2010-09-21 02:25:21 +00:00
Andrew Gardner
79aab2108b **FOR REVIEW**
Log: Added preliminary support for saving debugger window locations. [Andrew Gardner]


(Notes)
* I only save the values for the SDL debugger for now.
* There is no loading of these values yet, but if this patch is confirmed good, 
  loading should be relatively straightforward to add.
* There is a slight chance this might not compile on OSes other than linux.  
  I will be available via e-mail for the next 10 hours and will assist 
  with any compilation problems if they occur.
* The patch seems like the "right way" to do things, but if I am doing anything
  suspect, please feel free to make suggestions and corrections.
2010-09-20 16:00:42 +00:00
Miodrag Milanovic
1f6995b11c cdda - Added a per-channel volume setting function [Barry Rodewald] 2010-09-20 07:52:40 +00:00
Aaron Giles
79c16f4260 Death to more NVRAM_HANDLERS. 2010-09-20 05:12:16 +00:00
Aaron Giles
499a0d4161 Move device definitions out of the bottom of the file. They can be
declared with other variables at the top.
2010-09-19 20:57:20 +00:00
Aaron Giles
2dd1a7191f Converted amiga drivers to use driver_devices. Merged common code between
legacy Amiga and AGA video systems. [Atari Ace]

From: Atari Ace <atari_ace@frontier.com>
Date: Sun, Sep 19, 2010 at 4:17 PM
Subject: [patch] Implement amiga_state
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamedev,

These two patches add an amiga_state class to the amiga drivers.  The
first adds missing machine, device params to external functions, makes
akiko a proper device and adjusts video/amiga.c and video/amigaaga.c
to be more similar.  The second patch then implements the classes,
also merging ~300 lines of identical code in amigaaga.c.  More code
code be merged if desired with a little more effort.

~aa
2010-09-19 20:46:16 +00:00
Curt Coder
5c0e08dce2 Improved Z80-DMA debug logging. (no whatsnew) 2010-09-19 17:49:00 +00:00
Aaron Giles
7a4744d31d Cleanups and version bump. 2010-09-19 05:09:00 +00:00
Aaron Giles
cbffdbb1d7 Couple more regressions fixed. 2010-09-19 04:48:02 +00:00
Aaron Giles
435b49fc1d Fix regressions. 2010-09-18 22:22:39 +00:00
R. Belmont
1d5e3b7e4a intelfsh: erase small chips faster (fixes saving in GBA games) (no whatsnew) 2010-09-18 20:30:09 +00:00
Aaron Giles
49c2403a5d 04030: All sets in taito_f3.c, taito_z.c, kaneko16.c, konamigq.c, overdriv.c: "16-bit EEPROM set with 8-bit data" 2010-09-18 06:15:26 +00:00
Angelo Salese
25a475a8c1 Added a set volume function for CD-DA [Angelo Salese] 2010-09-17 17:50:21 +00:00
Angelo Salese
1ab324aebe Added a function to change the MSM5205 frequency dynamically [Angelo Salese] 2010-09-17 14:34:03 +00:00
Aaron Giles
1a066df97d Added an integral device_timer_id to device timers. This is a
cleaner way to differentiate between multiple timers rather than
relying on the pointers. These values are also saved with the
timers. Updated the few devices using device timers to leverage
this.

Added new function device_timer_call_after_resynch() which creates
a temporary 0-length timer that calls back through the device's
device_timer() method with a given device_timer_id.

Updated i8257_device to initialize its state and use device 
timers.
(Fixes 04032: All sets in dkong.c: [debug] Game does not start.)
2010-09-17 13:33:27 +00:00
R. Belmont
893c1f3e81 Add skeleton Apple Sound Chip device (no whatsnew) 2010-09-17 02:42:13 +00:00
Jonathan Gevaryahu
cbcfc6a7fa Triple Punch/Knock Out AY-3-8910 clock speed was incorrect, fixed and verified from real hardware. [plgDavid]
Verified clocks and oki pin on quiz channel question boardset. [plgDavid]
2010-09-17 02:37:31 +00:00
Aaron Giles
c181febddc Fix 04034: All sets in viper.c: [debug] Assert in Debug build 2010-09-16 13:54:38 +00:00
R. Belmont
acc300e960 SDL: fix Linux and Mac builds for recent makefile changes (no whatsnew) 2010-09-16 13:40:33 +00:00
Fabio Priuli
ab8df75057 neogeo.c: misc updates [Johnboy]
* viewpoint - Renamed v's to correct chip label
* ghostlop - Renamed roms to match proto naming sheme
* savagere, kizuna - Added correct c1
* crsword - Tagged MVS AND AES VERSION, added correct m1
* legendos - Added correct m1
2010-09-15 18:53:04 +00:00
R. Belmont
32e006222b CHDMAN: support for .WAV tracks in bin/cue images [R. Belmont] 2010-09-15 02:36:37 +00:00
Roberto Zandona
99c5d52312 ssv: fixed "disable background" register; fixed x tilemap's offset 2010-09-14 20:19:04 +00:00
Aaron Giles
e22fd1b2c7 Moved auto-finding code down into the device_t object so it can be more
broadly used.

Added memory interface to the intelfsh device so you can access/view the
data in the debugger and via the standard memory interfaces. Removed the
old memory() method in favor of new functions read_raw()/write_raw() which
do direct reads/writes of the data.

Cleaned up CPS3 No-CD sets to break up the "ROMs" into individual flash
pieces which are automatically loaded by the intelfsh device on initialization.
Also split the MACHINE_CONFIG to only populate the number of SIMMs actually
present for each game, as documented in the top of the file. And replaced
the NVRAM_HANDLER with an NVRAM device.
2010-09-14 09:54:56 +00:00
Scott Stone
d4a4c81615 Another compile fix 2010-09-14 03:17:23 +00:00
Scott Stone
51cb201642 Compile fix for makedep.c 2010-09-14 02:39:25 +00:00
R. Belmont
b13e7168e0 CHDMAN: fix for extracting bin/cue audio tracks (no whatsnew) 2010-09-14 01:55:10 +00:00
R. Belmont
a6e9c13e59 CHDMAN: improved -extractcd bin/cue output, improved error handling. [R. Belmont] 2010-09-14 01:41:42 +00:00
Aaron Giles
f37b2db1c9 Couple more NVRAM handlers gone. 2010-09-14 01:17:36 +00:00
Aaron Giles
266ad848cf Removed obsolete code detected by the dependency analyzer. 2010-09-14 01:16:38 +00:00
Aaron Giles
db797ba791 New build tool makedep.c, derived from src2html.c (really!).
Does basic dependency analysis and supports excluding paths.

Makefile now supports a depend target which will run makedep
on the src/$(TARGET) tree and create dependencies. It deliberately
excludes the root of src/emu as well as the osd directories in
order to keep the dependency file down to a reasonable size, so
if a core header file changes, you still need to clean and build
all.
2010-09-14 01:15:26 +00:00
R. Belmont
7d09104932 Updated Guru readme for Atomiswave (no whatsnew) 2010-09-14 00:21:10 +00:00
R. Belmont
75de8f1778 New games added as GAME_NOT_WORKING
-----------------------------------
Maximum Speed [Guru]
2010-09-14 00:19:46 +00:00
Angelo Salese
00c96e8632 Removed a misleading warning message, this is already supported by the CPU core (not worth mentioning 2010-09-13 20:49:35 +00:00
Roberto Fresca
4817bef0ec New not working game...
New games marked as GAME_NOT_WORKING
------------------------------------
Movie Card [Roberto Fresca, Team Europe & Housi]
2010-09-13 19:00:52 +00:00
Roberto Fresca
01136a7d31 New driver for Golden Games / C+M Technics AG hardware. [Roberto Fresca, Tomasz Slanina]
New games marked as GAME_NOT_WORKING
------------------------------------
Swiss Poker ('50 SG-.10', V2.5) [Roberto Fresca, Tomasz Slanina, Team Europe & Housi]
2010-09-13 01:38:45 +00:00
Roberto Zandona
2ac3a1c6fc ssv: fixed background disable condition [Roberto Zandona'] 2010-09-12 20:46:58 +00:00
Aaron Giles
2c384a80f1 Fix compile. 2010-09-11 22:31:53 +00:00
Roberto Zandona
b5dd4c8a76 ssv: implemented y offset for tilemaps 2-8 (removed kludge for all games axcept eaglshot) 2010-09-11 20:42:29 +00:00
Aaron Giles
bb7657c8d3 Get rid of a bunch of mostly-trivial NVRAM_HANDLERS in favor of
NVRAM devices.
2010-09-11 20:28:54 +00:00
Aaron Giles
dcedf21a43 Converted intelfsh to a device, updated all users.
Note CPS3 and G-NET testing is very limited due to lack of
CHDs. The other drivers have been verified to varying extents.
2010-09-11 18:58:29 +00:00
Aaron Giles
8182f611b0 Disambiguate the stub functions for MSVC. 2010-09-11 18:55:23 +00:00
Roberto Zandona
7f48beec63 ssv: fixed bit #a of 7a-7b CRT register [Roberto Zandona'] 2010-09-11 18:35:29 +00:00
Roberto Zandona
fa513efd5e ssv: removed offset values from the init; the offset now are handled by the CRT registers [Roberto Zandona'] 2010-09-11 13:58:51 +00:00
Roberto Zandona
9802dd01e7 ssv:
- implemented y sprite inversion CRT register; 
- added a kludge for dynagear
- used CRT registers to get the sprite x offset [Roberto Zandona']
2010-09-11 13:38:53 +00:00
Roberto Zandona
49bbd9ce1b ssv: removed kludge for sprite x offset and implemented 1 bit of 7a-7b register [Roberto Zandonà] 2010-09-11 09:24:48 +00:00
Aaron Giles
1b062b6815 Added definitions for [DECLARE_]READ_LINE_MEMBER and [DECLARE_]WRITE_LINE_MEMBER
so that read/write line callbacks can be defined as member functions.

Added stubs and new macro DEVCB_DEVICE_LINE_MEMBER to allow these to be
referenced from device callbacks.

Modernized the 6522 VIA device:
 * changed to use the new device timer mechanism
 * removed all trampolines in favor of modern methods
2010-09-11 01:00:46 +00:00
Aaron Giles
958c161bcc Made the mc146818 a proper device, modernized it, and added an NVRAM interface
so that drivers don't have to ask it to be manually saved.
2010-09-10 23:33:36 +00:00
Phil Bennett
fdc0db7e26 Merged ssgbl.c into megadrvb.c and moved bootleg input definitions
out of megadriv.c [Sonikos]


---------- Forwarded message ----------
From: abcd efgh <cix_999@yahoo.it>
Date: Thu, Sep 2, 2010 at 8:50 PM
Subject: megadrvb.c - ssgbl
To: submit@mamedev.org


Hi

This is the finished work for megadrvb.c:
Merge ssgbl into megadrvb
Moved inputs game from megadriv.c to megadrvb.c
if you use R2 diff i change also the roms names for a better fit the
drive in ending with "mdb" wich means "mega drive bootleg" so the
result is:
aladbl     -> aladmdb
mk3ghw -> mk3mdb
ssf2ghw  -> ssf2mdb
ssgbl       -> srmdb

The R2 diff is the better way but you choose the best for you.

Bye Sonikos
2010-09-10 22:55:22 +00:00
Aaron Giles
5702a03149 Replaced largely redundant NVRAM handlers with NVRAM devices
for namcos2 and a bunch of the Nichibutsu mahjong games. Also
did it for the Atari games, moving the old hard-coded EEPROM
data out into files finally. The harddriv EEPROMs in particular
are pre-calibrated now to hopefully reduce whining.
2010-09-10 22:20:44 +00:00
Brian Troha
82d2ee71c3 new clones added: 2 Touchmaster sets
New Clones Added
-------------------------------------
Touchmaster 2000 Plus (v4.63 Standard) [Brian Troha, The Dumping Union]
Touchmaster 4000 (v6.01 Standard) [Brian Troha, The Dumping Union]
2010-09-10 22:14:44 +00:00
Roberto Zandona
b753df9e45 ssv:
- implemented y tilemap offset register; (Roberto Zandona')
- implemented x and y visible area register; (Roberto Zandona')
- disabled tilemap draw when mode=0; (Roberto Zandona')
- confirmed visible area register with a twin eagle II PCB (Corrado Tomaselli)
2010-09-10 19:45:27 +00:00
Aaron Giles
61f221209f Replaced NVRAM_HANDLER in leland with an NVRAM device. 2010-09-10 18:55:36 +00:00
Aaron Giles
7676f5ae3e Regression fixes. 2010-09-10 18:36:53 +00:00
Aaron Giles
e0e567bf9c fatalerror_exitcode() doesn't need to break into the debugger. 2010-09-10 18:12:52 +00:00
Aaron Giles
3d1a55e19e On Windows, osd_break_into_debugger() will now dump a stack crawl
if there's no debugger attached. This means that asserts should have
a full crawl now, for easier debugging.
2010-09-10 17:34:52 +00:00
Aaron Giles
8f8981db66 Fix incorrect videoram offset in rpunch. 2010-09-10 16:48:32 +00:00
Aaron Giles
f529af1f43 Align large memory blocks to 4k boundaries. 2010-09-10 16:33:35 +00:00
Aaron Giles
20b7e02bec Fixed duplicate memory share. 2010-09-10 16:31:21 +00:00
Aaron Giles
d7be2fb439 Fix custom NVRAM initialization. 2010-09-10 16:10:09 +00:00
Aaron Giles
b605b17c16 Undo misguided change. 2010-09-09 13:48:35 +00:00
Miodrag Milanovic
e71315429f Removed PORT_TOGGLE for Outrun, TX1 and Turbo, now it is according to wiring diagrams [Guru] 2010-09-09 11:48:50 +00:00
Aaron Giles
83a2fa7ba0 Convert ADSP21xx core to a modern CPU device. 2010-09-09 08:13:58 +00:00
Aaron Giles
dbd3f07184 Added DECLARE/DEFINE_TRIVIAL_DERIVED_DEVICE macros to simplify the
definition of devices that are based off of a parent device, but which
differ in name and a single parameter.

Added a UINT32 param to the device_config constructor to facilitate
the use of the new macros.
2010-09-09 05:23:01 +00:00
Aaron Giles
58f4f9025b Added -bench <emulated-seconds> option to standardize benchmarking. 2010-09-09 05:18:02 +00:00
R. Belmont
2fd7b88586 CHDMAN: Byteswap audio tracks from bin/cue (fixed PC-Engine Lords of Thunder) (no whatsnew) 2010-09-09 02:31:00 +00:00
R. Belmont
8dd616682a CHDMAN: calculate correct track lengths/offsets for bin/cue input (no whatsnew) 2010-09-09 02:27:19 +00:00
Aaron Giles
100dddbb6c Attempted fix for gcc 4.5.0 complaint. 2010-09-08 20:21:24 +00:00
smf-
acaf942e31 added missing file from Atari Ace's submission 2010-09-08 19:45:06 +00:00
Aaron Giles
446df7bd1f Fix unidasm compilation. 2010-09-08 19:25:41 +00:00
Angelo Salese
493395ee81 Added proper handling of the SRAM in Aristocrat MK-5 [Palindrome]
Removed usage of I2C in Aristocrat MK-5 [Angelo Salese]

new NOT WORKING games
---------------------
White Tiger [Palindrome]
2010-09-08 19:07:21 +00:00
Aaron Giles
06e995de5f Removed generic.videoram and generic.videoram_size. These generics
have no core use, they are simply there for the convenience of drivers.  
Now that drivers are required to have devices, the data should move there.
[Atari Ace]

---------- Forwarded message ----------
From: Atari Ace <atari_ace@frontier.com>
Date: Sun, Sep 5, 2010 at 4:45 PM
Subject: [patch] Eliminate generic.videoramm generic.videoram_size
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamedev,

This set of patches removes generic.videoram and
generic.videoram_size.  These generics have no core use, they are
simply there for the convenience of drivers.  Now that drivers are
required to have devices, the data should move there.

The first patch sets the stage for the rest of the patch.  It includes
several changes.
1.  It replaces all the uses of generic.videoram_size with appropriate
constants.
2.  It eliminates the write handlers from pc_video.c.  These are
unused in MAME and MESS appears to have a private copy.
3.  It splits some drivers:
 a.  It separates mcr68 from the mcr driver, mostly by dividing
machine/mcr.c.
 b.  It separates naughtyb from the phoenix driver by introducing an
audio/pleiads.h include.
 c.  It replaces video/system1.h with includes/system1.h.
4.  It fixes some videoram related bugs.
 a.  balsente, mole didn't need videoram.
 b.  sbowling has a dangling reference to videoram from an earlier
driver_data conversion
5.  It expands some namcona functions to multiple lines so that later
scripted-edits look sensible.

The second patch is generated by vram01_1.pl.  It introduces videoram
local variables in function that use videoram read-only and removes
AM_SIZE_GENERIC(videoram).

The third patch is generated by vram01_2.pl.  It replaces all
occurances of generic.videoram with state->videoram,
introducing/modifying driver_device classes as needed.

The fourth patch then actually removes the generics, and fixes one
issue the scripts didn't handle.

~aa
2010-09-08 15:45:46 +00:00
R. Belmont
f4aa843155 CHDMAN: rewrote bin/cue support from specs, more images now work. [R. Belmont]
Not for whatsnew: This is not complete or well-tested yet, I'm checking in 
early mostly so Kale can play with it while I'm at work today.  It should at 
least function better than current for most images.
2010-09-08 13:41:11 +00:00
Aaron Giles
164cc842bd Removed vestigial NVRAM from starwars, which is now covered by the
x2212 device.
2010-09-08 06:09:01 +00:00
Aaron Giles
859ab6dd3a Moved sound routing for non-speaker devices over to the
sound interface's post-start method. Routing from one sound
device to another was broken when sound_init() was moved
ahead of device startup.
2010-09-08 06:04:15 +00:00
Aaron Giles
bd5bda4798 Minor cleanup. 2010-09-08 05:37:31 +00:00
Andrew Gardner
f67b278d6e strnskil.c: Added MCU dump for banbam. [Andrew Gardner] 2010-09-08 04:03:52 +00:00
Angelo Salese
a31bca0720 From Micko: fixed chd image loading? (mainly for MESS) 2010-09-07 20:47:30 +00:00
Angelo Salese
9afc457ab6 Fixed missing VRAM > VRAM DMA flag clearance in PC Engine emulation [Angelo Salese] 2010-09-07 20:31:29 +00:00
Roberto Zandona
34192f3f64 [SSV] implemented visible area registers; now the resolution for all the games is the max visible area (the values of the registers after the boot process) 2010-09-07 19:10:34 +00:00
Angelo Salese
0cbb217cdb Fixed a bogus Hu6280 CPU core bug with timer latch division values readings [Angelo Salese] 2010-09-07 17:26:42 +00:00
Aaron Giles
7e98d6e583 Put the state list in a simple_list<>. 2010-09-07 04:51:51 +00:00
Aaron Giles
2dbd6f67f8 Converted ASAP CPU core from a legacy CPU core to a modern device.
Renamed device_execute_interface::m_icount to m_icountptr to avoid
commonly-named device values of m_icount.
2010-09-07 00:32:49 +00:00
Scott Stone
a8c12bd3df Corrected or clarified a number of duplicated inputs for drivers up through G [Tafoid] 2010-09-07 00:12:57 +00:00
Angelo Salese
4139b8c690 Fixed sprite OV flag behaviour in PC Engine VDC emulation [Angelo Salese, Charles MacDonald] 2010-09-06 23:11:29 +00:00
Aaron Giles
85d240c04c Move debug_setup() call to after the device_debug class is created. 2010-09-06 19:05:34 +00:00
Angelo Salese
1f7f4877e4 Haze: attempt to fix MT 4044 2010-09-06 18:58:31 +00:00
Angelo Salese
17a3a88ada new WORKING games
-------------

Poker Master (Tony-Poker V3.A, hack?) [David Haywood, William Ostronic]
2010-09-06 14:08:52 +00:00
Scott Stone
6fa63431e2 Identified FREE PLAY dip in grudge 2010-09-06 08:18:56 +00:00
Scott Stone
165e4cf94b Corrected or clarified a number of duplicated inputs for drivers up through C [Tafoid] 2010-09-06 01:21:56 +00:00
Brian Troha
612aed93b9 New Clone: Sega Rally Championship (Revision B)
New Clone Added
--------------------------------------
Sega Rally Championship (Revision B) [Alex's Blog]
2010-09-05 17:19:54 +00:00
R. Belmont
896d5044f6 namcops2: added dongle dump for Federation vs. Z.A.F.T. [Guru]
New games added as GAME_NOT_WORKING
-----------------------------------
Soul Calibur 2 (SC22 Ver. A) [Guru]
2010-09-05 17:10:35 +00:00
Aaron Giles
8826428120 Added read_status() and write_command() methods to the okim6295_device
for the common case where these are done outside the context of a read
or write handler (it was annoying to pass in the fake address space
for these cases).

Added DEVCB_DEVICE_MEMBER() macros which allow you to specify a
READ8_MEMBER or WRITE8_MEMBER in a device callback (via dynamically
generated trampolines).

Replaced all remaining calls to okim6295_r/okim6295_w with calls to
the new methods, and removed the static functions.
2010-09-05 17:07:31 +00:00
R. Belmont
e4de6b7bd9 Renamed namcops2 DVDs to match labels [Guru] 2010-09-05 17:01:47 +00:00
R. Belmont
4546df9f8e New games marked as GAME_NOT_WORKING
------------------------------------
Crisis Zone (CSZO2 Ver. A) [Guru]
2010-09-05 16:52:18 +00:00
stephh
00c5f4dca5 quizpani (quizpani.c) [stephh] :
- Improved Dip Switches and fixed Inputs (after verification of the
    M68000 code)
2010-09-05 09:54:23 +00:00
Roberto Fresca
6e74fa24c9 New not working game...
New games marked as GAME_NOT_WORKING
------------------------------------
Piccolo Poker [Roberto Fresca, Team Europe & Housi]
2010-09-05 07:03:16 +00:00
Aaron Giles
c971dd5b03 Added AM_DEVREAD_MODERN/AM_DEVWRITE_MODERN/etc. macros for the non-modern
address map case so that updated devices can shed their old-style read/write
handlers in favor of member functions.

Bulk converted all okim6295_r/okim6295_w references in the address maps to
call to the modern member functions.
2010-09-05 06:30:20 +00:00
Aaron Giles
6fe9fe53f4 Integrated comments into debugcpu.c, and removed debugcmt.c. Modernized
the code and updated so it actually works with the modern debug classes.
2010-09-05 06:12:47 +00:00
Roberto Fresca
d5f94fa913 New driver for Jubilee's Double-Up Poker. Decoded graphics and colors
properly. Hooked the correct TMS9980 CPU, added a preliminary memory
map and some technical notes. [Roberto Fresca]


New games marked as GAME_NOT_WORKING
------------------------------------
Jubilee Double-Up Poker [Roberto Fresca]
2010-09-05 05:20:43 +00:00
Brian Troha
cb25e8746a multfish.c: Updated driver with new information and several new sets as well as several new bootlegs. [MetalliC] 2010-09-05 04:25:14 +00:00
Roberto Zandona
627e08c052 00945: bkraidu: Text glitch in the flip screen mode. [Roberto Zandona'] 2010-09-04 23:58:32 +00:00
Aaron Giles
820fc8f8ea Whoops, one more reference.... 2010-09-04 20:55:22 +00:00
Aaron Giles
15ec9dd390 Remove unused debug_comment_exit 2010-09-04 20:44:53 +00:00
Aaron Giles
b954eccd7e Last 2 regressions. 2010-09-04 20:38:52 +00:00
Aaron Giles
1359ea15b1 Have each device create its own device_debug instead of letting the
debugger do it. This allows the device to start itself up before the
debugger tries to figure out what to do with it. Fixes the problem
where register names were not populated into the symbol table
correctly after I shuffled the initialization order.
2010-09-04 19:47:54 +00:00
Aaron Giles
53b7d019e2 Remaining regressions. 2010-09-04 19:15:28 +00:00
Aaron Giles
c97d6bcfe0 Fix most reported regressions. A few more still to come. 2010-09-04 17:30:45 +00:00
Aaron Giles
5b6c078aeb Added templates required_shared_ptr<> and optional_shared_ptr<> which
work just like required_device<> and optional_device<> for retrieving a
pointer by tag from an address space that specifies AM_SHARE("tag").
Also added templates required_shared_size<> and optional_shared_size<>
for retrieving the size of the AM_SHARE region.

Created a new generic NVRAM device. It can be configured to default to
0-fill, 1-fill, random-fill, or custom fill. In all cases, a same-named
memory region overrides the default fill. The address range where the
NVRAM can be found is now identified by an AM_SHARE() region of the
same tag as the NVRAM device. Drivers can also explicitly configure a
separately-allocated NVRAM region via nvram_device::set_base().

Replaced all instances of MDRV_NVRAM_HANDLER(generic_*) with
MDRV_NVRAM_ADD_*("nvram"). Replaced all AM_BASE_GENERIC/AM_SIZE_GENERIC(nvram)
with AM_SHARE("nvram"). For all remaining drivers that referenced the
generic.nvram directly, changed them to hold a required_shared_ptr<UINTx>
to the NVRAM in their driver state, and use that instead. Removed
nvram and nvram_size from the generic_ptrs.
2010-09-04 17:01:46 +00:00
Scott Stone
8969b0b7ee Quick fix to relegate the eeprom warnings to debug build only. (no whatsnew.txt)
Comment:
There is still a major issue where this printf shows up when using many of the output commands -listxml, -romident and more.  It should only show up when emulating the game, right?
2010-09-04 16:51:25 +00:00
Angelo Salese
bcf5b7a661 Revert previous z80dma fix (made it specific to the MESS driver), not worth 2010-09-04 16:01:16 +00:00
Roberto Zandona
1ca12dce6f 03952: gaiden, wildfang, raiga: Screen is shifted 32 pixels down with flip-screen. [Roberto Zandona'] 2010-09-04 14:09:06 +00:00
Angelo Salese
0f68f0fc2b new clones
----------
Vigilante (World, set 2) [porchy]

(just a minor random driver clean-up, because I've forgot to write the aforementioned whatsnew string in my previous commit ...)
2010-09-04 12:30:07 +00:00
Angelo Salese
da8511a089 new WORKING games
-----------------
Shinobi / FZ-2006 (Korean System 16 bootleg) (ISG Selection Master Type 2006)


new clones
----------
2010-09-04 12:23:58 +00:00
stephh
b43c05c970 pipeline (pipeline.c) [stephh] :
- Fixed Dip Switches and Inputs (after verification of the Z80 code)
2010-09-04 08:18:15 +00:00
Aaron Giles
8ac0be666e Change shared memory regions to track their size. Added memory_get_shared()
functions to retrieve a pointer to a shared region and optionally the size.
2010-09-04 02:26:32 +00:00
R. Belmont
92812cc132 Fix compiling on older GCCs (including OS X PowerPC) [Aaron Giles] 2010-09-04 01:15:01 +00:00
Aaron Giles
046250f179 New model for populating devices in a driver_device class. Removed the
recently-introduced find_devices() method.

There are two new template classes optional_device<> and required_device<>.
Use these to declare the device pointers in the class. The only difference 
between the two is that required will fatalerror if the device is not found.

These new classes are "pass-through" so m_oki can be passed anywhere an
okim6295_device would work, and you can use m_oki->x to reference methods
or variables.

Each of these new classes needs to be specified in the initializer,
passing a reference to the driver_device object and the device tag. So,
for example:

class example_state : public driver_device
{
public:
    example_state(running_machine &machine, const driver_device_config_base &config)
		: driver_device(machine, config),
		  m_maincpu(*this, "maincpu"),
		  m_oki(*this, "oki") { }

    required_device<okim6295_device> m_oki;
    optional_device<cpu_device> m_maincpu;
};

Given that, the driver_device will auto-populate each device with a
pointer to the device prior to calling any of the initialization methods.
2010-09-03 20:57:19 +00:00
Angelo Salese
093c2682a2 Fixed z80dma ready state callback when it's configured as active low [Angelo Salese] 2010-09-03 18:38:40 +00:00
Angelo Salese
b27a103bc7 Small log fix, not worth 2010-09-03 14:31:19 +00:00
Aaron Giles
e4d8baf401 Changed driver_device to expose the game_driver's ROMs through the
device interface. This means all ROMs are now exposed via devices,
and thus the process of enumerating ROMs gets simpler.

Changed all instances of temporarily allocating machine_config objects 
to just put them on the stack for simplicity, letting the destructor 
handle the cleanup work automatically.

Changed machine_config constructor to take a game_driver, from which
the machine_config constructor is obtained. This also means the
resulting machine_config holds a reference to the game_driver.

Changed running_machine constructor to no longer take a game_driver,
since the game_driver is now obtainable via the machine_config.
2010-09-03 05:21:46 +00:00
Scott Stone
36b6a9d651 Corrected or clarified a number of duplicated inputs for drivers up through A [Tafoid] 2010-09-02 23:27:03 +00:00
Miodrag Milanovic
4202b43d60 Fixed compile. sorry for this (no whatsnew) 2010-09-02 09:47:54 +00:00
Miodrag Milanovic
e4dbd5dc83 Updated sound devices not cover with previous patches (used only by MESS) (no whatsnew) 2010-09-02 09:40:58 +00:00
Aaron Giles
420e1e0ad5 Added include files for all remaining drivers with multiple source files.
[Atari Ace]

---------- Forwarded message ----------
From: Atari Ace <atari_ace@frontier.com>
Date: Sun, Aug 29, 2010 at 10:35 PM
Subject: [patch] Add missing include files for multi-file drivers
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamdev,

Converting a driver to use driver_data requires that multi-file
drivers have a common include file to host the driver_data class. Thus
this patch, which gets ahead of the curve and adds missing include
files to all multi-file drivers (minus ones covered by my last
driver_data patch).  The first patch is include-related cleanup of the
existing drivers.  The second patch then adds ~100 files to
mame/includes.

~aa
2010-09-02 09:13:01 +00:00
Aaron Giles
a7313263b3 Converted sauro, scotrsht, segald, seicross, senjyo, shangha3,
shaolins, shisen, skyraid, solomon, spcforce, speekatk, splash, 
sprcros2, ssozumo, suna16, suna8 to driver_data. [Atari Ace]


---------- Forwarded message ----------
From: Atari Ace <atari_ace@frontier.com>
Date: Sat, Aug 28, 2010 at 9:39 PM
Subject: [patch] Convert various s drivers to driver_data
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamedev,

Another round of driver_data conversions...

sauro, scotrsht, segald, seicross, senjyo, shangha3, shaolins, shisen,
skyraid, solomon, spcforce, speekatk, splash, sprcros2, ssozumo,
suna16, suna8

~aa
2010-09-02 09:04:26 +00:00
Aaron Giles
a9befd7970 Remove artificial SOUND_ prefix from sound device names.
[Atari Ace]

---------- Forwarded message ----------
From: Atari Ace <atari_ace@frontier.com>
Date: Tue, Aug 31, 2010 at 5:50 AM
Subject: [patch] Despecialize legacy sound devices
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamedev,

While poking around in the MAME source code, I came across the odd
type snes_sound_sound_device, which led me to the fact that legacy
sound devices are named a bit differently than other legacy devices,
probably a kludge intended to be changed later but forgotten.  Anyhow,
this patch fixes it.  The first patch goes part way, changing all but
the tag (which fixes the weird type issue).  It also changes type
names in the scsp and msm5232 cores to avoid a name collision if/when
the second patch is applied.  The second patch then touches a lot of
files, mostly removing the SOUND_ prefix from type asserts, but it
also needed to change the tags for the LASERDISC, S2636 and SPEAKER
sound cores to avoid collisions with other devices with the same name.

~aa
2010-09-02 08:14:41 +00:00
Aaron Giles
066e54b69f Changed driver_data objects to be devices. Replaced the driver_data_t
class with a new driver_device class, which is the base class for all 
driver_data objects now. The new driver devices are added as the
first device in the device list, with a tag of "root"; all other
devices are now owned by the driver device.

Moved core callbacks (machine_start/_reset, sound_start/_reset, 
video_start/_reset/_eof/_update, and palette_init) into device 
configuration parameters on these new devices. The driver_device
base class overrides device_start(), ensures all other devices have
been started, and then calls, in order, the following overridable 
methods:

  find_devices() - new, used to locate devices prior to DRIVER_INIT
  DRIVER_INIT function from the game driver
  palette_init() - by default calls the MDRV_PALETTE_INIT function
  driver_start() - new
  machine_start() - by default calls the MDRV_MACHINE_START function
  sound_start() - by default calls the MDRV_SOUND_START function
  video_start() - by default calls the MDRV_VIDEO_START function

Similarly, the driver_device class overrides device_reset() and then
calls these methods in order:

  driver_reset() - new
  machine_reset() - by default calls the MDRV_MACHINE_RESET function
  sound_reset() - by default calls the MDRV_SOUND_RESET function
  video_reset() - by default calls the MDRV_VIDEO_RESET function

To accommodate these changes, initialization order is slightly
altered from before. The tilemap, video, sound, and debug systems 
are now initialized prior to the devices' start. And the user
callbacks for DRIVER_INIT, PALETTE_INIT, MACHINE_START, SOUND_START, 
and VIDEO_START are all called back-to-back. The net effect should 
be similar, however.

Added methods (optional_device and required_device) to the new 
driver_device class to find devices, intended to be used from the 
find_devices() callback. See harddriv.h and beathead.h for examples 
of usage.

Changed device_t::subtag to only prepend a prefix if the device is
not the 'root' device, in order to keep compatibility with existing
tag searching.

Changed device startup to actively reorder devices when they report
missing dependencies. This ensures that the reset functions get
called in the same order that the start functions did.

Bulk updated drivers as follows:

First removed the old static alloc function from the driver_data_t:
S: [ \t]*static driver_device \*alloc *\( *running_machine *\&machine *\) *\{ *return auto_alloc_clear *\( *\&machine *, *[a-zA-Z0-9_]+_state *\( *machine *\) *\); *\}[\r\n]*
R: 

Then switched from driver_data_t to driver_device:
S: driver_data_t
R: driver_device

Then changed the constructors to pass the correct parameters:
S: ([a-zA-Z0-9_]+)_state *\( *running_machine *\&machine *\)([\r\n\t ]+): *driver_device *\( *machine *\)
R: \1_state\(running_machine \&machine, const driver_device_config_base \&config\)\2: driver_device\(machine, config\)
2010-09-02 07:57:50 +00:00
Fabio Priuli
1d194df33a aristmk4.c:
* Cashcade workaround for topgear [Frasher]
* Improved a few memory handlers [Palindrome]


out of whatsnew: the original patch contained more changes so probably someone might want to contact Palindrome & c. about these.
1. the way ticket output was handled has been rejected (MAME should not print out files like they did)
2. they changed a rom in autmoon and another PROM: since I'm not sure if the roms are available and the commit message did not mention them at all, I cannot judge if the change is fine
3. the way they implemented Robot Test is debatable, but I know nothing about the hardware, so someone should review that part
4. if they want to remap Jackpot inputs, they should choose a key not already in use ('I' is taken as well) and possibly use the common IPT_GAMBLE we have
2010-09-01 10:29:19 +00:00
Fabio Priuli
2436926dfe bfm_dm01 improvements: replaced the video screen hack used for the dotmatrix display with a more accurate, artwork-based version.
The BFM_DM01 clocks data in one byte at a time, and the new dotmatrix render object represents the 8 dots powered by each byte. [AGEMAME]
2010-09-01 10:17:16 +00:00
Fabio Priuli
4c0b712c8e timer.c: timers get rescheduled only if enable state has changed [Christophe Jaillet] 2010-09-01 10:13:45 +00:00
Miodrag Milanovic
dbf7afe106 Made options visible to device validate function when doing "-validate", this is used by MESS (example software list and messram devices) (no whatsnew) 2010-09-01 09:34:55 +00:00
Aaron Giles
f6b83b62c5 Changed the MACHINE_DRIVER_* macros, as follows:
1. Renamed MACHINE_DRIVER_* to MACHINE_CONFIG_* to match the name
    of the object it actually describes. The MDRV_* prefix may
    eventually be bulk updated at some point, but not now.

 2. MACHINE_CONFIG_START() now takes a driver_data_t-derived
    class as a required second parameter. This means that
    MDRV_DRIVER_DATA() is no longer required, and every "root"
    machine config *must* specify a driver data class (or driver_data_t
    itself if the driver has not yet been updated to use driver data).

 3. New MACHINE_CONFIG_DERIVED() macro defines a machine_config
    that is derived from another machine_config. This takes the place
    of the very typical MACHINE_DRIVER_START()/MDRV_IMPORT_FROM()
    combination.

 4. New MACHINE_CONFIG_FRAGMENT() macro defines a partial 
    machine_config that can only be included in another "root"
    machine_config. This is also used for machine_configs that are
    specified as part of a device.

 5. Changed MDRV_IMPORT_FROM() to MDRV_FRAGMENT_ADD() to more
    accurately describe what is happening.

 6. Added asserts to the above three macros to ensure they are
    properly used.

Updated all machine drivers to use the new macros. Search & replace
lists below cover 99% of the changes, with just a few manual fixups.

S: MACHINE_DRIVER_START\( *([a-zA-Z0-9_]+) *\)[\r\n\t ]*MDRV_DRIVER_DATA\( *([a-zA-Z0-9_]+) *\)
R: MACHINE_CONFIG_START\( \1, \2 \)

S: MACHINE_DRIVER_START\( *([a-zA-Z0-9_]+) *\)[\r\n\t ]*/\* driver data \*/[\r\n\t ]*MDRV_DRIVER_DATA\( *([a-zA-Z0-9_]+) *\)
R: MACHINE_CONFIG_START\( \1, \2 \)

S: MACHINE_DRIVER_START\( *([a-zA-Z0-9_]+) *\)[\r\n\t ]*MDRV_IMPORT_FROM\( *([a-zA-Z0-9_]+) *\)
R: MACHINE_CONFIG_DERIVED\( \1, \2 \)

S: MACHINE_DRIVER_START\( *([a-zA-Z0-9_]+) *\)[\r\n\t ]*/\* basic machine hardware \*/[\r\n\t ]*MDRV_IMPORT_FROM\( *([a-zA-Z0-9_]+) *\)
R: MACHINE_CONFIG_DERIVED\( \1, \2 \)\r\n\r\n\t/\* basic machine hardware \*/

For all files outside of mame/drivers....
S: MACHINE_DRIVER_START
R: MACHINE_CONFIG_FRAGMENT in all non-drivers

For all files within mame/drivers....
S: MACHINE_DRIVER_START\( *([a-zA-Z0-9_]+) *\)
R: MACHINE_CONFIG_START\( \1, driver_data_t \)

S: MDRV_IMPORT_FROM
R: MDRV_FRAGMENT_ADD

S: MACHINE_DRIVER_END
R: MACHINE_CONFIG_END

S: MACHINE_DRIVER_NAME
R: MACHINE_CONFIG_NAME

S: MACHINE_DRIVER_EXTERN
R: MACHINE_CONFIG_EXTERN

Final step: run mame -valid and fix the incorrect macros at the lines
where the asserts show up.
2010-09-01 05:03:27 +00:00
Wilbert Pol
ce3c3205cc mc6845.c: Rewritten to allow mid frame changes to the counter registers. This enables drivers to use advanced
split screen and scrolling effects using a regular mc6845. [Wilbert Pol]

Interface change:
The screen tag is no longer mandatory. If a screen tag is provided then the mc6845 device will resize
the screen and visible area based on the parameters set in the 6845 config and registers. If the screen
tag is not provided then the driver is supposed to be in charge of setting the proper screen configuration.

Warning: This breaks the relationship between the timing of a screen device and the signals generated
by the 6845.
2010-08-31 19:47:23 +00:00
Scott Stone
874eb8ae2a Fixed MT#04036: astrowar: [debug] Severe graphic corruption 2010-08-31 13:39:34 +00:00
Fabio Priuli
bc99cda953 Fix for MT04035: All sets in chihiro.c: Assert before OK 2010-08-30 23:14:55 +00:00
Aaron Giles
0e672ba6eb Cleanups and version bump. 2010-08-30 15:20:58 +00:00
Roberto Zandona
5248234004 lethalen: hooked up some k053244 register; [Roberto Zandona']
it's related to:
00171: lethalen: mask rom check they all come up bad.

in konicdev.c there's in READ8_DEVICE_HANDLER( k053244_r ):

addr = (k053244->rombank << 19) | ((k053244->regs[11] & 0x7) << 18) | (k053244->regs[8] << 10) | (k053244->regs[9] << 2) | ((offset & 3) ^ 1 );

for the A10 test and A8 test (GFX2 region of lethalen) we need:
........ | ((offset & 3) ^ 3 );

is there any doc about k053244?
2010-08-29 22:55:27 +00:00
Miodrag Milanovic
9d60dac435 Fix current code linking (no whatsnew) 2010-08-28 19:56:49 +00:00
Roberto Zandona
479d33551d removed obsolete comment 2010-08-28 18:07:55 +00:00
Ryan Holtz
e6af68eaa1 Reverting until I can figure out what's up. 2010-08-28 17:50:23 +00:00
Ryan Holtz
c675ce7df5 Fix for class derivation issues brought about by pain meds. No whatsnew. 2010-08-28 17:14:12 +00:00
Ryan Holtz
821814658f Correcting device names. No whatsnew. 2010-08-28 16:48:51 +00:00
Brian Troha
2778348e29 minor rom name correction for D2K 2010-08-28 16:38:04 +00:00
Roberto Zandona
ddbfba03e9 the right fix for combatscb 2010-08-28 15:34:28 +00:00
Roberto Zandona
5071f538d5 04026: combatscb: Experiences various graphics glitches. [Roberto Zandonà] 2010-08-28 15:26:56 +00:00
Roberto Zandona
93fe5a32e2 combatscb: fixed offset and priorities [Roberto Zandonà] 2010-08-28 14:29:44 +00:00
Ryan Holtz
3c302e1537 Updated the K033906 PCI Bridge device to no longer be legacy. [Harmony]
Updated the K056230 LANC device to no longer be legacy. [Harmony]

Non-whatsnew note: Tested gradius4 and gticlub, seem to still work.
2010-08-28 07:51:12 +00:00
Roberto Zandona
750ab5ed12 toaplan1: removed custum video update for demonwld; now it's the same of toaplan1 2010-08-27 21:32:06 +00:00
mariuszw1
010cb3a0ce Fixed rom mapping in Super Poker. Removed "bad dump" flag from e2 roms, they pass self test now. [Mariusz Wojcieszek] 2010-08-27 21:16:06 +00:00
mariuszw1
2eba34ef89 New clones added
--------------------------------
Super Poker (Version 10.15S) [anondumper]
2010-08-27 20:18:24 +00:00
Roberto Zandona
b85bf34e13 [toaplan1] modified the mix for the tilemaps (like rallybik and demonwld); this fix outzone bug and vimana bug 2010-08-27 19:23:27 +00:00
Angelo Salese
d4aa908f57 Bored about this message ... 2010-08-27 14:06:53 +00:00
Ryan Holtz
2c3b3b9d5e Similar issue as with ins8154. No whatsnew. 2010-08-27 12:17:06 +00:00
Ryan Holtz
44bbd47830 Turns out those 'redundant' NULL checks were there for a reason. Balls. No whatsnew. 2010-08-27 12:11:31 +00:00
Ryan Holtz
af0b52857b Killing debug text. No whatsnew. 2010-08-27 11:57:53 +00:00
Miodrag Milanovic
cf43f32176 m6800 - Fixed initial state of bit 7 and 6 of flag registers (according to documentation) [Miodrag Milanovic]
- Used lookup tables in opcode execution
m6809 - Used lookup tables in opcode execution
2010-08-27 09:12:49 +00:00
Miodrag Milanovic
5319902394 Made MAME compile by adding missing H files restored from files Atari Ace sent (no whatsnew) 2010-08-27 09:03:57 +00:00
Miodrag Milanovic
ae3aadf53c Fixed error detected by compiler on win environment (no whatsnew) 2010-08-27 08:41:59 +00:00
Fabio Priuli
9c6f743089 Updated the PCI bus device so that PCI buses can be arranged in a tree like in real hardware [Samuele Zannoli]
Chihiro.c Improvements:  [Samuele Zannoli]
- Fixed the mapping of the bios at the top of the cpu addrsss space
- Updated the ram size to 128 megabytes
- Added some SMBus handling, to let the bios run
- Added placeholders for a few devices on the PCI bus
- Added the "jamdis StartAddress,Length" command to the debugger that lets you disassemble the "jam table" instructions used by the bios to do some basic hardware initialization.



This time it works for good ;)
2010-08-27 07:21:13 +00:00
Ryan Holtz
4cc59054e0 Updated the INS 8154 RAM I/O device to no longer be legacy. [Harmony]
Non-whatsnew note: For MESS.
2010-08-27 05:37:56 +00:00
Ryan Holtz
04aa0a09eb Updated the i8243 Port Expander device to no longer be legacy. [Harmony]
Non-whatsnew note: Requires a rebuild of driver/othello.c, driver/segas16a.c, and and audio/segag80r.c
2010-08-27 04:51:58 +00:00
Andrew Gardner
246b25b514 Various snk drivers now use driver_data. [Atari Ace] 2010-08-27 03:55:49 +00:00
Andrew Gardner
38129f3f9d Fixes the build tree. [no whatsnew]
This looks like the way to do it, but i could be wrong.
2010-08-27 03:19:00 +00:00
Ryan Holtz
5395f401ef Updated the Fairchild F3853 SMI device to no longer be legacy. [Harmony]
Non-whatsnew note: This is for MESS.  No idea how to work the Chess Champion, either, so I can't really test it, but hey, it builds.
2010-08-27 02:47:28 +00:00