Commit Graph

77627 Commits

Author SHA1 Message Date
Aaron Giles 444d77b838 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Fix C4305 warnings, other MSVC tweaks

Hi mamedev,

This patch is a bit of a potpourri.  It is the result of enabling most
of the suppressed warnings when using MSVC compilers and seeing what
issues arose with different compilers (I used 70,71,80,90).  Two of
the warnings were judged to be useful to enable and methodically fix.
Some issues spotted by the other warnings were also fixed.

1. Fixed issues flagged by MSVC warning C4305 (type truncation).
Almost all of these are harmless double->float narrowing in
initializers, but one warning spotlighted a bug in segasyse.c, where
code to use a higher sprite number had no effect due to the
insufficient range of UINT8.
2. Removed /wd4550 for VS7/VS71 compilers (expression evaluates to a
function which is missing an argument list).  There are no cases of
this warning currently, and if there were they would most certainly be
bugs.  This also allowed the warning suppression lists to be remerged
for VS7 and VS2005.
3. Decoupled intrinsic support decisions from PTR64 in eivc.h.
4. Fixed some VS7-specific issues (OPTIMIZE=0 at least compiles now).
That compiler doesn't support "long long" or "ll" (rsp.c/dkong.c).
5. Added a missing case statement in sm8500d.c.  Noticed while
reviewing dead code warnings.
6. Replaced a number of static constants with an enum in sidenvel.h.
This is unrelated to the rest of this patch, but it was overdue to be
done.
2008-01-24 14:24:59 +00:00
Aaron Giles f446536f18 Minor spacing and clock cleanup. 2008-01-24 14:16:13 +00:00
Zsolt Vasvari 3815ec44e1 - Changed cpunum_set_input_line* functions to take running_machine as an argument
- Added that fix the arm7dasm, otherwise I couldn't compile the code
2008-01-24 14:14:21 +00:00
Zsolt Vasvari f7c5c67e2e First in a series of updates to remove the use of the global Machine from as many places as possible 2008-01-24 09:12:03 +00:00
Zsolt Vasvari c1af761bef Sorry, broke Wolfpack -- one line fix 2008-01-24 06:27:25 +00:00
Zsolt Vasvari 4ab04517cb - Changed S14001A emulator to allow setting the clock frequency instead of the clock multiplier. This is how the real chip works
- Changed the Berzerk driver to set the S14001A clock as per the schematics.  This proves that the schematics are correct and the comment suggesting the contrary can be removed.
2008-01-24 06:18:30 +00:00
Aaron Giles 587c293ee0 From: RansAckeR [mailto:RansAckeR@pandora.be]
Subject: scramble-800fath dip locations

Verified DIP locations from manuals for scramble and 800fath.
2008-01-24 06:18:11 +00:00
Aaron Giles 47d0b81153 Too early for this one.
Also moved the pce games into a separate library.
(General rule is 2 or more drivers files warrants its own library.)
2008-01-24 05:57:53 +00:00
Ryan Holtz a67e5be6db Credit to SGINut.
Changes:
- ARM7: Added support for the BLX opcode in THUMB mode.
2008-01-24 04:10:40 +00:00
Zsolt Vasvari f1d2bde333 Formatting 2008-01-24 02:42:13 +00:00
Zsolt Vasvari 6d5ae15ab0 Removed the freely distributable Exidy games' dependency on Berzerk. Mainly for tinymame.mak 2008-01-24 01:53:56 +00:00
Zsolt Vasvari feb32d305f - Uses its own debug flag instead of MAME_DEBUG
- An hard errors, do fatalerror instead of returning 0
2008-01-24 00:56:22 +00:00
Zsolt Vasvari e25cf85f37 Demoneye-X fixes
- Correct colors, perhaps not the background, but probably is
- Added some sound
- Marked it NOT_WORKING, due to the (still) missing 3rd gfx layer that makes it impossible to pass the 2nd level.  Don't suppose anybody has a PCB?  It would be helpful even if I knew what I was supposed to be seeing
2008-01-23 10:54:03 +00:00
Brian Troha d9f2974694 added all the known BIOS dumps we have. Corrected one BIOS name
added info about region bytes & version numbers.
reordered the BIOS list a little, IE:
  Export
  USA
  Japan
