Commit Graph

1475 Commits

Author SHA1 Message Date
Aaron Giles
91bc82c487 Better multisession fix. Reverted previous change (1002) and simply
initialize the digital joystick state in input_port_init().
2008-03-17 16:36:26 +00:00
Aaron Giles
ec550fa07b Fixed pick_best_mode in both d3d and ddraw cases to manually extract
refresh information from the device's inline_config, since this is
done before the screen devices are start. Fixes 01491: switchres 
causes Exception at EIP=009413BF: ACCESS VIOLATION.

Also, fixed render_target_get_minimum_size() to return nominal values
if no screens are found.
2008-03-17 15:50:12 +00:00
Aaron Giles
75056eb1b5 Moved per-screen initialization into DEVICE_START and per-screen cleanup
into DEVICE_STOP.
2008-03-17 15:38:18 +00:00
Aaron Giles
7a0931f08d Fix chicken and egg problem with device_start callbacks.
Added DEVINFO_INT_TOKEN_BYTES, which is queried before device
startup. It should return the size of the structure that will
be hung off of device->token. It must not return 0.

Changed the core device interface to allocate and zero a block
of memory the size of DEVINFO_INT_TOKEN_BYTES before calling
device_start. The pointer to this memory is already attached
to device->token at the time device_start is called.

The primary motivation for this is to allow the device_start
function to make internal calls and pass the device_config *
around as if the object were fully constructed. Since the token
is used to indicate whether or not a device is live, this makes
the device "live" at the time device_start is called rather
than after it completes.
2008-03-17 15:23:07 +00:00
Zsolt Vasvari
c7b072564c Restores the previous verifyroms() code. Left verifysamples() untocuhed for now. 2008-03-17 15:21:07 +00:00
Aaron Giles
ce011916b4 Made it a fatalerror to registr save state callbacks at the wrong time
if the current driver claims to support save states.
2008-03-17 14:45:27 +00:00
Nathan Woods
6a7c3d1589 Added a crosshair_set_screen() to allow drivers to control which screen(s) on
which crosshairs are displayed.
2008-03-17 12:47:22 +00:00
Nathan Woods
e7508371ed Fix for screenless (and deviceless) systems - this fix assumes that it is
illegal to pass a NULL listhead to device_list_first() and that the assert there
should stand.  Please review and correct if appropriate.
2008-03-17 10:52:16 +00:00
Zsolt Vasvari
c031746599 Fix: 01538: -verifysamples: Inconsistent handling of missing sample sets
I applied the same fix to verifyroms.  Now a status message is printed for every sample/ROM set regardless if an individual or all the sets are audited.
2008-03-17 09:19:11 +00:00
Zsolt Vasvari
9eb278b911 Fixed memory leak 2008-03-17 08:56:10 +00:00
Zsolt Vasvari
650f7af6be Corrects some game titles:
Sea Wolf II -> Seawolf II  (original is still Sea Wolf, as per the flyer)
Professor PacMan -> Professor Pac-Man
Demons and Dragons -> Demons & Dragons
2008-03-17 05:27:07 +00:00
Zsolt Vasvari
12546a8559 From Mr.Do: Adds Gorf internal artwork 2008-03-17 05:15:37 +00:00
Zsolt Vasvari
255698f927 Fixes the top screen 2008-03-17 05:03:31 +00:00
Zsolt Vasvari
b78ff83cd0 Fix: 01529: AICA memory leak 2008-03-17 00:58:24 +00:00
Couriersud
8bb4a10f0b Fix: 01511: batman: Fails to load autosave state
* fixes late creation of timer which caused 0-length save states
2008-03-17 00:50:48 +00:00
Zsolt Vasvari
c230321cdc The on-screen "Reset by watchdog" message only appears in debug builds 2008-03-17 00:44:00 +00:00
Zsolt Vasvari
36d69f3b61 Fix: 01535: usclssic: Access Violation with -debug
Fix: 01536: uballoon: Access Violation with -debug
2008-03-17 00:40:09 +00:00
Zsolt Vasvari
14761df1e4 Fixes Air Buster bootleg from reseting because of the watchdog 2008-03-17 00:15:30 +00:00
Zsolt Vasvari
7fb7afb780 - Changes exidy440_sound_command back to "UINT8." Since it's used by both 8-bit and 16-bit system,
the automatic allocation is not worth it if you need an ugly UINT16 ** cast.
- Removed deprecat.h from some of the files here
2008-03-17 00:09:16 +00:00
Nathan Woods
00f4374501 Added running_machine* parameter to MESS-specific calls 2008-03-16 22:46:56 +00:00
Couriersud
6dd3c4ae7c Fix: 01465: topgunnr: Crashes
* exidy440_sound_command had been changed from UINT8 to UINT8 * 
  and was consequently pointing to NULL / Nirwana land.
2008-03-16 17:31:14 +00:00
Zsolt Vasvari
b17efbc93b Removes no longer needed code 2008-03-16 15:36:06 +00:00
Zsolt Vasvari
0b4e370a73 Fix: 01534: ajax, ajaxj, typhoon: Access Violation with -debug 2008-03-16 15:34:30 +00:00
Zsolt Vasvari
5cd9ca723a Fix: 01019: Various Drivers: List of drivers with sound clipping 2008-03-16 11:05:31 +00:00
Pierpaolo Prazzoli
0895d395a9 Added missing prototype for get_info function. It didn't compile. 2008-03-16 10:43:36 +00:00
Curt Coder
23624eb5b0 Added Guru-readme. 2008-03-16 09:38:48 +00:00
Zsolt Vasvari
cb3fffef61 Missing semicolon -- how did it even compile? 2008-03-16 04:34:19 +00:00
Zsolt Vasvari
c64886cc69 Fix: 01499: Various Drivers: Launching games from in-game [TAB] menu 2-3 times in a row throws access violation.
My fix is a bit heavy handed.  The real access violation happens in update_digital_joysticks() after the comment "read all the associated ports" and before the next comment
2008-03-16 04:31:40 +00:00
Zsolt Vasvari
c39f072404 Fix: 01453: troangel, newtangl: Crashes 2008-03-16 03:55:23 +00:00
Roberto Fresca
caf9dbdef3 - Added proper inputs to jolyc980.
- Added temporary patch to allow bypass the "code" screen in jolyc980.
 - Updated technical notes.
2008-03-15 15:30:03 +00:00
Zsolt Vasvari
c66bb0adc5 Fix: 01530: Various Drivers: bitmap memory leaks 2008-03-15 14:14:03 +00:00
Zsolt Vasvari
16e18f24af Fixed: 01508: most vector-based drivers: Assertions 2008-03-15 09:32:24 +00:00
Zsolt Vasvari
f61e037749 Fix 01526: futflash, laserbas, laserbsa: Assertion
Fix 01524: btoads: Assertion 
Fix 01523: nkdodge, nkdodgeb, spdodgeb: Assertion 
Fix 01522: all ddragon.c drivers: Assertion 
Fix 01528: pzlestar, sexyboom: Assertion 
Fix 01527: all meritm.c drivers: Assertion
2008-03-15 03:54:44 +00:00
Zsolt Vasvari
3512bc695d Changes MDRV_TIMER_DURATION to MDRV_TIMER_START_DELAY
Renames duration to start_delay in timer_adjust_periodic() as well
Moves MDRV_ macros into proper header files
2008-03-15 03:13:57 +00:00
Nathan Woods
81fcbd9a2c MESS-specific changes 2008-03-15 00:14:32 +00:00
smf-
5d52f08b7e fixed collision of TIMER define 2008-03-14 21:53:19 +00:00
smf-
a0afb4c516 fixed collision of TIMER define 2008-03-14 21:50:22 +00:00
smf-
b4418ff847 fixed unused variable warnings when assert is not enabled. 2008-03-14 21:35:36 +00:00
Zsolt Vasvari
d4893e2535 Makes suggested changes to MDRV_TIMER macros. Hasn't moved them yet. 2008-03-14 15:13:46 +00:00
Zsolt Vasvari
0d06d94153 Fix 01500: all astrocde.c drivers: assertion
Fix 01506: all ataxx.c drivers: Assertion 
Fix 01504: all leland.c drivers: Assertion 
Fix 01501: all m107.c drivers: assertion 
Fix 01509: backfire, backfira: Assertion 
Fix 01503: sidearjp, sidearmr, sidearms: Assertion 
Fix 01507: all naomi.c drivers: Assertion
2008-03-14 14:39:32 +00:00
Aaron Giles
716d0a4f2a Fixes:
01517: all atarigt.c drivers: Assertion 
01516: all atarigx2.c drivers: Assertion 
01515: all atarig42.c drivers: Assertion 
01514: all cyberbal.c drivers: Assertion
2008-03-14 13:41:44 +00:00
Zsolt Vasvari
725d2646fd Fix: 01512: beathead: Assertion
Fix: 01505: all vicdual.c drivers: Assertion
2008-03-14 12:46:13 +00:00
Zsolt Vasvari
e4a07ea688 Implements scanline based timer devices.
Converted Centipede, as an example.

To define a scanline timer, use something like this:

MDRV_TIMER_ADD("32V", SCANLINE, generate_interrupt)
MDRV_TIMER_SCANLINE("main", 0, 16)

The first number is the first scanline the timer will fire on, the 2nd number is the increment.
So in this case, the timer will fire on 0, 16, 32, ..., 224, 240, then wrap around
because the screen is defined as 256 lines high.
The current scanline is passed to the callback in its 'param' argument
2008-03-14 11:15:31 +00:00
Zsolt Vasvari
e42b02f565 Implements the periodic timer device functionality 2008-03-14 09:52:28 +00:00
Roberto Fresca
a7cf2c0493 - Completed the component list & PCB layout.
- Added technical references to register $63 (magicfly).
 - Switched crystal to new predefined format.
2008-03-14 06:44:51 +00:00
Aaron Giles
8fcd45cab1 Renamed *_vbl_cb to *_vblank_callback.
Fixed 01475: Screenless systems are broken because of a vblank callback.
We now create an artificial update mechanism when there are no screens.
2008-03-14 05:19:53 +00:00
Zsolt Vasvari
13f82f7331 Fix: 01496: all segae.c drivers: Crashing with Access Violation
This driver is creating bitmaps in DRIVER_INIT, which is not the best practice, and in fact, it broke as machine->primary_bitmap is not initalized yet.
2008-03-14 03:11:25 +00:00
Zsolt Vasvari
2f37f76c57 Fix: 01498: otwalls: Hangs before the game starts.
Caused by RansAckeR input port "simplifications."  I put it in quotes, because I think it makes the input port definitions completely unreadable.
2008-03-14 02:48:25 +00:00
Zsolt Vasvari
c0ca716e62 Added skeletion device interface for timers. Just wanted to get feedback.
- Where applicable, added a parallel set of timer functions that take a device_config instead of emu_timer:
	void timer_device_adjust_oneshot(const device_config *timer, attotime duration, INT32 param);
	void timer_device_adjust_periodic(const device_config *timer, attotime duration, INT32 param, attotime period);
	void timer_device_reset(const device_config *timer, attotime duration);
	int timer_device_enable(const device_config *timer, int enable);
	int timer_device_enabled(const device_config *timer);
	int timer_device_get_param(const device_config *timer);
	void *timer_device_get_param_ptr(const device_config *timer);
	attotime timer_device_timeelapsed(const device_config *timer);
	attotime timer_device_timeleft(const device_config *timer);
	attotime timer_device_starttime(const device_config *timer);
	attotime timer_device_firetime(const device_config *timer);

- Added MACHINE_CONFIG macros:
	MDRV_TIMER_ADD(_tag, _type, _callback)	/* type can only be PERIODIC right now (can scanline based later, or even NE555) */
	MDRV_TIMER_REMOVE(_tag)
	MDRV_TIMER_MODIFY(_tag)
	MDRV_TIMER_TYPE(_type)
	MDRV_TIMER_CALLBACK(_callback) 
	MDRV_TIMER_DURATION(_duration)
	MDRV_TIMER_PERIOD(_period)
	MDRV_TIMER_PARAM(_param)
	MDRV_TIMER_PTR(_ptr)

- Modified Space Encounters to create two timers and use those:

	MDRV_TIMER_ADD("STROBE_ON", PERIODIC, spcenctr_strobe_timer_callback)
	MDRV_TIMER_PARAM(TRUE)	/* indicates strobe ON */
	MDRV_TIMER_PERIOD(UINT64_ATTOTIME_IN_HZ(SPCENCTR_STROBE_FREQ))

	MDRV_TIMER_ADD("STROBE_OFF", PERIODIC, spcenctr_strobe_timer_callback)
	MDRV_TIMER_PARAM(FALSE)	/* indicates strobe OFF */
	MDRV_TIMER_DURATION(UINT64_ATTOTIME_IN_HZ(SPCENCTR_STROBE_FREQ * 100 / SPCENCTR_DUTY_CYCLE))
	MDRV_TIMER_PERIOD(UINT64_ATTOTIME_IN_HZ(SPCENCTR_STROBE_FREQ))
2008-03-14 00:27:07 +00:00
Aaron Giles
a6b4a6ad50 Cleanups and version bump to 0.123u5. 2008-03-13 16:21:46 +00:00
Aaron Giles
4d5014585a From: Fabio Priuli
Subject: small fix to cpu.mak

Attached please find a small patch to include M68000 CPU only when you're 
compiling a build with the M68K. this is needed to e.g. compile tiny 
builds .
2008-03-13 15:45:39 +00:00
Aaron Giles
de3cfee6c6 src/mame/drivers/asuka.c:
Created MACHINE_START( asuka ) to configure cpu2 banks with memory_configure_bank(),

All drivers support save states, with the exception of cadash and clones, the background does not load properly.  I'm not familiar enough with taitoic.c to make that happen.
2008-03-13 15:44:43 +00:00
Aaron Giles
28ee84b180 From: RansAckeR
Subject: punchout.c inputs/dips

punchout.c:
-Simplified input definitions
-Improved dip switches
-Added dip locations

Note:
punchout and spnchout had an extra 5th PORT_START, was it correct to remove 
those?
If not just drop me a note and I'll resubmit the patch. 

--

From: RansAckeR
Subject: fix for 00593

'fix' for 00593 (patimono0120u3gra)

--

From: RansAckeR
Subject: 'fix' for 01478

01478: bullet: DIP switch info

--

From: RansAckeR
Subject: bankp.c & baraduke.c inputs/dips

bankp.c:
-Simplified input definitions
-Fixed bankp dip locations

baraduke.c:
-Simplified input definitions
-Added dip locations
2008-03-13 15:41:19 +00:00
Aaron Giles
1c684fe9f7 From: JEA Wallace [mailto:jeaw100@york.ac.uk]
Subject: Another weekend, another submission

This time, it's phase 2 of the Deal 'Em input changes (these work well 
with the default cabinet type, I need to do some conditional input work 
to fix them fully), and also a conversion to the resnet code. 
Unfortunately, this still doesn't fix the apparently needed transparency

