Commit Graph

560 Commits

Author SHA1 Message Date
Quench
08c2ad802e Added Ameri Darts internal DSP dump and TMS32015 support to the
Amerdart driver. Also added savestate support to the game.
[Dr Decapitator, Quench]
2010-07-20 16:11:46 +00:00
Phil Bennett
e848cb8bb7 Various improvements to polepos.c [Alex Jackson]:
* Corrected the way the steering wheel is hooked up, fixing the jittery
   steering in the sets with MCUs.
 * Added a new layout file for the bootleg sets without MCUs (topracern and polepos2bi).
 * Converted clock frequencies to crystal values from xtal.c.
 * Added correct ROM names for the Namco-manufactured sets (polepos and polepos2).
 * Completely removed the unused global variable polepos_gear_bit.
 * Fixed a couple of bootleg ROMs that were very likely bit-rotted.
2010-07-15 11:05:38 +00:00
R. Belmont
018a21fa53 Add *IX man pages for MAME and utils [wallyweek] 2010-07-08 14:18:07 +00:00
smf-
c13eb4d193 turned i2cmem into a c++ device & ditched the unused legacy device. 2010-07-07 13:05:02 +00:00
Nicola Salmoria
0664448c9d divided segacrpt.c in two files, one for the old encryption and one for the new one. 2010-07-05 19:38:55 +00:00
Miodrag Milanovic
c14878e59a Imported image related utils from MESS into /lib/util [Miodrag Milanovic] 2010-07-05 10:19:05 +00:00
Aaron Giles
733b797a3d Split mame.c into mame.c and machine.c, the latter containing the
running_machine definition and implementation.

Moved global machine-level operations and accessors into methods on the
running_machine class. For the most part, this doesn't affect drivers
except for a few occasional bits:

  mame_get_phase() == machine->phase()
  add_reset_callback() == machine->add_notifier(MACHINE_NOTIFY_RESET, ...)
  add_exit_callback() == machine->add_notifier(MACHINE_NOTIFY_EXIT, ...)
  mame_get_base_datetime() == machine->base_datetime()
  mame_get_current_datetime() == machine->current_datetime()

Cleaned up the region_info class, removing most global region accessors
except for memory_region() and memory_region_length(). Again, this doesn't
generally affect drivers.
2010-06-30 03:46:21 +00:00
Phil Bennett
6fa25e5c9a aristmk4: various improvements: [FrasheR, Palindrome]
* Fixed VIA for good. 5010 - 501F
* Hooked up push button inputs
* Hooked up ports for the PML 2852 U3
* Implemented coin input
* Lamp output and button layout
* NVRAM backup
* Connected SW7 for BG colour map select
* Added LK13. 3MHz or 1.5 MHz CPU speed select
* Added sound sample for mechanical meter pulse
* Replaced custom RTC code with MC146818
2010-06-27 14:42:45 +00:00
Phil Bennett
b94bf9156b Hooked up Daikaiju no Gyakushu 68705 MCU and removed MCU simulation code [Phil Bennett, Dr. Decapitator] 2010-06-26 20:34:51 +00:00
Aaron Giles
29b6b0de41 C++-ified the debugger views. Not quite architecturally where I would
like them, but it's a start. Split implementation of individual view
types out to separate files. Updated all callers.

Also:
 * fixed okim6295 memory view
 * changed emualloc to free resource pools from earliest to latest
    so that early objects can safely clean up stuff they allocated
