Commit Graph

2726 Commits

Author SHA1 Message Date
smf-
2eed0ee804 got aero fighters special out of test mode and made it the parent. 2008-08-21 12:25:30 +00:00
Nathan Woods
ef062182ce Fixed problem that would cause the "Return To Prior Menu" menu item to not stick
if one is calling ui_menu_reset() with UI_MENU_RESET_REMEMBER_POSITION, and that
menu item is selected
2008-08-21 11:26:37 +00:00
Roberto Fresca
a211e37694 Bells and whistles to Game-A-Tron gambling hardware.
After an exhaustive analysis to the unknown writes, finally figured out the missing sound device.

 - Added sound support to "Poker 4-1" and "Pull Tabs".
 - Figured out the output ports. Documented each bit accessed.
 - Added button lamps support. Created layouts for both games.
 - Switched the 8255 port C to be used as output port.
 - Adjusted the coin pulse timing.
 - Updated technical notes.
 - Splitted the driver to driver + video.
 - Final clean-up.
2008-08-21 09:42:50 +00:00
Roberto Zandona
c783bad331 first implementation of PAINT command (for now only 4bpp and 8bpp supported and the pattern is not supported) 2008-08-21 06:57:44 +00:00
Nicola Salmoria
7b13f5ba98 update comment 2008-08-21 06:52:45 +00:00
Nicola Salmoria
1fd68ecb28 snk.c rewrite (WIP)
Ikari Warriors, Victory Road
removed ROM patches
simulated "hard flags" behaviour
proper memory maps
fixed ikarijp color test
renamed dogosokj to dogosokb and loaded the correct palette PROMs
inputs, dip locations, etc.
removed NO_COCKTAIL flag since these games don't have a flip screen dip switch
02035: gwarb: Guerrilla War bootleg doesn't need a rotary joy 
00869: ikari: The title screen and high score screen do not have a black background, as MAME displays.

New clones added
----------------
Ikari Warriors (US) [Corrado Tomaselli]
2008-08-21 06:42:26 +00:00
Roberto Zandona
2a3a6ea782 modified description of a dsw in sf2m2 (it isn't unused) 2008-08-21 05:50:04 +00:00
Brian Troha
1b8e64ff7d adds in kludge logic but wrong values for Aero Fighters Special. 2008-08-21 05:42:22 +00:00
Brian Troha
d7c33492f5 adds missing SHA1 values (I missed this when it was added..) for WW3 in redalert.c 2008-08-21 05:37:47 +00:00
Brian Troha
f4280abecd partial addition of Aero Fighters Special (Tiawan)
Makes the addition as far as rom loads go & mamedriv.c

RB or SMF will have to finish off the kludge part like Sonic Wings Limited has.
2008-08-21 05:35:33 +00:00
Aaron Giles
c166186196 Derived video timing based on measurements. These are educated guesses.
The logic behind the derivations is shown in the source.
2008-08-21 04:45:06 +00:00
Aaron Giles
fd883f1e72 Fixed bug when writing AVI files with more than one RIFF chunk.
Added missing chdman error messages when extracting to an AVI file.
2008-08-21 04:18:12 +00:00
Andrew Gardner
e6a2212387 Hooks up sound CPU comms in Power Instinct 2. This enables synchronized dancing for the background characters.
Credit Shimapong.
2008-08-21 03:35:05 +00:00
Roberto Zandona
73cbd67b13 removed unused code and fix a little bug 2008-08-20 22:54:22 +00:00
Roberto Zandona
9507cf7a53 fixed for PTN command: copy direction and dot color
PAINT command, necessary for skattv, is yet missing
2008-08-20 22:03:39 +00:00
Couriersud
772082e0b8 devintrf.c: add devtag_get_device(machine, type, tag) to retrieve the device_config for (type, tag)
* This is needed, if you need to read a device or device status outside a AM_DEVREAD context.
2008-08-20 21:15:01 +00:00
Roberto Zandona
6f9eaf0908 modified the default of a dsw in sf2m2 2008-08-20 20:54:07 +00:00
Jim Stolis
b3d2dc5f59 Updated readme info for initialization of some missing games. 2008-08-20 17:00:59 +00:00
Roberto Zandona
9705d41ac7 removed unnecessary code for sf2m2 2008-08-20 16:34:01 +00:00
Roberto Zandona
7e1305fa5e sf2m2 clone: promoted to working 2008-08-20 16:29:27 +00:00
Andrew Gardner
847e160223 Fixes 00429 (fastlane: the random function of this doesn't work well and always gives a "no bonus").
This patch adds to the simulation of the K051733.

Please credit ShimaPong.
2008-08-20 15:42:21 +00:00
Roberto Zandona
fdbdbfbead removed duplicate buttons in sf2hack (as per stephh comment) 2008-08-20 15:24:12 +00:00
Nicola Salmoria
12269d8aa7 added 8303 ROM to the games using it and updated MCU simulation to match the new findings 2008-08-20 12:00:14 +00:00
Nathan Woods
57d3cb91e3 MESS-specific fixes 2008-08-20 11:31:21 +00:00
Nicola Salmoria
c6e6c95244 snk.c rewrite (WIP)
TNK3, Athena, Fighting Golf, Country Club
converted to tilemaps
removed hacks
proper memory maps
screen flip / cocktail mode support
dip locations
better implementation of sound CPU communication
hooked sound cpu interrupts to YM chips
fitegolf hax 1xYM3812, not 2xYM3526
2008-08-20 10:24:57 +00:00
Aaron Giles
565b5532a7 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: few patch based on u5
Hi, 

since it seems there will be one more update in this cycle, it is probably 
better to submit these patches. Hopefully, not too many changes have been 
done to the source and these will apply cleanly. Let me know if I have to 
re-submit any of the patches.

content of the zip

* Ndriv.diff, OPQdriv.diff and RSdriv.diff: clean up of input ports in drivers 
N->R and partially S. as usual AM_READ_PORTs, conversions to full 32bit inputs 
where suitable, CUSTOM_PORTs for eeprom bits etc.

* cps1.diff: small clean up of the inputs in cps1.c. In particular, I exploited 
a few port_include (modeled on cps2.c) and added specific inputs for sf2 hacks 
so that I could simplify input readings in video/cps1.c. Also, I added the 3rd 
buttons to games which test it in Service Mode even if they don't use it in game: 
if the game code tests for them in the service mode, they were supposed to be 
present...

* deco.diff, pgm.diff, psikyo.diff, nbmj.diff, jaleco.diff: clean up for 
specific large drivers

* other.diff: some usage of PORT_CUSTOM that I missed to implement previously


Regards,

     Fabio Priuli
2008-08-20 04:17:46 +00:00
Aaron Giles
0941eb004e Fix m68k irq line support.
Before this patch a:
      cpunum_set_input_line(5, ASSERT_LINE);
      cpunum_set_input_line(3, ASSERT_LINE);
      cpunum_set_input_line(3, CLEAR_LINE);
    
    loses the state of line 5.  This patch fixes it by adding an explicit
    but optional "virtual irq line" support to the 68k interface.

    Fix m68k interrupt handling by some drivers.
    
    Clearing the NMI line to clear all the IRQ lines worked, but it just
    doesn't make sense.  Now that the irq lines are really independant,
    the handling can be simplified.
2008-08-20 02:11:14 +00:00
Brian Troha
a9d7211726 I have a minor issue with two source trees... I only update half the stuff in both :-(
Anyways, removes the extra Wave Runner from mamedriv.c and corrects the year in model2.c

sorry for so many "fixes"
2008-08-20 01:31:21 +00:00
Aaron Giles
44019c7433 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] fd1089 external keys
Hi mamedev,

The attached patch moves the fd1089 decryption keys out of the source
of MAME and into the ROM files.  Nicola suggested this would now be
reasonable, so long as the incomplete ones were marked with BAD_DUMP.

~aa
2008-08-20 01:26:42 +00:00
Brian Troha
01c0923170 Moves Wave Runner from Model 2B to 2C like it should be ;-) 2008-08-20 01:25:38 +00:00
Aaron Giles
cf07a5a784 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] More reset/multisession cleanup

Hi mamedev,

This patch eliminates more cases of .data objects, in an effort to
make more drivers multisession/reset safe.  The changes should not
change the first time run behavior at all, except perhaps the ygv608.c
change, which had a suspicious use of a static rectangle.

~aa
2008-08-20 01:25:28 +00:00
Derrick Renaud
384422ee09 Discrete cleanups and fixed discrete logging. 2008-08-20 01:02:57 +00:00
Brian Troha
39ea677641 Top Skater (USA)
Currently not working any better then the parent
Restores old Wave Runner (Rev A, Model 2B) as a single non clone game

New clones added
----------------
Top Skater (USA) [Gerald (COY)]
2008-08-20 00:04:00 +00:00
Brian Troha
37fc923ccf Wave Runner (Model 2C)
Currently not working and missing a rom

