Commit graph

91901 commits

Author SHA1 Message Date
R. Belmont
5f4c195fe6 [SH4] Added missing SH4 instructions and bugfixed the FPU
[NAOMI] Improved I/O board emulation and added working controls

(Credit Samuele Zannoli, I just tweeked it to cooperate with my changes).
2008-02-20 05:11:31 +00:00
R. Belmont
4ba34771dc [AICA] Fixed ADPCM looping. 2008-02-20 05:08:58 +00:00
Brian Troha
a1d920d679 Adds Excellent Co, Ltd Redhawk to nmk16.c
minor whitespace clean up in ddragon3.c
slighty more verbose description of proms in jedi.c
2008-02-19 22:54:57 +00:00
Curt Coder
bbc76a1e46 Added PROM type information. 2008-02-19 21:53:52 +00:00
Curt Coder
9c82aa0f11 Removed BAD_DUMP flags from the highly controversial background smoothing PROMs. 2008-02-19 18:20:48 +00:00
Aaron Giles
671afc2661 Updated validity.c to current core style. 2008-02-19 18:02:59 +00:00
Curt Coder
949599e0ff Added some XTALs for MESS. 2008-02-19 17:59:06 +00:00
Curt Coder
1424fce298 Added i8749 CPU type for MESS. 2008-02-19 17:54:47 +00:00
Aaron Giles
aad4c81ac4 Pulled remaining vestiges of old-style colortables:
* PALETTE_INIT no longer has a colortable parameter
 * removed game_colortable and remapped_colortable from machine_config
 * updated a few stragglers that still referenced these fields
 * removed tile_draw_colortable from tilemap.c

(From Zsolt): Added support for the new colortable object in the palette viewer

Changed the input port tokens to use a union instead of casting everything to FPTR.
In the future, C99-enabled compilers will be able to achieve type safety with
designated initializers.
2008-02-19 17:52:21 +00:00
Zsolt Vasvari
3d8658108f - Added video_screen_update_now(int scrnum) to force a screen update up to the current beam position
- Changed Qix driver to use this function
2008-02-19 12:27:00 +00:00
Aaron Giles
ccb9e852f9 From: keshbach@comcast.net [mailto:keshbach@comcast.net]
Subject: Assorted dumps and other fixes

Hi,
 
I have enclosed a patch file that:

* Fixed some of the rom dumps for Double Dragon 3 (Some of the dumps were based of the bootleg and not the original.) and updated the name and location to actually match that of a real board
* Updated the dip switches for Combatribes to actually show their position on the physical board.
* Dumped the six GAL's on Battletoads and updated the existing rom names to make their locations easier to understand.
* Updated the dip switches of Battletoads to actually show their position on the physical board.
* Added placeholders for pals that need to be dumped for the various games in mcr68 driver.  I got the information by looking at the manuals except I couldn't find a manual for Arch Rivals or Pigskin 621AD though I'm sure they probably have pals that need to be dumped.
* Added placeholders for the two pals that are on the bootleg version of Hyper Olympics and corrected the rom names to match their location on the board.

Kevin Eshbach
2008-02-19 09:37:04 +00:00
Aaron Giles
cf861dda68 From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: clock frequencies diff

Verified clocks on Rainbow Islands and Rambo 3 and Raiden 2. Reverted 
sound OSC of Truxton 2 to 27mhz/8 since the original OST runs at this 
speed. The pcb I measured the previous clock was 28mhz/8 and it's a 
different pcb version from the common one. Since mame doesn't support 
multiple OSC I prefer to use the 27mhz one.
2008-02-19 09:29:15 +00:00
Aaron Giles
f391dd8ed4 From: KO Myung-Hun [mailto:komh@chollian.net]
Subject: _mul_32x32_hi() and _mulu_32x32_hi() patch

Hi/2.

I've attached patches to fix validation fail of '_mul_32x32_hi()' and
'_mulu_32x32_hi()' inline function when compiled GCC v3.3.5 with I686
optimization in according to advice of 'Vas Crabb'
2008-02-19 09:27:39 +00:00
Aaron Giles
08c3ff61e0 From: JEA Wallace [mailto:jeaw100@york.ac.uk]
Subject: Various little changes from the last month

I've been meaning to send these in for ages, but the day job has been 
insane for a while now, so it's been hard to keep these up to date.

Firstly, I've fixed a few corner cases I've noticed in the 6840 
emulation based on running the MPU4 test ROMs, and added the ability to 
dynamically alter the external clock frequencies in game (since these 
pins can be connected to other timing devices in a daisy chain, this may
well prove handy for speech chips and the like).

The 6850 core has also been changed to allow dynamic RX and TX clock 
alteration, to at least try to remove a few of the MPU4 timing problems 
(the ACIA clocks are triggered by the output pin of one of the 6840 
timers, so the clock rate will vary according to what has been 
programmed into the counter, rather than a fixed value).