2010-06-25 05:11:42 +00:00
Miodrag Milanovic
ea8dd94677 - Moved ioproc implementation from MESS [Miodrag Milanovic]
- Implemented more image device calls, and did some cleanup (no whatsnew)
2010-06-23 19:35:49 +00:00
Miodrag Milanovic
cbe7260a59 - Moved softlist implementation from MESS [Miodrag Milanovic]
- Moved image related UI from MESS to emu core
- Reimplemented filename related image device calls
2010-06-20 18:48:02 +00:00
Ryan Holtz
834b1badde Added a skeleton driver for Philips CD-i-based arcade series, Quizard [Harmony]
New gamse marked as GAME_NOT_WORKING
------------------------------------
Quizard (1.7) [ANY, The Dumping Union, Harmony]
Quizard (2.2) [ANY, The Dumping Union, Harmony]
Quizard (3.2) [ANY, The Dumping Union, Harmony]
Quizard Rainbow (4.1) [ANY, The Dumping Union, Harmony]
2010-06-19 20:58:26 +00:00
Miodrag Milanovic
826dba5923 - removed MESS dependency from config.c
- moved image legacy device implementation to devimage.c
- created image.c implementation with initialization of devices/configuration for image devices, used those calls from mame.c
- some minor cleanup of legacy device and initial implementation of some calls

(no whatsnew for now, this is just for log,will put more info on final commit)
2010-06-17 20:06:54 +00:00
Miodrag Milanovic
d2a7b5f332 hashfile moved from MESS to emu section (needed for now in image support until softlist implementation is finished), this doesn't affect mame side (no whatsnew) 2010-06-17 06:57:05 +00:00
Miodrag Milanovic
848bf53c3d - moved opresolv and zippath into /lib/util from MESS [Miodrag Milanovic]
- removed ifdef MESS from osd part since calls are needed by zippath
2010-06-16 18:04:30 +00:00
Miodrag Milanovic
791a3515b9 devlegacy.c,clifront.c,info.c [Miodrag Milanovic]
- Created legacy image device
- Moved opresolv implementation from MESS
- listmedia is option is available in MAME too
- listxml output now contains image devices
2010-06-15 09:16:05 +00:00
Angelo Salese
4a7156c0a0 Dumped internal ROM for Janshi [Charles MacDonald] 2010-06-13 16:45:41 +00:00
Aaron Giles
100564d412 WARNING: There are likely to be regressions in both functionality and
performance as a result of this change. Do not panic; report issues to the
list in the short term and I will look into them. There are probably also
some details I forgot to mention. Please ask questions if anything is not
clear.

NOTE: This is a major internal change to the way devices are handled in
MAME. There is a small impact on drivers, but the bulk of the changes are
to the devices themselves. Full documentation on the new device handling
is in progress at http://mamedev.org/devwiki/index.php/MAME_Device_Basics

Defined two new casting helpers: [Aaron Giles]

  downcast<type>(value) should be used for safe and efficient downcasting
  from a base class to a derived class. It wraps static_cast<> by adding
  an assert that a matching dynamic_cast<> returns the same result in 
  debug builds.
  
  crosscast<type>(value) should be used for safe casting from one type to
  another in multiple inheritance scenarios. It compiles to a 
  dynamic_cast<> plus an assert on the result. Since it does not optimize
  down to static_cast<>, you should prefer downcast<> over crosscast<>
  when you can.
  
Redefined running_device to be a proper C++ class (now called device_t).
Same for device_config (still called device_config). All devices and
device_configs must now be derived from these base classes. This means
each device type now has a pair of its own unique classes that describe
the device. Drivers are encouraged to use the specific device types
instead of the generic running_device or device_t classes. Drivers that
have a state class defined in their header file are encouraged to use
initializers off the constructor to locate devices. [Aaron Giles]

Removed the following fields from the device and device configuration
classes as they never were necessary or provided any use: device class,
device family, source file, version, credits. [Aaron Giles]

Added templatized variant of machine->device() which performs a downcast
as part of the device fetch. Thus machine->device<timer_device>("timer")
will locate a device named "timer", downcast it to a timer_device, and
assert if the downcast fails. [Aaron Giles]

Removed most publically accessible members of running_device/device_t in
favor of inline accessor functions. The only remaining public member is
machine. Thus all references to device->type are now device->type(), etc.
[Aaron Giles]

Created a number of device interface classes which are designed to be mix-
ins for the device classes, providing specific extended functionality and
information. There are standard interface classes for sound, execution,
state, nvram, memory, and disassembly. Devices can opt into 0 or more of
these classes. [Aaron Giles]