(the apostrophe and Zenitone logo on the title screen should have a 
green background, and the black rectangle at the bottom should read 
(C)1987). I also tidied up the memory maps, but have been unable to 
reproduce the assert bug relating to VBLANKs, so I'm unsure as to 
whether I've fixed it or not.
2008-03-13 15:37:28 +00:00
Aaron Giles
3a082a644f From: notaz [mailto:notasas@gmail.com]
Subject: patch for SVP (Sega Virtua Processor) emulation

hello,

this patch adds support for Sega Virtua Processor, to run
Genesis/MegaDrive version of Virtua Racing, intended to be used by
MESS. It consists of a CPU core SSP1601, and updates in megadriv.c:
* SSP1601 replaces SSP1610, as it has been confirmed by Stiletto and
other sources that SVP actually contains SSP1601. The current SSP1610
is placeholder only (nearly completely unimplemented) anyway.
* Changes in megadriv.c add a new driver for Genesis/MegaDrive+SVP
combination, also add SVP memory controller logic and memory map.

The diff has already been reviewed by Reip and SSP1610 removal was one
of his suggestions (SSP1610 is not used by any drivers).
2008-03-13 15:35:17 +00:00
Aaron Giles
49c8a68835 From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: Raiden Fighters (Austria)

diff + romset enclosed
2008-03-13 15:30:53 +00:00
Aaron Giles
311669e24d From Mr. Do!
mame/drivers/qix.c:
+mame/layout/elecyoyo.lay:

Add Mr. Do's layout to crop corners in Electric Yo-Yo.
2008-03-13 15:29:29 +00:00
Aaron Giles
0277103558 Added some pieces that got missed when applying this patch.
From: Corrado Tomaselli
Subject: Frequencies diff

Changed/verified clocks on the following pcbs: 1943, Arkanoid, Action 
Holliwood GalsPanic, Ben Bero Beh, 1000 Miglia, Pit and Run, Prehistoric 
Isle, Rastan, Hotmind, Hardtimes, Stagger1 and Tiger Road

Changed/verified Oki pin 7 on the following pcbs: 1000 miglia, 
Galspanic, Action Holliwood, Hotmind, HardTimes, World Rally, Stagger1
2008-03-13 15:20:41 +00:00
Aaron Giles
e426f9e0b6 From: Mike Haaland
mame/drivers/superqix.c
mame/video/superqix.c

Changed vblank interrupts to 3 to fix screen drawing issues.
Use memory_configure_bank() to configure memory.
Added save states.
2008-03-13 15:10:56 +00:00
Aaron Giles
7edbaada44 Fix for 01429 (ddragon3 hang). [RansAckeR] 2008-03-13 15:09:20 +00:00
Aaron Giles
9d3f7f8680 From: Mariusz Wojcieszek
Attached is update for Merit hardware based on V9938 (CRT-250 and CRT-260 - meritm.c).

New playable games:

Pit Boss II
Super Pit Boss
Pit Boss Megastar
Megatouch IV
Megatouch IV Tournament Edition
Megatouch 6
2008-03-13 15:04:33 +00:00
Zsolt Vasvari
834d773f26 Fixes Bug ID: 01482: exprraid, exprrada, wexpress, wexpresb, wexpresc: Game doesn't start 2008-03-13 09:42:07 +00:00
Zsolt Vasvari
01b2003859 roberto zandona: fix sprite problem for gyruss: mantis 01480
By the way, the accent in roberto's last name gave CVS a fit

svn: Safe data 'From roberto zandon' was followed by non-ASCII byte 224: unable
to convert to/from UTF-8

This a bogus message -- you can certainly convert that character to UTF-8
2008-03-13 08:31:19 +00:00
Zsolt Vasvari
70eeb9ff23 - Removes the public screen_state object -- all access is via functions
- Removes screen[] object from running_machine
- Removed MAX_SCREENS constant -- there is no longer a hardcoded upper bound
2008-03-13 08:25:21 +00:00
Aaron Giles
dbd6e5e93e Fixed 68000 prefetching operation.
Changed slapstic management to always install an opbase handler to more
aggressively catch code executing in the slapstic region. Updated all
drivers to separate the slapstic region of ROM into a different ROM
section from the fixed ROM.
2008-03-13 08:09:58 +00:00
Aaron Giles
6454c32b9f Fixed 01436 (esb: Insert a coin, start a game and it will reset by itself after few seconds). 2008-03-12 15:01:53 +00:00
Zsolt Vasvari
9626c879db video_screen_get_vblank() was also incorrect for games with MDRV_SCREEN_VBLANK_TIME, this could easily explain a bunch of changed screenshots. 2008-03-12 12:19:43 +00:00
Zsolt Vasvari
4bd4eceb06 Forgot to state save a variable 2008-03-12 11:47:57 +00:00
Zsolt Vasvari
839e3f073c Fixed VBLANK end time computation -- it wasn't taking into account games that use MDRV_SCREEN_VBLANK_TIME
Aaron, could you please double check what I did?
2008-03-12 11:43:31 +00:00
Zsolt Vasvari
4eecf5199d Removes "global" VBLANK callback hack 2008-03-12 11:06:29 +00:00
Zsolt Vasvari
19b68f421f Next batch of machine->screen[] removal 2008-03-12 10:47:20 +00:00
Zsolt Vasvari
7ec1537d22 - Fixed case when there is no interface given
- Changed C6545-1 description from "Commodore' to "MOS Technology"
2008-03-12 08:29:33 +00:00
Aaron Giles
d5561a8e75 Removed cpu_scalebyfcount().
Changed input ports to register a frame callback, which is
called immediately after throttling and updating. This is the
proper "sync point" between emulated time and real time. Moved
all analog and digital port processing into a central place
here. Added tracking of time since the previous frame update
and use that as an estimate for the time of the current frame.
This is used to scale analog ports without the use of
cpu_scalebyfcount(). This is not perfect in the case where
frame rates are dynamic (vector games), but works well for
other cases.

Further cleanup of memory header and code.
2008-03-12 05:13:03 +00:00
Nathan Woods
61b009597e Fixing MESS-specific category tokenization 2008-03-12 01:58:49 +00:00
Zsolt Vasvari
86b798b37a - More machine->screen removal
- Hooked up swapped videoram in Karnov properly -- same idea as Burger Time
2008-03-11 16:16:30 +00:00
Zsolt Vasvari
706d9f408f Restores the previous toggling behavior 2008-03-11 10:05:45 +00:00
Zsolt Vasvari
77a58d253c - First batch of machine->screen[] access has been removed
- Added video_screen_auto_bitmap_alloc(screen) -- it is just a shorthand for 
  auto_bitmap_alloc(video_screen_get_width(screen), video_screen_get_height(screen), video_screen_get_format(screen))
  which is a common operation
- The Dynax/Don Den Lover games now do their updating in VIDEO_UPDATE instead of VIDEO_EOF.  This semmed to
  have fixed the palette problems
- Went through some of these drivers and changed Machine to machine
2008-03-11 08:37:05 +00:00
Nicola Salmoria
bf88dd74e3 fix loading mixer settings when the driver default value is calculated. Cannot use == to compare float with the loaded value in this case. 2008-03-11 08:28:47 +00:00
R. Belmont
542b489706 [MultiPCM] Saturate on clip and fix envelope discontinuity. (ElSemi) 2008-03-11 02:54:27 +00:00
Zsolt Vasvari
5397db0615 Moves crosshair code from video.c into its own module
Simplifies crosshair logic and makes it screen device based
2008-03-11 02:41:24 +00:00
Zsolt Vasvari
2a8f0936fd Adds some new varieties: MC6845-1, H46505, HD6845 and SY6545-1 2008-03-11 01:34:44 +00:00
Aaron Giles
c4cfa7bde4 Compilation fixes for my last checkin (sorry). 2008-03-10 16:22:01 +00:00
Aaron Giles
8006568b87 More WIP cleanup of memory.*
Made address versus byte offsets explicit throughout.
Removed some unused parameters.
Consolidated initialization process.
Removed maximum memory block count.
Centralized bank management.
Added masked handlers and change_pc to the accessors.
Added memory_get_accessors() to return a pointer to the accessors
   for a given address space/databus width/endian configuration.

More to come.
2008-03-10 16:00:26 +00:00
Zsolt Vasvari
d146f7dabc Removes the scrnum parameter from VIDEO_UPDATE, updates all drivers to use the screen device instead.
render.c now uses screen devices
2008-03-10 14:30:21 +00:00
Nathan Woods
470e72b351 MESS-specific fix 2008-03-10 13:16:23 +00:00
Nathan Woods
43c2c2a002 Changed how the PowerPC MMU is enabled at compile time, to cut down on the
amount of unused functions in MAME.
2008-03-10 13:10:44 +00:00
Zsolt Vasvari
2a8c73cc45 All video_screen_*_scrnum functions have been removed. Next step is to remove the scrnum from VIDEO_UPDATE 2008-03-10 06:39:20 +00:00
Zsolt Vasvari
6e3be05912 Makes atarigen and tms34061 handle based 2008-03-10 05:12:49 +00:00
Aaron Giles
0862cce453 Replaced the following macros (SMH == static memory handler)
MRA*_BANK*/MRA*_BANK* -> SMH_BANK*
   MRA*_RAM/MRA*_ROM     -> SMH_RAM
   MRA*_ROM/MWA*_ROM     -> SMH_ROM
   MRA*_NOP/MWA*_NOP     -> SMH_NOP
   MRA*_UNMAP/MWA*_UNMAP -> SMH_UNMAP

This removes the silly need for a bunch of redundant constants
with faux type definitions that didn't buy anything.

Moved some memory system constants into memory.c.
2008-03-10 02:29:15 +00:00
Zsolt Vasvari
198f401cf5 Changes TMS34010 to take a screen tag instead of the screen number
Everything appears to work, except X The Ball, which sets horz the resolution twice as wide as it should -- no clue why
2008-03-10 02:16:06 +00:00
Zsolt Vasvari
9b3ac2606e Voodoo now takes a device_config for the screen
Added video_screen_get_visible_area()
2008-03-10 00:39:20 +00:00
Zsolt Vasvari
84a1d99c67 Added a bunch more asserts 2008-03-09 23:49:59 +00:00
Zsolt Vasvari
343bcb4cda Changes MC6845 to take a screen tag instead of a screen number 2008-03-09 23:01:34 +00:00
Aaron Giles
ddfc0c3259 WIP check-in. Things work now, but I'm still working on the code.
Converted address maps to tokens. Changed the address_map structure
to house global map-wide information and hung a list of entries off
of it corresponding to each address range. Introduced new functions
address_map_alloc() and address_map_free() to build/destroy these
structures. Updated all code as necessary.

Fixed several instances of porttagtohandler*() in the address maps.
Drivers should use AM_READ_PORT() macros instead.

ADDRESS_MAP_EXTERN() now is required to specify the number of 
databits, just like ADDRESS_MAP_START.

Removed ADDRESS_MAP_FLAGS() grossness. There are now three new macros
which replace its former usage. ADDRESS_MAP_GLOBAL_MASK(mask)
specifies a global address-space-wide mask on all addresses. Useful
for cases where one or more address lines simply are not used at
all. And ADDRESS_MAP_UNMAP_LOW/HIGH specifies the behavior of
unmapped reads (do they come back as 0 or ~0).

Changed internal memory mapping behavior to keep only a single
address map and store the byte-adjusted values next in the address
map entries rather than maintaining two separate maps. Many other
small internal changes/cleanups.
2008-03-09 21:59:57 +00:00
Zsolt Vasvari
ac9778cdb0 Changes first argument of video_screen_* functions to take a device_config
All callers that used 0 for the screen number now use machine->primary_screen
As a gap meassure, Where necessary, create a parallel set of video_screen_*_scrnum functions that take scrnum
All callers that specified a specific screen number now call the *_scrnum versions
Changed game info screen and overlay UI to display the screen tag instead of screen number
2008-03-09 15:41:17 +00:00
Brian Troha
681b413bce arranges Greyhound Trivia sets based one known question series. 2008-03-08 22:12:06 +00:00
Zsolt Vasvari
48f7d189e6 Changes VIDEO_UPDATE signature to
typedef UINT32 (*video_update_func)(const device_config *screen, int scrnum, bitmap_t *bitmap, const rectangle *cliprect);

Adds const device_config *primary_screen to running_machine (not yet used)
2008-03-08 15:57:43 +00:00
Zsolt Vasvari
8f318637d9 This fixes the crash in Galaga caused by the slightly altered video timing 2008-03-08 02:39:39 +00:00
Couriersud
459baa66d2 Fix mantis bug ID 00898 (gseeker0101yel) 2008-03-07 20:48:37 +00:00
Pierpaolo Prazzoli
0d4d375938 Joker Poker, Super Bowl and Amuse are working.
Be aware that some set names are changed and for Amuse I don't know where the 2nd half of the banks is mapped.
2008-03-07 15:35:05 +00:00
Zsolt Vasvari
d0870c6936 Moves 'refresh' from public to internal video state and renames it to 'frame_period'
Changes all drivers that previously accessed 'refresh' to use video_screen_get_frame_period()
2008-03-07 14:34:04 +00:00
Zsolt Vasvari
d0f5196025 - the public screen_state is made to only contain items that are currently accessed by drivers
- populating screen_state is moved from mame.c to video.c
- defstate is gone -- the default screen parameters live in screen_config directly
2008-03-07 12:53:00 +00:00
Zsolt Vasvari
9ad9532722 Seperates out the notion of screen specific vs. "global" VBLANK callbacks
"Global" VBLANK callbacks, of course, make no conceptual sense -- it should probably fire every once in a while even if there is no screen
2008-03-07 08:18:28 +00:00
Zsolt Vasvari
5f53680e03 - Removes video_data from running_machine
- Private state screen information now hangs off the public one, instead of the other way around
- Combines video_global and video_private into a single structure
2008-03-07 07:19:38 +00:00
Aaron Giles
e803f5c1d4 Fixed a number of compile errors caused by previous MC6845
changes.
2008-03-07 06:31:05 +00:00
Zsolt Vasvari
6302df116d This changes the MC6845 to take and pass device_config's only
The following shook out from this that are applicable to other devices as well:

- running_machine is no longer taken, passed or stored
- mc6845_t is now private
- since passing device_config's is not device type safe, I added a
  get_safe_token() to mc6845.c to check the device passed in for the valid type.
  I think something like this should be added to the core.

- As a side note, I really don't think that device_config is a good name,
  naming it simply device_t or something like that might be better.
2008-03-07 02:45:35 +00:00
Tomasz Slanina
8b444900ca In-game music in Knuckle Joe/Bone Crusher - kncljoe0101u5gre (a couple of changes to sound hw emulation) 2008-03-07 01:56:51 +00:00
Zsolt Vasvari
8f43de6a46 Removed runnning_machine as the first parameter of a VBLANK callback
video.c: some Machine->machine changes
2008-03-07 00:08:19 +00:00
Tomasz Slanina
183f506a2f debug build - fixed compilation error and warning. 2008-03-06 23:23:57 +00:00
Aaron Giles
befcee37ad Changed device interfaces to pass the device_config * rather
than tokens and individual bits to the device callbacks. Updated
all existing devices accordingly.

