From: Atari Ace [mailto:atari_ace@verizon.net]

Sent: Sunday, December 07, 2008 9:43 AM
To: submit@mamedev.org
Cc: atariace@hotmail.com
Subject: [patch] Introduce KONAMI_SETLINES_CALLBACK

Hi mamedev,

Aaron indicated the KONAMI_SETLINES_CALLBACK change from my previous
patch overlapped with work already committed but was otherwise a
desired change, so this patch submits just that change relative to the
committed work.

~aa
This commit is contained in:
Aaron Giles 2008-12-08 05:03:46 +00:00
parent bb2061763c
commit 65f9ee3d3a
12 changed files with 23 additions and 21 deletions

View File

@ -20,6 +20,8 @@ enum
CPUINFO_PTR_KONAMI_SETLINES_CALLBACK = CPUINFO_PTR_CPU_SPECIFIC
};
#define KONAMI_SETLINES_CALLBACK(name) void name(const device_config *device, int lines)
#define KONAMI_IRQ_LINE 0 /* IRQ line number */
#define KONAMI_FIRQ_LINE 1 /* FIRQ line number */

View File

@ -13,7 +13,7 @@
static MACHINE_RESET( 88games );
static void k88games_banking( const device_config *device, int lines );
static KONAMI_SETLINES_CALLBACK( k88games_banking );
static UINT8 *ram;
static UINT8 *banked_rom;
@ -468,7 +468,7 @@ ROM_END
static void k88games_banking( const device_config *device, int lines )
static KONAMI_SETLINES_CALLBACK( k88games_banking )
{
UINT8 *RAM = memory_region(device->machine, "main");
int offs;

View File

@ -15,7 +15,7 @@ Preliminary driver by:
/* prototypes */
static MACHINE_RESET( aliens );
static void aliens_banking( const device_config *device, int lines );
static KONAMI_SETLINES_CALLBACK( aliens_banking );
VIDEO_START( aliens );
@ -480,7 +480,7 @@ ROM_END
***************************************************************************/
static void aliens_banking( const device_config *device, int lines )
static KONAMI_SETLINES_CALLBACK( aliens_banking )
{
UINT8 *RAM = memory_region(device->machine, "main");
int offs = 0x18000;

View File

@ -26,7 +26,7 @@ found it.
/* prototypes */
static MACHINE_RESET( blockhl );
static void blockhl_banking( const device_config *device, int lines );
static KONAMI_SETLINES_CALLBACK( blockhl_banking );
VIDEO_START( blockhl );
@ -288,7 +288,7 @@ ROM_END
***************************************************************************/
static void blockhl_banking( const device_config *device, int lines )
static KONAMI_SETLINES_CALLBACK( blockhl_banking )
{
UINT8 *RAM = memory_region(device->machine, "main");
int offs;

View File

@ -20,7 +20,7 @@ Dip locations verified with manual (US)
/* prototypes */
static MACHINE_RESET( crimfght );
static void crimfght_banking( const device_config *device, int lines );
static KONAMI_SETLINES_CALLBACK( crimfght_banking );
VIDEO_START( crimfght );
VIDEO_UPDATE( crimfght );
@ -414,7 +414,7 @@ ROM_END
***************************************************************************/
static void crimfght_banking( const device_config *device, int lines )
static KONAMI_SETLINES_CALLBACK( crimfght_banking )
{
UINT8 *RAM = memory_region(device->machine, "main");
int offs = 0;

View File

@ -15,7 +15,7 @@ Preliminary driver by:
/* prototypes */
static MACHINE_RESET( gbusters );
static void gbusters_banking( const device_config *device, int lines );
static KONAMI_SETLINES_CALLBACK( gbusters_banking );
extern int gbusters_priority;
@ -413,7 +413,7 @@ ROM_START( crazycop )
ROM_END
static void gbusters_banking( const device_config *device, int lines )
static KONAMI_SETLINES_CALLBACK( gbusters_banking )
{
UINT8 *RAM = memory_region(device->machine, "main");
int offs = 0x10000;

View File

@ -14,7 +14,7 @@ driver by Nicola Salmoria
/* prototypes */
static MACHINE_RESET( parodius );
static void parodius_banking( const device_config *device, int lines );
static KONAMI_SETLINES_CALLBACK( parodius_banking );
VIDEO_START( parodius );
VIDEO_UPDATE( parodius );
@ -380,7 +380,7 @@ ROM_END
***************************************************************************/
static void parodius_banking(const device_config *device, int lines)
static KONAMI_SETLINES_CALLBACK( parodius_banking )
{
UINT8 *RAM = memory_region(device->machine, "main");
int offs = 0;

View File

@ -15,7 +15,7 @@ driver by Nicola Salmoria
/* prototypes */
static MACHINE_RESET( rollerg );
static void rollerg_banking( const device_config *device, int lines );
static KONAMI_SETLINES_CALLBACK( rollerg_banking );
VIDEO_START( rollerg );
VIDEO_UPDATE( rollerg );
@ -329,7 +329,7 @@ ROM_END
***************************************************************************/
static void rollerg_banking( const device_config *device, int lines )
static KONAMI_SETLINES_CALLBACK( rollerg_banking )
{
UINT8 *RAM = memory_region(device->machine, "main");
int offs = 0;

View File

@ -15,7 +15,7 @@ driver by Nicola Salmoria
/* prototypes */
static MACHINE_RESET( surpratk );
static void surpratk_banking( const device_config *device, int lines );
static KONAMI_SETLINES_CALLBACK( surpratk_banking );
VIDEO_START( surpratk );
VIDEO_UPDATE( surpratk );
@ -324,7 +324,7 @@ ROM_END
***************************************************************************/
static void surpratk_banking(const device_config *device, int lines)
static KONAMI_SETLINES_CALLBACK( surpratk_banking )
{
UINT8 *RAM = memory_region(device->machine, "main");
int offs = 0;

View File

@ -16,7 +16,7 @@ K052591 emulation by Eddie Edwards
static MACHINE_RESET( scontra );
static MACHINE_RESET( thunderx );
static void thunderx_banking(const device_config *device, int lines);
static KONAMI_SETLINES_CALLBACK( thunderx_banking );
extern int scontra_priority;
VIDEO_START( scontra );
@ -1019,7 +1019,7 @@ ROM_END
/***************************************************************************/
static void thunderx_banking( const device_config *device, int lines )
static KONAMI_SETLINES_CALLBACK( thunderx_banking )
{
UINT8 *RAM = memory_region(device->machine, "main");
int offs;

View File

@ -95,7 +95,7 @@ Notes:
/* prototypes */
static MACHINE_RESET( vendetta );
static void vendetta_banking( const device_config *device, int lines );
static KONAMI_SETLINES_CALLBACK( vendetta_banking );
static void vendetta_video_banking( running_machine *machine, int select );
VIDEO_START( vendetta );
@ -774,7 +774,7 @@ ROM_END
***************************************************************************/
static void vendetta_banking( const device_config *device, int lines )
static KONAMI_SETLINES_CALLBACK( vendetta_banking )
{
UINT8 *RAM = memory_region(device->machine, "main");

View File

@ -114,7 +114,7 @@ READ8_HANDLER( simpsons_sound_r )
***************************************************************************/
static void simpsons_banking( const device_config *device, int lines )
static KONAMI_SETLINES_CALLBACK( simpsons_banking )
{
memory_set_bank(device->machine, 1, lines & 0x3f);
}