Commit Graph

9987 Commits

Author SHA1 Message Date
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