Removed machine from the parameters of some of the device_get_info
and device_set_info calls because that information is stored
with the device now.
2008-03-06 15:28:00 +00:00
Zsolt Vasvari
9c172be162 vblank_state_changed_func now has a device_config argument 2008-03-06 14:22:08 +00:00
Zsolt Vasvari
553d92bcb5 Machine -> machine 2008-03-06 10:27:33 +00:00
Zsolt Vasvari
8bb64eb911 - Fixes flickering in Electric Yo-Yo. Case of missing video_screen_update_now() calls
- Uses the MC6845's VSYNC notifcation system to generate the main CPU's interrupts
2008-03-06 10:21:51 +00:00
Zsolt Vasvari
d9b90238c6 Removes no longer applicable comment 2008-03-06 08:25:22 +00:00
Aaron Giles
fb26ec7c01 Cleanups and version bump. 2008-03-06 07:31:20 +00:00
Aaron Giles
0046339284 Removed AM_SPACE and matchmask support. Updated relevant drivers
to use AM_MIRROR() and AM_MASK() to achieve the same thing.
2008-03-06 07:02:10 +00:00
Nicola Salmoria
3a22b93b59 Fix 8085 RST75 not working with PULSE_LINE
According to datasheet, RST7.5 is latched on rising edge, while the other maskable interrupts are sampled.
2008-03-06 06:51:05 +00:00
Zsolt Vasvari
c537f056f5 Mysterious Stones gets the "full treatment" 2008-03-06 03:45:15 +00:00
Couriersud
19331ed134 Remove (UINT32) type casts which break build with mingw - again 2008-03-05 22:49:38 +00:00
Couriersud
bcad1267f2 mario.c is "deprecat.h"-free now 2008-03-05 22:10:46 +00:00
Couriersud
3292183f4f * remove deprecat.h and Machine where it was possible 2008-03-05 22:02:25 +00:00
Couriersud
dbd1965d0e * pass running_machine parameter to construct_map_##_name, i.e. ADDRESS_MAP_START
* Change "Machine->" to "machine->" in AM_BASE_MEMBER, AM_SIZE_MEMBER
* Pass Machine in construct_address_map

This is not perfect yet, but there is no need any longer to include deprecat.h in drivers using AM_*_MEMBER.
2008-03-05 22:01:37 +00:00
Couriersud
4bdccc433f Fix crash in gaelco3d.c (radikalb) 2008-03-05 21:24:06 +00:00
Aaron Giles
5b6183f898 From: Oliver Stoneberg
Subject: missing display types in DTD

This patch adds the new display types to the listxml DTD.
2008-03-05 15:32:33 +00:00
Aaron Giles
84ece5c78e From: Corrado Tomaselli
Subject: Frequencies diff

Changed/verified clocks on the following pcbs: 1943, Arkanoid, Action 
Holliwood GalsPanic, Ben Bero Beh, 1000 Miglia, Pit and Run, Prehistoric 
Isle, Rastan, Hotmind, Hardtimes, Stagger1 and Tiger Road

Changed/verified Oki pin 7 on the following pcbs: 1000 miglia, 
Galspanic, Action Holliwood, Hotmind, HardTimes, World Rally, Stagger1
2008-03-05 15:31:22 +00:00
Aaron Giles
f0ad4d73fc From: James E.A. Wallace [mailto:jeaw100@york.ac.uk]
Subject: Deal'Em fixes

Just correcting a few input glitches I spotted, and allowed for the bank

to be read (needed for games >64K in 6809 ROM size)
2008-03-05 15:26:58 +00:00
Aaron Giles
c5a313d314 From: abcd efgh [mailto:cix_999@yahoo.it]
Subject: onetwo Dip fix

As I thought this game is a Shisen rip-off so  the dips are quite same, also added dips location.
Bye Sonikos
2008-03-05 15:26:24 +00:00
Aaron Giles
9ec4fbc1ce From: RansAckeR [mailto:RansAckeR@pandora.be]
Subject: atetris.c dips

atetris.c:
-Added proper dip switch implementation
-Added dip locations
-Simplified input port definitions

--

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: atarisy2.c dips

atarisy2.c:
-Simplified input definitions
-Added service switch
-Corrected some default dip values
-Added dip locations

--

From: RansAckeR
Subject: avalnche.c dips

avalnche.c:
-Improved dip switch definitions
-Simplified input definitions
-Added dip locations

--

From: RansAckeR
Subject: bagman.c dips

bagman.c:
-Added dip locations
-Simplified input definitions

--

From: RansAckeR
Subject: balsente.c dips/inputs

balsente.c:
-Simplified input definitions
-Added dip locations

--

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: lasso.c inputs/dips

lasso.c:
-Added dip locations
-Simplified input definitions
-Fixed bug 00817 (pinbo0122u7gra)
2008-03-05 15:25:03 +00:00
Aaron Giles
a083bd20a9 From: Mark Fugmann [mailto:sailorsat@t-online.de]
Subject: "fix" for the "game information" resolutions.

Hi.
In 0.123u3 the bug "multiscreeninfo0123u2gre" was fixed, however it changed
its behaviour as it now shows the "default" resolution the driver uses
rather than the resolution the screen(s) actually use at the moment.

As I don't know if this change was intentional I've attached a simple diff
that changes from defstate.visarea to the real visible visarea.

Greets,
Ariane "SailorSat" Fugmann
2008-03-05 15:14:58 +00:00
Aaron Giles
31bb5d3f3c Added new macros AM_DEVREAD, AM_DEVWRITE, and AM_DEVREADWRITE,
which specify device read/write handlers in address maps, along
with the type/tag of the device they reference.

Converted MC6845 read/write handlers to READ/WRITE8_DEVICE_HANDLERs.
Updated all MC6845-using drivers to use the new macros and call
the updated functions. Removed the many little helper functions
that used to do this work.

Added validity checks to ensure that the devices referenced
actually exist.
2008-03-05 15:12:58 +00:00
Zsolt Vasvari
856c0a06cf Fixes sprite colors in Exerion. Thanks, LN 2008-03-05 14:37:31 +00:00
Zsolt Vasvari
6d54ed169c - Merged memory maps
- Uses PORT_CHANGED for coins
- Renamed 'Inferno (S2650) to 'Inferno (Meadows)'
- Renamed 'Bowling 3D' to '3-D Bowling'
- Added NO_DUMP entries for Gypsy Juggler's ball graphics and added GAME_IMPERFECT_GRAPHICS flag
2008-03-05 08:00:31 +00:00
Aaron Giles
a724936cb3 Added running_machine * to the device_config, live while the device
is live, and NULL otherwise, just like the token.
2008-03-05 07:54:12 +00:00
Aaron Giles
ee0a5642ab Added running_machine * parameter to the front of all read/write handlers.
Updated all call-through handlers appropriately. Renamed read8_handler to
read8_machine_func, replicating this pattern throughout. 

Defined new set of memory handler functions which are similar but which
pass a const device_config * in place of the running_machine *. These are
called read8_device_func, etc. Added macros READ8_DEVICE_HANDLER() for
specifying functions of this type. Note that some plumbing still needs to
happen in memory.c before this will work.

This check-in should remove the need for the global Machine and in turn
"deprecat.h" for a lot of drivers, but that work has not been done. On
the flip side, some new accesses to the global Machine were added in the
emu/ files. These should be addressed over time, but are smaller in
number than the references in the driver.
2008-03-05 07:45:34 +00:00
Zsolt Vasvari
9f03451a61 Uses PORT_CHANGED for coins 2008-03-05 07:19:58 +00:00
Zsolt Vasvari
d41cb7ebce Untangles the Fire Truck driver -- what a nightmare...
Many uses of PORT_CUSTOM and PORT_CHANGED, including another good use case for the gear shift logic
2008-03-05 04:25:29 +00:00
Zsolt Vasvari
793cf2e715 VBLANK based watchdogs can be disabled once again
Removed debugging fprintf
2008-03-05 04:20:01 +00:00
Brian Troha
0eca6ca59c fixes capitol letter in rom name issue in last commit 2008-03-05 00:04:11 +00:00
Brian Troha
98a838fe06 adds info from recent Peekaboo submission
retains / adds a little info and better rom name for the MCU
2008-03-04 23:59:58 +00:00
Andrew Gardner
28c035cca5 Fixes memory map conversion typo for zodiack. 2008-03-04 16:20:41 +00:00
Zsolt Vasvari
f1e2ccd4f1 Better separation of driver and video code.
Gave Top Secret its own (1 line long) video update function.
2008-03-04 11:36:09 +00:00
Zsolt Vasvari
6ae0a85462 Exidy440 - modernized input port handling with CUSTOM_INPUT and INPUT_CHANGED
Cleaned-up (IMO) special case handling
2008-03-04 07:59:35 +00:00
Zsolt Vasvari
5b108ad039 Uses PORT_CHANGED
Removes PORT_IMPULSE from Star Hawk
2008-03-04 04:53:58 +00:00
Andrew Gardner
7a52f023ac Merges memory maps X->Z.
Regression tests consist of running through demo mode with -log, diff'ing the results, and playing a bit.
2008-03-04 04:37:01 +00:00
Zsolt Vasvari
77ed3a81ef Uses PORT_CHANGED
Cheeky Mouse: tilemap conversion
2008-03-04 03:51:03 +00:00
Zsolt Vasvari
4ce1310abb Converted to use PORT_CHANGED
Combined memory maps where applicable
2008-03-03 09:27:06 +00:00
Zsolt Vasvari
65204e090e Readds accidentally deleted line 2008-03-03 05:21:35 +00:00
Zsolt Vasvari
34b3ab9841 Added running_machine* to the CUSTOM_INPUT callback - updated drivers to use it 2008-03-03 05:17:57 +00:00
Zsolt Vasvari
62466dd08f - Added PORT_CHANGED macro which calls a callback if the given port changes.
Usage is very similar to PORT_CUSTOM.  See the Astro Invader driver for an example
- Removed input_port_set_changed_callback and converted all users to PORT_CHANGED
  The only difference between the old callback and the ones supplied by PORT_CHANGED is
  that values passed by PORT_CHANGED are normalized to start at bit 0, just like
  PORT_CUSTOM.
2008-03-03 04:10:51 +00:00
Aaron Giles
e31f9a6313 Normalized function pointer typedefs: they are now all
suffixed with _func. Did this throughout the core and
drivers I was familiar with.

Fixed gcc compiler error with recent render.c changes.
gcc does not like explicit (int) casts on float or
double functions. This is fracking annoying and stupid,
but there you have it.
2008-03-03 01:51:31 +00:00
Zsolt Vasvari
05702939cd Removed used srcnum from ccpuRegs
State saves more stuff -- wasn't 100% sure if they are all needed saved, but it appears they do.
2008-03-03 01:22:21 +00:00
Aaron Giles
8042e50f87 Added video_screen_get_time_until_vblank_end() and
video_screen_get_time_until_update().

Fixed CCPU and QB3 to no longer rely on cpu_scalebyfcount().
Fixed busted timing in the CCPU core. Changed watchdog to
count internally rather than using external watchdog support.
Altered CCPU to accept interrupt signals from the driver.
Updated clocks in the cinemat driver to be derived from the
clock crystal.
2008-03-03 01:02:16 +00:00
Zsolt Vasvari
713f03885f MC6845: Added support for the Commodore 6545-1 device type
Added support for the status register
Pops up message if display mode is not zero
some minor clean-ups
2008-03-02 23:25:35 +00:00
Couriersud
490713dea8 render.[ch]: change type of target_orientation in target_compute_visible_area to int for consistency with other calls. 2008-03-02 22:21:54 +00:00
Couriersud
c2a1232ea1 Rename dkngjnrb to dkongjre - Credit Mike Haaland 2008-03-02 20:13:20 +00:00
Brian Troha
7d4bfdf1f1 Corrects some documentation and rom names.
Minor whitespace clean up.
Slight reorganization to be consistent through out driver
2008-03-02 18:51:22 +00:00
Couriersud
e8c24a40d9 Changed z80dma to new device interface, updated mario.c and dkong.c to use new interface
* Illustrates how to keep existing memory read/write handlers
  This is slower than caching the device interface, but does not have an impact on
  devices accessed at a low frequency like in this case.
2008-03-02 15:40:24 +00:00
Zsolt Vasvari
75a0723116 Gyruss: Tilemap conversion, sprite multiplexing done properly, driver clean-up 2008-03-02 15:17:13 +00:00
Zsolt Vasvari
1a0ccf8101 tp84: Replaces sprite multiplexing hack with video_screen_update_now() on sprite RAM write
General driver clean-up
tilemap.h:  Deletes no longer applicable comment
2008-03-02 13:26:10 +00:00
Zsolt Vasvari
2ddf3da8dd - Watchdog gets its own namespace for state saving
- Corrected some comments
2008-03-02 03:39:43 +00:00
Zsolt Vasvari
c7a0a7942f Moves watchdog processing logic into its own module 2008-03-02 03:32:54 +00:00
Zsolt Vasvari
56ad71eccf Some more #includes's removed 2008-03-02 02:50:21 +00:00
Zsolt Vasvari
9adda05850 Removes unneeded #includes 2008-03-02 02:43:26 +00:00
Zsolt Vasvari
807d71db76 Removes cpu_getcurrentframe() and replaces it with video_screen_get_frame_number(int scrnum)
Updates all callers
2008-03-02 02:38:20 +00:00
Couriersud
6ab989af82 Reverted change to options.c - not ready for release due to potential breakage of frontends. 2008-03-02 00:39:56 +00:00
Couriersud
7df031fb4f Rewrote some potentially compiler specific code:
* added ATTR_FORCE_INLINE to osdcomm.h
* added ATTR_NONNULL
* moved U64 S64 fram mamecore.h to osdcomm.h
* define SETJMP_GNUC_PROTECT() in osdcomm.h for use in ppc602, ppc603
2008-03-02 00:35:58 +00:00
Couriersud
492612b6c9 Various clean ups:
* remove more unreachable code
* identify more functions not being used
* Changed a number of global functions to being static
2008-03-01 16:54:52 +00:00
Nicola Salmoria
6dc290df31 (from Razoola) ddtojr1/ddtojr2 were swapped 2008-03-01 16:39:44 +00:00
Zsolt Vasvari
275d692874 Removed use of cpu_scalebyfcount() 2008-03-01 16:20:39 +00:00
Zsolt Vasvari
7198a00e65 - Moves all video timing logic from cpuexec.c to video.c
- Added a video_screen_register_vbl_cb() function for registering VBLANK callbanks
- Changed inptport.c and debugcpu.c to make use the VBLANK callbacks
- Added video_screen_get_time_until_vblank_start()
- CCPU and anything using cpu_scalebyfcount() are currently broken
- I did some fairly extensive testing, but this is a very signficant internal change,
  so some things may have broke
