Commit Graph

7370 Commits

Author SHA1 Message Date
Aaron Giles
fdcfa2a467 Changed ticket.c into a device, updated all users. 2009-12-15 08:10:30 +00:00
Andrew Gardner
c3916b36c9 (not whatsnew.txt worthy)
Last refactoring pass before doing the 3d FIFO.
2009-12-15 06:28:28 +00:00
Aaron Giles
26d1e3868a Some more atari driver shuffling. Added atarigen_init() function
which allocates all timers and registers for save states.
Updated all drivers to call it. Converted some drivers to use
device timers.
2009-12-15 05:41:34 +00:00
Aaron Giles
f43747b221 Some misc cleanups:
- added warning messages for auto_malloc, timer, and save state
    allocations done after init time. These should be fixed when
    detected, as I would eventually like to disallow them entirely.
 - changed state registration functions to pass through the caller's
    file and line number to facilitate fixing the above warnings
 - converted Taito F3 sound to a separate machine driver which is
    imported into games that use it
 - converted the balsente driver to driver_data structure
 - converted harddriv timers into devices
 - fixed crash in cps2 games due to not configuring the qsound bank
 - cleaned up initialization in taito_l to allocate at init time
    instead of reset time
2009-12-15 02:37:46 +00:00
Aaron Giles
c1c28e486b Fix crash on exit for systems with no tilemaps. 2009-12-15 00:28:30 +00:00
Fabio Priuli
75bf0c5a10 On behalf of David Haywood: added redumped roms to coolridr 2009-12-14 18:39:39 +00:00
Fabio Priuli
f2a4c06f27 Misc Konami updates:
* moved k056800 sound device to emu/sound and removed the old code (mame/machine/konamiic.c )
* updated gticlub.c, hornet.c, nwk-tr.c, ultrsprt.c and zr107.c to use this implementation
* fixed various small (and not so small) problems in konicdev.c
* as a result Konami 007342, 007420, 052109, 052160 and 051316 devices are now working and 88games.c, battlnts.c, bladestl.c and rockrage.c have been updated to use them
2009-12-14 17:58:20 +00:00
Aaron Giles
eb025378a9 Fix tilemaps so they can be initialized at device start time. 2009-12-14 07:33:54 +00:00
Aaron Giles
9dacb74ef0 Fixed obvious typo. 2009-12-14 07:19:00 +00:00
Fabio Priuli
bf07322216 Added preliminary device versions of all the Konami custom ICs currently emulated in machine/konamiic.c and video/konamiic.c.
In particular, device-fied Konami 007121, 051733 and 053251 work fine and combatsc.c, contra.c, crshrace.c, f1gp.c, fastlane.c, flkatck.c, hcastle.c, labyrunr.c and suprslam.c have been converted to use the new code.


Side notes: 
* chips which have their own tilemap in MAME (e.g. 056832 and 052109) are not working yet, and other chips cannot be fully tested because they're used together with these... it's still wip
* some cleanup is in order (especially for interfaces), once I get the remaining chips to working state
* converting the drivers above, I noticed that f1gp2 was only using half of the k053936 regs: this is now fixed and, even if I don't know of any visible improvements, now there are definitely less unmapped writes logged by the debugger ;)
2009-12-14 01:32:51 +00:00
Fabio Priuli
d8e3212c7b Added driver data struct to 8080bw.c and mw8080bw.c. Also merged the .h files. 2009-12-14 01:17:45 +00:00
Fabio Priuli
5424444497 Added SET_TILE_INFO_DEVICE to tilemap.h (it should be correct) 2009-12-14 01:15:48 +00:00
Aaron Giles
8bccdbd5cc Enhanced the UML opcodes for LOAD, LOADS, and STORE to support
arbitrary scaling factors. Previously, specifying a size implied
a scaling factor equal to the size (i.e., specifying DWORD meant
the index was scaled by 4). This is still the default. However,
now you can specify the scale explicitly for other cases. For
example, you can specify DWORD_x1 to fetch a DWORD but don't
scale the index at all, or BYTE_x8 to fetch a BYTE while scaling
the index by 8. Updated all backends to make this work.
2009-12-13 20:01:26 +00:00
Phil Bennett
c254101a9a 03572: pandoras: [possible] Music pitch/speed is too high. [Phil Bennett] 2009-12-13 12:45:07 +00:00
Fabio Priuli
8bdb970d1d Made MB14241 Shifter IC a device and moved its source to emu/machine. Updated mw8080bw.c and 8080bw.c accordingly. Also converted fgoal.c to use this implementation in place of its own version. 2009-12-13 12:03:51 +00:00
Fabio Priuli
4d2eba9882 Added TILE_GET_INFO_DEVICE macro to tilemap.c
Added driver data struct and save states to malzak.c
2009-12-13 11:59:35 +00:00
Fabio Priuli
30e421aac2 Added driver data struct to cvs.c
Added driver data struct and save states to: cbasebal.c, chinsan.c, mitchell.c and quasar.c