New clones added
----------------
Wave Runner (Model 2C) [Gérald (COY)]
2008-08-19 21:10:23 +00:00
Wilbert Pol
38a811b727 Some MESS specific fixes. 2008-08-19 19:18:43 +00:00
Roberto Zandona
cc9883d312 fixed cpx and cpy when a ptn or a agcpy command is executed 2008-08-19 15:09:54 +00:00
Nathan Woods
15969c0428 Readded generic calls to install memory handlers that were in long before
0.126u5 - these are useful on the MESS side for things like the PC driver
2008-08-19 11:13:43 +00:00
smf-
cbe9983e42 changed DIRECTINPUT & DIRECT3D handling, so they can be overridden by environment variables. 2008-08-19 08:03:38 +00:00
davidhay
c9f47d831f minor updates to megadriv.c / genesis code.
My mail is broken (or I'm not on the list anymore?) so I don't know how the suggestion went down, but given that within the space of a week simply updating the tree completely broke my compile again I *need* these files maintained to develop with if we're going to see accurate genesis emulation in MAME.  There's too much to split out of MAME.

I haven't included driver definitions, but the source files at least need to compile or I'm going to go completely bananas.
2008-08-19 07:39:53 +00:00
Aaron Giles
0523e9feb7 Cleanups and version bump. 2008-08-19 07:31:55 +00:00
Aaron Giles
e959018aa8 02105: qbert and clones: Misplaced graphics 2008-08-19 07:17:30 +00:00
Aaron Giles
76be0ad854 02119: cischeat, bigrun: no sound 2008-08-19 07:05:24 +00:00
Aaron Giles
c44c835ab3 02121: reactor: input controls and startup tone 2008-08-19 06:47:15 +00:00
Roberto Zandona
49db9ee772 new implementation of agcpy command in hd63484 2008-08-19 06:37:36 +00:00
Aaron Giles
8b8585328c From: Christophe Jaillet [mailto:christophe.jaillet@wanadoo.fr]
Subject: Profiler related
Hi,

here is a smalll patch that :
   - remove include "profiler.h" to files that do not use profiling function
        * emu/machine/laserdsc.c
        * osd/windows/video.c

    - use PROFILER_USER2 instead of PROFILER_USER1 in mame/video/tx1.c
      USER1 was used twice, USER3 once. I guess that USER1 should be used
only once and USER2 used in the 2nd place

   - remove unused MACRO in emu/memory.c

Best regards,
Christophe JAILLET
2008-08-19 06:13:26 +00:00
Aaron Giles
7b53d0a62e From: Lei Wu [mailto:lanewu@hotmail.com]
Subject: Shogun Warriors (Europe Rev.xx)

1. added Shogun Warriors (Europe Rev.xx)(Kaneko 1992), detailed description in source code [Pythagoras573]
2. fixed a cps1 typo
2008-08-19 06:12:05 +00:00
Aaron Giles
13a3d3fb89 From: Oliver Stoeneberg [mailto:oliverst@online.de]
Subject: Various cleanups

A couple of minor cleanups sitting on my disk for a while:
- removed obsolete ENABLE_DEBUGGER occurance
- removed more unprintable characters in SH-2 disassembler
- memset() usage cleanups
- removed duplicated TMS5110 entry in sound.mak
- use machine in uigfx.c where it's already available
2008-08-19 06:10:43 +00:00
Aaron Giles
de5cd6e5a8 Added cheat functions frombcd() and tobcd() to convert numbers to/from
BCD format. Changed "Activate" to "Set" in the menus.
2008-08-19 06:08:24 +00:00
Nicola Salmoria
74777c6420 more CPS1 PALs 2008-08-19 05:42:10 +00:00
Aaron Giles
1d26d347e1 From: Guy Hufkens [mailto:guy.hufkens@telenet.be]
Subject: dooyong.c dips

Added DIP locations
2008-08-19 05:13:56 +00:00
Aaron Giles
719eca9c82 Added validity check to ensure that ports referenced by a condition
actually exist. Fixed a case where this was violated.
2008-08-19 05:12:45 +00:00
Andrew Gardner
35ee8d5279 Added new Guru readme for namcos22 driver.
Please credit Guru.
2008-08-19 04:50:19 +00:00
Aaron Giles
6c21097922 Added validity check to ensure that AM_READ_PORT() macros reference
valid ports. Fixed several cases where the check failed.
2008-08-19 04:33:19 +00:00
Brian Troha
e58907ac1a Corrects BPROM type after verifying against the schematic vs a hi-res pic which is hard to tell. 2008-08-19 02:59:45 +00:00
Brian Troha
79c1a8fc2c Slight documentation update.
Removes bad_dump from WW3 as readme said "most" reads matched the Red Alert sound rom.  Also it the read me stated the BPROM also matched the Red Alert BPROM.
2008-08-19 02:28:44 +00:00
R. Belmont
7d762634aa Reduce YM2612 DAC level relative to FM. This better matches real hardware. 2008-08-19 02:21:37 +00:00
Aaron Giles
2e422e5b72 Final SHA1 for Cube Quest. 2008-08-19 02:13:32 +00:00
Aaron Giles
d62faabec6 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: small submission
Hi,  

enclosed please find a tiny diff which makes megadriv_vdp_r & megadriv_vdp_w 
handlers in megadriv.c non-static (and includes them in megadriv.h).

This small change, while making essentially no difference for MAME, would make 
life easier to maintain pico emulation in MESS.

--

From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: fix for MT bug 2115
Hi, enclosed please find a small fix for the typo causing berlwall inputs 
breakage. No matter how extensively I test my changes, some typos always 
succeed to slip through my cross checks :( 

Anyway, this regression is fixed. 

--

From: Fabio Priuli [mailto:doge.fabio@gmail.com] 
Subject: Fix for MT bug 2114

Hi, 

enclosed please find a patch which fixes the red/blue inversion for eolith.c 
games. It regressed in 0.124, when the driver it's been converted from bitmap_format_rgb15 
to bitmap_format_indexed16 with the wrong palette_init.
2008-08-19 02:13:13 +00:00
Aaron Giles
87066dc341 From: MASH [mailto:mameinfo@ewetel.net]
Hi there,

Astro Wars (Zaccaria 1980) can be added to the galaxia.c.
The attract mode works and it uses the same hardware and
the rom names/lacations are identical.
The picture shows three screenshots of Astro Wars, the left and middle uses
only one of the gfx roms and the right both.

M*A*S*H

New game NOT WORKING: Astro Wars
2008-08-19 02:01:55 +00:00
Couriersud
2dc5c0648b dkong3 - added prom
* added address decode prom 5e from roms/unemulated/Nintendo/dk3prom.zip to dkong3/dkong3j
2008-08-19 00:44:21 +00:00
Couriersud
7d16a28e7f New games/clones: WW III (Irem 1981), I P M Invader (Incomplete Dump)
* Added roms/unemulated/Irem/iremM10_incomplete.zip as ipminva1 to m10.c
* Marked as GAME_NOT_WORKING
* The roms are all different from ipminvad, one is missing. The game does 
  enough to see that it is some sort of invaders type game.

* Added roms/unemulated/Irem/ww3_roms.zip as ww3 to redalert.c
* Dumped by Stefan Lindberg
* Please credit Stefan Lindberg as well 
* Either redalert is the clone or ww3 is the clone. Redalert has a speech board in addition
  to the m37b audio board.

New games marked as GAME_NOT_WORKING
------------------------------------
I P M Invader (Incomplete Dump) [unknown dumper, Couriersud]
 
New games added or promoted from NOT_WORKING status
---------------------------------------------------
WW III [Stefan Lindberg, Couriersud]
2008-08-18 23:25:42 +00:00
Aaron Giles
c0fae223af Increased blank reporting threshold. Fixed error in blank tracking. 2008-08-18 16:38:40 +00:00
smf-
c860d00f1b reverted incorrect checkin, caused by lack of concentration when retrying the checkin due to an update being required. 2008-08-18 12:10:31 +00:00
smf-
e334a63782 reverted unit mask changes and removed the unused & unsafe memory_install functions. 2008-08-18 12:08:08 +00:00
Nicola Salmoria
b51601cc66 use proper gfx ROMs (+ PALs) for varthj
load correct A-Board PALs for QSound games
2008-08-18 12:05:11 +00:00
Roberto Zandona
94abf9470d implemeted service mode switch in skattv 2008-08-18 07:15:18 +00:00
Roberto Zandona
3d33c20559 modified 68681 to return 0xff if input port is NULL 2008-08-18 06:31:15 +00:00
Aaron Giles
284b5a0d95 Added new generic laserdisc VIDEO_UPDATE handler to the laserdisc code.
This handler works for both disc-only games and those with overlays. 
For disc-only games, the base macro is sufficient. For games with 
overlays, an additional set of configuration macros are provided:

   MDRV_LASERDISC_OVERLAY - specifies update function, width, height,
      and bitmap format of the overlay
   MDRV_LASERDISC_OVERLAY_CLIP - specifies the visible area of the
      overlay bitmap
   MDRV_LASERDISC_OVERLAY_POSITION - specifies default x,y position
   MDRV_LASERDISC_OVERLAY_SCALE - specifies default x,y scale factors

The update function provided to MDRV_LASERDISC_OVERLAY is identical to
a normal VIDEO_UPDATE callback, so a standard one can be used. All
existing laserdisc drivers have been updated to support this new
rendering mechanism, removing much duplicated code.

Added the ability to configure the overlay position and scale 
parameters at runtime. Added OSD menus to control them. Added logic
to save/restore the data in the game's configuration file.

Added new macros MDRV_LASERDISC_SCREEN_ADD_NTSC and _PAL, which
defines a standard screen with the correct video timing characteristics
and update function for laserdiscs. Updated all drivers to use these
macros instead of defining their own screens.

Added DISK_REGIONS to all laserdisc drivers.

Added DISK_IMAGE_READONLY_OPTIONAL to support games (like Cube Quest)
where the disk is non-essential to the game's operation.

Fixed bug in identifying the custom sound driver for the laserdisc.

Updated ldverify to identify blank regions of the disc for post-
processing.

Fixed rendering 16bpp with alpha using bilinear filters (fixes
screenshots of laserdisc games with overlays).

Included support for parsing .gdi files in chdman. [ElSemi]

Added new driver for Cube Quest. This includes CPU cores for the three
bitslice processors, as well as laserdisc support for the hacked
laserdisc that was used to drive the games. 
[Philip Bennett, Joe Magiera, Warren Ondras]

Note that the SHA1/MD5 for the laserdisc will likely undergo at least
one more change before being finalized.
2008-08-18 04:31:08 +00:00
Roberto Zandona
d0eb89399f removed speedup patch in timecris;
with this commit and commit 2565 the bug 01992: (timecrsa, timecris: SubCPU start wait fails test) is fixed
2008-08-17 18:43:28 +00:00
Roberto Zandona
0a0a3ef383 fixed INT_ACK initialization 2008-08-17 17:24:55 +00:00
Wilbert Pol
ab1030258c Some MESS specific changes 2008-08-17 15:02:15 +00:00
smf-
3297ac117d identified compatible timekeeper used by midway zeus ii.
removed all the timekeeper memory handlers, except for 8 bit & changed the drivers to use the conversion built into the memory system.
2008-08-17 11:47:26 +00:00
smf-
5c5337424a Added unit mask to all memory installs that override the bus width. You couldn't install a handler with a different width before, as it complained about the lack of the unit mask. So I've assumed it's safe for all current calls to be changed to the one that picks up the cpu bus width. 2008-08-17 10:15:22 +00:00
R. Belmont
f118954dc5 Split out SH-4 non-interpreter-specific stuff to sh4comn.c. 2008-08-17 04:44:02 +00:00
R. Belmont
a6210713da SH-2 DRC updates:
- Moved IRQ handling front-end into recompiled code
- Added TSTM/ANDM/XORM instructions
- Added SH-1 CPU support, including lower precision on MAC.W and locking out SH-2 only instructions
2008-08-16 16:50:41 +00:00
R. Belmont
9c671d6ecf 64-bit GCC fix. 2008-08-16 16:47:03 +00:00
R. Belmont
d8a88c5084 Added save states to 65816 CPU. 2008-08-16 16:46:24 +00:00
Roberto Zandona
4a79e7af34 partially implemented ptn and wptn command in hd63484
now skattv boot in service mode and you can see correct gfx
2008-08-16 15:47:42 +00:00
davidhay
84f88adc6a makes redhawki work, I suspect it's a bootleg.. 2008-08-16 13:56:37 +00:00
Roberto Fresca
d85c50929c Minor corrections. 2008-08-16 10:39:51 +00:00
Roberto Fresca
5831f1f74e - Added Hot Slot and Magic Colors (not playable due to protection issues).
- Simulated the co-processor to pass the initial test.
- All Inputs worked from the scratch.
- Fixed position of tilemap layers.
- Added scroll register preliminary support.
- Fixed Super Pool graphics.

New games marked as GAME_NOT_WORKING
------------------------------------
Hot Slot (ver 05.01) [Roberto Fresca]
Magic Colors (ver 1.7a) [Roberto Fresca]
2008-08-16 08:46:58 +00:00
Jonathan Gevaryahu
50438fc4f5 update t5182.c comments once more, to fit in 80 columns.
also rewrote the description of the theoretical trojan attack in a far more concise manner.
2008-08-15 22:46:18 +00:00
Jonathan Gevaryahu
fbfaa93fa2 fixed comment formatting and one minor sentence chunk which didn't belong 2008-08-15 22:20:15 +00:00
Jonathan Gevaryahu
c272be4f4a Update the t5182.c documentation/pinout 2008-08-15 22:12:39 +00:00
smf-
bd3ba85c50 changed at28c16 memory handlers to 8 bits and perform the conversion in the memory mapping. 2008-08-15 20:11:15 +00:00
Roberto Zandona
6bb2a0e698 fix ram dimension and window width 2008-08-15 17:47:32 +00:00
Brian Troha
d8e8dffe4b Updated documentation:
Added PCB layout for Torus & Mad Ball
Corrected rom names and / or added U locations
2008-08-15 16:29:27 +00:00
Roberto Zandona
edfc74b1d1 fix gfx in cps2 games 2008-08-15 14:36:20 +00:00
Roberto Zandona
efc80cc200 fix ram size in hd63484 and removed driver init for adp games 2008-08-15 14:17:31 +00:00
Roberto Zandona
888337ddb9 add new commands in hd63484 core 2008-08-15 10:48:38 +00:00
Roberto Zandona
fdfeed931d some progress in adp games: now you can see a blue rectangle in skattv 2008-08-15 09:10:52 +00:00
davidhay
f71dd506c0 new clone, Red Hawk (Italy) (NOT WORKING)
it's another horizontal set like the 'redhawkb', but video registers seem to be different.

If it's wrong it's because I had to remerge everything.
2008-08-15 07:56:50 +00:00
Brian Troha
aa0aa81c7d New clones added
----------------
Red Hawk (Haedong Corp.) [Tirino73 / Mame Italia] (Not Working)
Snow Bros. - Nick & Tom (Dooyong license) [Tirino73 / Mame Italia]
2008-08-15 03:26:04 +00:00
Brian Troha
71ebf50919 corrects a spelling mistake 2008-08-15 02:16:23 +00:00
davidhay
4e99cb9af4 adds correct CRCs for DOA2 [Guru] 2008-08-15 00:12:08 +00:00
Roberto Zandona
9c68b61e38 implemented read operation of MRA and MRB in 68681 device (this command is necessary for adp games) 2008-08-14 19:12:47 +00:00
Nicola Salmoria
56e734716a oops, QSound CPS1 games have a different A-board so the PLDs of the normal gmaes aren't valid. 2008-08-14 18:53:21 +00:00
Roberto Zandona
d7c9b3cf8f wip - a try to implement 68681 device in skattv 2008-08-14 15:00:52 +00:00
Roberto Zandona
7a8e9bb4b8 convert adp to 4 bpp rendering 2008-08-14 13:33:06 +00:00
R. Belmont
4303262b04 Another 64-bit GCC fix. 2008-08-14 13:14:46 +00:00
R. Belmont
06c0d541ed Another one... 2008-08-14 13:13:40 +00:00
R. Belmont
841c0ce03a Another 64-bit GCC fix. 2008-08-14 13:10:34 +00:00
R. Belmont
5b8cc47145 Fixes for 64-bit GCC. FPTR isn't just a good idea, it's the law. 2008-08-14 13:08:53 +00:00
Nicola Salmoria
8c07fef2d7 added more Universal game IDs from schematics 2008-08-14 08:21:35 +00:00
Aaron Giles
224eb1f58b Cleanups and version bump. 2008-08-14 08:05:35 +00:00
Aaron Giles
2e7d262931 02113: xymg: xymg title mispelled
02110: All sets in cps3.c: video from a DV cam proves the refresh rate of CPS3 in MAME is wrong 
02095: chqflag, chqflagj, -listxml: memory leaks
2008-08-14 07:36:27 +00:00
Aaron Giles
aeb7e74d74 Oops, missed deleted file. 2008-08-14 07:14:26 +00:00
Aaron Giles
4380531fc8 From: JoshuaChang [mailto:joshuachang2005@gmail.com]
Subject: cps3 sfiii3 title+linear zoom effect fix

fix the sfiii3's title animation (cps3.c line 1055)
also fix the linear zoom effect that OopsWare didn't improve properly
since 0.122u7(cps3.c line 1168,1189,1190)

i've attached 2 images to show the difference between the priginal and
fixed one~
hope this helps~
2008-08-14 06:33:31 +00:00
Aaron Giles
aa4b4b3e7d From: Oliver Stoeneberg [mailto:oliverst@online.de]
Subject: mame.mak - sound chip cleanup

Cleaned up and grouped the sound chip entries based on sound.mak.
2008-08-14 06:32:03 +00:00
Aaron Giles
ec66ef6ab0 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: two more patches

Hi,

enclosed please find the following patches

* portM.diff which completes the basic port cleanup in 
drivers starting with M. It's mostly conversion of 8bit 
-> 16/32bit inputs and usage of AM_READ_PORT in memory maps 
(plus a couple of eeprom_bit_r replaced with PORT_CUSTOM 
and daitorid_soundstatus_r in metro.c converted to a 
CUSTOM_INPUT as well)

* avgdvg.diff converts most of the games checking avgdvg_done() 
in inputs to use a CUSTOM_INPUT (which I added to video/avgdvg.c). 
avgdvg_done() is still in use in mhavoc.c (which requires some 
more changes, so I'll take a look later) and in omegrace.c (which 
reads it directly and not through inputs). While at it, I've 
also done a small cleanup of inputs in starwars.c and tempest.c.

Regards,
     Fabio
2008-08-14 06:31:06 +00:00
Aaron Giles
2ec0fea9c2 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Collapse timer callbacks

Hi mamedev,

The following patch collapses timer callbacks in some cases to avoid
duplicating code.  In the case of crystal.c, it also refactors two DMA
handlers and shuffles the init/reset code around a bit.  I noticed
while doing this that h8_itu_read8 is missing cases 0x96,0x97 which is
almost certainly a bug, but I left it alone.

~aa
2008-08-14 06:27:52 +00:00
Aaron Giles
d6b6e913fa From: RansAckeR [mailto:RansAckeR@telenet.be]
Subject: clshroad.c dips

Added DIP locations
2008-08-14 06:22:07 +00:00
Aaron Giles
0921968934 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Fix i386 bsr implementation

Hi mamedev,

The i386 cpu emulator will return the wrong result for bsr when the
highest bit is set (0 instead of 15 or 31).  The attached patch fixes
this.

~aa
2008-08-14 06:21:31 +00:00
Aaron Giles
5ad309b60f From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: few more patches

Hi,

enclosed please find a few patches to continue the input port 
clean up (and to fix a mistake in the previous submission). In 
detail:

* hal21.diff: with my last submission I made a mistake in hal21.c 
(I converted it only partially to custom inputs, still returning 
1<<5 instead of 1 from the handler). please revert that change 
(it was in u4_custom04.diff) and apply this one, to fix the 
communication with sound cpu

* clean_new.diff: introduce AM_READ_PORT & c. in drivers starting 
with M (only few of them updated, more to come)

* custom_new.diff: improves input handling in mainsnk.c and marvins.c 
by using CUSTOM_INPUTs and AM_READ_PORTs

* gaelco3d.diff: converts radilkalb inputs to 32bit inputs (as 
they are), removing the need of AM_READ16 for those

* itech32.diff: converts inputs of later games to 32bit inputs and 
updates all the occurrences as needed. It also simplifies input 
handling by removing special_port_r from most of the maps (replaced 
by a CUSTOM_INPUT). Now only drivedge still uses 16bit inputs and 
special_port_r, but I'll investigate it later.

* arkanoid.diff: changes mcu reads to CUSTOM_INPUTS (and muxed 
inputs as well). Bootleg inputs has been slightly changed as well 
to cope with the new implementation of the protection

* irem.diff: this patch changes a lot of input related things in 
m10->m107 irem boards. First of all, it moves input definitions from 
drivers/m92.h to include/iremipt.h (which was already there, just 
a bit unused ;) ) and it removes completely drivers/m92.h (which 
only contained those definitions). Moreover, it adds more common 
inputs to iremipt.h and starts to use that file in m62->m107 instead 
of local #defines. Finally, it adds diplocations to all the games in 
m62->m107 which were missing and it implements coinage mode 2 through 
dipconditions in the drivers which didn't support it.

I tested as much as I could these changes and I can see no regressions.

Regards,
     Fabio
2008-08-14 06:20:42 +00:00
Aaron Giles
51c1079953 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Fix 1802 cybrcomm, raveracw, raveracj, raveraja,
ridgerac, ridgerab, ridgeraj, acedrvrw, victlapw: No sound in games
after reloading via the MAME UI

Hi mamedev,

The problem with namcos22 games losing sound when running multisession
is actually an m37710 cpu initialization bug.  The attached patch
fixes it, and also collapses all the timer callbacks together as an
unrelated code cleanup.

Note: namcos22 has a lot of uninitialized state, so I wouldn't be
surprised if there are other multisession issues.
2008-08-14 06:13:56 +00:00
Aaron Giles
3b76b8e25e From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: some more input clean-ups
Hi, 

attached please find a few patches against u4. These diffs improve 
input ports for drivers starting with F->L. In particular: they add 
AM_READ_PORT whenever suitable, they make inputs fully 32bit where 
needed, they remove indexed input read handlers from INITs, they 
replace many read handlers with appropriate CUSTOM_INPUTs. 

Additional improvements:

* added dip switches and locations to go2000 (even if they were 
partially documented in the source)
* fixed artmagic protection (it used a wrong tag, which probably 
I added somewhere in 0.125uX); even if I haven't experienced any 
problems due to the bug since the regression now it's fixed

More details on the patches:

* u4_clean01 -> u4_clean07: these are standard changes like the 
one I submitted previously (no custom inputs involved)
* u4_custom01 -> u4_custom04: here there are also changes involving 
custom inputs (they mainly deal with eeprom reads, but a few were a 
bit more interesting); I separated these from the other ones in 
case you want to check them more in detail
* itech8.diff: this patch improves ports & their handling in itech8.c. 
In particular, it replaces the 'special' handlers with a single 
custom input and I would like a confirmation that it was the right 
choice in this case.

Patches are independent one from the other and should apply with 
no problems. Let me know if this is not the case.

Regards,
    Fabio
2008-08-14 05:17:39 +00:00
Aaron Giles
15893eeed0 Fixed includes of rescap.h. 2008-08-14 04:51:04 +00:00
Brian Troha
6d0de192fa Updated the header of the ladybug.c driver with a little bit of info 2008-08-14 04:46:18 +00:00
Brian Troha
55a1654534 Correct rom names with PCB locations for Lady Bug and verified the dump against an original Universal Lady Bug PCB. Added information about the Universal PCB number and prom type.
Verified that Lady Bug, Cosmic Avenger & Snap Jack all use the same PCB set and adjusted the rom names as needed.
2008-08-14 04:34:28 +00:00
Derrick Renaud
a615a52ccb minor correction to Guru Read Me 2008-08-14 02:31:03 +00:00
Derrick Renaud
ad617cfb1e Added Guru ReadMe for madalina.
credit (Guru)
2008-08-13 23:57:00 +00:00
Roberto Fresca
37414e4353 Minor corrections to the notes and some acknowledgements. 2008-08-13 23:36:39 +00:00
Nicola Salmoria
ac821a6f88 implemented proper shadow handling. Some intial cleanup.
00233: ikari: The current implementation of the shadow in Ikari Warriors and Victory Road is wrong.
2008-08-13 17:53:31 +00:00
Aaron Giles
a0574bb473 Moved several include files from mame/ to emu/, as they were
included by generic components in emu/ and thus should have no
dependencies on the MAME code.

Added new target ldplayer, which is based on MAME but serves as
a standalone laserdisc player for CHDs. Right now only the
Pioneer LD-V1000 is connected, and limited commands are available.
Each player type is a driver, so you specify the player type on
the command-line. The driver then opens the first CHD it finds
in your ROM path and uses that as the laserdisc. The intention is
that you specify the -rompath each time on the command-line, so
a typical approach might be:

   ldplayer ldv1000 -rompath j:\mach3

where it will pick up the mach3.chd lurking in your j:\mach3
folder. Several basic commands are supported:

   Space = play/pause
   Alt   = toggle frame display
   Left  = scan forward (when playing) or step forward (when paused)
   Right = scan backward (when playing) or step backward (when paused)
   0-9   = enter numbers for search
   Enter = execute search to frame
2008-08-13 15:09:08 +00:00
Aaron Giles
16903498a4 Improved video signal warning reporting. 2008-08-13 05:18:02 +00:00
Aaron Giles
480df37d02 Added new flag to menu items: MENU_FLAG_DISABLE, which means the
item will be visible but not selectable.

Fixed bug that prevented the cheat engine from working when the
debugger was disabled.

Modified xmlfile.c to accept integer values in decimal or hex. The
default is decimal. Numbers may be prefixed by '#' for decimal
values, or by '$' or '0x' to indicate hexadecimal values. Also
added function xml_get_attribute_int_format() to return the format
of the attribute, so that it can be later replicated.

Updated cheat parser to preserve the format of attribute values
used for cheat parameters and items.

Added support for information-only cheat items, which will be
displayed in the menu but which are not selectable and have no
action associated with them. Empty information-only items are
automatically converted to menu separators.
2008-08-13 04:55:42 +00:00
R. Belmont
04239409b0 SH2DRC: Allow delay slot of a BSR to trash the PR if it wants. (Manis 2059) 2008-08-13 03:58:02 +00:00
Derrick Renaud
1daf41e218 Final CPU header updates. Mostly just re-naming the re-inclusions.
The structures/names were getting too complex for my macros to handle.  They would require hand editing and my computer is too slow to keep re-compiling.

Passes a clean compile.
2008-08-13 02:48:52 +00:00
R. Belmont
0f0b9208f6 Fix crash with DRC, now hangs waiting for impossible conditions again. 2008-08-13 02:33:22 +00:00
Tomasz Slanina
936c9c5275 Fixed ROM mapping and added preliminary video emulation. 2008-08-12 22:55:30 +00:00
davidhay
6debb2fb24 fix compile error pt2.
rule #1 of SVN, test before commit ...... not being able to compile the latest code is very annoying.
2008-08-12 22:47:00 +00:00
davidhay
216a0b5c3b fix broken compile. 2008-08-12 22:28:40 +00:00
Aaron Giles
111a34fea5 Added video level detection and reporting to ldverify.
Removed channels parameter from avcomp decode configuration.

Fixed incorrect test in winwork that led to spinning instead
of using the nicely allocated events we had on hand.

Forced a sound synchronization on each vsync in the laserdisc
playback. This prevents overwriting the tail end of the
buffer which was fouling up the MACH 3 audio decoding.

Removed obsolete size check for uncompressable audio data.
2008-08-12 17:37:53 +00:00
Brian Troha
c2b9cb3b7e corrects rom names for Road Riot 4WD 2008-08-12 17:36:22 +00:00
Roberto Zandona
906b6a5c39 now shanghai and adp use hd63484.c e hd63484.h in video folder 2008-08-12 15:29:20 +00:00
Nicola Salmoria
82494e9da3 updated Alpha 8302 MCU simulation to match newly dumped internal ROM.
Added the ROM to Champion Baseball 2.
2008-08-12 14:50:34 +00:00
Roberto Zandona
d6269d15fa use last version of HD63484 (like shanghai driver) 2008-08-12 12:23:24 +00:00
Roberto Zandona
526be2629c some improvements to shanghai video drivers:
1) convert framebuffer's ram from 8 bit to 16 bit
2) convert dma command from 8 bit to 16 bit
3) convert gfx command from 8 bit to 16 bit
4) implemented all gfx mode: 1,2,4,8,16 bpp
for now the rendering is only 8 bpp
now we can use this gfx chip for adp driver that use 4bpp
2008-08-12 12:04:21 +00:00
Aaron Giles
a85c4c754d Rejiggered huffman.c to support multiple interleaving
streams and a delta-RLE pre-encoding. Added optimized
case for the Y/Cb/Y/Cr video encoding case. Cleaned up
the code.