2008-03-01 15:50:12 +00:00
Couriersud
e90a92697c * Wrapped unused code in "#ifdef UNUSED_FUNCTION" 2008-03-01 11:29:29 +00:00
Couriersud
7ce83ee92b memory.c: removed further code never to be executed
* removed "return 0" from READWORD & READWORD16/32/64/MASKED since it is unreachable
2008-03-01 11:25:57 +00:00
Aaron Giles
b8a64773fd Added macros to define device functions. Updated existing devices
to use the macros.

Added the concept of device classes. Devices specify their class
in their get_info function. Classes can be used to walk through
devices at a more general level than their type. Functions have
been added to iterate through devices by class just as you can
by type.

Removed some unused fields from device_config.
2008-03-01 08:41:56 +00:00
Zsolt Vasvari
2fba8bdb8a - Removes a couple of unused items from the cpuexec_data structure
- Adds one more validty checks -- screenless drivers cannot have a VBLANK
2008-03-01 05:30:22 +00:00
Roberto Fresca
efabbae0b1 Changed parent/clone relationship to separate SSI Poker sets from Jackpot Joker Poker. 2008-03-01 04:49:35 +00:00
R. Belmont
cd802cf4d1 [AICA] Better (not perfect) slot monitoring. (kingshriek) 2008-03-01 03:28:18 +00:00
R. Belmont
753b8dbf32 [DC/NAOMI] Use defines instead of magic numbers for IRQ sources, add VBL-out. 2008-03-01 03:27:21 +00:00
Zsolt Vasvari
875ece67f6 - Implemented VSYNC height computation difference between the Motorola and the Rockwell devices
- Since the Commodore 40xx computers program an HSYNC width that extends past the end of
  the scanline, I am clamping it in lack of anything better to do.
2008-03-01 02:40:27 +00:00
Zsolt Vasvari
09bf1cb3e4 Added mc6845->has_valid_parameters in mc6845_assert_light_pen_input, so that processing only happens
if the chip was correctly configured
2008-03-01 01:58:51 +00:00
Zsolt Vasvari
fe74a22163 - Uses a timer for latching the light pen address. Not that there was anything really wrong
with the previous way, but this is a bit more accurate.  I actually tested this.
- Added reset device function
- Better variable names
- More asserts
2008-03-01 01:56:35 +00:00
Couriersud
16547714e4 Fix compile issues introduced with r844 2008-03-01 01:47:47 +00:00
Couriersud
76847517a4 Identified code not used and marked with "#ifdef UNUSED_FUNCTION" 2008-03-01 01:34:43 +00:00
Couriersud
c5a4ffe291 memory.c: removed some code never to be executed
* removed "return 0" from READBYTE & READBYTE8 since it is unreachable
* removed comparisons of type FPTR < 0 and FPTR >= 0
2008-03-01 01:03:54 +00:00
Couriersud
7e15b2ff6f * MACHINE_DRIVER_EXTERN now requires a semicolon
* removed a number of extra semicolons
2008-03-01 00:17:58 +00:00
Couriersud
b0cf015703 Two discrete structs were not used:
* dkong walk using a jump struct 
* radarscp using a dkong 555 struct
2008-02-29 23:10:46 +00:00
R. Belmont
8bd8e97051 [SH4] Fixed refresh ticks value of 0, makes awbios not blow up the timer system. 2008-02-29 20:40:24 +00:00
Zsolt Vasvari
f126c9fc26 Most of this descriptions taken directly from an e-mail by Aaron:
- Define a new MDRV_CPU_VBLANK_INT_HACK() (ZV: defined in deprecat.h) which is a copy of the current MDRV_CPU_VBLANK_INT()
- Find all the places where VBLANK_INT is used with something other than 1 interrupt per frame and change it to the new macro
- Remove the "# per frame" parameter from the MDRV_SCREEN_VBLANK_INT() and add a screen tag in its place; updated all callers appropriately.
- ZV: Added some validation of the interrupt setup to validate.c 

The idea behind this is that using a VBLANK interrupt with more than one interrupt per frame in conceptually wrong.
The screen tag will allow us to move the interrupt timing code from cpuexec.c to video.c, where it really belongs.
2008-02-29 15:09:04 +00:00
Zsolt Vasvari
51a3a9eb01 Fixed taitoic regression
(Note to Haze: a little less crying and instead spending 2 minutes with a diff program would have been a lot more productive)
2008-02-29 04:23:37 +00:00
Zsolt Vasvari
f8cbcafd5e Replaces mame_bitmap with bitmap_t
Removes mame_bitmap
2008-02-29 04:01:09 +00:00
Zsolt Vasvari
a3aef48df5 - Converted Amiga based games to partial updating and proper scanline based timers
- Beginning of the clean-up of Space Guerilla - fixed rotation, some other stuff
- Removed tmpbitmap from some drivers
2008-02-29 01:42:25 +00:00
stephh
9d6f8060d6 "Input (this Game)" menu now handles conditional inputs.
See 'qcrayon2' in taito_f2.c driver (play with the last Dip Switch and look how inputs change).
2008-02-28 18:23:37 +00:00
Zsolt Vasvari
c1eddd0763 Adds mc6845_assert_light_pen_input. This latches the next character display address into the light pen latch. 2008-02-28 13:25:19 +00:00
Zsolt Vasvari
8cf42a706d Fixed incorrect comments 2008-02-28 10:05:12 +00:00
Zsolt Vasvari
22f1803388 Signals both the 0->1 and 1->0 transitions of the synching pins 2008-02-28 09:30:14 +00:00
Zsolt Vasvari
0516bab238 - MC6845 - Added HSYNC and VSYNC callbacks -- I actually tested this :)
- Added macros and typedefs for callback function types
- Updated all users for the new macros
2008-02-28 06:34:58 +00:00
Aaron Giles
b96aa2fb5c Spacing and version bump. 2008-02-28 06:20:19 +00:00
Aaron Giles
4741ad3a7e From: Robert [mailto:pac0446@bigpond.net.au]
Subject: A fix for the z80pio

Hi there,

Here is a one-line fix for the z80pio.

At the moment when the interrupt control word is sent (with interrupts
enabled), an interrupt occurs. In reality, interrupts are disabled until
the interrupt mask byte is sent.
2008-02-28 05:48:21 +00:00
Aaron Giles
061ea91358 From: RansAckeR
Subject: astinvad.c & astrocde.c dips

Added dip location: astinvad.
Added dip locations and improved dip switches: seawolf2, wow, gorf, robby, 
profpac. 

--

From: RansAckeR
Subject: asuka.c dips

Added dip locations for: bonzeadv, cadash, asuka, mofflott, galmedes.

--

From: RansAckeR
Subject: atarifb.c dips

Added dip locations to: atarifb, atarifb4, abaseb, soccer.
2008-02-28 05:46:00 +00:00
Aaron Giles
a06cdea7db From: roberto zandona
Subject: risky challenge 

another opcode to fix a sprite bug and a general clean up of the remarks in the driver
2008-02-28 05:42:20 +00:00
Aaron Giles
ef3562b02b From: JEA Wallace [mailto:jeaw100@york.ac.uk]
Subject: MPU4 Changes part 2

Right, I've added a bit of CTS pin checking logic, so that the status
flag is actually set when the pin changes state.

