Commit Graph

50182 Commits

Author SHA1 Message Date
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
Zsolt Vasvari 76f9761667 Comment changes from Guru 2008-02-17 02:02:59 +00:00
Zsolt Vasvari 9ee40057d9 Color table removal 2008-02-16 23:52:22 +00:00
Zsolt Vasvari 87265897e1 Fixes copy/paste error in comment 2008-02-16 23:51:58 +00:00
Laurent Desnogues 4839044063 cosmetics 2008-02-16 16:35:07 +00:00
Zsolt Vasvari e921749bc1 Credit Derek Ledbetter
- Fixes Xenophobe sprite aligment
2008-02-15 21:21:15 +00:00
Nathan Woods 0d5c41af1d Added missing #include 2008-02-15 13:30:01 +00:00
Aaron Giles 85345b2210 Cleaned up silly comments 2008-02-15 07:04:25 +00:00
Zsolt Vasvari 8715109eb4 - Color table removal
- Reorganization/minor clean-up of Mad Alien driver
2008-02-15 05:43:05 +00:00
R. Belmont aad7c9abf4 Fix build with external zlib. 2008-02-15 03:56:17 +00:00
Yasuhiro Ogawa f4ba65cc8a Redumped MBL-03.10A(mirage)
Dumped and added Fighting Soccer (Japan) (fsoccerj)
2008-02-14 21:28:31 +00:00
stephh f1be2aaf0e Changed comments for 'progear' BUTTON3.
Bugs fixed :
  - progear0123u1gra (MAME Testers)
2008-02-14 21:27:05 +00:00
Aaron Giles 082619dbae Cleanups on the doc files.
Fixed high-ASCII characters in newvideo.txt which was breaking its view on the mamedev.org source browser.
2008-02-13 16:55:14 +00:00
Mirko Buffoni 7d85f8b99d Added original Champion Poker (V220)
Added DIPLOCATION macros to all Dip Switches. All DSW are verified through test mode.
Fixed custom_io_r which is used for protection but also for keyboard input.
2008-02-13 16:45:05 +00:00
Yasuhiro Ogawa 7f9e52699c added comment on HD46505 2008-02-13 15:09:46 +00:00
Aaron Giles 072b71602b Cleanups and version bump for 0.123u1. 2008-02-13 08:54:29 +00:00
Aaron Giles 63576c78f0 Several more risky challenge opcodes. [robiza] 2008-02-13 08:50:58 +00:00
Aaron Giles ac9b10d935 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Fix maxaflex problems

Hi mamedev,

The maxaflex, mf_bdash and mf_achas drivers fatalerror on startup as
reported on MAMETesters.  This should fix it.
2008-02-13 08:35:36 +00:00
Aaron Giles accc7d1761 From: mellery [mailto:mellery@gmail.com]
Subject: diff for police trainer

Attached is a diff adding diplocations and marks some as unused based on manual and schematics. based on 0.123

Mike
2008-02-13 08:34:24 +00:00
Aaron Giles a21ca37e6c From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Add nmk112 initialization

Here's a small patch to add initialization to machine/nmk112.c.  This
resolves a multi-session audio problem reported for donpachi by
Iaspis.

--

From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Fix n64 multi-session problems

This patch adds some variable initialization to machine/n64.c to fix
running starsldr multi-session (reported by Firewave/subb).  The fix
is a strict improvment on the current situation, but there are likely
still some remaining multi-session/reset issues with the driver.
2008-02-13 08:30:58 +00:00