Updated avcomp.c to use the new huffman.c functions.
Reworked configuration options to allow for both input
and output of naturally aligned data streams. Updated
chdman and laserdsc to use the new interfaces. New
compression gives an additional 3-7% over previous
attempt and compresses the dummy CHDs down significantly.
2008-08-12 09:24:22 +00:00
Nicola Salmoria
d89508d201 Added reverse engineered PLD images to CPS1 games (A-board to all and B-board and C-board to many).
Credit Corrado Tomaselli and Charles McDonald.
2008-08-12 06:04:03 +00:00
Derrick Renaud
0ec9cda36e Fixed NMI on Mad Alien sound CPU. This fixes shot sound and various other sound glitches.
Marked madalien and madalina as Imperfect Graphics.  They are missing an effect.  When you shoot an enemy in the dark, the whole screen lights up.  Basically the headlights fill the whole screen.

credit Guru, Derrick Renaud
2008-08-12 03:51:29 +00:00
Derrick Renaud
d5d5d9449b structure, lower-casing functions and re-inclusion updates of the src\emu\cpu headers J - M. 2008-08-12 03:40:09 +00:00
Brian Troha
7e7e4ef30f removed bad dump from China Dragon (Hong Kong)... I dumped this PCB way back and mentioned that the copy protection checks needed fixing. The other 2 roms matched the parent set, that's why it was only the program rom.
BrianT
2008-08-12 01:40:56 +00:00
Nicola Salmoria
241e19186c KO Punch boxer graphics had to be doubled. Evidence:
http://www.retro-gaming.it/videogiochi_img/magazine_videogiochi/videogiochi2/videogiochi_2_54.jpg
http://www.retro-gaming.it/videogiochi_img/magazine_videogiochi/videogiochi2/videogiochi_2_55.jpg
(these are two halves of the same shot).
The shot is clearly from some other version of the game since the graphics are different, however it's clear that the boxer is supposed to fill the screen.
2008-08-11 16:50:55 +00:00
Nicola Salmoria
d099ba2be0 02101: wboy, wboysys2: Access Violation 2008-08-11 15:10:08 +00:00
Andrew Gardner
6be1af1ea3 Adds readmes for Great 1000 Miles Rally 2 and Super Monaco GP.
Credit Guru.