Converted the classic CPU device to a standard device that uses the
execution, state, memory, and disassembly interfaces. Used this new class
(cpu_device) to implement the existing CPU device interface. In the future
it will be possible to convert each CPU core to its own device type, but 
for now they are still all CPU devices with a cpu_type() that specifies
exactly which kind of CPU. [Aaron Giles] 

Created a new header devlegcy.h which wraps the old device interface using
some special template classes. To use these with an existing device,
simply remove from the device header the DEVICE_GET_INFO() declaration and
the #define mapping the ALL_CAPS name to the DEVICE_GET_INFO. In their
place #include "devlegcy.h" and use the DECLARE_LEGACY_DEVICE() macro.
In addition, there is a DECLARE_LEGACY_SOUND_DEVICE() macro for wrapping
existing sound devices into new-style devices, and a 
DECLARE_LEGACY_NVRAM_DEVICE() for wrapping NVRAM devices. Also moved the
token and inline_config members to the legacy device class, as these are
not used in modern devices. [Aaron Giles]

Converted the standard base devices (VIDEO_SCREEN, SPEAKER, and TIMER) 
from legacy devices to the new C++ style. Also renamed VIDEO_SCREEN to
simply SCREEN. The various global functions that were previously used to
access information or modify the state of these devices are now replaced
by methods on the device classes. Specifically:

  video_screen_configure()             == screen->configure()
  video_screen_set_visarea()           == screen->set_visible_area()
  video_screen_update_partial()        == screen->update_partial()
  video_screen_update_now()            == screen->update_now()
  video_screen_get_vpos()              == screen->vpos()
  video_screen_get_hpos()              == screen->hpos()
  video_screen_get_vblank()            == screen->vblank()
  video_screen_get_hblank()            == screen->hblank()
  video_screen_get_width()             == screen->width()
  video_screen_get_height()            == screen->height()
  video_screen_get_visible_area()      == screen->visible_area()
  video_screen_get_time_until_pos()    == screen->time_until_pos()
  video_screen_get_time_until_vblank_start() == 
                                 screen->time_until_vblank_start()
  video_screen_get_time_until_vblank_end() == 
                                 screen->time_until_vblank_end()
  video_screen_get_time_until_update() == screen->time_until_update()
  video_screen_get_scan_period()       == screen->scan_period()
  video_screen_get_frame_period()      == screen->frame_period()
  video_screen_get_frame_number()      == screen->frame_number()

  timer_device_adjust_oneshot()        == timer->adjust()
  timer_device_adjust_periodic()       == timer->adjust()
  timer_device_reset()                 == timer->reset()
  timer_device_enable()                == timer->enable()
  timer_device_enabled()               == timer->enabled()
  timer_device_get_param()             == timer->param()
  timer_device_set_param()             == timer->set_param()
  timer_device_get_ptr()               == timer->get_ptr()
  timer_device_set_ptr()               == timer->set_ptr()
  timer_device_timeelapsed()           == timer->time_elapsed()
  timer_device_timeleft()              == timer->time_left()
  timer_device_starttime()             == timer->start_time()
  timer_device_firetime()              == timer->fire_time()

Updated all drivers that use the above functions to fetch the specific
device type (timer_device or screen_device) and call the appropriate
method. [Aaron Giles]

Changed machine->primary_screen and the 'screen' parameter to VIDEO_UPDATE
to specifically pass in a screen_device object. [Aaron Giles]

Defined a new custom interface for the Z80 daisy chain. This interface
behaves like the standard interfaces, and can be added to any device that
implements the Z80 daisy chain behavior. Converted all existing Z80 daisy
chain devices to new-style devices that inherit this interface.
[Aaron Giles]

Changed the way CPU state tables are built up. Previously, these were data
structures defined by a CPU core which described all the registers and how
to output them. This functionality is now part of the state interface and
is implemented via the device_state_entry class. Updated all CPU cores
which were using the old data structure to use the new form. The syntax is
currently awkward, but will be cleaner for CPUs that are native new 
devices. [Aaron Giles]

Converted the okim6295 and eeprom devices to the new model. These were
necessary because they both require multiple interfaces to operate and it
didn't make sense to create legacy device templates for these single cases.
(okim6295 needs the sound interface and the memory interface, while eeprom
requires both the nvram and memory interfaces). [Aaron Giles]