MPU4 has been changed to document the Video board a bit better, and to 
change a game name to match what is actually on the marquee. Other names
have changed, to better describe the program nature (AMLD versions are 
legally speaking not SWPs, as there is no capacity for payout, so AMLD 
SWP is an oxymoron).

Lastly, since I was smoketesting 6840ptm using cchasm anyway, I've added
some documentation of the Cosmic Chasm crystals, and merged the memory
maps.
2008-02-19 09:26:23 +00:00
Aaron Giles
787b37d60e From: Edward Swiftwood [mailto:payphoneed@gmail.com]
Subject: Puzzle Club Vol.2/4/5 DIP Switch Fix

Here it is, done by me so you don't have to! Enjoy!
2008-02-19 09:24:34 +00:00
Aaron Giles
62754695d7 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Fix namcos2 multisession crash

Hi mamedev,

If you run a namcos2 game multi-session (say marvland), it may crash
due to an inappropriate use of auto_malloc.  Fix attached.

~aa
2008-02-19 09:23:43 +00:00
Aaron Giles
1f7c87ec68 From: RansAckeR [mailto:RansAckeR@pandora.be]
Subject: port definitions/DIP improvements
Simplified port definitions in armedf.c, artmagic.c & asteroid.c.

Added DIP locations to: cclimbr2 , legion, terraf, ultennis, cheesech,
stonebal, stoneba2,  scessjoe, ashnojoe, asteroid, llander, llander1,
astdelux.