(This completes *all* the readmes)
2008-08-11 15:03:02 +00:00
Derrick Renaud
3c2b00d332 structure, lower-casing functions and re-inclusion updates of the src\emu\cpu headers up to I.
It's mostly just re-inclusion renaming, but there are few other re-nameings.
2008-08-11 03:06:59 +00:00
Brian Troha
9ab4f76a04 adds the Plotting PAL to the Japanese set. Also corrects the PAL ROM name. Adds a note that PAL is stamped B86-04... curently we don't know what Taito game B86 is for :-( But if one is dumped we'll know it should go in the taito_l.c driver 2008-08-11 00:46:39 +00:00
Derrick Renaud
3710253aa7 This (mostly - see below) completes the structure, lower-casing functions and re-inclusion updates of the src\sound\emu headers.
I did not do much to the following files because I did not know the best way to name them.
aicadsp.h
sid.h
sidenvel.h
sidvoice.h
ymdeltat.h

I did not update structures only used in the src\emu\sound\*.c files.  They are only used locally in the file so they were not worth the effort.
2008-08-11 00:32:08 +00:00
Andrew Gardner
fdf667cf9c Adds readmes for Vivid Dolls, Tower and Shaft, Star Soldier Vanishing Earth, Stone Ball, Sky Lancer, Squash, Winning Spike, Versus Net Soccer, Undercover Cops, War Gods, Space Fever, Strikers 1945, Rohga, Super Eagle Shot, Treasure Hunt (stv), and Tickee Tickats.
Credit Guru.