Changed parameters in a few callback functions from pointers to references
in situations where they are guaranteed to never be NULL. [Aaron Giles]

Removed MDRV_CPU_FLAGS() which was only used for disabling a CPU. Changed
it to MDRV_DEVICE_DISABLE() instead. Updated drivers. [Aaron Giles]

Reorganized the token parsing for machine configurations. The core parsing
code knows how to create/replace/remove devices, but all device token
parsing is now handled in the device_config class, which in turn will make
use of any interface classes or device-specific token handling for custom
token processing. [Aaron Giles]

Moved many validity checks out of validity.c and into the device interface
classes. For example, address space validation is now part of the memory
interface class. [Aaron Giles]

Consolidated address space parameters (bus width, endianness, etc.) into
a single address_space_config class. Updated all code that queried for
address space parameters to use the new mechanism. [Aaron Giles]
2010-06-08 06:09:57 +00:00
Roberto Fresca
e9e9e31d9c Improvements to Lucky Girl (newer Z80 based hardware): [Roberto Fresca]
* Improved the input system, added missing buttons.
 * Figured out the full coinage DIP switches. (Coins A, B, C, Key In)
 * Found and documented the output ports.
 * Added full lamps support.
 * Created a new button-lamps layout.
 * Hooked the coin and key in counters.
 * Added technical notes.
2010-06-07 01:54:25 +00:00
mariuszw1
7ca4c4a9f5 pcat_nit.c update [Mariusz Wojcieszek]
- added VGA emulation from MESS
- added INS8250 emulation from MESS
- added format decimal support to Microtouch
- added rom banking and inputs to pcat_nit games
- streetg(2) now boot properly
2010-06-05 19:41:27 +00:00
Angelo Salese
00d405a975 Basic M6502 hook-up in Royal Gum [David Haywood]
Moved Miracle Derby inside homedata.c driver [David Haywood]
2010-06-03 15:27:27 +00:00
Couriersud
690f98e05b Moved tms6100 code into emu/machine/tms6100.[ch]. Added pinouts for TMS6100 and M58819. [Couriersud] 2010-05-31 19:54:22 +00:00
Angelo Salese
dfafd7bd5d Ported Super Famicom Box from MESS to MAME [Angelo Salese]
Modified the naomi clipping a bit to avoid so many black lines at the bottom [David Haywood]

new clones
----------
Road Riot's Revenge (prototype, set 3) [Siftware]
Indoor Soccer (set 2) [Siftware]

new not working
---------------
Super Famicom Box BIOS [Angelo Salese]
New Super 3D Golf Simulation - Waialae No Kiseki / Super Mahjong 2 (Super Famicom Box) [Angelo Salese]
2010-05-22 14:05:16 +00:00
Fabio Priuli
728e00bc44 sega16sp: moved bootleg interfaces to the system 16 bootleg driver and added different interfaces to avoid drivers to directly access device private items. No whatsnew.
snes.c: moved some more elements to driver_data class and added skeleton support for the BS-X satellaview addon (which will be used by MESS, eventually). No whatsnew.
2010-05-19 08:52:12 +00:00
Luca Elia
ede9da11b2 New driver: sigmab98.c [Luca Elia]
New games added or promoted from NOT_WORKING status
---------------------------------------------------

GeGeGe no Kitarou Youkai Slot [A. Hoekman, ranger_lennier, Smitdogg, The Dumping Union, Luca Elia]

New games marked as GAME_NOT_WORKING
------------------------------------

