Commit Graph

796 Commits

Author SHA1 Message Date
Curt Coder
2fa7094eab Added INT1, INT2, INT3, DRQ0, DRQ1, TMRIN0, TMRIN1 input and TMROUT0, TMROUT1 output lines to the Intel 80186 CPU interface. [Curt Coder] 2010-10-06 12:35: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
Ryan Holtz
179a81a030 Ported over CD-i cleanup from MESS. [Harmony] 2010-09-26 22:08:49 +00:00
Angelo Salese
72c62e09b2 new NOT WORKING
---------------------
Cosplay Heaven 5 [alien_mame, Angelo Salese]
2010-09-26 15:17:06 +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
R. Belmont
893c1f3e81 Add skeleton Apple Sound Chip device (no whatsnew) 2010-09-17 02:42:13 +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
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
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
smf-
acaf942e31 added missing file from Atari Ace's submission 2010-09-08 19:45:06 +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
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
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
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
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
Ryan Holtz
e2f6e9c473 Added a set of macros to minimize the amount of copy/pasting necessary to convert a device to the new style. [Harmony] 2010-08-26 01:56:46 +00:00
R. Belmont
65425075d3 New games added as GAME_NOT_WORKING
-----------------------------------
Savage Quest [TrevEB]
2010-08-25 01:11:26 +00:00
Aaron Giles
e38adf825e Added mask-free versions of read_word/read_dword/read_qword to
address_space. Also added unaligned variants that can read
unaligned values. Rewrote the core handler as a template that
handles all cases, along with a simple unit test to verify that
everything is correct.

Updated 68k, v60, i86, and nec cores to use unaligned read/
write instead of their own stubs for handling misalinged reads.

Fixed memory management of ga2 decryption.
2010-08-21 18:40:01 +00:00
Curt Coder
d303a4f17d Imported the Hitachi HCD62121 CPU core from MESS. 2010-08-20 17:32:03 +00:00
Aaron Giles
dd19e512c0 Massive memory system change. This is another step along the path toward
supporting cleaner implementations of drivers in the explicitly OO world.
Expect a follow-on of several more changes to clean up from this one, which
deliberately tried to avoid touching much driver code.

Converted address_space to a class, and moved most members behind accessor
methods, apart from space->machine and space->cpu. Removed external references
to 8le/8be/16le/16be/32le/32be/64le/64be. All external access is now done via
virtual functions read_byte()/read_word()/etc. Moved differentiation between
the endianness and the bus width internal to memory.c, and also added a new
axis to support small/large address spaces, which allows for faster lookups
on spaces smaller than 18 bits. 

Provided methods for most global memory operations within the new address_space 
class. These will be bulk converted in a future update, but for now there are
inline wrappers to hide this change from existing callers.

Created new module delegate.h which implements C++ delegates in a form that 
works for MAME. Details are in the opening comment. Delegates allow member 
functions of certain classes to be used as callbacks, which will hopefully 
be the beginning of the end of fetching the driver_data field in most 
callbacks. All classes that host delegates must derive from bindable_object.
Today, all devices and driver_data do implicitly via their base class.

Defined delegates for read/write handlers. The new delegates are always
passed an address_space reference, along with offset, data, and mask. Delegates
can refer to methods either in the driver_data class or in a device class.
To specify a callback in an address map, just use AM_READ_MEMBER(class, member).
In fact, all existing AM_ macros that take read/write handlers can now accept
delegates in their place. Delegates that are specified in an address map are
proto-delegates which have no object; they are bound to their object when
the corresponding address_space is created.

Added machine->m_nonspecific_space which can be passed as the required
address_space parameter to the new read/write methods in legacy situations 
where the space is not provided. Eventually this can go away but we will
need it for a while yet.

Added methods to the new address_space class to dynamically install delegates
just like you can dynamically install handlers today. Delegates installed this
way must be pre-bound to their object.

Moved beathead's read/write handlers into members of beathead_state as an
example of using the new delegates. This provides examples of both static (via
an address_map) and dynamic (via install_handler calls) mapping using delegates.

Added read/write member functions to okim6295_device as an example of using
delegates to call devices. Updated audio/williams.c as a single example of
calling the device via its member function callbacks. These will be bulk
updated in a future update, and the old global callbacks removed.

Changed the DIRECT_UPDATE_CALLBACKs into delegates as well. Updated all users
to the new function format. Added methods on direct_read_data for configuring the
parameters in a standard way to make the implementation clearer.

Created a simple_list template container class for managing the common
singly-linked lists we use all over in the project.

Many other internal changes in memory.c, mostly involving restructuring the code
into proper classes.
2010-08-19 06:57:51 +00:00
Angelo Salese
9000eb69e3 Improved video emulation to the Aristocrat MK-5, added bare-bones VIDC DMA transfer and timings, added 8bpp mode [Angelo Salese] 2010-08-18 20:37:01 +00:00
Phil Bennett
9ddee4ab77 Merged topshoot into the megadrvb driver (formerly genesisb) [Sonikos]
---------- Forwarded message ----------
From: abcd efgh <cix_999@yahoo.it>

- Hide quoted text -
Date: Sat, Aug 14, 2010 at 8:41 PM
Subject: topshoot/genesisb
To: submit@mamedev.org


Hi

I merge topshoot into genesisb driver.

bye sonikos
2010-08-16 12:16:19 +00:00
Angelo Salese
4201afbb6d new NOT WORKING
----------------
Olympic Hot Stuff [Ogoun]
2010-08-13 09:59:00 +00:00
mariuszw1
793c0fd358 Added sound support to Signetics S2636 (by using VC4000 sound support from MESS). Hooked up sound to Malzak, Galaxia and Astro Wars [Mariusz Wojcieszek] 2010-08-12 19:45:01 +00:00
Phil Bennett
f3581568d8 Merged aladbl.c and ssf2md.c to create genesisb.c [Sonikos]
---------- Forwarded message ----------
From: abcd efgh <cix_999@yahoo.it>
Date: Mon, Aug 9, 2010 at 7:51 PM
Subject: genesisb.c
To: submit@mamedev.org


Hi everybody !
I made just a little work, i moved ssf2md  in to aladinb.c driver and
renamed this one genesisb.c for create a new driver for all the
Genesis\Megadrive bootleg.

Bye Sonikos.
2010-08-11 19:12:32 +00:00
Angelo Salese
d310259357 More refactoring to the Toaplan 2 / GP9001 VDP device [David Haywood] 2010-08-09 10:48:14 +00:00
Andrew Gardner
26d3ec3244 plygonet.c : Updates Polygonet driver to use driver_data class. [Atari Ace] 2010-08-08 07:07:15 +00:00
Andrew Gardner
0946c173cb dsp56k : Hooked up new execution engine. [Andrew Gardner] 2010-08-07 18:42:59 +00:00
Phil Bennett
cf66ab4463 New games added or promoted from NOT_WORKING
--------------------------------------------
The Last Starfighter (prototype) [Phil Bennett, Ken Van Mersbergen]
Air Race (prototype) [Phil Bennett, Ken Van Mersbergen]
2010-08-07 17:32:54 +00:00
Aaron Giles
ff3f202d0a Convert seta.c, seta2.c, and ssv.c to driver_data. [Atari Ace]
--

From: Atari Ace <atari_ace@frontier.com>
Date: Tue, Aug 3, 2010 at 3:03 PM
Subject: [patch] Convert seta/seta2/ssv to driver_data
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamedev,

This patch removes all global variables from seta.c, seta2.c and
ssv.c.  The number of AM_BASE() macros drops by 4% from 3111 to 2989.

Note: ssv.h and seta2.h are new files.