(This completes adding all of Guru's readmes to the MAME source.  There remain ~20 readmes that I still need to compare to what's in MAME to see if they have any additional information, but beyond that, this little project is done!)
2008-08-11 00:23:04 +00:00
Brian Troha
b8ac62f60c relocates readme info down to the proper rom set. 2008-08-11 00:01:25 +00:00
Tomasz Slanina
b6e297e8a4 New games added or promoted from NOT_WORKING status
---------------------------------------------------
Killer Instinct (SNES bootleg) [Tomasz Slanina]
Final Fight 2 (SNES bootleg) [David Haywood, Tomasz Slanina, Kowal]

New games marked as GAME_NOT_WORKING
------------------------------------
Sonic Blast Man TURBO 2 (SNES bootleg) [Corrado Tomaselli]
2008-08-10 22:43:48 +00:00
Andrew Gardner
326ad99c3a Adds readmes for Koro Koro Quest, Gigas (bootleg), Race Drivin', Hexa, IQ Block, Open Golf Championship, Macross Plus, Malzak, Puzzle Club, Naomi, Puzzle Star, Puckman Pockimon, Raiden 2, Raiden Fighters 2 (single board), Light Bringer, Landmaker, Knuckle Bash 2, and Mahjong Fight Club.
(Please, as with the previous submission, credit Guru)
2008-08-10 21:41:36 +00:00
Luca Elia
c4a5a1359c igs_blit.c update
- General clean up (merged memory maps, inputs, readme's)

- Marked vbowl program rom as bad, patched to not crash (fixes bug 00492)

- Protection emulation / patches, promoting to working:

  dbc, xymg, lhba (fixes bug 02027), drgwrld3 (fixes bug 00491), chindrac, chindrah


New games added or promoted from NOT_WORKING status
---------------------------------------------------
Da Ban Cheng [Pierpaolo Prazzoli, Luca Elia]
Xing Yen Man Guan [Luca Elia, Wei Mingzhi]

New clones added
----------------
Zhong Guo Long (China, V010C) [Luca Elia]
Zhong Guo Long? (Hong Kong, V011H) [Luca Elia]
2008-08-10 16:02:14 +00:00
Roberto Zandona
24a0058754 implemented MWR (memory width register) to avoid hardcoded 384 value for screen width 2008-08-10 15:54:48 +00:00
Andrew Gardner
842d5e37a1 Adds readmes for Cosmo, Don Den Lover, Beatmania (CHD dumping), Dragon Master, Gals Panic, Fantasia II, Grand Tour, New Dyna Blaster Global Quest, Daytona "To The MAXX" upgrade, Namco System FL, Great Sluggers, Gun Nail, Gun & Frontier, Elevator Action Returns, and Battle Bakraid.
(It's easy to do this while watching the olympics.  110 down today, 245 more to go.)
2008-08-10 06:46:41 +00:00
R. Belmont
3fd8c0941b More FM OPN fixes [Eke, R. Belmont]
- Pass chip type around and restore Jarek's original behavior for YM2203/YM2610
- Always recalculate attack rate in set_ar_ksr, fixes Megadrive/Genesis "Batman & Robin"
2008-08-10 04:00:31 +00:00
R. Belmont
654ec18554 Fixed array size to avoid memory trashing. 2008-08-10 03:34:23 +00:00
Derrick Renaud
4f0cddd1a5 Updated src\emu\sound headers from K-S, so they use latest naming/structure and re-inclusion support. Also lowercased the handler names.
What a PITA.  :)  I'll have to go back and do A-J to lower case the handlers to match the new structure names I already did.

Sorry Mess and other port developers, but the code should match what is stated on the official WIKI.  But don't worry, I don't plan on updating anything but the sound cores.
2008-08-10 02:23:43 +00:00
Andrew Gardner
317af7eba8 Merged memory maps for drivers tbowl, thedeep, and thief.
(also changes gfx memory region tags in obvious cases)
(only ~1350 memory maps remaining :P )
2008-08-09 19:59:46 +00:00
Tomasz Slanina
12e0d61473 Added sprite wrapping to Irem m63 driver [Tomasz Slanina, Stefan Lindberg] 2008-08-09 17:33:55 +00:00
Andrew Gardner
dfd2e0d7df Merged memory maps for drivers tigeroad, timelimt, toobin, and tumbleb.c
(also changes gfx memory region tags in obvious cases)
2008-08-09 17:19:04 +00:00
Roberto Fresca
5a587d796e Improvements to Lucky74.c driver:
- Reverse engineering of custom IC's 06B49P, 06B53P & 09R81P.
 - Mapped the missing 3x SN76489.
 - Measured and traced all clocks on the board.
 - Measured and fixed the interrupt system.
 - Implemented timings/clocks from custom 06B49P.
 - Added sound support. All regular game sounds/musics are working.
 - Implemented the ADPCM samples system through 09R81P + M5205 emulation.
 - Added pinouts and technical notes about custom IC's 06B49P, 06B53P & 09R81P.
 - Added flip screen mode.
 - Inverted the order of double-up difficult DIP switches.
   (Seems to be the opposite of the indicated in the instruction sheet).
 - Changed 'Key In' to be active LOW instead of HIGH (checked in the PCB).
 - Complete memory map and ports scheme.
 - Created handlers for USART port and co-processor communication.
 - Renamed the sets accordingly.
 - Updated all notes.
 - Cleaned-up the driver.

Please co-credit Grull Osgo.
2008-08-09 15:57:31 +00:00
davidhay
1ee5dc58da new clone : Free Kick (bootleg set 2) 2008-08-09 13:11:53 +00:00
Derrick Renaud
629498ef38 more sound core structure/renaming updates.
You may have to do a clean compile, or delete the affected driver object files.

struct C140interface       to c140_interface
struct cem3394_interface   to cem3394_interface
struct ES5503interface     to es5503_interface
struct ES5505interface     to es5505_interface
struct ES5506interface     to es5506_interface
struct ssg_callbacks       to ssg_callbacks
struct gaelcosnd_interface to gaelcosnd_interface
struct ics2115_interface   to ics2115_interface

I'll stop until my posted question about chip names and upper case is answered.
2008-08-09 05:28:19 +00:00
R. Belmont
b14904ef68 cottonbm: actually, both cheats are harmful. 2008-08-09 03:40:56 +00:00
R. Belmont
98a3efeb51 cottonbm: disable main CPU speed cheat, it causes master/slave comms problems with the DRC for some reason.
Fixes mantis bugs 2020 and 2021.
2008-08-09 03:32:57 +00:00
Derrick Renaud
e6cf588405 Some more structure/naming updates of sound cores.
FWIW, I first check for variables named name_interface and rename them as name_cofig, so they don't conflict with the new interface names.

struct YMF262interface  to ymf262_interface
struct YM2151interface  to ym2151_interface
struct YM2203interface  to ym2203_interface
struct YM2608interface  to ym2608_interface
struct YM2610interface  to ym2610_interface
struct YM2612interface  to ym2612_interface
struct YM3812interface  to ym3812_interface
struct Y8950interface   to y8950_interface
struct YM3526interface  to ym3526_interface
struct TMS5110interface to tms5110_interface
struct TMS5220interface to tms5220_interface
struct AICAinterface    to aica_interface
2008-08-09 00:55:07 +00:00
Derrick Renaud
4bc7e64b46 Hooked up discrete filtering to SN76477 in Space Chaser 2008-08-08 23:16:09 +00:00
Derrick Renaud
1c8e102f7b Discrete sound for Mad Alien 2008-08-08 21:56:44 +00:00
davidhay
6a48444e71 decided not to flag rom 10 of defendw as bad dump. IMO, given the evidence, the mismatched checksum is probably a typo C066 / C866 look very similar ;-) 2008-08-08 20:53:30 +00:00
davidhay
f63347c5ce new clone: Defender (White label) [Andy Welburn] 2008-08-08 20:40:57 +00:00
Derrick Renaud
7ea948666a lower cased sn76477_interface and ay8910_interface 2008-08-08 16:32:55 +00:00
Nicola Salmoria
7b2d48149a Credit Corrado Tomaselli
Added a new Japanese version of Ghouls'n Ghosts.
This could be a hack since, running on a 91634B board, it must have been made at least three years after the initial release of the game. However, if if it's a hack, it's exceptionally well made since all ROM stickers look original and the B-board DAM63B PAL label is printed on the chip.