I've also simplified the MPU4 ACIA clock logic, but it's still not ideal
(Ideally, the ACIA should only run one transmit or receive event each
time the PTM O1 pin goes high, but that's not possible right now, so I
just set the clocks as close to off as I can when the pin is low, and to
something that approximates the distance between output state changes
when it's on). There's also a few more little cleanups based on
schematics and flyers from TAFA, and an emulation of the master reset
behaviour. Incidentally, if anyone wants to see just why this isn't
kicking into life now, by all means do, since there's nothing left that
I can see that it can get hung up on, other than the video chip, and the
aforementioned ACIA logic.
2008-02-28 04:19:39 +00:00
Aaron Giles
0104d6ff63 From: Wilbert Pol [mailto:wilbert@jdg.info]
Subject: uPD7801, uPD78C05, and uPD78C06 cpu cores added to the uPD7810
cpu core

This patch adds basic support for the NEC uPD7801, uPD78C05, and  
uPD78C06 cpus to the uPD7810 cpu core.
2008-02-28 03:22:38 +00:00
Zsolt Vasvari
34781e5f4c - Better variable name for the cursor counter
- Pedantic clean-up of comments
- R6545 is still in the "MC6845 CRTC" family, therefore removed DEVINFO_STR_FAMILY
2008-02-28 03:16:36 +00:00
Nathan Woods
ee187c0bf6 Added a stub implementation of the Rockwell 6545 2008-02-28 02:22:10 +00:00
Zsolt Vasvari
7d092ece83 Adds support for cursors. All 4 blinking modes are supported (always on, always off, fast, slow) 2008-02-28 02:01:37 +00:00
Mathis Rosenhauer
b0735fe318 BITSWAP macro used. 2008-02-27 19:58:53 +00:00
Mathis Rosenhauer
210af56aa8 Support for original Omega Race state PROM 2008-02-27 15:51:37 +00:00
Aaron Giles
e65c8bd5c6 From: Lei Wu
To: submit@mamedev.org
Subject: added PGM.c EEPROM/hiscore saving [Creamymami]
2008-02-27 15:05:50 +00:00
Aaron Giles
2702453660 Couple more address map merges, plus an MSVC compile fix. 2008-02-27 15:01:08 +00:00
Zsolt Vasvari
f78611cfd3 - Clean-up of the Crazy Climber video driver, mainly via tilemap conversion.
This fixes the ape sprite positioning in Crazy Kong -- no more gap between feet and platform
- Merged Yamato driver with Crazy Climber
- XX Mission tilemap conversion
- Removes VIDEO_START(generic) -- no longer used
2008-02-27 13:51:06 +00:00
Roberto Fresca
e362c9301e Added Cal Omega - Game 10.7 (Big Game).
This one has a keyboard interfase with 1 ROM (dumped).
Game is not working.
2008-02-27 06:25:17 +00:00
Brian Troha
035863f8a6 correction to the color code 2008-02-26 23:20:52 +00:00
Aaron Giles
b61bc6d703 Turned on use of designated initializers for tokenized structures in gcc,
since it appears to support them with std=gnu89. Fixed several places
where drivers were violating the rules.
2008-02-26 11:16:37 +00:00
Aaron Giles
3fbf56dc0f Merged memory maps. 2008-02-26 10:56:21 +00:00
Aaron Giles
e8d437422c Fixed typo. 2008-02-26 10:55:38 +00:00
Aaron Giles
41d2a2d8c1 Change priority_bitmap accesses back to UINT8s, now that we are
again allocating an 8bpp bitmap. Fixes crashes in several games.
2008-02-26 10:48:45 +00:00
Roberto Fresca
b28523cabe Big changes to Cal Omega driver to support systems 903/904/905/906.
A lot of sets were added. Also System 903/905 diag ROMs.
Submitted the driver at this point because it's growing as a monster.
Parent/clone relationship for official games is not defined yet.

Changes:
- Renamed the driver to calomega.c.
- Extended the driver to support all the other Cal Omega systems.
- Switched to XTAL def.
- Fixed CPU & sound clocks based on official diagrams.
- Replaced the AY-8910 with AY-8912 to match the real hardware.
- Unified some memory maps.
- Splitted machine in sys903 and sys905.
- Fixed memory map offsets for sys905.
- Added support to the following games:

    Game 7.6 (Arcade Poker)
    Game 7.9 (Arcade Poker)
    Game 9.4 (Keno)
    Game 12.5 (Bingo)
    Game 12.7 (Keno)
    Game 12.8 (Arcade Game)
    Game 13.4 (Nudge Bingo)
    Game 14.5 (Pixels)
    Game 15.7 (Double-Draw Poker)
    Game 15.9 (Wild Double-Up)
    Game 16.4 (Keno)
    Game 16.8 (Keno)
    Game 17.2 (Double Double Poker)
    Game 17.51 (Gaming Draw Poker)
    Game 17.6 (Nudge Bingo)
    Game 18.1 (Nudge Bingo)
    Game 18.3 (Pixels)
    Game 18.5 (Pixels)
    Game 18.6 (Pixels)
    Game 20.4 (Super Blackjack)
    Game 20.8 (Winner's Choice)
    Game 22.7 (Amusement Poker, d/d)
    Game 23.6 (Hotline)
    Game 23.9 (Gaming Draw Poker) --> EX gdrawpkr.
    Game 24.6 (Hotline)
    Game 27.2 (Keno, amusement)
    Game 27.2 (Keno, gaming)
    System 903 Diag.PROM 
    System 905 Diag.PROM
    Jackpot Joker Poker (set 1)
    Jackpot Joker Poker (set 2)
    SSI Poker (v2.4)
    SSI Poker (v3.0)
    SSI Poker (v4.0)

- Added a list of official/unofficial games, and their states.
- Fixed a bug introduced when extended the color PROM region to eliminate colortable lenght.
- Other changes/fixes.
- Updated technical notes.
2008-02-26 09:41:11 +00:00
Aaron Giles
adcdfd3e5b Converted MACHINE_DRIVER definitions from function
constructors to tokenized lists. For the most part
this is a non-invasive change, except for those drivers
using MDRV_WATCHDOG_TIME_INIT. In order to allow for
tokenization of attotimes, a set of new macros is
provided called UINT64_ATTOTIME_IN_x() which follows the
same pattern as ATTOTIME_IN_x() but packs the attotime
down into a single 64-bit value for easier tokenization.

Separated MDRV_DEVICE_CONFIG_DATA into 32-bit and 64-bit
versions. Added floating-point versions with configurable
resolutions.

Fixed several errors in the machine drivers which were
caught by the additional checks now done in the machine
config detokenization code.

Converted speakers into devices. Machine->config no
longer houses an array of speakers; instead they are
iterated through using the new macros (defined in sound.h)
speaker_output_first() and speaker_output_next(). Updated
all relevant code to do this.

Improved game info display with multiple screens. Fixed
bug which caused all screens to display equally.

Added typedefs for all the machine config callback 
functions at the top of driver.h.
2008-02-26 06:31:28 +00:00
Brian Troha
d94da47366 credit Razz
adds the two new Neogeo clones
2008-02-26 00:15:32 +00:00
Brian Troha
4f417ac50a reverted back as my commit clobbered recent additions.
Readded the new clone properly
2008-02-25 23:05:33 +00:00
Couriersud
3bd4143eb6 * remove flip_screen macro
* flip_screen_x and flip_screen_y made static
* add flip_screen_x_get() and flip_screen_y_get()
* change writes to flip_screen_x from last commit to flip_screen_set_no_update()
* added save state calls for flip_screen_x and flip_screen_y
2008-02-25 23:01:59 +00:00
Brian Troha
32713a7e9e Credit Razz
Adds Dungeons and Dragons Tower of Doom (Japan 940412)
2008-02-25 22:43:36 +00:00
Couriersud
8e96884cc6 * Fix issues related to flip_screen being a define
* add "int flip_screen_get(void)"
* define flip_screen flip_screen_get()
* clean up drivers with collisions 
* mark write accesses to flip_screen_x with FIXME
2008-02-25 21:15:59 +00:00
Couriersud
df962f9ec4 dkong.c:
* added a comment from Mike about power up sounds
2008-02-25 20:18:59 +00:00
R. Belmont
205a261dbd [NSS] Removed bogus DIPs. 2008-02-25 17:47:05 +00:00
Roberto Fresca
06e7623033 - Added new game: Royal Vegas Joker Card (fast deal, english gfx).
- Added new game: Jolly Joker.
- Added new game: Jolly Joker (50bet).
- Added new game: Jolly Card (croatian, set 2).
- Added new game: Jolly Card (Evona Electronic)
- Added new game: Super Joly 2000 - 3x
- Fixed some inputs.
- Masked inputs to allow jolyjkra to boot.
- Added minor corrections.
- Updated technical notes.
2008-02-25 06:05:28 +00:00
Brian Troha
deb1f35af6 Adds a little bit of docs for American Horse Shoe
minor white space clean up and addition of IC location
2008-02-25 02:22:57 +00:00
Aaron Giles
9a359b370d Added new module: tokenize.h. This centralizes the behavior of
tokenizing data structures, as currently used by the input
port system. Redid the input port tokenization to be more
compact and make use of the new macros.
2008-02-25 01:35:48 +00:00
Couriersud
40ba785ded Various vector games:
* Remove MDRV_PALETTE_LENGTH which would trigger an assert in emupal.c (debug build)
2008-02-24 23:43:12 +00:00
Zsolt Vasvari
2b1192dec8 - Backs out BITMAP8 removal from most places.
- I still left drawgfx.c as is, the only piece of code that used any of the functions in drawgfx
  was s2636.c -- everything else uses 8-bit bitmaps as a replacement for a two dimensional array
2008-02-24 23:24:29 +00:00
Couriersud
ee93a91551 dkong.c:
* remove usage of video/generic spriteram, videoram & flip_screen
2008-02-24 19:55:52 +00:00
Aaron Giles
4a7301495b Different fix for X the Ball sound. Pulse no longer works for the 34010. Undid previous fix. 2008-02-24 15:57:25 +00:00
Zsolt Vasvari
803ece9d96 Removes 8-bit bitmap support and converts all previously 8-bit bitmaps to 16-bit 2008-02-24 13:30:08 +00:00
Zsolt Vasvari
51cae46fac - Added some asserts to drawgfx and drawgfxzoom
- Moved some variable declerations so that they are only visible where they are actually used

Note that the diff is large only because I removed a level of indentation from a huge chunk of code.
I could do that because the case it was checking for was already caught by one of the asserts added.
2008-02-24 06:33:02 +00:00
Zsolt Vasvari
4c67395bc6 machine->pen lookup removal 2008-02-24 06:08:08 +00:00
Zsolt Vasvari
0696fc6da2 Fixes crash in Raiga 2008-02-24 05:49:44 +00:00
Brian Troha
b0e0790099 removes the confirmed bad dump of Virtua striker 2 2000 2008-02-24 02:10:31 +00:00
Zsolt Vasvari
58fc9362eb This fixes the DAC sound in X The Ball that got broken in 114u2. Not 100% if the fix is right, though. 2008-02-24 01:54:54 +00:00
Nathan Woods
3f652750d3 Fixed compilation error when compiled for MESS 2008-02-23 20:36:43 +00:00
Couriersud
03037281a4 bionicc.c:
* Added cpu clocks from schematics
* Comment about z80 nmi generation
2008-02-23 19:07:38 +00:00
Aaron Giles
29bc8049cd Fixes for screenless games. 2008-02-23 18:21:32 +00:00
Aaron Giles
5d63aae855 Added a rule to make VS2008 compile seamlessly. 2008-02-23 18:21:20 +00:00
Couriersud
dd0ebc1d8d Remove some deprecat.h includes from osd layer:
* add machine as parameter to osd_update and osd_update_audio_stream
* change Machine to machine and remove include deprecat.h
2008-02-23 17:46:52 +00:00
davidhay
830cc527f1 made the code more readable so that isn't an excuse anymore, but it still seems broken. I don't think the correct raw sprite pen numbers are being written into the temp bitmaps. (zsolt???) 2008-02-23 16:13:49 +00:00
Couriersud
1a18371edc * output raw video parameters pixclock, htotal, hbend, hbstart, vtotal, vbend, vbstart if they have been given. 2008-02-23 12:04:52 +00:00
Zsolt Vasvari
2d9094c05c Fixed typo 2008-02-22 23:42:31 +00:00
Couriersud
eca1bc1732 namcos2, namcos21:
* fix crashes due to nvram allocation in MACHINE_RESET
* create MACHINE_START and move allocation there
2008-02-22 21:53:15 +00:00
R. Belmont
bd986e0110 Added original version of Cosmic Smash, our existing dump is rev. A (credit icronnya77). 2008-02-22 18:05:47 +00:00
Roberto Fresca
5d9fe43d51 Added complete color connections to/from 74ls373 to the source. 2008-02-22 16:44:37 +00:00
Zsolt Vasvari
345a0c470b machine->pens lookup removal 2008-02-22 14:37:10 +00:00
Roberto Fresca
a7ce6cec63 Switched the color decoding routines to use resnet code. 2008-02-22 08:06:24 +00:00
Zsolt Vasvari
ec82c37570 Mr.Do fixed the positioning of the laser beam based on the test mode. 2008-02-22 07:52:33 +00:00
Zsolt Vasvari
422de34a3f - Adds the layout file created by Mr. Do
- Clean-up and reorg
2008-02-22 07:32:08 +00:00
Zsolt Vasvari
5fa2c2c76c machine->pens lookup removal 2008-02-22 03:45:50 +00:00
Zsolt Vasvari
bc69380af9 machine->pens lookup removal 2008-02-22 01:51:36 +00:00
Zsolt Vasvari
8c409c07df Cloak & Dagger video code cleanup:
- resnet conversion - colors are now signficantly less saturated because of the 1K pull-ups.
  This is noticable in the agent's coat and the sky color, for example.  As far as I can tell this
  correct from the schematics.
- Added bitmap palette selection based on the 128H line.  Not sure where this is actually used in
  the game
2008-02-22 01:32:05 +00:00
Couriersud
9c460a6248 Makefile & build system update:
* verinfo: New syntax.
	verinfo now uses the following syntax: verinfo.exe -b windows|winui|mess. 
	Does not depend on compile time defines any longer.

* makefile will include - if it exists - src/osd/$(CROSS_BUILD_OSD)/build.mak.
	This was necessary to enable cross builds for winui. winui adds mkhelp to build tools and the rules for mkhelp thus had to be moved outside src/osd/winui/winui.mak

* Tested on Linux 64bit, Linux 32bit, Windows 32bit mingw, Windows 32bit MSVC

* Cross build environment to be posted to the list
2008-02-21 23:53:29 +00:00
Brian Troha
885d66e31a remove redundant lines used to test changes 2008-02-21 23:35:37 +00:00
Brian Troha
a9d8713a91 Adds 7MHz XTAL to xtal.h
Corrects clock speeds for the megasys1.c boards.

Yes... the games actually are _THAT_ slow!
2008-02-21 23:29:51 +00:00
Brian Troha
2e217896e8 selling corrections 2008-02-21 22:03:51 +00:00
Aaron Giles
8436bec1e3 Cleanups and version bump for 0.123u2. 2008-02-21 17:43:00 +00:00
Zsolt Vasvari
e619861862 - Added void state_save_combine_module_and_tag(char *dest, const char *module, const char *tag);
Its purpose is to create a unique name for state saving purposes in modules that are tag based (no index)

- Updated MC6845 to make use of this
2008-02-21 12:00:00 +00:00
Zsolt Vasvari
0ab1b992b7 - Pen lookup removal
- With my previous update, some of the games in cave.c asserted out -- this fixes it
- seta.c employs the same pattern as cave.c
2008-02-21 11:43:45 +00:00
Zsolt Vasvari
2e595362d8 - Some more machine->pen lookup removal
- Changed Beathead driver to use partial updates instead of caching scanline level information
2008-02-21 09:12:53 +00:00
Aaron Giles
b7c4a537cd Most important thing to note about this change:
ALL DRIVERS MUST NOW EXPLICITLY DECLARE THEIR SCREENS.

Read on for more detail....

Added device tag as a parameter to the start function for devices.
Updated MC6845 to accept this tag.

Added new functions for iterating through the device list and 
counting devices of a given type. Updated search and iteration
functions to accept DEVICE_TYPE_WILDCARD to work across all
devices.

Added new macro MDRV_DEVICE_CONFIG_DATA() which is used to set a
single item in an inline data structure.

Removed the per-screen palette_base. This was an idea that never
really worked out, nor have we really needed it.

Defined a new device type VIDEO_SCREEN. Currently this has no
live functionality, but merely serves as a placeholder/identifier
for video screens. Eventually some of the screen management code
may move into the start/stop/reset functions.

Changed MDRV_SCREEN_* macros to build up VIDEO_SCREEN devices
rather than storing values in the screen[] array.

Changed MDRV_SCREEN_ADD to specify a screen type (RASTER, VECTOR,
LCD for the moment).

Removed the older VIDEO_TYPE_RASTER and VIDEO_TYPE_VECTOR; this
information is now determined by walking the screen list.

Removed the screen[] array from machine_config. Modified all code 
referencing Machine->config->screen[] and changed it to iterate 
over the devices using the new video_screen_first() and 
video_screen_next() functions.

(The next step will be to add video_* functions that accept a tag
instead of screen index, and then move systems over to always
referencing screens by tag instead of index.)

Removed implicit screen #0. This means that ALL DRIVERS MUST
EXPLICITLY DECLARE THEIR SCREENS. Updated all drivers to do
so. While there, grouped all MDRV_SCREEN_* parameters together.
Also removed unnecessary VIDEO_TYPE_RASTER and VIDEO_TYPE_VECTOR.
Also removed VBLANK and bitmap format information from vector
games. This was painful and very tedious.

Changed game information to display info about all screens.
2008-02-21 08:50:36 +00:00
Zsolt Vasvari
10d9982716 Removed some unneccassary lookups through machine->pens 2008-02-21 03:22:33 +00:00
Zsolt Vasvari
e5bcee449d Removed the pen array lookup from some INDEXED16 drivers 2008-02-21 02:00:11 +00:00
Zsolt Vasvari
288a0adbe1 Adds video\gameplan.c 2008-02-21 00:47:22 +00:00
Zsolt Vasvari
4606ca9dc2 - Reorganized Gameplan driver
- Changed Trivia Quest use the Gameplan video code
- Added crystal for Gameplan pixel clock
2008-02-21 00:46:44 +00:00
Brian Troha
930f6ecac0 Document regions by color code 2008-02-20 23:12:54 +00:00
Brian Troha
12088331a5 correction to documentation as pointed out by the Guru 2008-02-20 23:04:55 +00:00
Zsolt Vasvari
10e5c35068 - Changed all drivers using the MC6845 chip to use the device interface
- Removed mc6845_config
- Minor changes to the Qix driver
2008-02-20 13:17:06 +00:00
Zsolt Vasvari
72a9167032 - Added running_machine* as first parameter to mc6845_config and all callbacks. Updated all users.
- Reorganized Qix driver.  Driver state, decoupled audio section, etc.
2008-02-20 08:39:22 +00:00
Aaron Giles
85112f6f1c Removed clock and flags as fundamental device parameters. 2008-02-20 06:08:30 +00:00
Aaron Giles
99675196a8 Added support for inline device configuration. 2008-02-20 06:06:13 +00:00
R. Belmont
8c4a6a2d2a Removed unnecessary debug stub. 2008-02-20 05:27:11 +00:00
Zsolt Vasvari
df91564d03 - Complete memory map
- Cyrsals
- Driver state structure
- Text layer is rendered at the same time as the background
2008-02-20 05:25:29 +00:00
R. Belmont
cc998eae3a Missed a few things in the last commit. 2008-02-20 05:13:17 +00:00
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
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
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
Aaron Giles
de12af7f87 From: RansAckeR [mailto:RansAckeR@pandora.be]
Subject: 8080bw.c DIP locations, coin2 fixes

Added DIP locations for sitv, sicv, invadpt2, lrescue, invasion.

Fixed coin2 for superinv & invasion.
2008-02-13 08:29:20 +00:00
Aaron Giles
bba8baef1a From: abcd efgh [mailto:cix_999@yahoo.it]
Subject: fixed pwrinst2_0122u8gra

Hi, i've fixed the mametester bug pwrinst2_0122u8gra caused by me in the last clean made  (sorry, sorry, sorry .......), 
and in according what is wrote in the drive of taplan2 about sstriker and kingdmgp "update the above two look like genuine 
Korean release boards, Raizing probably just missed a few things" i have swapped this world set as the original one (only 
if you're agree of course).
2008-02-13 08:26:19 +00:00
Aaron Giles
74015ed586 Changed VERINFO to build always. All tools in build should build for all platforms.
Fixed dependency problem in windows.mak due to the VERINFO move. Windows builds now work the first time.
2008-02-13 07:40:12 +00:00
Zsolt Vasvari
42ddf4508b Color table removal 2008-02-13 02:45:16 +00:00
Zsolt Vasvari
72fa930e78 Color table removal 2008-02-13 00:53:16 +00:00
Zsolt Vasvari
9e974e6ac1 Added equivalency note about the Synertek SY6545-1 version 2008-02-12 22:15:57 +00:00
smf-
6bbf6e1ce3 changed ZN2 clock speed to 100MHZ to match board notes. It uses the same cpu as namco system 12. 2008-02-12 21:28:38 +00:00
Zsolt Vasvari
f9631a0a46 - Fixes Pooyan transparency
- Uses resnet code
2008-02-12 21:26:29 +00:00
Zsolt Vasvari
404a61653d Using this interesting document as a reference:
http://www.6502.org/users/andre/hwinfo/crtc/diffs.html

- allows reading registers 12 and 13
- reading write-only registers return 0
- updated comments in header
- added copyright since there was none
2008-02-12 20:58:40 +00:00
Zsolt Vasvari
a35f6aba82 Renames M6845 to MC6845 2008-02-12 20:31:55 +00:00
stephh
e2cdf5e9f7 Fixed 'mario' and 'masao' memory maps to match the Dip Switches port name. 2008-02-12 18:45:33 +00:00
Zsolt Vasvari
d3cc7e0dd4 Renames CRTC6845 to M6845 2008-02-12 12:48:58 +00:00
Zsolt Vasvari
e12664a5ae - Changed the crtc6845 to be handle based -- adjusted all drivers
- Changed qix.c to RGB32 mode and made its videoram_w do the partial updating instead of a per scanline timer
2008-02-12 12:33:10 +00:00
Zsolt Vasvari
1b1f5abc16 Color table removal 2008-02-12 12:30:42 +00:00
smf-
5cf71ad8e1 vblank hacks were not being called, fixes zn.c0122u8yel, . 2008-02-11 22:22:06 +00:00
Zsolt Vasvari
79d36244b3 Color table removal 2008-02-11 04:48:11 +00:00
Zsolt Vasvari
72dc0af97c Removes no longer used TRANSPARENCY_COLOR. Clean compile required. 2008-02-11 03:05:29 +00:00
Zsolt Vasvari
3f9150918d - Color table removal
- Cleaned up the 'special case' mess this driver has become
2008-02-11 02:59:15 +00:00
Zsolt Vasvari
d124d81521 Fixed incorrect use of TRANSPARENCY_COLOR 2008-02-11 00:15:02 +00:00
Zsolt Vasvari
c35974fbdc Color table removal 2008-02-10 23:56:10 +00:00
Laurent Desnogues
e49ffe3289 - ARM ldm/stm ignore lower bits of the address
- most of the exceptions force the I bit
- ignore some flag bits in the CPSR
2008-02-10 14:41:31 +00:00
Laurent Desnogues
49b20d49da - Thumb ASR Rd,Rs: correct carry computation
- Thumb ldmia/stmia: correct value for writeback when the writeback reg is in the list
2008-02-10 12:24:05 +00:00
Zsolt Vasvari
ec2eea190a Removed colortable by changing driver to use tilemap_draw_roz 2008-02-10 11:14:10 +00:00
Zsolt Vasvari
0ef0d97222 - Color table removal
- Renamed Ping Pong to "Konami's Ping-Pong", which is the real name as per the title screen and the flyer
2008-02-10 04:48:57 +00:00
Roberto Fresca
4e416533ac Some improvements to the Funworld driver and new games added.
Here the changes:

- Switched to XTAL def.
- Fixed Magic Card II graphics issues.
- Fixed Magic Card II inputs.
- Fixed screen and visible area to snooker10.
- Renamed set monglfir to mongolnw.
- Renamed sets description based on languages instead of countries.
- Added new game: Magic Card II (green TAB or Impera board). Not working yet.
- Added new game: Magic Card II (blue TAB board, encrypted). Not working yet.
- Added new game: Jolly Card (3x3 deal).
- Added new game: Jolly Card Professional 2.0 (with 'enter code' screen to boot).
- Added new game: Lucky Lady (3x3 deal).
- Added new game: Lucky Lady (4x1 aces).
- Added new game: Royal Vegas Joker Card (fast deal).
- Added new game: Royal Vegas Joker Card (slow deal).
- Fixed some years and manufacturers.
- Updated technical notes.
- Cleaned up the driver.
2008-02-10 03:50:03 +00:00
Brian Troha
30487202a0 Credit Stefan Lindberg
Adds a genuine Taito version of Galaxain to the galaxian.c driver
2008-02-10 02:55:31 +00:00
Brian Troha
372dcee0f6 Credit Stefan Lindberg for Clone
Adds older? version of Sand Scorpion

Stuff I did:
Added info and PCB layout
2008-02-10 01:39:32 +00:00
Laurent Desnogues
dc5647fedf - correct mode at reset (it's always 0b1....)
- HandlePSRTransfer: remove wrong code, correct detection of privileged mode
- correct carry output for ROR
2008-02-09 22:26:39 +00:00
R. Belmont
834d608456 Naomi/DC updates:
Samuele Zannoli:
- Add SH4 I/O ports
- Connected the 93C46 of the naomi and the x76f100 of the rom board and filled them with dummy data to satisfy the BIOS
- Implemented some of the JVS transfers that will be needed to use the controls
- Implemented ROM board DMA
- Set proper NAOMI RAM sizes (32 MB main, 8 MB for AICA)
- Improved PVR-TA graphics emulation

Deunan Knute:
- Set proper ARM7 clock.  (Yes, it's really that slow!)
2008-02-09 21:36:41 +00:00
Nathan Woods
f6d059db68 Readded the ability to pass absolute paths to mame_schedule_save() and
mame_schedule_load()
2008-02-09 20:23:20 +00:00
Nicola Salmoria
45979beac0 fix kangaroo colors 2008-02-09 20:05:27 +00:00
Brian Troha
e01be7e7f1 As noted by Haze, changed doc info for Sand Scorpion 2008-02-09 15:38:08 +00:00
Brian Troha
0e0799886c I see Blaze On actually has a Kaneko PCB ID as well as an Atlus PCB ID so I included that info 2008-02-09 04:28:29 +00:00
Brian Troha
d835716abb PCB and/or chip docs updates for:
Blaze On (kaneko16.c)
Sand Scorpion (sandscrp.c)
Flash Point (segas16b.c)
2008-02-09 03:54:41 +00:00
Brian Troha
7cd1907b5c adds Williams Electronics Games, Inc 2 player simultaneous version of Outzone
Changed several ports to port_include & port_modify
2008-02-08 22:40:25 +00:00
stephh
67b072a84f Changed the GAME definitions to reflect how many players and how many buttons there are for each game.
Rewrote the INPUT_PORTS definitions to use PORT_INCLUDE, PORT_MODIFY and PORT_CUSTOM macros.
Added a few notes about the inputs when I thought they were needed to avoid wrong bug reports.

Started to clean the driver (but unfortunately, I can't go further because I don't understand everything).
Please have a look as there are things which still need to be done (such as getting only one memory map).
2008-02-08 01:31:00 +00:00
stephh
25f753aa76 Fixed some small errors I made in revision 630. 2008-02-07 19:36:43 +00:00
stephh
7a1667ef5e Used PORT_SERVICE and PORT_SERVICE_NO_TOGGLE macros when this was possible. 2008-02-07 18:39:54 +00:00
Zsolt Vasvari
04a60aa692 - Switched driver to use the artwork system. Mr. Do will be creating some basic artwork for it.
- Set GAME_IMPERFECT_GRAPHICS until then, so we don't get bug reports on the missing lasers, or whatever...
2008-02-07 15:23:03 +00:00
davidhay
a1b265dc14 Adds wpksocv2, non-working due to the custom IO board, what are the inputs meant to be? 2008-02-07 12:50:58 +00:00
Zsolt Vasvari
b6fd15b735 Changed incorrect use of TRANSPARENCY_COLOR 2008-02-07 11:58:03 +00:00
Mirko Buffoni
d3189ebbef Added sound support to Champion Skill.
Removed GAME_NO_SOUND flags.
Increased interrupts per frame, music was too slow.
Minor comments adjustment.
2008-02-07 09:26:51 +00:00
Zsolt Vasvari
f125cd2fab Unified memory map 2008-02-07 09:15:50 +00:00
Zsolt Vasvari
24848d7222 - Centered crosshair
- Uses real game orientation
- Minor clean-ups
2008-02-07 07:37:26 +00:00
Zsolt Vasvari
56f0f0671e - More accurate emulation of the priority system and the beam logic
- No more color table
2008-02-07 04:52:57 +00:00
Brian Troha
30470dcbb9 Credit: Arzeno Fabrice
adds House of the Dead 2 specific NAOMI BIOS's
2008-02-06 19:40:38 +00:00
stephh
16aec4afce Fixed Dip Switches and Inputs for all games.
Bugs fixed :
  - goldbug0105u4gra (MAME Testers) / ID 00009 (Mantis)


Zsolt, now that player 2 inputs are mapped, I let you fix the screen flipping for "cocktail" mode and remove the GAME_NO_COCKTAIL in the driver ;)
2008-02-06 16:49:03 +00:00
stephh
58980ac2c7 Fixed some clones INPUT_PORTS definitions that were curiously using PORT_START_TAG("DSW") instead of PORT_MODIFY("DSW"). 2008-02-06 16:26:31 +00:00
Aaron Giles
abdb58671b Split timer_adjust() into timer_adjust_oneshot() and timer_adjust_periodic().
Updated all call sites.
Fixed recent build breaks.
2008-02-06 15:33:04 +00:00
Zsolt Vasvari
e18344a0e7 - Scooter Shooter -- color table removal
- Unified transparency handling in these games running on very similar hardware
2008-02-06 11:37:51 +00:00
Zsolt Vasvari
897ea4b0b5 - Color table removal
- resnet conversion
2008-02-06 11:18:03 +00:00
Zsolt Vasvari
8a723628c1 - Color table removal
- resnet conversion
2008-02-06 11:05:22 +00:00
Zsolt Vasvari
304b3ffe43 - Color table removal
- Uses resnet.c where schematics was conclusive
2008-02-06 10:16:03 +00:00
Brian Troha
12d4c9438d creates new US set as roms came from an original PCB
readds bootleg graphics roms to the 2 bootleg sets
renamed 1 rom as per info from Patrik Styrnell
2008-02-06 04:38:06 +00:00
Zsolt Vasvari
4fd4ebeb64 Just checking in my very latest. Not sure how to proceed -- should the 6844 DMA chip hooked up as:
a) a CPU core
b) a custom sound chip that just toggles the MC3417/3418 clocks?
c) just use a high frequency timer
2008-02-06 01:35:34 +00:00
Zsolt Vasvari
805ca86884 - Removed color tables
- Simplfied Mag Max background drawing code
2008-02-06 01:31:17 +00:00
Couriersud
17d5bc279b png2bdc.c:
* remove osdcore.h
build.mak:
* remove expat from libs
2008-02-05 23:18:52 +00:00
Couriersud
2c6acf1988 src/build:
* removes osdcore.h from file2str.c and verinfo.c
* removes LIBOCORE from link stage for file2str and verinfo
2008-02-05 23:05:55 +00:00
Couriersud
88940550a1 makefiles:
* move verinfo.c to src/build
* move rules for verinfo to src/build/build.mak
2008-02-05 22:32:11 +00:00
Luca Elia
c96f0df8fa Promoted "Galaxy Games (BIOS v1.90)" to working
(moved to tmaster.c)
2008-02-05 17:48:27 +00:00
Aaron Giles
72dbde5ef6 From: Barry Rodewald [mailto:bsr@xnet.co.nz]
Subject: INP fix for 0.123