(This is the follow-up submission with stephh's complaint addressed.)
2008-02-19 09:19:32 +00:00
Aaron Giles
8024faaa6d From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: Shadow Warriors inputs diff

Connected the buttons like they are wired on the original pcb (which is
jamma):
Button 1: Grab
Button 2: Attack
Button 3: Jump
2008-02-19 09:11:02 +00:00
Aaron Giles
64c7a0c4bd From RansAckeR:
Reviewed the following drivers:

alpha68k.c
actfancr.c
aeroboto.c
aerofgt.c
aliens.c
ambush.c
amidar.c
amspdwy.c
angelkds.c
appoooh.c
arabian.c
argus.c
arkanoid.c

Improved some DIP switches.
Added some DIP locations.
Replaced IPT_COINx with IPT_SERVICE1 where appropiate.
Simplified some control definitions.
2008-02-19 09:09:02 +00:00
Aaron Giles
3accee936b New module: devintrf.c/.h. Implements a generic device interface similar
to the sound and CPU interfaces. This is still a bit WIP, but works at
a fundamental level. Currently the only example of usage is in qix.c for
the MC6845 CRTC.

New module: mconfig.c/.h. Moved all machine_config and MDRV_* macros here, 
out of driver.c/.h. Added MDRV macros for adding/removing/configuring
devices.

qix.c: Moved video part of machine driver to video/qix.c. Added MC6845
as a device in the machine driver. Removed explicit MC6845 initialization
from VIDEO_START in favor of simply retrieving the token from the device
interface code.

mc6845.c: Updated all callbacks to pass the mc6845_t * object. Updated
all drivers accordingly. Added a minimal device interface.

Deprecated the following constants because global constants that pretend
to document things but which are only guesses are dumb:

  - DEFAULT_60HZ_VBLANK_DURATION
  - DEFAULT_30HZ_VBLANK_DURATION
  - DEFAULT_REAL_60HZ_VBLANK_DURATION
  - DEFAULT_REAL_30HZ_VBLANK_DURATION
  - DEFAULT_60HZ_3S_VBLANK_WATCHDOG
  - DEFAULT_30HZ_3S_VBLANK_WATCHDOG

Updated all drivers to explicitly specify the equivalent bogus times.
Added comments for the "REAL" VBLANK durations to indicate that they are
not accurate.
2008-02-19 08:49:59 +00:00
Zsolt Vasvari
0bfe7ee72d Removes MDRV_COLORTABLE_LENGTH macro -- no longer used 2008-02-19 04:03:24 +00:00
Zsolt Vasvari
a8fae84505 Color table removal -- done 2008-02-19 04:01:17 +00:00
Zsolt Vasvari
6e1e95866d Color table removal 2008-02-18 15:42:02 +00:00
Zsolt Vasvari
5b35164ee0 - Color table removal
- Simpler (IMHO) collision detection in taitosj and tank8
2008-02-18 10:57:42 +00:00
Aaron Giles
109bb332f0 The term "driver" is way overloaded in the system.
machine->drv is now machine->config.
Sorry.
2008-02-18 06:08:39 +00:00
Aaron Giles
3e34860ccc Removed expand_machine_driver().
Replaced with machine_config_alloc() and machine_config_free().
Updated all call sites.
Normalized info.c style and simplified some of the code.
2008-02-18 05:58:18 +00:00
Zsolt Vasvari
07290e4c0e Color table removal 2008-02-18 05:48:49 +00:00
R. Belmont
277daffe04 [AICA] Fixed error introduced in last change. 2008-02-18 04:18:50 +00:00
R. Belmont
edc2bfebf0 [AICA] Fix sample address mask to follow passed-in RAM size. Music in Toy Fighter is much improved. 2008-02-18 03:51:13 +00:00
Zsolt Vasvari
c59bf65f7c Color table removal 2008-02-18 03:36:20 +00:00
Brian Troha
c2ea47217f Fixed one or two dips and found the "service" switch and likely start of inputs 2008-02-18 02:28:20 +00:00
Zsolt Vasvari
3d5cdeaf8c From Atari Ace:
Hi mamedev,

Here's my periodic batch of code cleanups.  The usual batch of adding static/const plus some include fixes.  In addition, I reverted some of the changes to build.mak from u1 which made some MSVC builds fail, and adjusted/optimized an m10.c gfx_layout.  I also added some missing cores to cpuintrf.c, sndintrf.c and added some missing #if's to 5220intf.c.

~aa
2008-02-18 01:30:05 +00:00
Brian Troha
c49a02dfc9 Documents cart info for Toy Fighter 2008-02-18 01:23:00 +00:00
davidhay
c6de7768c6 (from robiza)
riskchal opcode a4 -> 12, fixes bonus points between levels
2008-02-18 01:16:17 +00:00
Zsolt Vasvari
31a347db0f Corrected BAD_DUMP ROM sizes for the smoothing tables 2008-02-18 00:56:15 +00:00
davidhay
5e90bf71fc (from Corrado Tomaselli)
adds Toy Fighter to Naomi driver -- all roms pass checks (non-working obviously)
2008-02-18 00:52:50 +00:00
Zsolt Vasvari
89b4614fff Restores previous position of the background gfx.
This may or may not be correct but, for now, fixes the black-on-black stage indicator letter
2008-02-18 00:24:17 +00:00
Zsolt Vasvari
4fea206b3a Color table removal 2008-02-18 00:13:06 +00:00
R. Belmont
964f7a8429 [ARM7] Fixed unaligned 32-bit reads. 2008-02-17 21:57:27 +00:00
Aaron Giles
19b1a10219 Cleanups to make MSVC happy. 2008-02-17 21:28:33 +00:00
stephh
5735206f1a Fixed Dip Switches (especially coinage) and inputs for '10yard' (and its clones).
Tried to "unified" the driver with m52 and m57 drivers (I still think that some things can be merged).

Don't forget to check SVN revisions 695 and 696 !
2008-02-17 18:50:28 +00:00
R. Belmont
8877f5321b [NAOMI] Added and hooked up AICA (sound chip). Naomi boot sounds now play.
Since it's an SCSPx2 with ADPCM instead of FM it's already feature-complete except filter envelopes.

A bug in the ARM7 core causes incorrect pan/level values to be computed in e.g. the Naomi SOUND TEST menu (I've also been seeing this in DSF playback).  This is not a defect in the AICA.

Please credit ElSemi, Deunan Knute, kingshriek, and myself.
2008-02-17 18:28:36 +00:00
davidhay
b469de6db7 changed IREM cpu decryption to be 'real-time' (it's a feature of the CPU)
moved decryption table setup to 'config' struct for the CPU.

added latest tables from robiza, making Risky Challenge playable, promoted it to working

told CPU core to not decrypt code after brkn instruction, enabling it again on iret, allowing me to remove several 'don't decrypt range' hacks in robiza's code.

updated all drivers accordingly.

currently the disassembly is a bit weird now, this will need looking at.
2008-02-17 16:05:10 +00:00
Laurent Desnogues
c552f36c5b cosmetics 2008-02-17 15:57:47 +00:00
stephh
1ede3b08f7 Fixed a small difference I introduced in revision 695. Sorry about that ... 2008-02-17 13:48:46 +00:00
stephh
015e47c058 Fixed Dip Switches (especially coinage) and inputs for 'mpatrol' and 'troangl' (and their clones).
Tried to "unified" the drivers (I still think that some things can be merged).
Added src/includes/iremipt.h source file (same purpose as src/includes/taitoipt.h).

Fixed Dip Switches and inputs for 'alpha1v'. The game is now more playable to me but I left the GAME_NOT_WORKING flag as I think there are still some things to look at).
2008-02-17 13:35:28 +00:00
Zsolt Vasvari
2eb626efdd - Added colortable_palette_get_size()
- Added some more asserts
2008-02-17 08:45:19 +00:00
Zsolt Vasvari
01dac00ae0 Color table removal 2008-02-17 07:16:47 +00:00
Zsolt Vasvari
997c60ab84 Couple of lines forgot to change back... 2008-02-17 03:24:26 +00:00
Zsolt Vasvari
bccaf3156b - Color table removal
- Converted SNES (except debug code) to RGB32 as it was a serious abuser of the palette system
2008-02-17 03:19:01 +00:00