~aa
2010-08-04 15:58:29 +00:00
Andrew Gardner
7543a1a9a4 The dsp561xx CPU core now generates accurate disassembly for Konami Polygonet hardware
(verified against Motorola's reference disassembler). [Andrew Gardner, Stiletto]
2010-08-04 05:11:00 +00:00
Aaron Giles
fe47da274e Return to type safety. Changed address maps back into functions that build
up the definition, rather than the whole tokenizing system, which lost type
checking. Added a new module addrmap.c which implements the address map
classes, and changed the macros to call methods on the address_map and
address_map_entry classes which are strongly typed.

Fixed a few incorrectly specified memory map entries along the way. Please
double-check to make sure the behavior is expected in: twincobr.c, lordgun.c,
galaxold.c.

This change also means that since the address_maps are now constructor
functions, they are detected when not used, so a number of #ifdef UNUSED_CODE
were added around dangling address map definitions.

Also included with this change:
- removed cputag_clocks_to_attotime() and cputag_attotime_to_clocks() in
   favor of just expanding the class
- same for cputag_suspend() and cputag_resume()
2010-08-01 21:04:03 +00:00
Roberto Fresca
811ee9874e New driver for Mega Double Poker, from Blitz System Inc. [Roberto Fresca]
* Initial release.
 * Preliminary memory map.
 * Hooked both PIAs, but need more analysis to confirm the offsets.
 * Accurate graphics and color decode.
 * Added main PCB and daughterboard layouts.
 * Added partial docs and diagrams about the CPU/MCU/ROMs addressing.
 * Added debug and technical notes.


New games marked as GAME_NOT_WORKING
------------------------------------
Mega Double Poker (conversion kit) [Roberto Fresca, ChrisQC, Smitdogg]
2010-07-30 21:06:28 +00:00
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
stephh
56c1f02268 wardner, wardnerj, pyros (wardner.c driver) :
- Fixed Dip Switches and Inputs (after verification of the Z80 code)
2010-02-25 10:51:37 +00:00
Fabio Priuli
9c435fdb38 Implemented device version of the deco16ic tilemap chip [Fabio Priuli]
Converted backfire.c, boogwing.c, dietgo.c, mirage.c, pktgaldx.c, simpl156.c, supbtime.c, tumblep.c to use the device-fied video chips [Fabio Priuli]

Added driver data struct and save states to the following drivers: dietgo.c, mirage.c, pktgaldx.c, supbtime.c and tumblep.c [Fabio Priuli]


side note: the device-fied code (currently included in video/decodev.c) still needs various refinements, but I will clean it up after all the drivers have been converted.
2010-02-25 00:33:25 +00:00
Fabio Priuli
a47eb26d5b Added driver_data struct and save states to the following drivers: matmania.c, metlclsh.c, mexico86.c, mouser.c, mrflea.c, mrjong.c, munchmo.c and mwarr.c
Added driver_data struct to the following drivers: mgolf.c, minivadr.c, mosaic.c and mrdo.c

Enabled save states to mugsmash.c (everything was already saved)
2010-02-23 19:18:49 +00:00
Fabio Priuli
02ef38f4bd forgotten headers 2010-02-21 00:37:26 +00:00
Fabio Priuli
c34df5727c Added driver_data struct and save states to the following drivers: madmotor.c, mazerbla.c, mikie.c, mjsister.c, mogura.c, mole.c and momoko.c 2010-02-20 17:44:46 +00:00
Fabio Priuli
9ec77c765d es5506.c: added save state to both ES5505 and ES5506 [Fabio Priuli]
added driver_data struct and save states to the following drivers: attckufo.c, m79amb.c, macrossp.c, marinedt.c, markham.c, mayumi.c and mcatadv.c
2010-02-20 12:09:42 +00:00
Dirk Best
1ad1e26df8 Moved ins8154 emulation from MESS to MAME, needed by future drivers 2010-02-20 02:57:56 +00:00
Fabio Priuli
3a7a4dfe3c skyfox.c: added driver data struct and save states [Fabio Priuli] 2010-02-18 18:24:51 +00:00
Fabio Priuli
1fd0720ac2 hexa: merged the remaining code into arkanoid.c 2010-02-18 18:23:58 +00:00
Scott Stone
784e015f66 Preliminary merging of hexa.c into the arkanoid.c driver.
Comments:  Further cleaning up of code and merging is possible as the includes/hexa.c and video/hexa.c haven't been merged at all and still exist.
2010-02-17 22:38:21 +00:00
Fabio Priuli
f26c5bf115 attckufo: Imported MOS6560 device emulation from MESS and removed the existent custom audio/video emulation [Fabio Priuli] 2010-02-17 17:07:06 +00:00
Angelo Salese
fd0f63de72 new working
-----------

Uncle Poo [Team Europe, Dumping Union, René Single, David Haywood, Angelo Salese]
2010-02-14 22:56:03 +00:00
Couriersud
f529fad8b3 Move functions from sdlclip.c to sdlos_*
- X11 clipboard code will now be compiled and will honor -DNO_X11
2010-02-12 21:21:42 +00:00
Miodrag Milanovic
0a6b13608d - Moved natural keyboard support from MESS to MAME
- Moved OSD file functions and clipboard access functions into OSD core
2010-02-12 15:40:11 +00:00
Couriersud
0898987bc3 Internal debugger using the mame rendering infrastructure
- added support for arbitrary number of containers for render_target
- added command-line parameter -debug_internal (-di) to use the internal debugger when in debug mode
- internal debugger supports all views except memory view
- added "Debug" view to layout/vertical.lay to create more place for debug views in vertical games.

The colors are ugly. Font rendering needs improvement. There are no shortcut keys right now. There is still a lot of room for more improvements.
However, it works and does not depend on any ui toolkit. The interface has been designed to support displaying views programmatically e.g. from the ui. 

Currently, the ui render target is used. In order to support views being displayed in separate windows further changes are needed:
- the osd layer must support creating and closing windows (render targets) on demand.
- There must be a mode for render targets where their bounds follows the window size - Currently the render target size depends on the aspect of currently selected "artwork" view.
- Render target needs a name property.

Short HowTo:

- Start MAME with "-debug -di"
- Console, register and disasm views will be shown. Place them by dragging the view on the title bar.
- Views can be resized by dragging the bottom-right yellow square.
- The view having the focus has a green background title bar.
- Hit "Tab" (IPT_UI_CONFIGURE) to show the menu.
- Console and disasm views support a very simple facility to support entering commands and addresses. Just start typing. Hit "enter" when finished.
2010-02-11 23:59:36 +00:00
Roberto Fresca
0f5caa3cfb New driver for Sigma B52 system.
ACRTC implementation is a bit hacky due to its preliminary emulation status.


New games marked as GAME_NOT_WORKING
------------------------------------
Joker's Wild (B52 system, set 1) [Roberto Fresca, Tomasz Slanina, Gerald Vanderick]
Joker's Wild (B52 system, set 2) [Roberto Fresca, Tomasz Slanina]
Joker's Wild (B52 system, Harrah's GFX) [Roberto Fresca, Tomasz Slanina, Gerald Vanderick]
2010-02-07 06:08:58 +00:00
R. Belmont
49e9851b24 Add and hook up ZOOM ZSG-2 skeleton [Olivier Galibert]
Doesn't do much at the moment, but the increase in documentation value is
significant (we're documenting the sample compression format, for one thing).
2010-02-07 04:59:42 +00:00
Scott Stone
1aa3fa6dcd Source Cleanup: Setname fixes and other minor changes - Drivers starting with D (part 1). 2010-02-04 18:59:33 +00:00
R. Belmont
01efae2c12 Preliminary Panasonic MN10200 CPU core and Taito ZOOM ZSG-1 sound system [Olivier Galibert]
---

This is just stage one of converting OG's stuff, please do not touch any 
of it yet.  Next up is the skeleton of the ZOOM chip, finishing up 
the missing bits of the CPU core (the interrupt controller and timers), and
debugging the results.
2010-02-04 05:20:18 +00:00
Roberto Fresca
7b22bc982c Improvements to Treasure Island:
- Added proper inputs.
 - Added coin/keyin/keyout/payout counters.
 - Limited the bet and coin pulses to avoid repeats and coin jams.
 - Added complete coinage and keyin DIP switches.
 - Added main game and double-up rates DIP switches.
 - Added minimum bet DIP switches.
 - Added maximum bet DIP switches.
 - Added main game and double-up limit DIP switches.
 - Added payout mode and auto take DIP switches.
 - Added DIP locations as seen in the settings mode.
 - Added demo sounds DIP switch.
 - Created proper button-lamps layout.
 - Added technical notes.
 - Some clean-ups...

(promoted from not working status....)

New games added or promoted from NOT_WORKING status
---------------------------------------------------
Treasure Island (Subsino) [Team Europe, Dumping Union, Angelo Salese, David Haywood, Roberto Fresca]
2010-02-03 07:25:49 +00:00
Angelo Salese
a165af4b1b new not working
----------------

Neptune's Pearls 2 [Tomasz Slanina]
2010-01-31 22:57:10 +00:00
Fabio Priuli
eac9b402ba Forgot to remove a file 2010-01-31 18:38:13 +00:00
Fabio Priuli
5f458ac103 Sega misc wip:
- split dependences of system16 games from bootleg ones
- moved some .h files to includes/
- removed some unneeded include
- removed some dead code
- added driver data struct to segahang.c, segaorun.c, segas16a.c, sega16b.c, segas18.c, segaxbd.c & segaybd.c
- added save states to segas16a.c


Side notes: 
* save states for other drivers do not work atm due to timer issues and/or missing item registrations in video/segaic16.c
* next, I'm going to see if bootlegs can be cleaned up a bit and if some segaic16 components can be device-fied
2010-01-31 18:07:57 +00:00
Roberto Fresca
e717512127 Moved HD63484 ACRTC device from mame/video to emu/video. 2010-01-26 07:46:49 +00:00
Angelo Salese
ab0df04b93 new not working
----------------

Pinkiri 8 [Gyrovision, Smitdogg, The Dumping Union]
2010-01-23 12:07:53 +00:00
Couriersud
10bee5ce78 The return of the "misc"
- Added sdlmisc_<targetos>.c again. This was necessary since
  certain tools create stubs for e.g. osd_break_into_debugger.
  If we do not have this in a separate file, the link stage may
  break.
- Applied OS/2 patch [Credit: KO Myung-Hun]
- Cleaned up #includes. Removed stdlib.h were possible.
- More malloc to osd_malloc rename.
- SDL monitor modes are read now when they are needed. This is now consistent across platforms.
2010-01-21 22:54:49 +00:00
mariuszw1
8683a494e9 New games marked as NOT_WORKING
-------------------------------
Penguin Adventure (bootleg) [Mariusz Wojcieszek]

Game is playable, but coin system is missing, so I left NOT_WORKING flag.
2010-01-20 22:15:23 +00:00
Phil Bennett
1227bbfd0c Converted the following drivers to use a driver_data structure: [Atari Ace]
bigstrkb, mugsmash, pass, sbugger, sderby, shadfrce, shootout,
silkroad, spbactn, sslam, stlforce, taitojc, tunhunt,
welltris, wwfsstar, xyonix


---------- Forwarded message ----------
From: Atari Ace <atari_ace@verizon.net>
Date: Fri, Jan 15, 2010 at 4:21 PM
Subject: [patch] [resubmit] More driver_data conversions
To: submit@mamedev.org
Cc: atariace@hotmail.com


Another driver_data patch, this one converting the following drivers
(same as last submission, minus taitoair):

bigstrkb, mugsmash, pass, sbugger, sderby, shadfrce, shootout,
silkroad, spbactn, sslam, stlforce, taitojc, tunhunt,
welltris, wwfsstar, xyonix

~aa
2010-01-17 21:56:15 +00:00
Phil Bennett
51f56f0eb6 Missed a file 2010-01-17 16:49:39 +00:00
Phil Bennett
2860295205 New games added or promoted from NOT_WORKING
--------------------------------------------
F-15 Strike Eagle (2 sets) [Phil Bennett]
Battle of the Solar System (rev. 1.1) [Phil Bennett]
Tank Battle (prototype rev. 4/21/92) [Phil Bennett]


Added Am29000 CPU core [Phil Bennett]
2010-01-17 16:21:57 +00:00
Roberto Fresca
51d5cf69e3 Properties were screwed-up... 2010-01-17 02:13:35 +00:00
Roberto Fresca
4a6e0d1c3c Improvements to subsino.c
(general):

 - Lowered CPU clock to 1.5 MHz.
 - Reworked former inputs.
 - Added specific game and technical notes.
 - Added lamps support.
 - Cleaned-up a bit the driver.

 Victor 5:

 - Mapped the M6295 but commented out due to missing sample roms.
 - Added keyin, keyout, payout, stats and settings inputs.
 - Added coin/keyin/keyout counters.
 - Limited the bet and coin pulses to avoid repeats and coin jams.
 - Added complete coinage and keyin DIP switches.
 - Added main game and double-up rates DIP switches.
 - Added minimum bet DIP switches.
 - Added maximum bet DIP switches.
 - Added attract music DIP switch.
 - Added button-lamps layout.

 Victor 21:

 - Mapped the M6295 but commented out due to missing sample roms.
 - Added bet x10, keyin, keyout, stats and settings inputs.
 - Added coin/keyin/keyout/payout counters.
 - Limited the bet and coin pulses to avoid repeats and coin jams.
 - Added complete coinage and keyin DIP switches.
 - Added main game rate DIP switches.
 - Added minimum bet DIP switches.
 - Added attract music DIP switch.
 - Added button-lamps layout.

 Poker Carnival (crsbingo):

 - Added change card, keyin, keyout, stats and settings inputs.
 - Added coin/keyin/keyout/payout counters.
 - Limited the bet and coin pulses to avoid repeats and coin jams.
 - Added complete coinage and keyin DIP switches.
 - Added double-up rate DIP switches.
 - Added minimum bet DIP switches.
 - Added maximum bet DIP switches.
 - Added cards graphics DIP switches.
 - Added double-up type DIP switches.
 - Added button-lamps layout.

 Super Rider, Super Moto:

 - Added stats and settings inputs.
 - Added coin counters.
 - Added main game and double-up rates DIP switches.
 - Added double-up and control type DIP switches.
 - Added coinage and demo sounds DIP switches.
 - Added button-lamps layout.

 Shark Party:

 - Added stats and settings inputs.
 - Added coin counters.
 - Added main game and double-up rates DIP switches.
 - Added double-up, coinage and demo sounds DIP switches.
 - Added button-lamps layout.
2010-01-17 02:03:49 +00:00
R. Belmont
cfa1a02096 Add SDLMAME keymaps (no whatsnew) 2010-01-16 14:40:50 +00:00
Phil Bennett
5758be57e9 New games marked as GAME_NOT_WORKING
------------------------------------
King Tut (Australia) [David Haywood]
Money Bank (Australia) [David Haywood]
2010-01-16 11:30:32 +00:00
Ryan Holtz
8d183da738 Added a mostly-complete SunPlus u'nSP core based on the one in Segher's "Unununium". [Harmony] 2010-01-14 05:35:34 +00:00
R. Belmont
b53bb2c6ac SDLMAME initial import [R. Belmont, Couriersud] 2010-01-13 04:01:20 +00:00
Aaron Giles
4498faacd9 First round of an attempted cleanup of header files in the system.
- Created new central header "emu.h"; this should be included
    by pretty much any driver or device as the first include. This
    file in turn includes pretty much everything a driver or device
    will need, minus any other devices it references. Note that
    emu.h should *never* be included by another header file.
 - Updated all files in the core (src/emu) to use emu.h.
 - Removed a ton of redundant and poorly-tracked header includes
    from within other header files.
 - Temporarily changed driver.h to map to emu.h until we update
    files outside of the core.

Added class wrapper around tagmap so it can be directly included
and accessed within objects that need it. Updated all users to
embed tagmap objects and changed them to call through the class.

Added nicer functions for finding devices, ports, and regions in
a machine:

   machine->device("tag") -- return the named device, or NULL
   machine->port("tag") -- return the named port, or NULL
   machine->region("tag"[, &length[, &flags]]) -- return the
      named region and optionally its length and flags
      
Made the device tag an astring. This required touching a lot of 
code that printed the device to explicitly fetch the C-string
from it. (Thank you gcc for flagging that issue!)
2010-01-10 00:29:26 +00:00
Fabio Priuli
cbfecc9d6b Added driver data struct + save states to darius.c & othunder.c
Added driver data struct to ninjaw.c, slapshot.c, warriorb.c, wgp.c

There is still some TC0100SCN issue when reloading, which corrupts tilemap2, hence no save states in the latter drivers atm
2010-01-09 08:36:34 +00:00
Aaron Giles
ab68710ce5 Oops, forgot these files. 2010-01-08 06:11:00 +00:00
Aaron Giles
91a1b8d634 NOTE: This change requires two new osd functions: osd_malloc() and
osd_free(). They take the same parameters as malloc() and free().

Renamed mamecore.h -> emucore.h.

New C++-aware memory manager, implemented in emualloc.*. This is a
simple manager that allows you to add any type of object to a
resource pool. Most commonly, allocated objects are added, and so
a set of allocation macros is provided to allow you to manage
objects in a particular pool:

  pool_alloc(p, t) = allocate object of type 't' and add to pool 'p'
  pool_alloc_clear(p, t) = same as above, but clear the memory first
  pool_alloc_array(p, t, c) = allocate an array of 'c' objects of type
                              't' and add to pool 'p'
  pool_alloc_array_clear(p, t, c) = same, but with clearing
  pool_free(p, v) = free object 'v' and remove it from the pool

Note that pool_alloc[_clear] is roughly equivalent to "new t" and
pool_alloc_array[_clear] is roughly equivalent to "new t[c]". Also
note that pool_free works for single objects and arrays.

There is a single global_resource_pool defined which should be used
for any global allocations. It has equivalent macros to the pool_*
macros above that automatically target the global pool.

In addition, the memory module defines global new/delete overrides
that access file and line number parameters so that allocations can
be tracked. Currently this tracking is only done if MAME_DEBUG is
enabled. In debug builds, any unfreed memory will be printed at
the end of the session.

emualloc.h also has #defines to disable malloc/free/realloc/calloc.
Since emualloc.h is included by emucore.h, this means pretty much
all code within the emulator is forced to use the new allocators.
Although straight new/delete do work, their use is discouraged, as
any allocations made with them will not be tracked.

Changed the familar auto_alloc_* macros to map to the resource pool
model described above. The running_machine is now a class and contains
a resource pool which is automatically destructed upon deletion. If
you are a driver writer, all your allocations should be done with
auto_alloc_*.

Changed all drivers and files in the core using malloc/realloc or the 
old alloc_*_or_die macros to use (preferably) the auto_alloc_* macros 
instead, or the global_alloc_* macros if necessary.

Added simple C++ wrappers for astring and bitmap_t, as these need
proper constructors/destructors to be used for auto_alloc_astring and
auto_alloc_bitmap.

Removed references to the winalloc prefix file. Most of its 
functionality has moved into the core, save for the guard page 
allocations, which are now implemented in osd_alloc and osd_free.
2010-01-08 06:05:29 +00:00
Fabio Priuli
3b7a8c389c Misc Taito wip:
* added driver data struct to taito_l.c & opwolf.c

* added driver data struct + save states to asuka.c (cadash was not supporting saves), rainbow.c, rastan.c, taito_f2.c, taito_h.c, taito_o.c, taito_z.c, topspeed.c & volfied.c

not worth mentions:
* renamed a couple of megablst clones for consistency (as per stephh's remark)
* slightly changed tnzs RAM/ROM banks behaviour to avoid writes on ROM banks
2010-01-07 22:32:22 +00:00
Fabio Priuli
10b94ff0a7 added driver data struct to taitoair.c and taito_b.c
more taito drivers will follow...
2010-01-07 07:30:37 +00:00
Phil Bennett
5be4dc8d54 Added some missing header declarations and static qualifiers. Added validity.h to the core for consistency as well as an explicit foo.h in each foo.c. [Atari Ace]
---------- Forwarded message ----------
From: Atari Ace <atari_ace@verizon.net>

Date: Sat, Dec 26, 2009 at 5:01 PM
Subject: [patch] Header/static cleanups
To: submit@mamedev.org
Cc: atariace@hotmail.com

- Hide quoted text -
Hi mamedev,

This patch add some missing header declarations and static qualifiers,
and adjusts a few names.  In the core, it adds validity.h for
consistency as well as an explicit foo.h in each foo.c.

~aa
2010-01-06 21:09:25 +00:00
Phil Bennett
f7e0c31d80 Metal Maniax improvements [Phil Bennett/luigi30]
* Fixed frame buffer display
* Started to add the other CPUs
* Added PCB layouts for layers 1 and 2
2010-01-06 20:37:21 +00:00
Fabio Priuli
2336b51f2f Forgot to commit these:
- added driver data struct & save states to gradius3.c
2010-01-06 11:38:48 +00:00
Fabio Priuli
005ca1d374 misc Konami wip:
* moved a few routines (used for sorting graphics layers) to konicdev.c since they are shared by several drivers

* added driver data struct to ajax.c and aliens.c

* added driver data struct + save states to: asterix.c, bishi.c, blockhl.c, bottom9.c, chqflag.c, crimfght.c, dbz.c,
gbusters.c, gijoe.c, lethal.c, mainevt.c, moo.c, overdriv.c, parodius.c, 
rollerg.c, rungun.c, simpsons.c, spy.c, surpratk.c, tail2nos.c, thunderx.c, 
tmnt.c, ultraman.c, vendetta.c, xexex.c and xmen.c

* updated some Konami drivers above to separately allocate palette/extra/work RAM instead of appending them to maincpu ROM; also, reduced maincpu rom regions where appropriate

* replaced memory_set_bankptr with memory_set_bank where necessary
2010-01-05 23:24:07 +00:00
Angelo Salese
e0b72fd796 new not working
---------------

Monza GP [Tomasz Slanina]

================================

roms at current/m/monzagp.zip
2010-01-04 19:37:50 +00:00
Angelo Salese
113e36effd new not working
---------------

Vega [David Haywood]

================================

roms at current/v/vega.zip
2010-01-04 16:40:47 +00:00
Phil Bennett
aba256db9a Converted the goldstar, liberate, sidearms and sidepckt drivers to use driver_data [Atari Ace]
---------- Forwarded message ----------
From: Atari Ace <atari_ace@verizon.net>
Date: Fri, Jan 1, 2010 at 5:27 PM
Subject: [patch][resubmit] Convert goldstar/liberate/sidearms/sidepckt
to use driver_data
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamedev,

This is a resubmit of my last driver_data patch.  It should be
non-controversial, although it contains some additional whitespace
cleanup in the affected files.

~aa
2010-01-03 17:03:27 +00:00
Aaron Giles
09d0cb8e12 Rename taiicdev.* -> taitoic.* 2009-12-30 03:28:44 +00:00
Aaron Giles
c05d24eb38 Delete old taitoic.* 2009-12-30 03:26:48 +00:00
Ryan Holtz
dc8b59fa8d Optimized RDP implementation further with more flattened branches. [Harmony] 2009-12-28 10:34:33 +00:00
Angelo Salese
c91275ca17 new clones
-----------

Spark Man (v 2.0, set 2) [Stefan Lindberg] (Not Working)


New not working
---------------

Race Drivin' Panorama
Metal Maniax
2009-12-28 00:49:59 +00:00
Aaron Giles
86a9e3e217 Rename eepromdev.c/h back to eeprom.c/h 2009-12-27 23:20:05 +00:00
Aaron Giles
ccc24c02f1 Remove old eeprom implementation. 2009-12-27 23:11:58 +00:00
Fabio Priuli
479c405c79 Misc Taito stuff:
* split I/O devices from video ones
* converted all taito drivers to use these I/O devices
* removed old I/O code from taitoic.c
* added preliminary tc0180vcu video device
2009-12-27 22:14:54 +00:00
Fabio Priuli
53f2a873a2 Added preliminary device version of Konami video ICs used in PowerPC games (001005, 001006, 001604 and 037122).
Added preliminary device version of Taito custom video ICs.
2009-12-26 02:02:17 +00:00
Angelo Salese
f64aa7e017 Basic driver for Cycle Mahbou 2009-12-24 17:17:17 +00:00
Fabio Priuli
b99e364eae Split ADC1038, Konami 033906 and Konami 056230 emulation from gticlub.c and konppc.c. Also, converted them to be devices and updated PPC Konami games to use the new code
Just out of curiosity: did sscope/sscope2 ever pass through the initial hw checks or did they regressed at some point?
2009-12-24 11:38:43 +00:00
Aaron Giles
79b8f09ad8 From: Samuele Zannoli <samuele.zannoli@sparkbio.it>
Date: Tue, Dec 22, 2009 at 11:57 AM
Subject: Core for PIC 16c62x series of processors
To: submit@mamedev.org


Hello,
         this patch contains a core for the PIC 16c62x series of processors.

It has been made starting from the pic16c5x that is already present.
This version stil misses the various internal devices, however the
opcodes and i/o ports work, and it is enough to run the emulation of
the security pics used with the gd-roms.

Bye,
       Samuele Zannoli
2009-12-23 18:01:49 +00:00
Fabio Priuli
ff7213f6f1 Added save states to ics2115 sound device
Added driver data struct and save states to psikyo.c and pgm.c

Added driver data struct to psikyo4.c and psikyosh.c
2009-12-22 14:49:27 +00:00
Ryan Holtz
9f1f17d6cd Forgot a few files. 2009-12-20 20:34:01 +00:00
Ryan Holtz
7ab8a6d8f6 More RDP optimization through branch flattening. [Harmony] 2009-12-20 20:12:04 +00:00
Ryan Holtz
d47b36dae1 Optimized N64 RDP renderer by using function pointers to function variants that eliminate costly branches. [Harmony] 2009-12-20 01:10:21 +00:00
Ryan Holtz
f9045e7268 [RSP] Preliminary RSP recompiler, with all vector ops stubbed out to C functions for now. [Harmony] 2009-12-16 23:26:58 +00:00
Fabio Priuli
dc96a004e6 some more Konami work (again):
* fixed 053936 init which was giving problems to f1gp2 (in debug build only, apparently)

* removed banptr preventing proper save states in rockrage.c: now save works fine

* added driver data struct and saves states to f1gp.c, fastlane.c, flkatck.c, hcastle.c, labyrunr.c and suprslam.c
2009-12-16 21:59:36 +00:00
Fabio Priuli
334c553890 some more Konami wip:
* fixed 056832 device start order to avoid wrong settings for layer 0. updated asterix.c and moo.c to use the device implementation now that it's working correctly.

* added driver data struct to 88games.c, combatsc.c and rockrage.c

* added driver data struct and save states to battlnts.c, bladestl.c, crshrace.c and contra.c

* renamed combasc to combatsc now that clones can have longer names
2009-12-16 10:47:22 +00:00
Fabio Priuli
f2a4c06f27 Misc Konami updates:
* moved k056800 sound device to emu/sound and removed the old code (mame/machine/konamiic.c )
* updated gticlub.c, hornet.c, nwk-tr.c, ultrsprt.c and zr107.c to use this implementation
* fixed various small (and not so small) problems in konicdev.c
* as a result Konami 007342, 007420, 052109, 052160 and 051316 devices are now working and 88games.c, battlnts.c, bladestl.c and rockrage.c have been updated to use them
2009-12-14 17:58:20 +00:00
Fabio Priuli
bf07322216 Added preliminary device versions of all the Konami custom ICs currently emulated in machine/konamiic.c and video/konamiic.c.
In particular, device-fied Konami 007121, 051733 and 053251 work fine and combatsc.c, contra.c, crshrace.c, f1gp.c, fastlane.c, flkatck.c, hcastle.c, labyrunr.c and suprslam.c have been converted to use the new code.


Side notes: 
* chips which have their own tilemap in MAME (e.g. 056832 and 052109) are not working yet, and other chips cannot be fully tested because they're used together with these... it's still wip
* some cleanup is in order (especially for interfaces), once I get the remaining chips to working state
* converting the drivers above, I noticed that f1gp2 was only using half of the k053936 regs: this is now fixed and, even if I don't know of any visible improvements, now there are definitely less unmapped writes logged by the debugger ;)
2009-12-14 01:32:51 +00:00
Fabio Priuli
d8e3212c7b Added driver data struct to 8080bw.c and mw8080bw.c. Also merged the .h files. 2009-12-14 01:17:45 +00:00
Fabio Priuli
8bdb970d1d Made MB14241 Shifter IC a device and moved its source to emu/machine. Updated mw8080bw.c and 8080bw.c accordingly. Also converted fgoal.c to use this implementation in place of its own version. 2009-12-13 12:03:51 +00:00
Fabio Priuli
4d2eba9882 Added TILE_GET_INFO_DEVICE macro to tilemap.c
Added driver data struct and save states to malzak.c
2009-12-13 11:59:35 +00:00
Fabio Priuli
30e421aac2 Added driver data struct to cvs.c
Added driver data struct and save states to: cbasebal.c, chinsan.c, mitchell.c and quasar.c


Not to be mentioned: I also removed use of memory_set_bankptr from CPS1 sound banking and renamed a couple of rallyx.c constants to be less generic
2009-12-12 19:03:40 +00:00
Fabio Priuli
9ccef5fb60 Imported SAA5050 emulation from MESS and made it a device. Updated malzak.c to use it, removing the almost identical implementation in the driver.
Out of whatsnew: Unfortunately, I was unable to make both malzak and p2000t (in MESS) to work without a small kludge, clearly documented in the source. I plan to further investigating the problem once I manage to merge the other 505x variants (later)
2009-12-12 18:22:43 +00:00
Fabio Priuli
66f8650aac misc small updates:
* added saves to 6522via.c. this fixes problems of gameplan.c and trvquest.c games with -autosave
* added driver data struct and save states to toratora.c and sf.c
* enable GAME_SUPPORTS_SAVE flag to dday.c because some of the core changes have fixed the sound problem at loading
* added a couple of comments about header inclusions
2009-12-11 23:59:11 +00:00
Fabio Priuli
72d156a858 of course, you could not compile without these files ;) 2009-12-11 10:54:02 +00:00
Fabio Priuli
dcd164adc7 Converted Signetics 2636 video chip to be a MAME device and updated drivers using it accordingly
Also, added driver data struct and save states to laserbas.c, laserbat.c, lastfght.c, lazercmd.c and lemmings.c

Finally, added driver data struct to lasso.c
2009-12-11 01:34:38 +00:00
Fabio Priuli
4a396461b3 Added driver data struct and save states to the following drivers:
ladybug.c, ladyfrog.c, lastduel.c, lwings.c, redclash.c and yunsung8.c
2009-12-10 14:22:37 +00:00
Fabio Priuli
637085584b Added driver data struct and save states to the following drivers:
kangaroo.c, karnov.c, kchamp.c, kickgoal.c, kingobox.c, kncljoe.c, koikoi.c, kopunch.c, ksayakyu.c and kyugo.c
2009-12-09 23:42:28 +00:00
Fabio Priuli
3781da05a5 Added driver data struct and save states to jack.c 2009-12-09 14:10:54 +00:00
Fabio Priuli
eb9e1e53e5 Added common driver data struct to timeplt.c, tutankhm.c, junofrst.c, pooyan.c, rallyx.c and rocnrope.c (these drivers all use audio/timeplt.c). As a side effect, we now have save states in junofrst.c and rallyx.c.
Added driver data struct to jackal.c

out of the whatsnew, a couple of remarks: 
- rallyx and nrallyx might require a separate driver data struct to deal with namco_soundregs, but I'll take care of this eventually (if really needed)
- jackal does not properly save the work ram banks atm, hence no SUPPORTS_SAVE flag, but I keep looking for a clean solution to the problem
2009-12-09 14:09:22 +00:00
Fabio Priuli
970edeb987 Added driver data struct to ironhors.c 2009-12-09 00:46:57 +00:00
Fabio Priuli
0c3290533f Added save states and driver data struct to the following drivers: fromance.c, fromanc2.c, ikki.c, imolagp.c, inufuku.c
Added driver data struct to pipedrm.c and added devices to gameplan.c driver data struct (to remove a few cputag calls)

Also, removed a couple of memory_set_bankptr that I had forgotten (buggychl.c & homedata.c)
2009-12-09 00:45:33 +00:00
Fabio Priuli
d1a758c12a Added save states and driver data struct to glass.c & homedata.c
Added driver data struct to hyprduel.c
2009-12-08 10:36:43 +00:00
Fabio Priuli
9872266cbb Added driver data struct and save states to: galspnbl.c, gcpinbal.c, ginganin.c, go2000.c, goal92.c, goindol.c, good.c, gotcha.c, gotya.c, gstream.c, gumbo.c, gundealr.c, hitme.c, holeland.c & homerun.c
Added driver data struct to: aerofgt.c and gyruss.c
2009-12-02 00:24:14 +00:00
Fabio Priuli
9ac246d99d Added driver data struct and save states to: hnayayoi.c, hanaawas.c, higemaru.c, himesiki.c and sonson.c
Also, added driver data struct to: alpha68k.c, amspdwy.c, gng.c, gunsmoke.c, hotblock.c

Finally, removed a couple of memory_set_bankptr I hadn't noticed in ddrible.c and gberet.c
2009-12-01 11:36:05 +00:00
Phil Bennett
0cd4d21890 Converted cabal, mappy, toypop and zaxxon to use driver_data structure [Atari Ace]
---------- Forwarded message ----------
From: Atari Ace <atari_ace@verizon.net>
Date: Sun, Nov 29, 2009 at 3:28 AM
Subject: [patch] Convert cabal/mappy/toypop/zaxxon to use driver_data
To: submit@mamedev.org
Cc: atariace@hotmail.com


Hi mamedev,

This patch is a resubmit of my earlier patch to have mappy and zaxxon
store their state in driver_data.  It extends the patch to toypop
(which uses some mappy code), and also converts cabal which I also did
some time ago.  cabal.h and toypop.h are new header files.

~aa
2009-12-01 10:56:22 +00:00
Fabio Priuli
883dd6f1fd Added driver data struct and save states to: gberet.c, ddrible.c, gaelco.c, trackfld.c, hyperspt.c, yiear.c
Added driver data struct to: galivan.c, jailbrek.c, sbasketb.c
2009-11-30 21:19:55 +00:00
Fabio Priuli
9694fca5f2 Added save states to funybubl.c, galaxi.c, gaiden.c and rocnrope.c
Added driver data struct to fuukifg2.c and fuukifg3.c (no save states yet due to anonymous timers)
Also, added more devices to dkong driver data (to minimize # of cputag_xxxx calls)

As a side note, now drgnbowl (one of the worst game ever) supports saves! enjoy :-P
2009-11-30 00:03:05 +00:00
Phil Bennett
960f3b1d7a Added missing includes for r7445 2009-11-28 23:26:25 +00:00
Fabio Priuli
b716ea8271 Added driver data struct to freekick.c
Also (but no need to mention it), removed some SMH_RAM occurrences in fitfight.c and fixed regression I caused in bowlrama (capbowl.c)
2009-11-27 23:31:21 +00:00
Fabio Priuli
6ab509cb8d Added driver data struct and save states to fitfight.c, flstory.c and funkybee.c
Also, added driver data struct to flyball.c and merged video emulation
2009-11-27 22:15:46 +00:00
Fabio Priuli
5ea417d583 Added driver data struct and save states to fantland.c and firetrap.c
Added driver data struct to dcheese.c
2009-11-27 10:08:26 +00:00
Fabio Priuli
7e6ff401f5 Added driver data struct to dday.c
Unfortunately, if you load a save state too early the game starts with no sound. For the moment, no SUPPORT_SAVE flag, but the game goes in my list of drivers which needs a second look. Feel free to step up and fix saves, if you like
2009-11-27 00:44:28 +00:00
Fabio Priuli
6379e9c903 Added driver data struct to bwing.c and slightly simplified the video code (by removing a couple of redundant variables).
More work would be needed to fully clean it up, but I'm not expert enough right now.
2009-11-27 00:42:04 +00:00
Fabio Priuli
330341d5e3 Added driver data struct and save states to the following drivers: chinagat.c, esd16.c, f-32.c, fcombat.c, finalizr.c.
Also, added driver data struct to ddragon.c, ddragon3.c and fgoal.c

fgoal.c suffers of pending timers and hence no save state flag
2009-11-27 00:30:00 +00:00
Fabio Priuli
e021bc1c14 Added save states to equites.c, exedexes.c, exerion.c and exprraid.c 2009-11-25 21:07:22 +00:00
Fabio Priuli
9b5b396d06 ooops... forgot that I added driver data struct to cheekyms.c as well. here it is. 2009-11-25 01:14:45 +00:00
Fabio Priuli
c2d537c3dd Added save states to the following drivers: ddayjlc.c, ddealer.c, deniam.c, discoboy.c, diverboy.c, dorachan.c, dragrace.c, dreamwld.c, dribling.c, drmicro.c, drtomy.c 2009-11-25 01:13:14 +00:00
Fabio Priuli
3ac828ef36 Added driver data struct to the following drivers: docastle.c, dotrikun.c, cloud9.c and destroyr.c
Notice that save states do not work in destroyr.c due to timers issues, atm.
2009-11-25 01:01:14 +00:00
Angelo Salese
092b3ac559 new not working
---------------
Submarine [David Haywood, Angelo Salese]
2009-11-24 23:31:30 +00:00
Angelo Salese
a7a09f29d5 hng64: added 16x16 / 8x8 tilemap mode select, fixes one scene in Extreme Rally and transition layer in Fatal Fury WA (squares on title screen) [David Haywood]
hng64: Added alt layout for the roz, fixes Roads Edge graphics before the title screen [David Haywood]

-----Messaggio originale-----
Da: David Haywood [mailto:neohaze@nildram.co.uk]
Inviato: martedì 24 novembre 2009 16.04
A: Angelo Salese
Oggetto: Hyper 64 alt layout

here..
apply over previous
alt layout for the roz.

From David Haywood (thru IM channels):

 ...and added 8x8 and 16x16 tilemaps for each mode.

corrects one scene in Xrally intro, and also transition layer in fatfurwa (see squares when you press start on title screen)

 (doesn't fix road edge alt tilemap mode yet)

 note: includes/hng64.h added, 3d disabled in driving games.
2009-11-24 15:28:16 +00:00
R. Belmont
c28a73c485 New games marked as GAME_NOT_WORKING
------------------------------------
Dragon Chronicles (DC001 Ver. A) [Guru]
Netchuu Pro Yakyuu 2002 (NPY1 Ver. A) [Guru]
Soul Calibur II (SC23 Ver. A) [Guru]
Soul Calibur II (SC21 Ver. A) [Guru]
Tekken 4 (TEF3 Ver. C) [Guru]
Tekken 4 (TEF2 Ver. A) [Guru]
Tekken 4 (TEF1 Ver. A) [Guru]
Mobile Suit Z-Gundam: A.E.U.G. vs Titans (ZGA1 Ver. A) [Guru]
Capcom Fighting Jam (JAM1 Ver. A) [Guru]
Quiz and Veriety Suku Suku Inufuku 2 (IN2 Ver. A) [Guru]
Mobile Suit Z-Gundam: A.E.U.G. vs Titans DX (ZDX1 Ver. A) [Guru]
Soul Calibur III (SC31001-NA-A) [Guru]
Kinnikuman Muscle Grand Prix (KN1 Ver. A) [Guru]
Taiko No Tatsujin 9 (TK91001-NA-A) [Guru]
Tekken 5.1 (TE51 Ver. B) [Guru]


This covers the BIOSes and memory card keys.  DVDs will be added later.  Please credit only Guru for these games.
2009-11-23 17:50:55 +00:00
Miodrag Milanovic
d98fa09e1f Added Intel 8008 and National Semiconductor SC/MP CPU cores 2009-11-23 08:19:29 +00:00
Aaron Giles
65250dc49c Oops, forgot to add these. 2009-11-23 06:42:47 +00:00
Fabio Priuli
7ce018db1d Added save states to the following drivers: compgolf.c, champbas.c, copsnrob.c, cop01.c, cosmic.c, cntsteer.c, dacholer.c and dec8.c
Also, removed a memory_set_bankptr I forgot in cultures.c
2009-11-23 01:01:03 +00:00
Fabio Priuli
7b8c510c95 and finally, the best part: added save states to armedf.c, calorie.c, canyon.c, chanbara.c, citycon.c, commando.c, crospang.c & cultures.c 2009-11-22 00:26:08 +00:00
Fabio Priuli
9307f270e5 And now, something worth a mention: added full driver data struct to changela.c, circus.c and circusc.c 2009-11-22 00:15:07 +00:00
Fabio Priuli
db53fd5203 Not worth credit: added as complete as possible driver data struct to 1945kiii.c, actfancr.c, aquarium.c and ccastles.c.
some palette/sprite/nvram regions require generic handlers, and are commented out
2009-11-22 00:03:39 +00:00
Fabio Priuli
715bbec027 Added driver_data struct and save states to chaknpop.c
Added save states to 2mindril.c, ashnojoe.c, bigfghtr.c, bublbobl.c, cchance.c, champbwl.c, missb2.c
Removed use of memory_set_bankptr where possible (in the drivers above and in angelkds.c)

i.e. some Taito love :)

as usual, drivers with only save state added also have almost complete driver_data struct, but the missing items do not affect saves (generic palette/sprite ram is automatically saved)
2009-11-21 01:00:09 +00:00
Fabio Priuli
01afdeded1 Added driver_data struct and save states to blockout.c and bigevglf.c 2009-11-20 15:32:12 +00:00
Fabio Priuli
d20689a4f8 Added save states to zerozone.c, yunsun16.c, dominob.c, dogfgt.c and bogeyman.c
Out of whatsnew: I also added driver_data struct to these drivers (and to bombjack.c & blktiger.c as well) BUT, as in bionicc.c, some memory pointers (spriteram, paletteram or nvram) are commented out due to use of generic handlers
2009-11-20 15:29:53 +00:00
Fabio Priuli
737b583448 Added driver data struct to beaminv.c
Added driver data struct and save states to blmbycar.c
2009-11-20 09:58:37 +00:00
Fabio Priuli
dcb1342d42 - Added driver_data struct to arkanoid.c
- Added driver_data struct and save states to hexa.c
2009-11-20 00:41:58 +00:00
Fabio Priuli
cba7af8e5b Added save states to bionicc.c
Out of whatsnew: this driver also has 99% of driver data stored in the struct. 
it still misses paletteram16, which currently uses a generic handler(and hence does not fit the struct approach), but I wanted save states so much for this game that I commit it anyway :-)
2009-11-19 23:22:24 +00:00
Fabio Priuli
205846afd7 Added driver_data struct to astrof.c, ambush.c and angelkds.c 2009-11-19 23:16:22 +00:00
Fabio Priuli
5020027c32 Added driver_data struct to appoooh.c and boxer.c. Also merged boxer video emulation into drivers/boxer.c.
Notice that state saves still do not work for boxer, due to timers which need to be untangled. I hope to work more on this issue in the weekend.
2009-11-19 20:36:19 +00:00
Fabio Priuli
d6ab329f41 Added driver_data struct and save states to bankp.c, battlane.c, blockade.c, blueprnt.c, brkthru.c and bsktball.c 2009-11-19 20:32:12 +00:00
Fabio Priuli
a7d1114325 Added driver_data struct and save states to battlex.c, carjmbre.c, popper.c and spaceg.c
...some Omori love ;)
2009-11-19 08:40:17 +00:00
Fabio Priuli
69e98c3a1e Forgot to commit this: Added driver_data struct to aeroboto.c 2009-11-18 23:26:26 +00:00
Fabio Priuli
0e9664b331 Added driver_data struct to 1942.c and 1943.c. Also moved 1943.c to use memory_configure_bank in place of memory_set_bankptr.
Side-notes (not worth mention): 
* I fear we were missing a local static array in 1942 save states (now it is saved)
* I haven't found a better way to configure 1943 banks than to split the 0x4000 bank into 4 pieces. can anyone come up with a better approach?
2009-11-18 15:30:40 +00:00
Fabio Priuli
1a9e28c419 Added driver_data struct to 4enraya.c 2009-11-18 12:51:25 +00:00
Fabio Priuli
d8588f632f Added save state support and driver data struct to m10.c, m14.c, m52.c, m57.c, m58.c, m62.c, m63.c and travrusa.c.
Merged some include files and merged audio/fghtbskt.c in drivers/m63.c.
2009-11-18 06:47:40 +00:00
Fabio Priuli
112a759ceb Added driver data struct and save state support to pandoras.c 2009-11-17 18:07:30 +00:00
mariuszw1
de54fe04aa Merged findout.c and getrivia.c into gei.c [Mariusz Wojcieszek] 2009-11-16 22:02:33 +00:00
Phil Bennett
e21bdc37b0 New games added
---------------
Oh! Paipee [Takahiro Nogi]
Tougenkyou [Takahiro Nogi]
2009-11-15 14:59:54 +00:00
Angelo Salese
d1b0f47a48 (There are a bunch of things that I want to check on it, I'll do them after a clean compile...)
-----Messaggio originale-----
Da: David Haywood [mailto:neohaze@nildram.co.uk]
Inviato: mercoledì 11 novembre 2009 13.38
Cc: Angelo Salese
Oggetto: Re: Slam Dunk 2

Improved video offsets for these games (they're not perfect, I think in reality they depend on layers enabled etc. but they're much improved)

apply after previous.

David Haywood wrote:
> with this I think you can mark it as working
>
> - added a workaround for it not enabling the display (tied to the 
> type4/rushing heroes hack we already have)
> - fixed rom loading for other sets (also swapped the data roms on 
> vsnet around so that the load positions match up with the working 
> games)
> - moved most of machine/konamigx.c to video/konamigx.c (mixer code
> etc.) left the protection related code in machine/konamigx.c
>
> note, you'll need to DELETE machine/konamigx.h from svn and ADD 
> includes/konamigx.h to it.
>
2009-11-11 17:45:53 +00:00
Angelo Salese
cde6c20e79 new working game
---------------
Dream 9 Final [Angelo Salese, David Haywood]
2009-11-07 18:48:53 +00:00
Luca Elia
92372b6cc6 IGS blitter based games update [Luca Elia]
- Renamed driver to igs011.c and cleaned it up
- Renamed some sets according to chinese title
- Implemented hopper in lhb, lhb2, wlcc
- Decrypted ryukobou

New clones added
----------------
Mahjong Ryukobou (Japan, V030J) [Luca Elia, Guru, Dyq, Bnathan]

New games marked as GAME_NOT_WORKING
------------------------------------
Mahjong Nenrikishu SP [Guru, Dyq, Bnathan]
2009-11-04 23:20:45 +00:00
Luca Elia
03726a87ef igs017.c update [Luca Elia]
- Merged in some IGS031 based games (igs_m68.c, tarzan.c)
- Implemented tiles flip x and video disable
- Added hopper simulation to mgcs
- Decrypted mgdh

Almost complete decryption of starzan and tarzana [iq_132]

New games added or promoted from NOT_WORKING status
---------------------------------------------------
Mahjong Super Da Man Guan II [Luca Elia, Pierpaolo Prazzoli, Guru, Xing Xing]
Mahjong Man Guan Da Heng [Luca Elia, Guru, The Dumping Union]

New clones added
----------------
Tarzan (V107) (not working) [iq_132]

New games marked as GAME_NOT_WORKING
------------------------------------
Super Tarzan [f205v, Mirko Buffoni, iq_132]
2009-11-03 23:32:58 +00:00
Phil Bennett
47750172e9 New games marked as GAME_NOT_WORKING
------------------------------------
Tournament Solitaire [Angelo Salese, Siftware]
2009-10-25 09:53:08 +00:00
Aaron Giles
eb2ba6cf6c Cleanups and version bump. 2009-10-25 05:34:14 +00:00
Aaron Giles
c57cc3659d Forgot to delete this. 2009-10-25 05:28:55 +00:00
mariuszw1
0ed3ab66b4 New games added as GAME_NOT_WORKING
-----------------------------------
Go! Go! Connie chan Jaka Jaka Janken [Mariusz Wojcieszek, Dumping Union]
2009-10-23 22:30:49 +00:00
Phil Bennett
ebfdf7e0d1 New games marked as GAME_NOT_WORKING
------------------------------------
Miracle Derby - Ascot [Stefan Lindberg, David Haywood]



Date: Thu, 22 Oct 2009 19:03:48 +0100
From: David Haywood <neohaze@nildram.co.uk>
CC: Philip Bennett <p.j.bennett@gmail.com>
Subject: Re: Miracle Derby

Well here is some initial rom loading, gfx decode, palette decode.

I haven't mapped the CPUs yet, but I imagine it will end up using mostly 
the home data code in the end (although that seems to have game specific 
code for a lot of games anyway, so there are probably some issues with 
that driver)

You can check this in for now, and it can be returned to later.
2009-10-22 19:33:27 +00:00
Angelo Salese
57dd9e65f1 i386: implemented SLDT & STR opcodes 2009-10-17 17:02:27 +00:00
Aaron Giles
357e36fc84 Eliminated osd_cpu.h.
Types are pretty much unified now.
Multiply operations are handled by eminline.h.
Divide operations were just silly in macros.
64/32-bit combination/extraction macros moved to osdcomm.h and renamed.

Also fixed compile errors in recent 68k changes.
2009-10-12 08:37:04 +00:00
Aaron Giles
3851b425b7 Moved all the OSD/windows code over to straight BSD license.
Updated osdmini to work again and compile as an actual target
(doing nothing at the moment). Converted all of its code over
to straight BSD as well.
2009-10-12 05:56:47 +00:00
R. Belmont
17fc4a4a78 m680x0 update:
- Added working PMMU address translation (not feature complete, but sufficient
  to boot several 68030 Macs in MESS)
- Fixed up disassembly of some PMMU instructions
- Added "68020 with 68851" CPU type
2009-10-12 02:50:35 +00:00
Fabio Priuli
a52fce206d Removing old and duplicate code for genesis/megadrive from MAME (part 2): updated bootlegs to use latest genesis code and finally removed src/mame/drivers/genesis.c! 2009-10-09 08:54:02 +00:00
Fabio Priuli
60235cf525 Renamed hazemd_s files to segamsys, as per Aaron advice...
I'm planning to contact Haze in order to organize some cleanup for these.
2009-10-03 17:34:10 +00:00
Fabio Priuli
b3adef6de8 From: David Haywood [mailto:neohaze@nildram.co.uk]
Sent: Thursday, October 01, 2009 5:25 AM
To: Aaron Giles
Subject: MD update

I'm trying to get the HazeMD code running again (by request, and so
that
I can look at fixing some of the bugs that have surfaced, including
ones
which affect MAME)