Hi,
Here's a quick fix for MAME 0.123, correcting the initial detection of 
extended INP files.

Thanks,
Barry Rodewald
2008-02-05 17:23:24 +00:00
Aaron Giles
aebd83fb6e From: RansAckeR [mailto:RansAckeR@pandora.be]
Subject: 'fix' for jantouki0121u3gra, mcnpshnt0120u3gra & mjdialq2_0120u3gra

Bug reports about some dynax.c DIP fixes.

--

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: 'fix' for mjifb0111u2gra

"royalmah.c mjifb: Usages of the unknown dip swithces:

3-2: enable/disable F-RATE
3-4: enable/disable BYE-BYTE Bonus
3-6: enable/disable Auto mode after reached
3-7: on - Background blue, off - Background black
4-3: 192 - disable Flip-flop, 212 - enable Flip-flop
4-6: enable/disable Animation"
2008-02-05 17:22:45 +00:00
Aaron Giles
4db5afa87e From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] CPU/SOUND independence fixes

Hi mamedev,

Here's some updates to the CPU/SOUND cores to improve build
independence.  While I was at it, I rescued the M65CE02 core from
bitrot hell (perhaps m65ce02.[ch] should just be deleted), and fixed
some MESS cores that were broken by the deprecat.h changes.
2008-02-05 17:21:27 +00:00
Aaron Giles
ec872c6178 From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: Frequencies verifications

I corrected the clocks on the following pcbs: Formation Z, MagMax, 
SlapFight and Tiger Heli
Changed Oki m6295 pin 7 to "high" on Toki and Blood Bros
2008-02-05 17:04:29 +00:00
Zsolt Vasvari
ee4c9c4c24 Changed the use of machine->remapped_colortable to machine->pens where the drivers weren't using color tables 2008-02-05 13:06:32 +00:00
Aaron Giles
85038b85d2 Last minute minor tweaks from 0.123 tag. 2008-02-05 09:33:35 +00:00
Couriersud
7bc6dac05e audio/dkong.c:
* fix dkong audio over-modulation issue with DAC sound
* surround the fix with a DK_REVIEW define for later review.
2008-02-05 09:12:14 +00:00
Zsolt Vasvari
79605aa3da Removed 'type' parameter from tilemap_create 2008-02-05 08:20:52 +00:00
davidhay
820644b604 adds Brand New Stars (MS32 version) 2008-02-05 08:12:22 +00:00
Aaron Giles
1b35fe1925 Fixed incorrect default screen size computations. 2008-02-05 07:57:36 +00:00
Aaron Giles
37c6be050d Fix sprite placement again in chinagat drivers. 2008-02-05 07:50:37 +00:00
Aaron Giles
72fbb6a0c4 Fixed watchdogs when not explicitly specified. 2008-02-05 07:45:17 +00:00
Andrew Gardner
7765adf61b Added skeleton driver for two Kyle Hodgetts games, Virtual Combat and Shadow Fighters. Each running on the same hardware.
Each game has 2 68000's, and one unemulated Intel i860XR CPU.  I couldn't find docs for the i860 anywhere!
Virtual Combat is a stereoscopic game using an additional i860 to drive the second eye.
The ROMs all seem to check out as valid, with human-readable strings throughout.
The sound program is extremely simple for each, and the sound data ROMs are simply Creative Labs VOC files concatenated to eachother.
A MC6845P lives by the edge connector.

Additional notes in the driver.

Roms uploaded to /roms/current/v & /roms/current/s.

Wiki updated with skeleton driver status.
2008-02-05 06:12:47 +00:00
Zsolt Vasvari
662f44ede3 Removed TILEMAP_TRANSPARENT_COLOR tilemap type. The tilemap type is no longer used for anything. 2008-02-05 05:31:23 +00:00
Zsolt Vasvari
11b06e94a5 - Color table removal
- Renames skychut to m10
2008-02-05 05:17:17 +00:00
Zsolt Vasvari
f32808362d Color table removal 2008-02-04 12:42:11 +00:00
Zsolt Vasvari
190247c1fb Removes no longer neccessary check as drawgfxzoom support all remaining transparency modes 2008-02-04 09:33:16 +00:00
Zsolt Vasvari
1426e5865f Removed TRANSPARENCY_BLEND_RAW transparancy mode. Needs a recompile just to be on the safe side. 2008-02-04 09:27:44 +00:00
Zsolt Vasvari
4ba36433ee - Reworked/refactored S2636 emulator
- Updated all S2636 users for the new interface
- Removed color tables from all games
2008-02-04 08:44:24 +00:00
Nathan Woods
38ac9dbdcc Fixing #include order in sid.c 2008-02-04 00:02:55 +00:00
Pierpaolo Prazzoli
a682d3cf5f Fixed palette gradient for promutrv 2008-02-03 23:04:55 +00:00
Aaron Giles
b3cd0a8e86 Further DMA simplfication in Kangaroo, moving it closer to a merge with Arabian. 2008-02-03 21:55:28 +00:00
Aaron Giles
c87f5ef4f8 Fixed ADPCM in m62 games. Some additional cleanup. 2008-02-03 21:38:52 +00:00
Aaron Giles
198d7d10ca Minor typo wreaks major havoc. Story at 11. 2008-02-03 21:27:10 +00:00
R. Belmont
34ab94a982 [ARM7] Fixed PSR transfers. 2008-02-03 21:20:45 +00:00
Brian Troha
4591ddffca reverting back... doesn't work for clean compiles
don't know why...
2008-02-03 20:19:22 +00:00
Brian Troha
9bd77b9643 fuukifg3.c:
Changes clocks to xtal.h definitions
metro.c:
 minor docs enhancement