Also, hack or not, the code alignment of none of the already supported versions matches this one so it appears to at least be based on a new version.

The dip switches need to be checked. The Lives dips, and the two unused dips after those, also change the starting level. This could be further evidence that the game is a hack.

New clones added
----------------
Dai Makai-Mura (Japan new version)
2008-08-08 12:17:01 +00:00
Nicola Salmoria
faa193428c fix bogus comment 2008-08-08 05:34:49 +00:00
Nicola Salmoria
62a323841b fix typo 2008-08-08 05:22:15 +00:00
Derrick Renaud
cc94c8207d Updated structure and naming conventions of the following sound interfaces.
struct CustomSound_interface to custom_sound_interface
struct Samplesinterface to samples_interface
struct SN76477interface to SN76477_interface
struct AY8910interface to AY8910_interface
2008-08-08 01:50:00 +00:00
Couriersud
3f73ea77f0 Changed region "user1" to "tms5110_ctrl" 2008-08-07 23:32:44 +00:00
Couriersud
daff376f35 Change ad2083 following Aaron's suggestions.
* Use amended prom
* Mark prom as BAD_DUMP
* Use prom in TMS5110 logic instead of hardcoded values
2008-08-07 23:09:02 +00:00
Couriersud
37e0bacdf4 Corrected some typos 2008-08-07 22:13:00 +00:00
Nicola Salmoria
3686aa936a Updated the FD1089 decryption algorythm to use the real keys generated by the LCG as found by Andreas Naive.
The algorithm is more complex than it should be, but I haven't been able to simplify it more.
The keys are still embedded in the source. It would now be reasonable to move them to external files; however, for several games we only have partial keys so the files would need to be BAD_DUMP.
2008-08-07 19:10:50 +00:00
R. Belmont
eec9dab98d Fix GCC warning. 2008-08-07 16:51:31 +00:00
Aaron Giles
b40a4f5531 Cleanups and version bump. 2008-08-07 16:02:05 +00:00
Aaron Giles
9df01a2896 Added expression validation callback to verify names for CPUs and
memory regions. Extended error codes to report incorrect memory 
spaces, memory names, or memory sizes. Added verification callback
to the debugger to validate CPU and memory region names, as well
as verifying that a requested address space exists for a given
CPU.

Added support for oneshot cheats (those with only an "on" script).
They are activated via UI_SELECT in the cheat menu, and pop up a
message when activated. Also added a "Reset All" item in the cheat
menu to reset all cheats back to their default state, and added
support for UI_SELECT on a non-oneshot cheat so that it resets that
cheat to its default value.

Restored previous behavior that allowed popmessage() messages to
overlay menus and other UI.
2008-08-07 15:53:58 +00:00
Aaron Giles
3107dc2dff ldverify now prints transient progress to stderr, allows for frame #0,
and reports if no white flags were seen.

Fixed bug in aviio.c which could cause an infinite loop if attempting
to read sound beyond the end of the file.