This shuffles a bunch of stuff around in order to help with that
process, I've also killed off some old megaplay code which wasn't
really
needed anymore, and used the newer code instead.
2009-10-01 21:47:09 +00:00
Tomasz Slanina
7ca608cabe Driver for Othello/Success. Incomplete sound emulation.
New games added or promoted from NOT_WORKING status
---------------------------------------------------
Othello (version 3.0) [Tomasz Slanina, Stefan Lindberg]
2009-10-01 15:50:42 +00:00
Derrick Renaud
54d913bda8 DISCRETE_555_MSTABLE - optimized speed and added new operating modes.
Sprint 8 - started discrete sound.
2009-10-01 04:12:28 +00:00
Derrick Renaud
ecffbf4c3b Discrete Updates:
Added DISCRETE_LOGIC_SHIFT - generic shift register
  Fixed DISCRETE_BIT_DECODE to apply proper voltage instead of clipping to INT.

Sky Raider - Partial discrete sound
2009-09-21 23:20:32 +00:00
Ryan Holtz
0b68bd6ab9 Ported SPC7110 support from bsnes. [Harmony]
Ported ST010 support from bsnes. [Fabio Priuli]
2009-09-19 21:10:59 +00:00
Fabio Priuli
d36e53bdf5 Ported Capcom CX4 implementation over from bsnes (original code by zsKnight, anomie and Nach). Mega Man X2 and X3 are now playable in MESS, with bugs. [Harmony]
These can be added: Nach was ok with use of his code provided the above credits were added (done in the source as well).
2009-09-17 16:24:31 +00:00
Roberto Fresca
6d812eb39c New driver for Amatic encryped gambling hardware.
This system is based on a custom CPU. Graphics are decoded but only 2 bitplanes hooked.
All the needed devices are in the driver, but commented out till can properly decrypt the program ROMs and identify the CPU.
About the encryption scheme, see the driver notes about my findings.