2008-02-03 19:56:27 +00:00
Brian Troha
eb68d4312d update OSC clock define with xtal.h definition 2008-02-03 19:55:25 +00:00
Brian Troha
766c4903a9 better info reguarding the Z180 & HD74180 2008-02-03 19:03:59 +00:00
Nicola Salmoria
06dece135f merged nova2001, ninjakun, pkunwar, raiders5; misc cleanup 2008-02-03 16:06:28 +00:00
Andrew Gardner
163bb74a8f Fixes error:
pool_object_add (via src/emu/debug/debugcmt.c:107): Attempted to add a NULL object of size 0

This was happening when mame_debug_init was being called with 0 CPUs (eg. when starting MAME from the command line without a ROMset specified).
2008-02-03 09:14:51 +00:00
Brian Troha
aa3592dd4d Fixed year typo ;-p 2008-02-03 06:28:39 +00:00
Brian Troha
268655a7e9 added features from data sheet (documentation) 2008-02-03 06:24:58 +00:00
Brian Troha
cb99dc9132 adds documentation from data sheet. 2008-02-03 06:17:22 +00:00
Brian Troha
0a00c4bc10 Adds a little info about available Z180 models with speed and compatible chips 2008-02-03 06:02:17 +00:00
Brian Troha
ee7fda924b Changes the clock speed of the YM262 interface to be OSC derived.
IE: Half of the YM278B standard clock or 16.9344MHz, a standard speed.
2008-02-03 05:53:41 +00:00
Aaron Giles
662dea1a21 Cleanups/version bump. 2008-02-03 05:23:32 +00:00
Aaron Giles
c314de71fa Fix compile error. 2008-02-03 05:12:25 +00:00
Zsolt Vasvari
716431f20e Made K007121_sprites_draw not require a 'machine' argument 2008-02-03 03:44:44 +00:00
Zsolt Vasvari
c4197196fa Color table removal 2008-02-03 03:43:42 +00:00
R. Belmont
a8747fd096 Fixed backslash in #include. 2008-02-03 03:08:12 +00:00
Zsolt Vasvari
778628f7b3 Color table removal 2008-02-03 02:34:03 +00:00
Aaron Giles
039ec1cbc7 From: RansAckeR
Subject: 'fix' for cmv801_0116gra

"cherrym.c cmv801: I've found a dipswitch listing for cherry master. I've 
tested a few of them and believe it to be correct.
I having problems figuring out the games inputs so i'm posting the 
dipswitches here in case someone else can figure out how the game works and 
would be willing to add them."

Improved DIP switches and added DIP locations.
2008-02-03 00:57:11 +00:00
Aaron Giles
4c5cebc661 From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] Fix some comments

Hi mamedev,

The following patch updates the initialization comments at the top of
mame.c and corrects/adds a few filename declarations at the top of a
handful of files.

~aa
2008-02-03 00:56:06 +00:00
Aaron Giles
05ab4afb7d From: RansAckeR [mailto:RansAckeR@pandora.be]
Subject: bking.c DIP locations

Added DIP locations to bking.c
2008-02-03 00:54:42 +00:00
Aaron Giles
5861f9d3ad From: roberto zandonà [mailto:robiza71@tin.it]
Subject: more opcode

(Risky Challenge opcodes)
2008-02-03 00:53:25 +00:00
Aaron Giles
2409522389 Some more debugger fixes.
Added AM_WRITEONLY as a shortcut for AM_WRITE(MWAx_RAM).

Cleaned up Kangaroo driver:
 * documented MB8841 (needs to be decapped to get code)
 * proper video timing
 * full memory maps
 * simplified and more accurate video logic
2008-02-03 00:52:20 +00:00
Luca Elia
fbe8745472 - New game: Puzzlet (NOT_WORKING)
- Added some instructions to the H8/30xx CPU:
  or.l ERs, ERd
  rotl/shal.l ERd
  not.l/neg.l ERd
  exts.w Rd
  sub/or/xor.l #Imm:32, ERd
  bset/bnot/bclr.b Rn, @ERd
  bst/bist.b #Imm:3, @ERd
  bnot.b #Imm:3, @ERd

- Added H8/3007 & H8/3044 variants with their memory maps.
  Preliminary implementation of the H8/3007 timers.
  (a make clean is required)

P.S.
I've moved the docs we have in docs/cpu/H8-30xx and added a couple more.
Roms are in roms/current/p/puzzlet.zip
2008-02-02 22:36:24 +00:00
Brian Troha
5eaaf398e9 Reparent In LockOn
Changed Rev E to be the parent as it's a later revision the Rev C ;-)
2008-02-02 21:23:08 +00:00
Brian Troha
cf25490b4c adds dip locations to LockOn 2008-02-02 21:15:58 +00:00
Andrew Gardner
48224e34c6 Adds Progressive Music Trivia (Question Set 4) dumped by www.softwarethis.com.
Nothing too noteworthy about the addition - just a few new question sets.

Softwarethis.com does, however, have some screen shots of a board running.  These show that the palette in MAME is slightly off (blue->green, magenta->yellow, etc).  The palette code is currently using naughtyb's PALETTE_INIT which I'm a little chicken to play with at the moment.  I have therefore posted a message on MAMEtesters for the addition of this bug to the database.

ROMs are uploaded to /roms/p/promutrc.zip.
2008-02-02 18:31:42 +00:00
Zsolt Vasvari
3f37fbeef2 - Removed colortable
- Renamed some sets in cclimber:
    Crazy Kong -> Crazy Kong Part II
    rpatrolo -> rpatrol
2008-02-02 14:09:27 +00:00
Aaron Giles
aa16ee779d Changed debugger-related code to be based off a new makefile define (DEBUGGER) which sets
a new compile-time define (ENABLE_DEBUGGER). This means that MAME_DEBUG no longer means
"enable debugger", it simply enables debugging features such as assertions and debug code
in drivers.

Also removed the various levels of opbase protection in memory.h and always just turned 
on full bounds checking.

Fixed build break due to missing ampoker.lay -> ampoker2.lay renaming.
2008-02-02 08:57:39 +00:00
Zsolt Vasvari
2df389a77d Added missing Lock-On crystal 2008-02-02 04:03:37 +00:00
Zsolt Vasvari
03510c0a11 - Removed color table
- Renamed driver to ampoker.c
- Removed cubeqst.o from makefile.  Not sure what it is, but there is so such driver
2008-02-02 04:02:42 +00:00
Zsolt Vasvari
e52902f9ea Color table removal 2008-02-02 03:39:19 +00:00
Phil Bennett
6696fe197c * Improved Lock-On by a fair bit and added an alternate set.
* Added POLL input handling to the NEC V20/V30 core.
2008-02-02 02:19:24 +00:00
Brian Troha
2466ba64fe minor clean up / info correction
added dip locations to Tetris Plus 2 (both sets)
2008-02-01 23:08:12 +00:00
Brian Troha
8aa3bc2674 WIP name change... fixes issue with CAPs in the rom name 2008-02-01 22:00:20 +00:00
Aaron Giles
174ae58559 yard -> m58 2008-02-01 15:44:19 +00:00
Aaron Giles
b8997f5e04 A little more cleaning in the irem games. 2008-02-01 15:42:55 +00:00
Zsolt Vasvari
7d30fb91df This wasn't ready yet. Reversing 2008-02-01 15:07:12 +00:00
Zsolt Vasvari
dea8c5257d Another batch of drivers getting their colortable removed 2008-02-01 15:06:05 +00:00
Aaron Giles
a1e1f436b4 Updated mpatrol to use resnet for colors. 2008-02-01 06:30:30 +00:00
Zsolt Vasvari
7f838521bf - Converted all games to use the colortable table
- Fixed ancient cloud layer transparency glitch in 1943
- Corrected colors in Gyruss and Got-Ya.  Neither had a pure white and Gyruss was missing a pull-down resistor as well
2008-02-01 02:16:45 +00:00
stephh
80e066940c Added a few more notes about some games. 2008-02-01 01:52:19 +00:00
Zsolt Vasvari
75e7fdd1af - Circus Charlie, Champion Base Ball and Fire Battle use the colortable object to get rid of TRANSPARENT_COLOR
- resnet usage in Circus Charlie and Champion Base Ball. Finally a pure white in circusc, after all these years
2008-02-01 01:05:23 +00:00
davidhay
e7a2e72273 now loads (hopefully) correct gfx / sound roms -- will check + add ms32 version to ms32 driver soon. 2008-02-01 01:04:51 +00:00
Brian Troha
5f55ac631b Corrected rom names and added some info from an old zip I found :-P 2008-01-31 22:02:32 +00:00
Aaron Giles
63eae52c38 Updated williams driver to use VIDEO_UPDATE_SCANLINE.
(Most bitmap-based drivers should.)
Converted to 32bpp to catch mid-screen palette tweaks.
Removed some unnecessary read/write handlers.
2008-01-31 17:52:36 +00:00
Zsolt Vasvari
7489a81c2f Emulates the 3 vs 4-bit difference between the MC3417 and MC3418 variants 2008-01-31 10:22:30 +00:00
Zsolt Vasvari
8ec0aae886 - Source code reorganization to make it easier to add MC3417/18 audio chips
- Made some unneccassarily public functions static
2008-01-31 09:47:37 +00:00
stephh
9eec539323 Tried to clean the rockola.c driver "a la Aaron" (please have a look and feel free to rename it now).
Fixed Dip Switches for all games. Inputs might be checked for 'fantasy*' and 'pballoon' to see if there are no debug buttons. as for 'nibbler'.
Added notes about some games at the top of the file. They aren't complete, but it's enough to be included in next release.

It's almost my first attempt to look at M6502 games, so I hope I haven't made too many mistakes ...
2008-01-31 07:17:17 +00:00
Zsolt Vasvari
2595e5758a - Correct colors in Birdie King 3 -- just needed a new dump from the Guru
- Fixed incorrect ROM name
- Switched color decoding to use the resnet code
2008-01-31 06:39:35 +00:00
Zsolt Vasvari
043af3f608 Removed no longer applicable to-do item 2008-01-31 02:53:01 +00:00
Zsolt Vasvari
f65f3077b0 - Fixes reset crashes in all Z180 games. Not sure if there is a bug ID for this
- Removed the various busy loop and non-exact optimzations from the Z180 core
2008-01-31 02:27:44 +00:00
Zsolt Vasvari
242b08c930 Readded accidentaly deleted line -- sorry about that 2008-01-31 01:00:45 +00:00
Zsolt Vasvari
887823ae97 - Added 73.728MHz crystal to xtal.h
- Added clock #define's to 20pacgal.c
- Minor formatting clean-up
2008-01-31 00:50:52 +00:00
Brian Troha
3a5232a03c added a port locations to a few more games.
fixed a few other minor things.
2008-01-30 23:38:40 +00:00
Brian Troha
5a9be1f90f Note about the CPU & OSC used _NO_ other changes 2008-01-30 22:24:30 +00:00
Aaron Giles
ebb34351e4 Take advantage of attotime_div. 2008-01-30 17:44:14 +00:00
Aaron Giles
d90d36b49f Added stream_get_sample_rate(), stream_get_time(), and stream_get_sample_period().
These functions are not really tested yet -- make sure they give reasonable results when first used!
Updated streams.h header to latest core style.
2008-01-30 17:18:29 +00:00
Aaron Giles
18241e1a36 Oops, forgot to remove static variable. 2008-01-30 16:48:23 +00:00
Aaron Giles
4a312b9176 Added new option VIDEO_UPDATE_SCANLINE, which cases VIDEO_UPDATE to be called for every visible scanline.
Removed manual implementation of this in timeplt, in favor of using the new flag.
There are probably many more drivers that can leverage this.
2008-01-30 16:34:29 +00:00
Aaron Giles
052a638e8f Minor cleanup, merging of memory maps. What a disaster. 2008-01-30 15:55:57 +00:00
Zsolt Vasvari
f56ae95d27 - Removed color PROM -- uses TRANSPARENCY_PENS instead of TRANSPARENCY_COLOR as per Aaron's instruction
- Hooked up palette bank selector from schematics, though I am not sure if it is actually used by the code
- Changed set names to match title screen, which is why baseball is spelt as "Base Ball"
2008-01-30 00:47:51 +00:00
Brian Troha
bc0696ade1 Added dip locations to about half the games... will finish the rest soonish
corrected recent submission for dip locs as well
2008-01-30 00:10:58 +00:00
Brian Troha
745f556cf2 fix minor issue with dip locations for unused dips. 2008-01-29 23:35:30 +00:00
Aaron Giles
19dc5dba41 Moved cpu_getiloops() and cpu_scalebyfcount() to deprecat.h.
Added #include "deprecat.h" where necessary to make this happen.
Cleaned up cpuexec.c/.h to latest core style.
Cleaned up implementation of extended INP header in inptport.c.
Removed external access to cycles_currently_ran().
Replaced use of cycles_currently_ran() in v9938 code with mame_rand(), since that is effectively the same thing. :)
2008-01-29 23:27:24 +00:00
Zsolt Vasvari
ef7452b852 Removed memory_region[]() construct 2008-01-29 23:22:53 +00:00
R. Belmont
dfccbbc479 Further improvements to SCSP FM (kingshriek). 2008-01-29 21:36:02 +00:00
Aaron Giles
dbf80b011c Removed distinction between *_gettotalcycles() and *_gettotalcycles64().
All functions now return 64-bit results.
Updated all call sites appropriately.
2008-01-29 19:35:27 +00:00
Aaron Giles
acd05b666f From: RansAckeR [mailto:RansAckeR@pandora.be]
Subject: 1942.c 1943.c segas16a.c segas16b.c system16.c DIPs

Made some minor improvements to 1942.c & 1943.c DIPs.
Improved segas16a.c, segas16b.c & system16.c DIPs and added DIP
locations from manuals.
2008-01-29 19:34:43 +00:00
stephh
c3527446e4 Fixed some games descriptions (mainly when "set 1" was missing).
Aligned some GAME definitions.
2008-01-29 19:19:55 +00:00
Aaron Giles
dc7e9bba99 Further code cleanup.
Flipped Pooyan so it behaves more like Time Pilot.
Fixed Time Pilot sprite offset.
Changed tutankhm video rendering to be destination-based.
2008-01-29 18:47:28 +00:00
Aaron Giles
b7c8c89e4e From: Mamesick [mailto:mamesick@libero.it]
Subject: Fixed MAME Testers bug STRAHL0122u6YEL

Hello. Attached diff fixes the bug STRAHL0122u6YEL. Sprites are simply 
allocated in a different memory range from all other nmk16 games.
Regards.
2008-01-29 16:44:47 +00:00
Aaron Giles
4fca4e6535 From: Luis Faria [mailto:luis.faria@gmail.com]
Subject: Update for galpani2 driver