Rewrote the white flag detection to use a histogram for outlier detection
and peak identification.
2008-08-07 15:07:12 +00:00
Pierpaolo Prazzoli
1c6a1e7df7 Removed bad dumps from ad2083. 2008-08-07 14:55:44 +00:00
Pierpaolo Prazzoli
1a98d9f0cd Decrypted Da Ban Cheng (dbc set in igs_blit.c) 2008-08-07 14:46:03 +00:00
Aaron Giles
ce00409cce Added word alternates for operators in expressions:
+   plus
  -   minus
  *   times or mul
  /   div
  %   mod
  !   not
  ~   bnot
  &&  and
  &   band
  ||  or
  |   bor
  ^   bxor
  lt  <
  le  <=
  gt  >
  ge  >=
  eq  ==
  ne  !=

Changed cheat escaping to automatically escape && & < and <=
to and band lt and le.
2008-08-07 06:48:04 +00:00
Aaron Giles
3153693306 From: jeaw100@york.ac.uk [mailto:jeaw100@york.ac.uk]
Subject: MPU4 sound weightings
Corrected MPU4 AY8910 output weightings
2008-08-07 06:27:21 +00:00
Aaron Giles
5fdd33c68f From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: spinal breakers clocks

Changed sound cpu clock of Spinal Breakers to 5Mhz as verified on the
pcb.
2008-08-07 06:26:39 +00:00
Aaron Giles
d4968a5667 From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: cps1 refresh rate diff

I verified the vertical refresh on one of the input gates of the 
74ls08@4J on GNG romboard 88620-b-2
2008-08-07 06:25:03 +00:00
Aaron Giles
c747744376 New clone: Crystal Castles (joystick version) [Guru] 2008-08-07 06:20:54 +00:00
Aaron Giles
d276a30840 Changed defender (white) to defender (blue). 2008-08-07 04:54:47 +00:00
Brian Troha
3c8e968bc0 Makes the "Standard" version of Mega Touch III the parent and California version the clone like it should be. 2008-08-07 03:35:40 +00:00
Pierpaolo Prazzoli
33b7088c2a Fixed bug 01958: skns: Segfaults on load 2008-08-06 20:59:33 +00:00
Pierpaolo Prazzoli
aa90d1cf72 Fixed bug 01817: intrepi2: Game stops at PCB test 2008-08-06 20:42:19 +00:00
Couriersud
2f7339ee3e Added commetn in video/mario.c that sprite buffering uses the same circuit like the one in dkong 2008-08-06 20:33:31 +00:00
Pierpaolo Prazzoli
35c4dc159f Fixed bug #02090
thedeep: Game didn't start (black screen).
2008-08-06 19:54:03 +00:00
Couriersud
c81b2cb24d Added module profiling to discrete sound core
* added DISCRETE_PROFILING macro to discrete.h
* Upon discrete_stop, the worst performing modules will be listed
2008-08-06 19:31:39 +00:00
Roberto Zandona
fa04fe6355 modify memory maps - only a wip 2008-08-06 15:03:46 +00:00
Aaron Giles
5033d06b7b From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: athena clocks

Changed cpu clocks as verified on the pcb
2008-08-06 14:41:00 +00:00
Aaron Giles
5a396b5b85 From: f205v [mailto:f205v@mail.mdsnet.it]
Subject: New russian game

Dear Aaron,
thanks to the very kind and good guys at the "Soviet Arcade Games Museum"
(www.15kop.ru), namely Alex and Max; and thanks to Antro (a good friend of
mine), we have a new dump for a previously unknown Russian game: S.O.S. by Terminal.
It works on the same hardware as Konek (already in MAME), it's a simple rom
swap. I still have to chek about PROMs.
A diff file is included, together with roms.

All the best
Antonio (f205v)
2008-08-06 14:39:56 +00:00
Aaron Giles
4c0d1c6567 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: some diplocations

Hi, enclosed please find a patch to add diplocations to the some 
drivers which still missed them. The patch assumes my changes to 
drivers starting with C,D,E have been applied (port01.diff -
>port09.diff I sent on Aug 1st... there is at least crshrace.c w
hich could fail to correctly patch, due to possibly different tags, 
and probably 1 or 2 more... not many, but maybe annoying anyway). 

It adds diplocations to the following drivers: combatsc.c, copsnrob.c, 
cosmic.c, crgolf.c, crimfght.c, crospang.c (here I also added service 
dips to heuksun and bestri, which allowed me to verify locations), 
crshrace.c, dambustr.c, darkseal.c, dassault.c, dblewing.c, ddrible.c, 
deadang.c

It also adds locations to the following games: ddragon & ddragon2 on 
ddragon.c and docastle, dorunrun & dowild in docastle.c

Regards,
    Fabio Priuli
2008-08-06 14:37:26 +00:00
Aaron Giles
d3c7e67622 This also includes a fix for the bug reported at the bottom.
From: Fabio Priuli [mailto:doge.fabio@gmail.com] 
Subject: to simplify cischeat inputs

Hi,

the enclosed diff has a twofold effect on cischeat.c:

on one side: it adds diplocations to bigrun, scudhamm, 
cischeat & f1gpstar

on the other side: it removes the current hacky handling of 
f1gpstar coinage dips (check video/cischeat.c to see what I 
mean with hacky!) to use conditional ports instead. BUT in 
order to do this, I had to add more possible values for the 
PORTCOND in iptport.c. The problem is that f1gpstar has a set 
of coinage settings when you set the region to JPN or USA and 
another one when you set the region to EUR or FRA. To implement 
this I added the following self-explanatory new PORTCOND: 
ISLARGER (>), ISNOTLARGER (<=), ISSMALLER (<), ISNOTSMALLER (<=). 
Only two were really needed to implement f1gpstar dips, but 
the other two seemed costless to me while offering even more 
flexibility to the PORT_CONDITION macro.


Also notice that the handling of conditional ports in 'TAB>Dip 
Switches' menu doesn't work well (in the current source, not 
affected by my patch) with contracted expressions like 
PORT_DIPUNKNOWN_DIPLOC: the wrong items remain listed in the 
UI menu even when you change the condition! If you leave the 
DEF_STR( Unknown ) with ON/OFF cases, everything is displayed 
correctly in the menu. However, I was not able to track down 
what part of code is responsible for this bug.

Regards,
    Fabio Priuli
2008-08-06 14:35:45 +00:00
Aaron Giles
c9063a7416 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: another small fix

Hi,

with this last patch I hope to have fixed all regressions I could 
had introduced with my past submissions. This time it was a small 
problem due to my fix to bug 1565 (alleymas duplicated inputs): 
the game was unplayable in u3 (even if not reported to MT).

Regards,

    Fabio Priuli
2008-08-06 14:14:08 +00:00
Aaron Giles
769ad97695 From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: fix for MT bug 2056

I failed to see this wrong tag for almost 2 days!! One would guess that 
looking for the cause of coins problems, an handler with the comment "coin 
inputs" should have been noticed immediately. I saw it only this morning :(

However, fix in attachment.

Regards,
    Fabio Priuli
2008-08-06 14:13:03 +00:00
Aaron Giles
a9e375ec8c Fixed Rim Rockin' Basketball to use the HD6309 core. [Tim Lindner] 2008-08-06 14:11:49 +00:00
Aaron Giles
6cad3b3231 Added support for DEL as well as BS for backspacing in the
game select menu. Also limited input to ASCII characters.
2008-08-06 14:04:16 +00:00
Aaron Giles
5dcdb1d1c3 NOTE: with this change, I have also removed PORT_START and renamed
PORT_START_TAG to PORT_START.


From: Fabio Priuli [mailto:doge.fabio@gmail.com] 
Subject: let's say goodbye to untagged input ports ;)

Hi,

enclosed please find a few patches against 126u3 source

* port01.diff -> port09.diff : these patches continues the 
cleanup of inputs in drivers starting with C (the remaining ones), 
D and E. No ambiguous situations this time, so I guess there should 
be no problem with the changes. Improvements include conditional dips 
added to dynduke and diplocations for chinagat, chqflag, circus, 
citycon, cloak, contra and dynduke

* tag01.diff -> tag09.diff : these patches add tag to EVERY input port 
in drivers starting with F->Z. Notice that only tags are added, no 
AM_READ_PORT, nor PORT_INCLUDE (and I saw a lot of drivers would need 
it ;) ), nor other cleanups contained in the patches above. I'll keep 
cleaning input next week, probably, but at least we can definitely 
remove the untagged version of PORT_START :) Notice I was able to 
compile the source commenting out the definition of PORT_START, so 
I guess every occurrence is covered...
2008-08-06 13:56:38 +00:00
Aaron Giles
4a36b515ed Changes to the cheat.xml format:
- new tag <comment> (within <cheat>) is read and preserved 
    when saved
 - removed variable attribute from <parameter>; it is now 
    assumed to be 'param'
 - added default attribute for <parameter>

Added new variable 'frame' accessible from cheat scripts. This
can be used in the conditional to prevent execution on every
frame, or for other effects (like displaying temporary messages).

Added new variable 'argindex' which is the index when processing
an <argument> with a count attribute greater than 1. Can be used
in expressions like:

  <argument count="3">main.pb@(1000+argindex)</argument>