New games marked as GAME_NOT_WORKING
------------------------------------
Amatic Unknown Slots Game [Roberto Fresca, Team Europe]
Multi Game I (V.Ger 2.4) [Roberto Fresca, Team Europe]
Multi Game III (V.Ger 3.5) [Roberto Fresca, Team Europe]
2009-09-13 21:56:26 +00:00
Phil Bennett
2244f14323 New games added or promoted from NOT_WORKING status
---------------------------------------------------
Target Panic [Phil Bennett, Tormod, The Dumping Union]
2009-09-13 21:31:08 +00:00
Curt Coder
f53dd256f5 Added CDP1864 sound core for MESS. 2009-09-12 11:11:19 +00:00
Curt Coder
32e04ee9ef Added CDP1863 sound device for MESS. 2009-09-10 12:28:51 +00:00
Aaron Giles
6c33d53f7a Oops, missed a file. 2009-09-10 08:41:09 +00:00
Fabio Priuli
2bc4056946 SNES: Added emulation for the DSP-3 and DSP-4 add-on chips, based on latest ZSNES [ZSNES Team, Fabio Priuli]
out of the whatsnew, I hope the way I worded the license exception (at the top of the files) is fine to avoid any issue
2009-09-09 17:14:42 +00:00
Derrick Renaud
a7a271a90f Added discrete sound to the Noraut Poker games. 2009-09-09 01:21:50 +00:00
mariuszw1
2e0b4d4c1d New games added or promoted from NOT_WORKING status
---------------------------------------------------
Povar / Sobrat' Buran / Agroprom [Mariusz Wojcieszek]
Czernyj Korabl [Mariusz Wojcieszek]
Brodjaga [Mariusz Wojcieszek]
2009-09-08 20:12:07 +00:00
Couriersud
e58e1a413a Added disc_syc.c as a container for core modules (output, task) currently. 2009-09-05 10:24:04 +00:00
Curt Coder
1c56a127d5 Added preliminary Zilog Z8 CPU core for MESS. 2009-09-04 12:40:47 +00:00
Ryan Holtz
b54790792a Fixed numerous opcodes in the AVR8 core [Harmony]
Fixed a register naming issue in the MIPS core [Harmony]
Numerous SuperFX updates: [Harmony]
 - Hooked up RAM and ROM buffering
 - Inlined several more functions
 - Removed debug spew
 - Added the ability to define an external IRQ line callback, and hooked it up to the 65C816
 - Fixed flag calculation for HIB opcode
 - Hooked SuperFX chip up to the SNES machine driver
