Commit Graph

2464 Commits

Author SHA1 Message Date
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