2008-01-23 03:06:06 +00:00
Zsolt Vasvari 79dcd62c8a Rewrote and modernize driver:
- correct colors -- in places different from the manual's description, but matches the flyer perfectly
- added speech
- fixed AY-8910 sounds
- odds and ends
- for now, broke Demon Eye X, but I wanted to get this out
2008-01-23 02:00:08 +00:00
Couriersud 7d8f30ab32 audio/dkong.c:
* revert a change after sound regression in dkong.
2008-01-23 01:00:36 +00:00
davidhay 890acbc2cc credit RussiaWithLove
typo fix.
2008-01-22 23:46:14 +00:00
davidhay e3e182ee3d credit RussiaWithLove
Multifish and Rollfruit don't appear to have any 'recent' revisions, so this adds just those.  Sets are simply based on public dats.
2008-01-22 23:45:07 +00:00
Brian Troha 3e7a5b2ee6 updated one dip switch for Schmeiser Robo 2008-01-22 21:45:26 +00:00
Aaron Giles 4cd030663c (From OopsWare)
Improved linear zoom effect resolution to address gaps in rendering.
2008-01-22 16:30:15 +00:00
Yasuhiro Ogawa 28166636d4 Changed YM2203 clock to 3MHz (compared against OST) 2008-01-22 11:28:24 +00:00
Zsolt Vasvari cca576b152 - Removed VIDEO_START_CALL(generic) from all drivers not needing it, which were all of them
- Removed VIDEO_START_CALL(generic_bitmapped) from jpmimpct.  By the way, Clueo has a bug where the screen is not cleared properly obscuring instructional text.  This happens after the demo mode takes a photo of the  'body'
2008-01-22 06:52:34 +00:00
Zsolt Vasvari 171ec4b063 Missed one file, sorry 2008-01-22 06:25:30 +00:00
Zsolt Vasvari 15e2918401 Changed all other video_*, sound_*, etc. calls to use macros 2008-01-22 06:22:39 +00:00
Zsolt Vasvari 268595ffef Replaced driver_init_* calls with macro 2008-01-22 04:41:11 +00:00
Zsolt Vasvari 817b3526f9 Added a _CALL variant to all prototype macros. The use of these should make it easier to change the signiture of these function 2008-01-22 02:55:04 +00:00
Ryan Holtz e52de27a57 Prepending non-static (as well as static, for consistency) N64 VI members with n64_* in order to reduce namespace collision potential. 2008-01-22 02:41:57 +00:00
Ryan Holtz 0960ad9d7b Note: Removing the static qualifier on vi_width is necessary for PIN64 captures to work. I'm not submitting my changes for PIN64 yet, but leaving it as non-static means one less thing I need to manually merge to get PIN64 working in whenever I update my tree.
- Final pass on single-stepping behavior [SGINut]
- Corrected VRCP element lookup [SGINut]
- Corrected unaligned DMA behavior [Ville Linde] (Ville, do you mind that I submit this?)
2008-01-22 02:11:24 +00:00
Zsolt Vasvari 2c63c6e3d4 Reversing previous submission. The AY8910 has so many ways it can be hooked, that it doesn't really make sense to designate any one as "natural" 2008-01-22 02:02:09 +00:00
Zsolt Vasvari 1a17348787 - Added read/write handlers for the "natural" hook-ups of an AY-8910 chip
- Modified a couple of drivers to use the new handlers
- Added crystals for NYNY and Red Alert
2008-01-22 01:19:59 +00:00
Jim Stolis b6a82f1762 Fixed timers from firing when not enabled. Checking TCON alone is not enough to invoke timers. Added IE SFR flags in conditional. 2008-01-21 22:27:44 +00:00
Nicola Salmoria b0e569464a fixed VRCP instruction to match the real hardware results 2008-01-21 21:41:33 +00:00
Aaron Giles 3924c0bc9c Updated clocks and video timing based on measurements.
Still waiting for a retest of the NMI frequency.
2008-01-21 18:18:53 +00:00
Zsolt Vasvari 13b727a2c3 This updates makes the text displayed by the various UI sliders more intelligent. Basically, it will only print an index for an item if there are multiple of a given type 2008-01-21 12:38:53 +00:00
Zsolt Vasvari 3f1caeac76 Tidied up variable and function naming 2008-01-21 09:02:17 +00:00
Zsolt Vasvari 892153bd09 - Fixed saving callbacks across a reset
- Added 'pull' callback for the SID pin.  This is needed by the Red Alert voice board
2008-01-21 08:58:19 +00:00
Nicola Salmoria 45995624ff fixed typo 2008-01-21 07:21:26 +00:00
Zsolt Vasvari adcf70548a - Added MC3417 and MC3418 variants
- Changed Mouse Trap to use MC3417
2008-01-21 03:36:21 +00:00
Nathan Woods 08efd6203a Sync with MESS 2008-01-21 03:35:09 +00:00
Zsolt Vasvari 6f14cdf61a Removed weird, address bit swapping shared RAM r/w functions with AM_SHARE 2008-01-21 03:15:57 +00:00
Zsolt Vasvari 81a8efe80e - Fixes Ninja Kuna
- Cleaned up memory maps
- Renamed files to ninjakun.c
2008-01-21 01:53:30 +00:00
Aaron Giles 977903f2ed Careless! Broke mspacman. :) 2008-01-21 00:35:37 +00:00
Aaron Giles ba63d916a3 Fixed default memory view width for CPUs with >byte-sized minimum
Made menu updating dynamic at click time, fixing issues with incorrect checkmarks
2008-01-21 00:29:29 +00:00
Aaron Giles bf89fc2b8f Various fixes to incorrect dynamic RAM/ROM installation. 2008-01-21 00:28:44 +00:00
Andrew Gardner a2432adeba Adds second, possibly newer, set of Night Stocker.
ROMs were downloaded from softwarethis.com and uploaded to /roms/current/n