Not to be mentioned: I also removed use of memory_set_bankptr from CPS1 sound banking and renamed a couple of rallyx.c constants to be less generic
2009-12-12 19:03:40 +00:00
Fabio Priuli
9ccef5fb60 Imported SAA5050 emulation from MESS and made it a device. Updated malzak.c to use it, removing the almost identical implementation in the driver.
Out of whatsnew: Unfortunately, I was unable to make both malzak and p2000t (in MESS) to work without a small kludge, clearly documented in the source. I plan to further investigating the problem once I manage to merge the other 505x variants (later)
2009-12-12 18:22:43 +00:00
Aaron Giles
26ef740b4b Fix MT03444. Global arrays are now included once again in the memory view.
ALso changed the memory views to determine the list of subviews at
creation time, not init time, allowing for new stuff to appear later.
2009-12-12 08:52:16 +00:00
Fabio Priuli
092edee31b Let's see if we can put a bunch of nails in the coffin of hiscore.dat:
* added driver data struct to neogeo.c and added GAME_SUPPORTS_SAVE flag to all sets, because save state support was already there
* added driver data struct and save state support to cps1.c, cps2.c and fcrash.c
2009-12-12 00:06:43 +00:00
Fabio Priuli
66f8650aac misc small updates:
* added saves to 6522via.c. this fixes problems of gameplan.c and trvquest.c games with -autosave
* added driver data struct and save states to toratora.c and sf.c
* enable GAME_SUPPORTS_SAVE flag to dday.c because some of the core changes have fixed the sound problem at loading
* added a couple of comments about header inclusions
2009-12-11 23:59:11 +00:00
Fabio Priuli
b991a168d1 From David Haywood:
new NOT WORKING
------------------------

Happy 6-in-1 [XX]