Reinstated the cheat menu. It now displays all loaded cheats and
allows for them to be activated. All known cheat behaviors should
be working now.
2008-08-06 05:24:31 +00:00
Aaron Giles
2d165fe1c3 Fixed I/O watchpoints. 2008-08-06 05:04:05 +00:00
Derrick Renaud
b3bfdc060a Added Discrete Sound to Fantasy, Nibbler and Pioneer Balloon. (mantis# 00227) 2008-08-06 04:02:46 +00:00
R. Belmont
661aae28dc Changes to avoid collisions with system globals on OpenSolaris. (qmc2) 2008-08-06 03:25:58 +00:00
R. Belmont
43021ec0e2 Fixed GCC compile error. 2008-08-06 03:22:21 +00:00
R. Belmont
ebbd232ba3 Fix GCC 4.3 "array bounds overflow" error. This is obviously a bug, Couriersud please take a look :) 2008-08-06 03:19:52 +00:00
smf-
47b3fc7984 fixed cdrom0 region name so the games boot. 2008-08-05 23:25:21 +00:00
Jarek Burczynski
1bb6adec56 Forced synchronization (stream_update()) before the status is actually read. 2008-08-05 21:30:33 +00:00
Couriersud
8146898f14 Discrete sound core optimizations
* moved a couple of exp(x) from _step into _reset where appropriate
* use tabulated function values for the transfer function in DSS_INVERTER_OSC

==> 40% speed increase in dkong - from 520% to
$ ./mame64 -noautosave -nothrottle -str 30 -video none dkong -nomt -nosleep 
Average speed: 722.48% (29 seconds)
2008-08-05 20:25:44 +00:00
Aaron Giles
1c6d658c57 02066: All sets in mhavoc.c: all graphics is missing
02067: mustangb, tdragonb: Access Violation 
02068: All sets in mhavoc.c: Access Violation 
02069: astrofl: Access Violation 
02070: atlantol: Access Violation
2008-08-05 16:53:46 +00:00
Aaron Giles
5e3764d0a0 Removed obsolete makemeta tool. Replaced it with new ldverify
tool which walks through either an AVI or CHD capture from a
laserdisc and ensures that there are no anomalies lurking in
the VBI data.

Added new option to chdman, where if you use -createav with
a special filename (either 2:2 or 3:2) it will create a fake
laserdisc files with the equivalent cadence. This can be used
for testing until full captures are available. Most games used
2:2 apart from Dragon's Lair and Space Ace, which were 3:2.
Note that even though these files are essentially blank, they 
are Huffman-compressed, meaning that the maximum compression
ratio you will get is 8:1, so they still end up ~5GB.

Moved error strings from chdman.c to chd.c, where they can be
fetched from any caller via the new chd_error_string()
function.

Updated vbiparse to improve Manchester code decoding. It now
assigns a confidence level per bit based on how solid the
data is. Also added a new function vbi_parse_all which parses
the white flag and all three lines of metadata from a 
laserdisc frame. It then compares line 17 and 18 against each
other and selects the most likely candidate based on per-bit
confidence and other factors.

Added frame number display to laserdsc.c. It is off by
default, though most players can be configured to turn it on
(not sure if any actually do). It can be manually toggled via
the backslash key during playback.
2008-08-05 16:30:35 +00:00
Brian Troha
1f1fd39a44 more accurate statement about the NVC285 on Rally-X 2008-08-05 16:15:44 +00:00
Andrew Gardner
7b5da2e934 Adds readmes for Area 51, Animalandia Jr, Avengers In Galactic Storm, Alien 3: The Gun, Aquajack, and Missile Command.
Please credit Guru.
2008-08-05 15:25:38 +00:00
Roberto Zandona
1cb5cc78a8 soccerss (konamigx): fix for test rom (mantis #02033) 2008-08-05 12:55:22 +00:00
Brian Troha
28644f8523 adds information about custom program versions on rom name labels conventions 2008-08-05 03:49:05 +00:00
Brian Troha
11d0967aad New clone:Megatouch III (9255-20-01 RON)
New clones added
----------------
Megatouch III (9255-20-01 RON) [Brian Troha]
2008-08-05 01:46:16 +00:00
Brian Troha
83f5a6f54a fix cut-n-paste error on CPU type & correct the double "like" 2008-08-05 01:10:27 +00:00
Brian Troha
ab1e02e821 Verifies former region hacked US set as correct with correct Taito ID number. Adds information about the CPU, OSC and TC0030CMD chip. Corrects the CPU clock down to 8MHz from 12MHz. 2008-08-05 01:06:37 +00:00
Brian Troha
5f7ab71b4b adds note about the "video" chip for Rally X which appears to be DIP28 Fujitsu MB884x stamped 8050 2008-08-05 00:55:32 +00:00
Brian Troha
6339e98279 correct prom names for RallyX ... retained prom type info 2008-08-05 00:49:42 +00:00
Wilbert Pol
0f20ccdc1e Set the initial timer output to 2 to indicate that it is undetermined. 2008-08-04 17:44:56 +00:00
Wilbert Pol
1c0a7fce3a Fix compile errors. 2008-08-04 15:41:01 +00:00
Aaron Giles
95e3753dd2 Added proper laserdisc support for MACH 3, Us vs. Them, and Cobra
Commander (MACH 3 hardware). Old laserdisc hacks are now removed.
The code now talks to the standard Pioneer PR-8210 interface. Also
removed hacky "target list" from the MACH 3 ROMs; this information
is now decoded on the fly from the right channel laserdisc audio.
 
Other Gottlieb cleanups:
 - moved sound inputs to audio/gottlieb and included them in
    all relevant drivers
 - ordered input ports and ROM definitions consistently
 
Other laserdisc changes:
 - changed PR-8210 interface to work consistently for both Gottlieb
    and Stern games
 - added audio callback mechanism to allow drivers to peek at the
    raw audio streams
 - extended the VBI parser to be even more lenient
2008-08-04 15:26:41 +00:00
Andrew Gardner
d20e6b6151 Improved Dsp56k CPU interrupt handling. Polygonet Commanders now advances past its first dsp handshake. 2008-08-04 04:07:29 +00:00
Couriersud
77e548383a Scanline exact rendering for dkong & clones
* Sprite limit of 16 sprites per scanline implemented from schematics.
* Proper wrap around from bottom to top
2008-08-03 23:20:46 +00:00
Roberto Zandona
074ec8ff9b fix layout for invaders (mantis 2049) 2008-08-03 21:23:29 +00:00
Roberto Zandona
2c3973b9a3 radr: fix label of a dsw (mantis 02079) 2008-08-03 21:07:40 +00:00
Roberto Zandona
300d758618 fix DSW coinage; please credit to Fabio Priuli 2008-08-03 20:54:53 +00:00
Couriersud
82eff3f75c Revert accidentially commited changes. Sorry! 2008-08-03 19:02:28 +00:00
Couriersud
54da9f29bd 8257dma and z80dma devices now require device callback handlers instead of machine handlers.
Updated affected drivers accordingly.
2008-08-03 18:54:39 +00:00
Roberto Zandona
25379f0b5a fix window in shanghai and shangha2 2008-08-03 16:50:12 +00:00
Andrew Gardner
ae72afc18f Adds readmes for Victorious Nine, Youma Ninpou Chou, Pairs, Woodpecker, Slap Fight, Alcon, Tiger Heli, Superman, and WWF Superstars.
Please credit Guru.
2008-08-03 16:24:14 +00:00
Roberto Zandona
ef5ea22b9b add memory maps 2008-08-03 15:36:35 +00:00
Roberto Zandona
dff7bfdcb5 add some routines to skeleton "adp" driver 2008-08-03 14:43:01 +00:00
Roberto Zandona
6c3fe42bae fix CLR and CPY operations when the copy direction is from right to left -> this fix some gfx bugs in kothello 2008-08-03 10:09:06 +00:00
Brian Troha
ef65c9cce7 minor correction to memmap 2008-08-03 06:17:37 +00:00
Brian Troha
3b0857b675 adds edge connector pinout info to flower.c 2008-08-03 06:17:11 +00:00
Andrew Gardner
1ff2a15e0d Adds readmes for Kyros No Yakata, Bombs Away, Meikyuu Hunter G, Crazy Kong, Moero Pro Yakyuu Homerun Kyousou, Lucky & Wild, Match It, Country Club, Enforce, Elevator Action, Chuka Taisen, The New Zealand Story, Buck Rogers Zoom 909, and Head On 2008-08-03 06:13:02 +00:00
Couriersud
b95f4ada03 Added some notes about sprite limits and hardware. Thanks to R. Belmont for sharing the information! 2008-08-02 23:31:08 +00:00
Brian Troha
2f32d1d62a Removes "?" from Karate Blazers (World?) we have a verified US & Japanese version. 2008-08-02 22:17:17 +00:00
davidhay
00072016e5 fix psikyo4 region without breaking eeprom even ;-) 2008-08-02 22:06:20 +00:00