diff --git a/src/emu/cpu/konami/konami.h b/src/emu/cpu/konami/konami.h index c20b7806a1b..47d898e0677 100644 --- a/src/emu/cpu/konami/konami.h +++ b/src/emu/cpu/konami/konami.h @@ -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 */ diff --git a/src/mame/drivers/88games.c b/src/mame/drivers/88games.c index 5b8bbe8916b..7a7fc415798 100644 --- a/src/mame/drivers/88games.c +++ b/src/mame/drivers/88games.c @@ -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; diff --git a/src/mame/drivers/aliens.c b/src/mame/drivers/aliens.c index 0204fdb0b88..939d70f32cf 100644 --- a/src/mame/drivers/aliens.c +++ b/src/mame/drivers/aliens.c @@ -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; diff --git a/src/mame/drivers/blockhl.c b/src/mame/drivers/blockhl.c index 49b0c0cd241..7ef172ffa9d 100644 --- a/src/mame/drivers/blockhl.c +++ b/src/mame/drivers/blockhl.c @@ -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; diff --git a/src/mame/drivers/crimfght.c b/src/mame/drivers/crimfght.c index 330f2837a8c..ad288fdf076 100644 --- a/src/mame/drivers/crimfght.c +++ b/src/mame/drivers/crimfght.c @@ -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; diff --git a/src/mame/drivers/gbusters.c b/src/mame/drivers/gbusters.c index 2f077e49808..39399f3754e 100644 --- a/src/mame/drivers/gbusters.c +++ b/src/mame/drivers/gbusters.c @@ -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; diff --git a/src/mame/drivers/parodius.c b/src/mame/drivers/parodius.c index fef6d80736c..bee5d45584a 100644 --- a/src/mame/drivers/parodius.c +++ b/src/mame/drivers/parodius.c @@ -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; diff --git a/src/mame/drivers/rollerg.c b/src/mame/drivers/rollerg.c index b4f3a690f7e..89d7de5d8cf 100644 --- a/src/mame/drivers/rollerg.c +++ b/src/mame/drivers/rollerg.c @@ -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; diff --git a/src/mame/drivers/surpratk.c b/src/mame/drivers/surpratk.c index ab1f40ba084..8b0c50eb76a 100644 --- a/src/mame/drivers/surpratk.c +++ b/src/mame/drivers/surpratk.c @@ -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; diff --git a/src/mame/drivers/thunderx.c b/src/mame/drivers/thunderx.c index 0d53d8be3ab..1de481cc612 100644 --- a/src/mame/drivers/thunderx.c +++ b/src/mame/drivers/thunderx.c @@ -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; diff --git a/src/mame/drivers/vendetta.c b/src/mame/drivers/vendetta.c index 71c75dead38..2a48e83dae4 100644 --- a/src/mame/drivers/vendetta.c +++ b/src/mame/drivers/vendetta.c @@ -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"); diff --git a/src/mame/machine/simpsons.c b/src/mame/machine/simpsons.c index 85440200743..e78b1728dea 100644 --- a/src/mame/machine/simpsons.c +++ b/src/mame/machine/simpsons.c @@ -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); }