2009-09-03 23:53:43 +00:00
Roberto Fresca
4d657d4bde More improvements to Noraut Poker systems [Roberto Fresca]
* Fixed the coin counters.
 * Documented all the output ports.
 * Added a scheme with descriptions for every existent port.
 * Added full lamps support to naroutp, naroutjp, naroutrh and naroutpn.
 * Created lamps layouts for 11 and 12-lamps scheme.
 * Rerouted some inputs to mantain the inputs layout.
 * Renamed some inputs to match the text with the real cab buttons.
 * Removed the imperfect colors flag from the existent sets.
 * Added 2 different control panel layouts to the source.
 * Updated technical notes.
2009-08-29 22:42:31 +00:00
Ryan Holtz
a74320aeca Removing CX4 support until the license situation can be verified and corrected as necessary. [no whatsnew] 2009-08-26 21:20:40 +00:00
Ryan Holtz
76a4664cb9 Implemented basic Argonaut SuperFX support, needs to be hooked to the SNES driver. [Anonymous] 2009-08-23 08:06:50 +00:00
Aaron Giles
f474114e1d Added infrastructure to compile universal standalone disassembler:
- added unidasm to the tools build
 - split the disassemblers out of libcpu and into new libdasm
 - ensured the disassembly entry points for all disassemblers are
    in the source file for the disassembler (sometimes new generic
    versions were created)

Still needs command line options and file loading, but the 
fundamentals are present, and it links.
2009-08-22 06:25:07 +00:00
Ryan Holtz
b99862230d Ported Capcom CX4 implementation over from bsnes. Mega Man X2 and X3 are now playable in MESS, with bugs. [Anonymous]
Please credit as anonymous.
2009-08-22 06:12:10 +00:00
Michaël Banaan Ananas
8a74f58d3b obsolete file 2009-08-19 15:30:28 +00:00