(not sure who should be credited, I'll ask)
2009-12-11 23:48:35 +00:00
Fabio Priuli
c081ece894 Removed the last input_port_by_index occurrence in src/mame/
@Aaron: now I think there is only a single occurrence of input_port_by_index in the whole source (in src/emu/sound/disc_inp.c), in case you want to remove the whole handler
2009-12-11 23:39:12 +00:00
Fabio Priuli
67f64cf723 Fix for MT03567: trvquest: Access Violation after OK 2009-12-11 23:35:40 +00:00
Fabio Priuli
e5f5ebeaff Not worth mention: Properly amended s2636 to have correct work ram size. Thanks go to Mariusz for noticing it.
it's funny that I spend my days solving PDEs and functional analysis problems, then I manage to easily fail these stupid calculations...
2009-12-11 23:30:21 +00:00
Scott Stone
ff180f0ce7 Fixes 03570: kf2k3pcb: Access Violation after OK [Fabio Priuli] 2009-12-11 22:06:39 +00:00
Fabio Priuli
fe3420b40f Fixed stupid copy&paste mistake in s2636.c
This is what you get when you forget to press save before the commit :(
2009-12-11 18:20:35 +00:00
Fabio Priuli
72d156a858 of course, you could not compile without these files ;) 2009-12-11 10:54:02 +00:00
Fabio Priuli
989a275f22 Added driver data struct to airbustr.c and djboy.c. Now the latter also supports saves (the former already did). 2009-12-11 10:51:55 +00:00
Andrew Gardner
9f1254ed51 (not whatsnew worthy)
Further refactoring of the hng64 3d code in preparation for FIFO 3d system.
2009-12-11 07:24:24 +00:00
Aaron Giles
40bcc29e8a Cleanups and version bump. 2009-12-11 06:19:46 +00:00
Fabio Priuli
dcd164adc7 Converted Signetics 2636 video chip to be a MAME device and updated drivers using it accordingly
Also, added driver data struct and save states to laserbas.c, laserbat.c, lastfght.c, lazercmd.c and lemmings.c

Finally, added driver data struct to lasso.c
2009-12-11 01:34:38 +00:00
Aaron Giles
64a35dfe95 Added tilemap_create_device() function which lets you create a tilemap
from within a device, and be passed that device in your callback.
2009-12-10 15:42:56 +00:00
Aaron Giles
8ba04b825a Apply mirrors and global masks at address map detokenizing time rather
than later. Also added disabled code to detect address maps with
overlapping regions for future analysis.
2009-12-10 15:32:44 +00:00
Fabio Priuli
ab171be6cd Removed Iron clad, until confirmed against proto 2009-12-10 14:54:01 +00:00
Fabio Priuli
e34fbfef2a on behalf of David Haywood:
Added Astro Fighter wire hack to Tomahawk as well, and documented that some Tomahawks appear to have the Astro Fighter PROM. [David Haywood]
2009-12-10 14:40:17 +00:00
Fabio Priuli
4a396461b3 Added driver data struct and save states to the following drivers:
ladybug.c, ladyfrog.c, lastduel.c, lwings.c, redclash.c and yunsung8.c
2009-12-10 14:22:37 +00:00
Fabio Priuli
c0488dbe0d Converted Kaneko Pandora sprite chip to be a MAME device and updated drivers accordingly. 2009-12-10 09:28:17 +00:00
Phil Bennett
907c61c43e i386 core improvements: [Barry Rodewald]
* Fixed EIP displacement when executing FPU instructions with no 80387 present
* Added 32-bit implementations of SLDT and STR


---------- Forwarded message ----------
From: Barry Rodewald <bsr@xnet.co.nz>
Date: Wed, Dec 9, 2009 at 2:02 AM
Subject: More i386 fixes
To: submit@mamedev.org


Hi,

Here's two more small fixes for the i386 core.

First, is FPU instructions used on 80386.  On a system without a
80387, FPU instructions should have no effect.  Part of the FM Towns
TBIOS (runs as an MS-DOS device driver, providing extra system
functions) initialises the FPU, and tries to detect it.  Upon hitting
the FSTCW instruction, though, it doesn't increase EIP enough when an
extra displacement byte is needed.  So, I've added a call to GetEA to
the escape() function (called when there is no FPU) which will fetch
the extra byte if necessary.

Second, is a 32-bit implementation of the SLDT and STR instructions.
Basically, I copied it from the 16-bit versions, and modified it to
use 32-bit registers.

Thanks,
Barry Rodewald
mailto:bsr@xnet.co.nz
2009-12-10 09:12:35 +00:00
Andrew Gardner
7ffcc2ee76 (not whatsnew.txt worthy)
A tiny bit of reorganization of the hng64 3d.
This is in preparation for rasterizing the 3d FIFO-style.
2009-12-10 08:07:40 +00:00
Brian Troha
eaffaff2ec adds PCB layout for Rapid Fire 2009-12-10 02:19:37 +00:00
Scott Stone
843cf48407 Cleaned out old cheat text commented in the dblewing driver. These can be located in Pugsy's cheat archives. No whatnew is needed. 2009-12-10 00:09:46 +00:00
Fabio Priuli
e0119d9db4 on behalf of David Haywood:
Identified Semicom's Dream World hardware as a copy of Psikyo's 68020 hardware (it was already known that their older platforms were copied from Snow Bros, and Tumble Pop) [David Haywood]

new clones
-----------
Fighting Fantasy (bootleg with 68705) [f205v] (not working)
Phantom (Spectar bootleg) [Team Europe & rades]
Panzar (Spectar bootleg) [f205v]
Fatsy Gambler (Video Hustler bootleg) [f205v]
Fitter (bootleg) [f205v]
Vs. Super Mario Bros. (bootleg with Z80) (2 sets) [f205v, Dante Profeta] (not working)

new NOT WORKING
------------------------
Video Stars [Andrew Welburn]
2009-12-09 23:52:28 +00:00
Fabio Priuli
637085584b Added driver data struct and save states to the following drivers:
kangaroo.c, karnov.c, kchamp.c, kickgoal.c, kingobox.c, kncljoe.c, koikoi.c, kopunch.c, ksayakyu.c and kyugo.c
2009-12-09 23:42:28 +00:00
Brian Troha
db86be935f new games added: Rapid Fire
Adds Rapid Fire v1.0 & v1.1

revert if needed

No whatsnew please
2009-12-09 19:31:02 +00:00
Brian Troha
ef97f61c36 New clone added: Strikers 1945 (Hong Kong, bootleg)
New Clone Added
---------------------------------
Strikers 1945 (Hong Kong, Bootleg) [David Haywood, Brian Troha, Dumping Union]
2009-12-09 19:29:02 +00:00
Angelo Salese
d053723050 Version mismatch, sorry...d-l 2009-12-09 18:02:12 +00:00
Angelo Salese
58f2a610f2 Aleck 64: Worked around hard-locks at start-up, I let decide to MG what's the best solution for it. 2009-12-09 17:47:06 +00:00
Fabio Priuli
58f0e8c7c2 Added driver data struct and save states to: jangou.c, jantotsu.c, jollyjgr.c and jongkyo.c 2009-12-09 16:04:47 +00:00
Fabio Priuli
08b933040b removed comment 2009-12-09 16:03:31 +00:00