Hi,
Here's a small update for gals panic 2, the diff is made against 122u7.
I've resolved all unknown dips according to kaneko's docs, unified
memory maps of both CPUs and repositioned a pair of graphic ROMS.
Regards,
LFaria
2008-01-29 16:43:01 +00:00
Aaron Giles
381fe1f9b8 From: JEA Wallace [mailto:jeaw100@york.ac.uk]
Subject: AGEMAME upstream patches for u8/0.123

I thought I'd push a few minor coding improvements in now, while I still

have something resembling free time.

Firstly, I've made a few changes to the 6840 interrupt handling, to be 
more like that in the 6821 driver, and to hopefully reduce the IRQ 
swamping that could occur using the old setup. In the process, I've 
added the 6840 IRQ handler to the wire-OR in the MPU4 driver, as that's 
what the schematic shows (there's just one track for each interrupt 
class, all the way down the PCB to the cartridge loading point). Since I

was looking at that, I made MPU4 games that didn't use a CRT as 
screenless as they can get at present, and altered the logging options 
to avoid a redefinition issue if you wanted the core and driver portions

to log at different levels.

Scorpion 2 has also been altered to match the MPU4 coding style, where 
proper handlers re now included for the stepper motor data, which can 
then be expanded on in AGEMAME.
2008-01-29 16:40:41 +00:00
Aaron Giles
839029d302 From: Dirk Best
the latest changes in MAME 0.122u7 broke the screenless systems in
MESS. The attached patch fixes this.
2008-01-29 16:37:58 +00:00
Zsolt Vasvari
bd18da7d71 Removes color table from Centipede and related games 2008-01-29 13:50:12 +00:00
Zsolt Vasvari
faa995111f Color table removal -- a couple of more involved ones 2008-01-29 06:41:04 +00:00
Aaron Giles
05da1d9ec9 Cleaned up pooyan driver. Save states, full memory maps, proper NMI generation, etc.
Also added proper NMI generation to Time Pilot.
2008-01-29 05:58:38 +00:00
Zsolt Vasvari
274235aef1 - Removed color table from a couple of games
- Renamed bking2 to bking
2008-01-29 02:50:12 +00:00
Zsolt Vasvari
2a63836833 Removes color table 2008-01-29 02:15:27 +00:00
Aaron Giles
f394a31d0e Cleaned up Time Pilot sound board implementation:
* full memory maps
 * partial machine driver removes need for replicating filtering logic
 * updated all relevant drivers

Cleaned up Time Pilot and Tutankham drivers:
 * correct clocks where possible
 * merged memory maps
 * fully decoded memory maps
 * replaced hacky sprite rendering in Time Pilot with partial updates
 * save state support
 * removed Power Surge kludge, replaced with unmapped handler control
 * Tutankham runs at 60fps, with IRQs every other frame
 * Proper IRQ ack in Tutankham
2008-01-29 02:14:44 +00:00
Brian Troha
04dc9d1025 Verified the sound roms for Rock'n 3 and added proper names.
Added PCB layout for sound rom board only
2008-01-28 23:31:01 +00:00
Luca Elia
6df2f99e7f - Added "Wheels Runner"
- Merged memory maps

roms are in current/w/wheelrun.zip (with the PCB picture)
2008-01-28 23:06:06 +00:00
Aaron Giles
06d83c8ba6 From: RansAckeR [mailto:RansAckeR@pandora.be]
Subject: proper fix for stadhero0122u3gra

Fixes Demo Sound DIP.

---

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: system1.c dips / wboy3_0119u3gra fix

Fixed wboy and chplft DIPs according to manuals and added diplocations.

Also fixes wboy3_0119u3gra:

"Clone wboy3: In this clone, you get 2 lives less than indicated in the 
dipsw menu. So, instead of 3, 4, 5 (or infinite) lives, you respectively
get 1, 2, 3 (or infinite)." 

---

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: fix for zerohour0122u6gra

Fixed Bonus_Life DIP values.

You might want to adjust the example in 
http://mamedev.org/devwiki/index.php/DIP_Switches_in_MAME accordingly. 

---

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: seta.c DIP locations

Added dip locations from manuals for extdwnhl and zingzip.

---

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: zaxxon.c dip fixes

Improved DIP switches for zaxxon and congo from manuals and added dip 
locations. 

---

From: RansAckeR [mailto:RansAckeR@pandora.be] 
Subject: rockola.c dip fixes

Improved DIP switches for vanguard, zarzon & nibbler and added dip
locations according to manuals. 

---

From: RansAckeR
Subject: sega80r.c yard.c kaneko16.c DIP improvements

Improvements to sega80r.c, yard.c & kaneko16.c DIPs.
Added DIP locations to yard.c and kaneko16.c.
2008-01-28 22:44:18 +00:00
Phil Bennett
8b448b7b3d * Removed non-existent, second M6295 from Hit the Ice. Fixes missing sounds (e.g. team select screen).
* Hit the Ice/Violence Fight now share the same sound CPU memory maps.
2008-01-28 19:40:55 +00:00
Zsolt Vasvari
2950f78b45 Removed the color table from a couple of drivers. Just want to make sure this is the right way before continuing. 2008-01-28 13:28:07 +00:00
Zsolt Vasvari
354acd5f1b - Removed TRANSPARENCY_NONE_RAW, TRANSPARENCY_PENS_RAW and TRANSPARENCY_PEN_TABLE_RAW as they were no
longer used.  Source needs to be recompiled because of the changed enum.

- Changed copybitmap and copyscrollbitmap:

  There are now 2 versions of each, one without and with transparency:

  void copybitmap(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy, int sx,int sy,const rectangle *clip);
  void copybitmap_trans(mame_bitmap *dest,mame_bitmap *src,int flipx,int flipy, int sx,int sy,const rectangle *clip, pen_t transparent_pen);
  void copyscrollbitmap(mame_bitmap *dest,mame_bitmap *src, nt rows,const int *rowscroll,int cols,const int *colscroll, const rectangle *clip);
  void copyscrollbitmap_trans(mame_bitmap *dest,mame_bitmap *src, int rows,const int *rowscroll,int cols,const int *colscroll, const rectangle *clip, pen_t transparent_pen);

  The version without _trans is the equivalent of the old TRANSPARENCY_NONE,  The *_trans version is the equivalent
  of the old TRANSPARENCY_PEN.  The old TRANSPARENCY_COLOR mode is done via calling *_trans version and passing in
  the pen that has been looked up via machine->pens[].
  So for example, copybitmap(..., TRANSPARENCY_COLOR, 0) becomes
  copybitmap_trans(..., machine->pens[0])

- Changed all drivers to the new calls.  Suprising how few drivers still use these functions.
  Most have still not been converted to tilemaps, or they are still writing to a tmpbitmap
  which gets copied over to the real bitmap in VIDEO_UPDATE.

- Changed machine->screen[0].visarea to 'cliprect' where appropriate.
2008-01-28 13:02:04 +00:00
Zsolt Vasvari
e424adb362 - Driver clean-up, including driver state
- Tried improving on the ROM mirroring, without any success.  Maybe somebody could look into it -- right now it requires all kinds of trickery and even a memcpy ;)  All I know is that everything that's there right now is needed otherwise either the game fails the ROM test, or Galaga crashes
2008-01-28 06:06:27 +00:00
Aaron Giles
340d21a577 mpatrol -> m52
troangel -> m57
2008-01-28 00:07:18 +00:00
Aaron Giles
395e08814b Turns out not all Irem sound boards are identical.
Properly tagged m52 and m62 sound boards, plus variants.
Updated all connected drivers.
Merged memory maps.
Proper video timing in 10 yard fight.
Converted troangel to tilemaps.
Moved definitions to header files.
2008-01-28 00:05:08 +00:00
Couriersud
06cf28a0e6 build environment:
* added checks for CROSS_BUILD=1 to omit building m68kmake.exe, verinfo.exe, png2bdc.exe and file2str
* enables building mame using mingw on linux
2008-01-27 20:19:32 +00:00
Nicola Salmoria
65444cb34f Replaced tables with equations in the Sega C2 driver 2008-01-27 13:57:05 +00:00
Andrew Gardner
72cd87c470 Heh. Forgot an important flag. 2008-01-27 08:07:20 +00:00
Zsolt Vasvari
10b4ed5a2d Removes TRANSPARENCY_BLEND completely and TRANSPARENCY_BLEND_RAW as an option to copybitmap. Source tree needs to be recompiled as the transparancy mode enum has changed. 2008-01-27 07:48:31 +00:00
Zsolt Vasvari
07410a78d8 Forgot to check this in earlier 2008-01-27 07:41:18 +00:00
Zsolt Vasvari
e0c828ed0c - Simplified video code
- Adjusted some set names
2008-01-27 07:37:48 +00:00
Brian Troha
4597e29af4 cut & paste error for MASK rom size & type 2008-01-27 05:05:37 +00:00
Brian Troha
f7a042d934 adds PCB layouts for Penguin Bros & Puzzle De Bowling based on Hi-res pics
Corrects 68301 base clock as 50MHz / 3 (16.66666MHz) as all the Seta2 hardware has a 50MHz OSC.
Secondary OSC are for other chips (28MHz and or 32.53047MHz)
2008-01-27 04:41:50 +00:00
Zsolt Vasvari
1d0d95dcc0 Forgot to implement screen flipping -- duh 2008-01-27 04:33:43 +00:00
Andrew Gardner
777f10fff8 Adds Galaxy Games multi-system dumped by www.softwarethis.com.
This purely a skeleton driver.  Someone who knows anything about the m68k will likely be able to make great progress with this one.

"Galaxy Games" is a trackball-based, cocktail, multi-game cab released in 1998.  It has 7 games built into the BIOS, but can also take 4 cartridges.  Namco apparently licensed some software to the company who makes it (two player simultaneous Ms. Pac Man - using trackballs?!).

The company's webpage is here:  http://www.cesgames.com/

They also have ROMs for their Classic Collection games available for download.  There's no information about the Classic Collection hardware, but I'm guessing it's very similar to the Galaxy Games hardware.  These can be likely added at a later date.

It looks like the softwarethis.com fellow has a Namco cart, but was unable to dump the ROMs?

BIOS ROMs are uploaded to /roms/g/galgbios.zip and Wiki is updated with skeleton status.
2008-01-27 04:04:04 +00:00
Zsolt Vasvari
85636e6f54 Simplifies the video code 2008-01-27 04:00:23 +00:00
Couriersud
5c8a08ce3c m62.c:
* fixed wrong resistor value (22K to 2.2K) - verified on spelunkr and kidniki hires pcb pictures
* Changed resistor network calculation based on assumption that cs line is active either on tiles or sprites color prom.
2008-01-27 00:53:25 +00:00
Brian Troha
34c714b281 adds more NAOMI BIOS dumps 2008-01-26 17:57:33 +00:00
davidhay
c7a929b2ae Let's at least display the correct clock in the driver info. 2008-01-26 14:23:25 +00:00
Zsolt Vasvari
e3df2f0f54 - Changed video code to directly manipulate the game bitmap
- Background smoothing now happens at the same time as the background is drawn
- Our smoothing PROMs are half the size shown on the schamatics.  The schematics shows A8-A10 connected, indicating 8 different smoothing tables.  Our dumps are only 0x400 bytes long, half the size they should be.  I marked them BAD_DUMP and the game IMPERFECT_GRAPHICS
2008-01-26 13:58:31 +00:00
Zsolt Vasvari
f3f249af3f Fixed compilation when X86_MIPS3_DRC is not defined 2008-01-25 23:55:28 +00:00
Jim Stolis
6c582352b6 Corrected previous timer fix to use more accurate IE SFRs. 2008-01-25 22:14:46 +00:00
Couriersud
b56271d5c9 ppc.c:
* Fixes DEBUG=1 build - adds include deprecat.h
2008-01-25 21:42:28 +00:00
Couriersud
3033986d2c mario.c:
* fixes crash in masao

Proposal:
move videoram & spriteram to deprecat.h
2008-01-25 20:48:43 +00:00
Zsolt Vasvari
b4cc7b0021 Removes TRANSPARENCY_NONE case from copybitmap_core, which can never happen 2008-01-25 16:35:16 +00:00
Zsolt Vasvari
596635241a - Removes copybitmap_remap and copyscrollbitmap_remap, neither which was used by anybody
- Removes some obsolete commented out code
- Fixed up some comments
2008-01-25 16:22:26 +00:00
Zsolt Vasvari
4b6ceec3f9 Simplifies Star Fire driver 2008-01-25 16:15:40 +00:00
Zsolt Vasvari
4930b2dbfd - Added deprecat.h that contains some deprecated/discouraged contructs (see below)
The idea is to create extra work if a driver wants to use these and hopefully
  gives an incentive to look for an alternate solution
- Added #include of deprecat.h that rely on these contructs
- Removed a bunch of unneccassary #include's from these files
2008-01-25 09:30:43 +00:00
Aaron Giles
877b75ad75 Cleanups and version bump to 0.122u7. 2008-01-25 06:17:54 +00:00
Aaron Giles
97cf740a23 From: roberto zandonà
Subject: risky challenge another opcode and unencryted routine

now the game boot with the intro animation
2008-01-25 03:01:57 +00:00
Aaron Giles
bbffc81785 From: roberto zandonà [mailto:robiza71@tin.it]
Subject: Fw: fix for toki060gre

please credits the fix to robiza and Corrado Tomaselli
2008-01-25 03:00:28 +00:00
Aaron Giles
2b0c136968 From: Wilbert Pol [mailto:w.pol@tiscali.nl]
Subject: z80gb cpu core patch

Changes:
- Small timing fixes when leaving HALT state.
- Fixed bug in retrieving Z80GB_SPEED pseudo register.

--

From: Wilbert Pol [mailto:wilbert@jdg.info] 
Subject: Re: timer_set_global_time patch

This patch for the z80gb cpu core also fixes my problems without the  
need to recode a lot of things:
- Split the execution of an instruction into separate fetch and  
execute phase.
2008-01-25 02:59:21 +00:00
Jim Stolis
9249191b8b Removed all memory hacks and game specific DRIVER_INIT. There are now just two DRIVER_INIT, one for normal boards and one for superboards.
Temporarily disabled AutoHold Cheat but documented addresses for future update.
2008-01-25 00:54:05 +00:00
Andrew Gardner
c930b5a187 Adds second set of Trivial Pursuit Genus 1 to balsente.c.
ROMs were downloaded from softwarethis.com and uploaded to /roms/current/t

Same program roms, but 20% of questions are different from Genus 1 set 1.
2008-01-24 16:26:48 +00:00
Zsolt Vasvari
b460e5cf43 Fix for broken xtal.h 2008-01-24 15:35:44 +00:00
Aaron Giles
ae72e423a6 From: Corrado Tomaselli [mailto:corrado.to@tiscali.it]
Subject: other frequencies verified

Corrected Diet gogo h6280 clock so that it behaves correctly with
Charles Macdonald fix to the cpu core.
Verified anc corrected frequencies and pin 7 okim6295 on the following
games:
The new zealand story (3 z80 version), Trio The punch, Vandyke,
paradise.c games, Downtown, Shaolin's Road and Twins.
Updated Xtal.h with 1.056mhz resonator from Trio the punch
2008-01-24 14:29:06 +00:00