Win Win Bingo (2 sets) [f205v, Filippo Tarderia]
Zoo [Brian Troha, The Dumping Union]
2010-05-16 14:04:49 +00:00
Michaël Banaan Ananas
f45ce8f223 rm empty unused file 2010-05-10 13:48:49 +00:00
Roberto Fresca
8ab54982e1 New Lucky 8 Lines hardware:
* Added lamps support to lucky8, lucky8a, lucky8b,
    ns8liner, ns8linew and kkojnoli.
 * Created lamps layout for the above sets.
 * New inputs for ns8linew. This set has a second set of inputs,
    and can be switched between them. No lamps activity or Big/Small
    buttons are present while this alternative controls are used.
    Maybe is a leftover.
 * Some DIP switches were figured out. Coinage and limits are still
    a real mystery since all DIP switches are reflected in the test mode.
 * Remapped inputs to be straightforward with the control panel.
 * Added the type (W-4/F-5) to the sets description.
 * General inputs clean-up.


New games added or promoted from NOT_WORKING status
---------------------------------------------------
New Lucky 8 Lines / New Super 8 Lines (F-5, Witch Bonus)
[Roberto Fresca, incog, Smitdogg, The Dumping Union]
2010-05-06 16:51:41 +00:00
Fabio Priuli
d327f106f4 sega system16 and later: first pass in the conversion of video ICs to be devices [David Haywood]
also, out of whatsnew: modified segaybd to use callbacks for output instead of a huge switch statement (as per Haze's and Arbee's suggestions).
2010-04-26 15:28:03 +00:00
Scott Stone
89c4252140 Added a screen layout for Space Stranger based on photos [M.A.S.H] 2010-04-23 22:11:06 +00:00
Roberto Fresca
5b15b9b029 More improvements to Treasure Bonus (Subsino) [Roberto Fresca]
* Fixed inverted functions and buggy inputs.
 * Added lamps support.
 * Created button-lamps layout.
 * Remapped inputs to reflect the controls layout. This way is more
    user-friendly since controls are straight with button-lamps.
 * Added coin/keyin/keyout/payout counters.
 * Removed the pulse limitation in the BET input. This allow it to work
    as BET and STOP2 properly.
 * Added technical notes.
2010-04-22 19:08:45 +00:00
Roberto Fresca
392179b0ab Improvements to Shark Party (English, Alpha license): [Roberto Fresca]
* Created complete inputs from the scratch.
 * Added coin/keyin/keyout counters.
 * Added main game and double-up rates DIP switches.
 * Added minimum bet DIP switches.
 * Added maximum bet DIP switches.
 * Added complete coinage and remote credits DIP switches.
 * Added jokers and demo sounds DIP switches.
 * Figured out and documented all the game outputs.
 * Created proper button-lamps layout.

Now the game is in full-working state.
2010-04-20 06:56:01 +00:00
Fabio Priuli
1e21b12b9e Added driver data class and save states to playmark.c, powerbal.c, pushman.c and pzletime.c [Fabio Priuli] 2010-04-19 08:00:59 +00:00
Ryan Holtz
b64d429b8e Reworked the entire Nintendo 64 renderer to be class-based. More
cleanup to follow. [Harmony]
2010-04-02 05:34:10 +00:00
Angelo Salese
2f0d3d3d25 Replaced Stocker dump with a good set [Kevin Eshbach]
Hooked up default NVRAM for Golly Ghost / Bubble Trouble [David Haywood]

clones
---
Moon Base (set 2) [jmurjr, D. Maeby, Charles MacDonald, The Dumping Union]
Vapor Trail - Hyper Offence Formation (World revision 3?) [f205v, Tirino73]
Cherry Bonus III (alt, set 2) [Anonymous]


new NOT WORKING games
---------------------
Lucky Boy / Poker 72 [David Haywood]
2010-03-28 19:53:10 +00:00
Fabio Priuli
b7d6cf77c1 metro.c: added driver data class [Fabio Priuli]
vmetal: added driver data class and save states [Fabio Priuli]