One program ROM is different, which adds an additional screen in service mode.  I'm sure there are other differences as well.

I would have added the PAL dump, but it's all 0's, and I'm guessing that isn't correct.
2008-01-20 23:37:31 +00:00
Couriersud f8ddfc19fa sound:
* added MDRV_SOUND_ROUTE_EX to specify target input channel
* added input id to route struct
discrete sound:
* fixed DISCRETE_INPUT_STREAM
* added input channel # to DISCRETE_INPUT_STREAM
2008-01-20 22:38:21 +00:00
Andrew Gardner 50f7b75476 Adds priority and alpha comments, as per Guru's request.
Documents various priority issues as being original game bugs, and makes note of a missing alpha effect.

These notes will likely live in a new bug database someday, but were added to the driver so they won't be lost in the short term.

If it's whatsnew worthy, credit Guru for his time spent testing.
2008-01-20 19:57:26 +00:00
davidhay ccccc9c2e3 ninjakd2.c wasn't compiling. 2008-01-20 18:55:10 +00:00
Nicola Salmoria 7f233aa02f fixed dip switch description 2008-01-20 16:23:30 +00:00
Nicola Salmoria 3caf91c713 - MAMEtesters bugs fixed: ninjakd2_0111u3gra, mnight0102gre
- cleaned up and merged ninjakd2, mnight and omegaf drivers into a single driver
- added flip screen support to all games
- fixed sprite overdraw mode:
  - ninjakd2 congratulations screen (e.g. stage 3) shows japanese characters which were previously missing
  - in ninjakd2, at the beginning of a level items are visible during the initial fade in. I'm not sure if this is correct but the other effects wouldn't work otherwise
  - in mnight attract mode, when the big ship is firing the other sprites no longer leave trails
  - in mnight at the end of a level the screen is slowly filled with balls and then slowly cleared to begin the following level. Same effect in the death sequence during attract mode.
- added proper computation of sprites to be drawn taking into account double size sprites. This fixes sticking shots in mnight without need for a hack.
- lowered ninjakd2 PCM playback rate to 13020 (from 16000). This seems to sound better and is a round division from one of the master clocks.
- removed ROM patch that was used to avoid the input protection in omegaf, added a rough but effective protection simulation.
- corrected some dip switches
- hooked up sound cpu reset line
- simplified ROM loading for the older games swizzling address lines in driver init.
2008-01-20 15:17:23 +00:00