no save states in metro.c (yet) because some games like 3kokushi have serious glitches when loading a state. any help is welcome...
2010-03-17 16:38:26 +00:00
Fabio Priuli
47a1fe17f8 spc700.c: Added save states [Fabio Priuli]
snes.c: Updated the snes sound device to use device handlers, to store its internals in a struct, and to save them [Fabio Priuli]
2010-03-17 09:33:15 +00:00
Fabio Priuli
462128d7a8 Added driver data class and save states to: paradise.c, pasha2.c and pbaction.c
Enabled saves states in pass.c (everything was already saved)
2010-03-16 07:53:12 +00:00
Roberto Fresca
1388839de7 More improvements to Funworld driver. [Roberto Fresca]
* Reworked button-lamps layouts per game. Cleaned-up the code.
 * Added specific button-lamps layout for bigdeal games.
 * Added specific button-lamps layout for royalcrd & jolycdit,
    but there is a bug in the d-up select code that lights the
    wrong lamp. This is a leftover from jollycrd routines.
 * Flagged vegasfte as GAME_NOT_WORKING, since is not receiving
    any coins or remote credits anymore.
2010-03-16 01:51:08 +00:00
Angelo Salese
8a376dc6e6 Added default NVRAM for Namco FL games and some Namco System 2 games [David Haywood] 2010-03-15 19:13:44 +00:00
Curt Coder
5826c45ea4 Imported Z80 DART and Z80 STI from MESS. (no whatsnew) 2010-03-08 16:47:53 +00:00
Roberto Fresca
f84bb3da43 New driver for Five Clown, from IGS. This is a dual 6502 system
with CRT controller, AY8910 and OKI M6295. Main program, graphics
and sound samples are encrypted. [Roberto Fresca, Grull Osgo]

 - Hooked both 6502 CPU's.
 - Hooked the M6845 CRT.
 - Decrypted main program and bulk GFX.
 - Decoded GFX and color PROM.
 - Hooked both PIA's 6821.
 - Worked inputs from the scratch.
 - Hooked DIP Switches banks 2 & 4.
 - Hooked proper interrupts for audio CPU.
 - Hooked the AY8910 latches...
 - Hooked the OKI6295.
 - Hooked DIP switches ports $C400 & $CC00.
 - Found the sound samples decryption algorithm.
 - Added NVRAM support.
 - Added a complete PCB layout.
 - Added game notes.
 - Added technical notes.


New games added or promoted from NOT_WORKING status
---------------------------------------------------
Five Clown (english) [Roberto Fresca, Grull Osgo]
Five Clown (spanish hack) [Roberto Fresca, Grull Osgo]
2010-03-08 05:23:44 +00:00
Angelo Salese
e65d75cfee Merged kingdrby.c and cowrace.c drivers [Angelo Salese] 2010-03-02 20:37:30 +00:00
Angelo Salese
8ba44d6bad new NOT WORKING
---------------

Royal Gum [Siftware]
2010-03-02 19:57:37 +00:00
R. Belmont
beeffeb5e7 Add MAME-ified version of SoftFloat library [John R. Hauser]
As previously discussed, this will be used for the MC680x0 FPU in 
order to handle high-precision floats portably.  The license is 
included in README.txt and is MAME compatible.
2010-03-02 04:26:48 +00:00
Fabio Priuli
19723cecd0 Added driver_data class and save states to the following drivers: oneshot.c, onetwo.c, orbit.c, othello.c and othldrby.c
Added driver_data class to the following drivers: nemesis.c and nyny.c
2010-03-01 09:10:49 +00:00
Fabio Priuli
bb91514d13 Added missing files from rev.8444 2010-03-01 05:39:34 +00:00
Fabio Priuli
745d7c0f68 Added driver_data class and save states to the following drivers: backfire.c, boogwing.c, cbuster.c, cninja.c, dassault.c, dblewing.c, deco156.c, rohga.c, simpl156.c [Fabio Priuli]
and yes, this completes driver data class for all the deco16ic drivers ;)
2010-02-25 21:17:06 +00:00
Fabio Priuli
ef97820c1b Renamed decodev->deco16ic [Fabio Priuli]
Added driver data class to funkyjet.c [Fabio Priuli]

Added driver data class and save states to vaportra.c and tumbleb.c [Fabio Priuli]
2010-02-25 16:21:27 +00:00
Fabio Priuli
acf08c5b70 Made deco32.c independent of deco16ic.c (it only needed a drawing routine) and removed deco16ic.c now that it is not needed anymore [Fabio Priuli] 2010-02-25 13:11:59 +00:00