From 4976bd3d8b0437432c648dbccc363b1e62546286 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 12 Apr 2012 09:20:25 +0000 Subject: [PATCH] Remove color_prom parameter from PALETTE_INIT. Added code where necessary to fetch the color_prom directly. Made PALETTE_INIT into just another basic callback with an overridable palette_init() in the driver_device, and support for arbitrary member functions via MCFG_PALETTE_INIT_OVERRIDE. --- src/emu/driver.c | 29 +++++++++++------------ src/emu/driver.h | 47 ++++++++++++++++++++++++++++++++++--- src/emu/machine.h | 37 ----------------------------- src/emu/video/generic.c | 1 + src/emu/video/psx.c | 7 +++++- src/mame/drivers/5clown.c | 1 + src/mame/drivers/albazc.c | 1 + src/mame/drivers/amaticmg.c | 2 ++ src/mame/drivers/aristmk4.c | 1 + src/mame/drivers/avt.c | 1 + src/mame/drivers/blitz.c | 1 + src/mame/drivers/cardline.c | 1 + src/mame/drivers/carrera.c | 1 + src/mame/drivers/caswin.c | 1 + src/mame/drivers/chanbara.c | 1 + src/mame/drivers/cntsteer.c | 1 + src/mame/drivers/corona.c | 1 + src/mame/drivers/cyclemb.c | 1 + src/mame/drivers/dacholer.c | 1 + src/mame/drivers/ddayjlc.c | 1 + src/mame/drivers/dmndrby.c | 1 + src/mame/drivers/drw80pkr.c | 1 + src/mame/drivers/esh.c | 1 + src/mame/drivers/ettrivia.c | 1 + src/mame/drivers/fgoal.c | 1 + src/mame/drivers/fortecar.c | 1 + src/mame/drivers/goldnpkr.c | 3 +++ src/mame/drivers/istellar.c | 1 + src/mame/drivers/jangou.c | 1 + src/mame/drivers/jantotsu.c | 1 + src/mame/drivers/jollyjgr.c | 1 + src/mame/drivers/kingdrby.c | 1 + src/mame/drivers/koikoi.c | 1 + src/mame/drivers/looping.c | 1 + src/mame/drivers/m63.c | 1 + src/mame/drivers/marinedt.c | 1 + src/mame/drivers/meijinsn.c | 1 + src/mame/drivers/miniboy7.c | 1 + src/mame/drivers/mirax.c | 1 + src/mame/drivers/mogura.c | 1 + src/mame/drivers/mpu4vid.c | 1 + src/mame/drivers/murogmbl.c | 1 + src/mame/drivers/nightgal.c | 1 + src/mame/drivers/olibochu.c | 1 + src/mame/drivers/panicr.c | 1 + src/mame/drivers/peplus.c | 1 + src/mame/drivers/poo.c | 1 + src/mame/drivers/progolf.c | 1 + src/mame/drivers/quizo.c | 1 + src/mame/drivers/roul.c | 1 + src/mame/drivers/sbowling.c | 1 + src/mame/drivers/shougi.c | 1 + src/mame/drivers/skyarmy.c | 1 + src/mame/drivers/sub.c | 1 + src/mame/drivers/subsino.c | 2 ++ src/mame/drivers/supdrapo.c | 1 + src/mame/drivers/superdq.c | 1 + src/mame/drivers/tankbust.c | 1 + src/mame/drivers/tugboat.c | 1 + src/mame/drivers/videopkr.c | 3 +++ src/mame/drivers/wallc.c | 1 + src/mame/video/1942.c | 1 + src/mame/video/1943.c | 1 + src/mame/video/40love.c | 1 + src/mame/video/alpha68k.c | 2 ++ src/mame/video/ambush.c | 1 + src/mame/video/ampoker2.c | 1 + src/mame/video/appoooh.c | 2 ++ src/mame/video/bagman.c | 1 + src/mame/video/bankp.c | 1 + src/mame/video/baraduke.c | 1 + src/mame/video/bking.c | 1 + src/mame/video/bladestl.c | 1 + src/mame/video/bogeyman.c | 1 + src/mame/video/bosco.c | 1 + src/mame/video/brkthru.c | 1 + src/mame/video/btime.c | 2 ++ src/mame/video/calomega.c | 1 + src/mame/video/carjmbre.c | 1 + src/mame/video/carpolo.c | 1 + src/mame/video/cclimber.c | 4 ++++ src/mame/video/centiped.c | 1 + src/mame/video/chaknpop.c | 1 + src/mame/video/champbas.c | 2 ++ src/mame/video/cheekyms.c | 1 + src/mame/video/circusc.c | 1 + src/mame/video/clshroad.c | 2 ++ src/mame/video/combatsc.c | 2 ++ src/mame/video/compgolf.c | 1 + src/mame/video/contra.c | 1 + src/mame/video/cop01.c | 1 + src/mame/video/cosmic.c | 4 ++++ src/mame/video/cvs.c | 1 + src/mame/video/darkmist.c | 1 + src/mame/video/dday.c | 1 + src/mame/video/ddribble.c | 1 + src/mame/video/dec8.c | 1 + src/mame/video/digdug.c | 1 + src/mame/video/dkong.c | 5 ++++ src/mame/video/docastle.c | 1 + src/mame/video/dogfgt.c | 1 + src/mame/video/drmicro.c | 1 + src/mame/video/dynax.c | 1 + src/mame/video/equites.c | 2 ++ src/mame/video/espial.c | 1 + src/mame/video/exedexes.c | 1 + src/mame/video/exerion.c | 1 + src/mame/video/fastfred.c | 1 + src/mame/video/fastlane.c | 1 + src/mame/video/fcombat.c | 1 + src/mame/video/finalizr.c | 1 + src/mame/video/firetrap.c | 1 + src/mame/video/firetrk.c | 1 + src/mame/video/flower.c | 1 + src/mame/video/funkybee.c | 1 + src/mame/video/funworld.c | 1 + src/mame/video/fuukifg2.c | 1 + src/mame/video/galaga.c | 1 + src/mame/video/galaxian.c | 1 + src/mame/video/galaxold.c | 4 ++++ src/mame/video/galivan.c | 1 + src/mame/video/gaplus.c | 1 + src/mame/video/gberet.c | 1 + src/mame/video/gomoku.c | 1 + src/mame/video/gotya.c | 1 + src/mame/video/grchamp.c | 1 + src/mame/video/gridlee.c | 1 + src/mame/video/gsword.c | 3 +++ src/mame/video/gunsmoke.c | 1 + src/mame/video/gyruss.c | 1 + src/mame/video/hanaawas.c | 1 + src/mame/video/hcastle.c | 1 + src/mame/video/higemaru.c | 1 + src/mame/video/homedata.c | 4 ++++ src/mame/video/hyperspt.c | 1 + src/mame/video/ikki.c | 1 + src/mame/video/irobot.c | 1 + src/mame/video/ironhors.c | 1 + src/mame/video/jack.c | 1 + src/mame/video/jackal.c | 1 + src/mame/video/jailbrek.c | 1 + src/mame/video/karnov.c | 1 + src/mame/video/kchamp.c | 1 + src/mame/video/kingobox.c | 2 ++ src/mame/video/kncljoe.c | 1 + src/mame/video/kopunch.c | 1 + src/mame/video/labyrunr.c | 1 + src/mame/video/ladybug.c | 2 ++ src/mame/video/lasso.c | 2 ++ src/mame/video/liberate.c | 1 + src/mame/video/lockon.c | 1 + src/mame/video/lucky74.c | 1 + src/mame/video/lvcards.c | 2 ++ src/mame/video/m52.c | 1 + src/mame/video/m57.c | 1 + src/mame/video/m58.c | 1 + src/mame/video/m62.c | 4 ++++ src/mame/video/madalien.c | 1 + src/mame/video/magmax.c | 1 + src/mame/video/mainsnk.c | 1 + src/mame/video/mappy.c | 3 +++ src/mame/video/marineb.c | 1 + src/mame/video/mario.c | 1 + src/mame/video/markham.c | 1 + src/mame/video/matmania.c | 1 + src/mame/video/megasys1.c | 1 + src/mame/video/megazone.c | 1 + src/mame/video/mermaid.c | 2 ++ src/mame/video/mikie.c | 1 + src/mame/video/mouser.c | 1 + src/mame/video/mrdo.c | 1 + src/mame/video/mrjong.c | 1 + src/mame/video/munchmo.c | 1 + src/mame/video/mustache.c | 1 + src/mame/video/namcos86.c | 1 + src/mame/video/naughtyb.c | 1 + src/mame/video/nova2001.c | 1 + src/mame/video/ojankohs.c | 1 + src/mame/video/pacland.c | 1 + src/mame/video/pacman.c | 1 + src/mame/video/pandoras.c | 1 + src/mame/video/pastelg.c | 1 + src/mame/video/pcktgal.c | 1 + src/mame/video/phoenix.c | 3 +++ src/mame/video/pingpong.c | 1 + src/mame/video/pitnrun.c | 1 + src/mame/video/playch10.c | 1 + src/mame/video/polepos.c | 1 + src/mame/video/pooyan.c | 1 + src/mame/video/popeye.c | 2 ++ src/mame/video/popper.c | 1 + src/mame/video/portrait.c | 1 + src/mame/video/quasar.c | 1 + src/mame/video/rallyx.c | 2 ++ src/mame/video/redclash.c | 1 + src/mame/video/retofinv.c | 1 + src/mame/video/rockrage.c | 1 + src/mame/video/rocnrope.c | 1 + src/mame/video/rollrace.c | 1 + src/mame/video/sbasketb.c | 1 + src/mame/video/scotrsht.c | 1 + src/mame/video/seicross.c | 1 + src/mame/video/seta.c | 2 ++ src/mame/video/shangkid.c | 1 + src/mame/video/shaolins.c | 1 + src/mame/video/shootout.c | 1 + src/mame/video/sidepckt.c | 1 + src/mame/video/skyfox.c | 1 + src/mame/video/skykid.c | 1 + src/mame/video/snk.c | 1 + src/mame/video/snk6502.c | 2 ++ src/mame/video/snookr10.c | 2 ++ src/mame/video/sonson.c | 1 + src/mame/video/spdodgeb.c | 1 + src/mame/video/speedatk.c | 1 + src/mame/video/sprcros2.c | 1 + src/mame/video/srmp2.c | 2 ++ src/mame/video/ssozumo.c | 1 + src/mame/video/stactics.c | 1 + src/mame/video/stfight.c | 1 + src/mame/video/strnskil.c | 1 + src/mame/video/suprloco.c | 1 + src/mame/video/suprridr.c | 1 + src/mame/video/tagteam.c | 1 + src/mame/video/tankbatt.c | 1 + src/mame/video/tceptor.c | 1 + src/mame/video/terracre.c | 1 + src/mame/video/thedeep.c | 1 + src/mame/video/thepit.c | 2 ++ src/mame/video/timelimt.c | 1 + src/mame/video/timeplt.c | 1 + src/mame/video/tnzs.c | 1 + src/mame/video/toypop.c | 1 + src/mame/video/tp84.c | 1 + src/mame/video/trackfld.c | 1 + src/mame/video/travrusa.c | 2 ++ src/mame/video/trucocl.c | 1 + src/mame/video/tryout.c | 1 + src/mame/video/tubep.c | 2 ++ src/mame/video/tx1.c | 2 ++ src/mame/video/ultratnk.c | 1 + src/mame/video/vulgus.c | 1 + src/mame/video/wiping.c | 1 + src/mame/video/wiz.c | 1 + src/mame/video/xevious.c | 2 ++ src/mame/video/xorworld.c | 1 + src/mame/video/xyonix.c | 1 + src/mame/video/yiear.c | 1 + src/mame/video/zaccaria.c | 1 + src/mame/video/zaxxon.c | 1 + src/mame/video/zodiack.c | 1 + 251 files changed, 365 insertions(+), 56 deletions(-) diff --git a/src/emu/driver.c b/src/emu/driver.c index 19761f6e0cc..4dbe221a765 100644 --- a/src/emu/driver.c +++ b/src/emu/driver.c @@ -58,7 +58,6 @@ driver_device::driver_device(const machine_config &mconfig, device_type type, co m_generic_paletteram_32(*this, "paletteram"), m_generic_paletteram2_32(*this, "paletteram2"), m_system(NULL), - m_palette_init(NULL), m_latch_clear_value(0), m_flip_screen_x(0), m_flip_screen_y(0) @@ -119,18 +118,6 @@ void driver_device::static_set_callback(device_t &device, callback_type type, dr } -//------------------------------------------------- -// static_set_palette_init - set the legacy -// palette init callback in the device -// configuration -//------------------------------------------------- - -void driver_device::static_set_palette_init(device_t &device, palette_init_func callback) -{ - downcast(device).m_palette_init = callback; -} - - //------------------------------------------------- // driver_start - default implementation which // does nothing @@ -161,6 +148,16 @@ void driver_device::sound_start() } +//------------------------------------------------- +// palette_init - default implementation which +// does nothing +//------------------------------------------------- + +void driver_device::palette_init() +{ +} + + //------------------------------------------------- // video_start - default implementation which // calls to the legacy video_start function @@ -259,8 +256,10 @@ void driver_device::device_start() image_postdevice_init(machine()); // call palette_init if present - if (m_palette_init != NULL) - (*m_palette_init)(machine(), machine().region("proms")->base()); + if (!m_callbacks[CB_PALETTE_INIT].isnull()) + m_callbacks[CB_PALETTE_INIT](); + else + palette_init(); // start the various pieces driver_start(); diff --git a/src/emu/driver.h b/src/emu/driver.h index 32bcbc1af47..71d6daa18d8 100644 --- a/src/emu/driver.h +++ b/src/emu/driver.h @@ -81,7 +81,10 @@ // core video callbacks #define MCFG_PALETTE_INIT(_func) \ - driver_device::static_set_palette_init(*owner, PALETTE_INIT_NAME(_func)); \ + driver_device::static_set_callback(*owner, driver_device::CB_PALETTE_INIT, PALETTE_INIT_NAME(_func)); \ + +#define MCFG_PALETTE_INIT_OVERRIDE(_class, _func) \ + driver_device::static_set_callback(*owner, driver_device::CB_PALETTE_INIT, driver_callback_delegate(&_class::_func, #_class "::" #_func, downcast<_class *>(&config.root_device()))); #define MCFG_VIDEO_START(_func) \ driver_device::static_set_callback(*owner, driver_device::CB_VIDEO_START, VIDEO_START_NAME(_func)); \ @@ -97,12 +100,50 @@ +//************************************************************************** +// OTHER MACROS +//************************************************************************** + +// macros to wrap legacy callbacks +#define MACHINE_START_NAME(name) machine_start_##name +#define MACHINE_START(name) void MACHINE_START_NAME(name)(running_machine &machine) +#define MACHINE_START_CALL(name) MACHINE_START_NAME(name)(machine) + +#define MACHINE_RESET_NAME(name) machine_reset_##name +#define MACHINE_RESET(name) void MACHINE_RESET_NAME(name)(running_machine &machine) +#define MACHINE_RESET_CALL(name) MACHINE_RESET_NAME(name)(machine) + +#define SOUND_START_NAME(name) sound_start_##name +#define SOUND_START(name) void SOUND_START_NAME(name)(running_machine &machine) +#define SOUND_START_CALL(name) SOUND_START_NAME(name)(machine) + +#define SOUND_RESET_NAME(name) sound_reset_##name +#define SOUND_RESET(name) void SOUND_RESET_NAME(name)(running_machine &machine) +#define SOUND_RESET_CALL(name) SOUND_RESET_NAME(name)(machine) + +#define PALETTE_INIT_NAME(name) palette_init_##name +#define PALETTE_INIT(name) void PALETTE_INIT_NAME(name)(running_machine &machine) +#define PALETTE_INIT_CALL(name) PALETTE_INIT_NAME(name)(machine) + +#define VIDEO_START_NAME(name) video_start_##name +#define VIDEO_START(name) void VIDEO_START_NAME(name)(running_machine &machine) +#define VIDEO_START_CALL(name) VIDEO_START_NAME(name)(machine) + +#define VIDEO_RESET_NAME(name) video_reset_##name +#define VIDEO_RESET(name) void VIDEO_RESET_NAME(name)(running_machine &machine) +#define VIDEO_RESET_CALL(name) VIDEO_RESET_NAME(name)(machine) + + + //************************************************************************** // TYPE DEFINITIONS //************************************************************************** typedef delegate driver_callback_delegate; +// legacy callback functions +typedef void (*legacy_callback_func)(running_machine &machine); + // ======================> driver_device @@ -124,6 +165,7 @@ public: CB_MACHINE_RESET, CB_SOUND_START, CB_SOUND_RESET, + CB_PALETTE_INIT, CB_VIDEO_START, CB_VIDEO_RESET, CB_COUNT @@ -133,7 +175,6 @@ public: static void static_set_game(device_t &device, const game_driver &game); static void static_set_callback(device_t &device, callback_type type, legacy_callback_func callback); static void static_set_callback(device_t &device, callback_type type, driver_callback_delegate callback); - static void static_set_palette_init(device_t &device, palette_init_func callback); // generic helpers template @@ -317,6 +358,7 @@ protected: virtual void driver_start(); virtual void machine_start(); virtual void sound_start(); + virtual void palette_init(); virtual void video_start(); // helpers called at reset @@ -354,7 +396,6 @@ private: // internal state const game_driver * m_system; // pointer to the game driver - palette_init_func m_palette_init; // one-time palette init callback driver_callback_delegate m_callbacks[CB_COUNT]; // start/reset callbacks legacy_callback_func m_legacy_callbacks[CB_COUNT]; // legacy start/reset callbacks diff --git a/src/emu/machine.h b/src/emu/machine.h index 6dfb0033b41..d794e0100e4 100644 --- a/src/emu/machine.h +++ b/src/emu/machine.h @@ -110,37 +110,6 @@ const int DEBUG_FLAG_OSD_ENABLED = 0x00001000; // The OSD debugger is enabled // MACROS //************************************************************************** -// macros to wrap legacy callbacks -#define MACHINE_START_NAME(name) machine_start_##name -#define MACHINE_START(name) void MACHINE_START_NAME(name)(running_machine &machine) -#define MACHINE_START_CALL(name) MACHINE_START_NAME(name)(machine) - -#define MACHINE_RESET_NAME(name) machine_reset_##name -#define MACHINE_RESET(name) void MACHINE_RESET_NAME(name)(running_machine &machine) -#define MACHINE_RESET_CALL(name) MACHINE_RESET_NAME(name)(machine) - -#define SOUND_START_NAME(name) sound_start_##name -#define SOUND_START(name) void SOUND_START_NAME(name)(running_machine &machine) -#define SOUND_START_CALL(name) SOUND_START_NAME(name)(machine) - -#define SOUND_RESET_NAME(name) sound_reset_##name -#define SOUND_RESET(name) void SOUND_RESET_NAME(name)(running_machine &machine) -#define SOUND_RESET_CALL(name) SOUND_RESET_NAME(name)(machine) - -#define VIDEO_START_NAME(name) video_start_##name -#define VIDEO_START(name) void VIDEO_START_NAME(name)(running_machine &machine) -#define VIDEO_START_CALL(name) VIDEO_START_NAME(name)(machine) - -#define VIDEO_RESET_NAME(name) video_reset_##name -#define VIDEO_RESET(name) void VIDEO_RESET_NAME(name)(running_machine &machine) -#define VIDEO_RESET_CALL(name) VIDEO_RESET_NAME(name)(machine) - -#define PALETTE_INIT_NAME(name) palette_init_##name -#define PALETTE_INIT(name) void PALETTE_INIT_NAME(name)(running_machine &machine, const UINT8 *color_prom) -#define PALETTE_INIT_CALL(name) PALETTE_INIT_NAME(name)(machine, color_prom) - - - // NULL versions #define machine_start_0 NULL #define machine_reset_0 NULL @@ -191,12 +160,6 @@ typedef struct _debugcpu_private debugcpu_private; typedef struct _generic_machine_private generic_machine_private; -// legacy callback functions -typedef void (*legacy_callback_func)(running_machine &machine); -typedef void (*palette_init_func)(running_machine &machine, const UINT8 *color_prom); - - - // ======================> memory_region // memory region object; should eventually be renamed memory_region diff --git a/src/emu/video/generic.c b/src/emu/video/generic.c index decbaf495eb..18281e4016f 100644 --- a/src/emu/video/generic.c +++ b/src/emu/video/generic.c @@ -160,6 +160,7 @@ PALETTE_INIT( monochrome_green ) PALETTE_INIT( RRRR_GGGG_BBBB ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/emu/video/psx.c b/src/emu/video/psx.c index 705a7380655..1e6212337a7 100644 --- a/src/emu/video/psx.c +++ b/src/emu/video/psx.c @@ -3703,7 +3703,12 @@ MACHINE_CONFIG_FRAGMENT( psxgpu ) ((screen_device *)device)->register_vblank_callback(vblank_state_delegate(FUNC(psxgpu_device::vblank), (psxgpu_device *) owner)); MCFG_PALETTE_LENGTH( 65536 ) - driver_device::static_set_palette_init(*owner->owner(), PALETTE_INIT_NAME(psx)); // MCFG_PALETTE_INIT( psx ) + { + device_t *original_owner = owner; + owner = owner->owner(); + MCFG_PALETTE_INIT(psx) + owner = original_owner; + } MACHINE_CONFIG_END //------------------------------------------------- diff --git a/src/mame/drivers/5clown.c b/src/mame/drivers/5clown.c index fd078988420..724e2673a59 100644 --- a/src/mame/drivers/5clown.c +++ b/src/mame/drivers/5clown.c @@ -537,6 +537,7 @@ static SCREEN_UPDATE_IND16( fclown ) static PALETTE_INIT( fclown ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* 7654 3210 ---- ---x RED component. diff --git a/src/mame/drivers/albazc.c b/src/mame/drivers/albazc.c index ab6bcaf6edf..a926bab7c3b 100644 --- a/src/mame/drivers/albazc.c +++ b/src/mame/drivers/albazc.c @@ -40,6 +40,7 @@ public: static PALETTE_INIT( hanaroku ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; int r, g, b; diff --git a/src/mame/drivers/amaticmg.c b/src/mame/drivers/amaticmg.c index 4dd1f0d4e66..f1348f338a1 100644 --- a/src/mame/drivers/amaticmg.c +++ b/src/mame/drivers/amaticmg.c @@ -413,6 +413,7 @@ static SCREEN_UPDATE_IND16( amaticmg ) static PALETTE_INIT( amaticmg ) { + const UINT8 *color_prom = machine.region("proms")->base(); int bit0, bit1, bit2 , r, g, b; int i; @@ -439,6 +440,7 @@ static PALETTE_INIT( amaticmg ) static PALETTE_INIT( amaticmg3 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int r, g, b; int i; diff --git a/src/mame/drivers/aristmk4.c b/src/mame/drivers/aristmk4.c index 7c25f98c091..9e7031f5a31 100644 --- a/src/mame/drivers/aristmk4.c +++ b/src/mame/drivers/aristmk4.c @@ -1587,6 +1587,7 @@ static const ppi8255_interface ppi8255_intf1 = /* same as Casino Winner HW */ static PALETTE_INIT( aristmk4 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < machine.total_colors();i++) diff --git a/src/mame/drivers/avt.c b/src/mame/drivers/avt.c index 07a087f0c2e..e685c854eba 100644 --- a/src/mame/drivers/avt.c +++ b/src/mame/drivers/avt.c @@ -531,6 +531,7 @@ static SCREEN_UPDATE_IND16( avt ) static PALETTE_INIT( avt ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* prom bits 7654 3210 ---- ---x Intensity?. diff --git a/src/mame/drivers/blitz.c b/src/mame/drivers/blitz.c index 8f3bf0f0eed..d4282545f9c 100644 --- a/src/mame/drivers/blitz.c +++ b/src/mame/drivers/blitz.c @@ -364,6 +364,7 @@ static SCREEN_UPDATE_IND16( megadpkr ) static PALETTE_INIT( megadpkr ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* This hardware has a feature called BLUE KILLER. Using the original intensity line, the PCB has a bridge diff --git a/src/mame/drivers/cardline.c b/src/mame/drivers/cardline.c index 7d9e4403bb7..d3ba0c213b7 100644 --- a/src/mame/drivers/cardline.c +++ b/src/mame/drivers/cardline.c @@ -186,6 +186,7 @@ GFXDECODE_END static PALETTE_INIT(cardline) { + const UINT8 *color_prom = machine.region("proms")->base(); int i,r,g,b,data; int bit0,bit1,bit2; for (i = 0;i < machine.total_colors();i++) diff --git a/src/mame/drivers/carrera.c b/src/mame/drivers/carrera.c index 7995e5b8abe..423bd27f21c 100644 --- a/src/mame/drivers/carrera.c +++ b/src/mame/drivers/carrera.c @@ -283,6 +283,7 @@ static const ay8910_interface ay8910_config = static PALETTE_INIT(carrera) { + const UINT8 *color_prom = machine.region("proms")->base(); int br_bit0, br_bit1, bit0, bit1, r, g, b; int i; diff --git a/src/mame/drivers/caswin.c b/src/mame/drivers/caswin.c index 02c678a16fe..7a1af2c028d 100644 --- a/src/mame/drivers/caswin.c +++ b/src/mame/drivers/caswin.c @@ -274,6 +274,7 @@ static const ay8910_interface ay8910_config = static PALETTE_INIT( caswin ) { + const UINT8 *color_prom = machine.region("proms")->base(); int bit0, bit1, bit2 , r, g, b; int i; diff --git a/src/mame/drivers/chanbara.c b/src/mame/drivers/chanbara.c index fec3c0e2b0e..63a5d485465 100644 --- a/src/mame/drivers/chanbara.c +++ b/src/mame/drivers/chanbara.c @@ -88,6 +88,7 @@ public: static PALETTE_INIT( chanbara ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, red, green, blue; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/drivers/cntsteer.c b/src/mame/drivers/cntsteer.c index 109ddc718d3..25ad8ad5a87 100644 --- a/src/mame/drivers/cntsteer.c +++ b/src/mame/drivers/cntsteer.c @@ -84,6 +84,7 @@ public: static PALETTE_INIT( zerotrgt ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) { diff --git a/src/mame/drivers/corona.c b/src/mame/drivers/corona.c index 5ae202de1c5..aec4dec1a39 100644 --- a/src/mame/drivers/corona.c +++ b/src/mame/drivers/corona.c @@ -353,6 +353,7 @@ public: static PALETTE_INIT( winner ) { + const UINT8 *color_prom = machine.region("proms")->base(); int bit6, bit7, bit0, bit1, r, g, b; int i; diff --git a/src/mame/drivers/cyclemb.c b/src/mame/drivers/cyclemb.c index cafb0d1ba39..65146e393f4 100644 --- a/src/mame/drivers/cyclemb.c +++ b/src/mame/drivers/cyclemb.c @@ -101,6 +101,7 @@ public: static PALETTE_INIT( cyclemb ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i,r,g,b,val; int bit0,bit1,bit2; diff --git a/src/mame/drivers/dacholer.c b/src/mame/drivers/dacholer.c index 2589f8da5ec..18a58da1c8e 100644 --- a/src/mame/drivers/dacholer.c +++ b/src/mame/drivers/dacholer.c @@ -606,6 +606,7 @@ static MACHINE_RESET( dacholer ) /* guess: use the same resistor values as Crazy Climber (needs checking on the real HW) */ static PALETTE_INIT( dacholer ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double weights_rg[3], weights_b[2]; diff --git a/src/mame/drivers/ddayjlc.c b/src/mame/drivers/ddayjlc.c index 100a0ce7358..3a45dbad421 100644 --- a/src/mame/drivers/ddayjlc.c +++ b/src/mame/drivers/ddayjlc.c @@ -486,6 +486,7 @@ static MACHINE_RESET( ddayjlc ) static PALETTE_INIT( ddayjlc ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i,r,g,b,val; int bit0,bit1,bit2; diff --git a/src/mame/drivers/dmndrby.c b/src/mame/drivers/dmndrby.c index 9e498bdf8c8..44d5b79dfb0 100644 --- a/src/mame/drivers/dmndrby.c +++ b/src/mame/drivers/dmndrby.c @@ -444,6 +444,7 @@ wouldnt like to say its the most effective way though... // copied from elsewhere. surely incorrect static PALETTE_INIT( dmnderby ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/drivers/drw80pkr.c b/src/mame/drivers/drw80pkr.c index a8f31139740..f5e0fce2a30 100644 --- a/src/mame/drivers/drw80pkr.c +++ b/src/mame/drivers/drw80pkr.c @@ -347,6 +347,7 @@ static SCREEN_UPDATE_IND16( drw80pkr ) static PALETTE_INIT( drw80pkr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int j; for (j = 0; j < machine.total_colors(); j++) diff --git a/src/mame/drivers/esh.c b/src/mame/drivers/esh.c index f1804939b2c..30d68a46787 100644 --- a/src/mame/drivers/esh.c +++ b/src/mame/drivers/esh.c @@ -224,6 +224,7 @@ INPUT_PORTS_END static PALETTE_INIT( esh ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* Oddly enough, the top 4 bits of each byte is 0 */ diff --git a/src/mame/drivers/ettrivia.c b/src/mame/drivers/ettrivia.c index 0c828c9b5e9..fb4011a838a 100644 --- a/src/mame/drivers/ettrivia.c +++ b/src/mame/drivers/ettrivia.c @@ -215,6 +215,7 @@ static TILE_GET_INFO( get_tile_info_fg ) static PALETTE_INIT( ettrivia ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[2] = { 270, 130 }; double weights[2]; int i; diff --git a/src/mame/drivers/fgoal.c b/src/mame/drivers/fgoal.c index 36af781ff3b..8fee2804695 100644 --- a/src/mame/drivers/fgoal.c +++ b/src/mame/drivers/fgoal.c @@ -47,6 +47,7 @@ static int intensity(int bits) static PALETTE_INIT( fgoal ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* for B/W screens PCB can be jumpered to use lower half of PROM */ diff --git a/src/mame/drivers/fortecar.c b/src/mame/drivers/fortecar.c index 14aec9ce7e8..9592709e9d8 100644 --- a/src/mame/drivers/fortecar.c +++ b/src/mame/drivers/fortecar.c @@ -372,6 +372,7 @@ static SCREEN_UPDATE_IND16(fortecar) static PALETTE_INIT( fortecar ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* Video resistors... O1 (LS374) R1K RED diff --git a/src/mame/drivers/goldnpkr.c b/src/mame/drivers/goldnpkr.c index 1d4ece0d22d..8ba7ab944c0 100644 --- a/src/mame/drivers/goldnpkr.c +++ b/src/mame/drivers/goldnpkr.c @@ -1049,6 +1049,7 @@ static SCREEN_UPDATE_IND16( goldnpkr ) static PALETTE_INIT( goldnpkr ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* prom bits 7654 3210 ---- ---x red component. @@ -1092,6 +1093,7 @@ static PALETTE_INIT( goldnpkr ) static PALETTE_INIT( witchcrd ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* This hardware has a feature called BLUE KILLER. Using the original intensity line, the PCB has a bridge @@ -1139,6 +1141,7 @@ static PALETTE_INIT( witchcrd ) static PALETTE_INIT( wcrdxtnd ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* Using the original intensity line, the PCB has a bridge that allow (as default) turn the background dark blue. diff --git a/src/mame/drivers/istellar.c b/src/mame/drivers/istellar.c index 865385cd501..9f3b79b2d9a 100644 --- a/src/mame/drivers/istellar.c +++ b/src/mame/drivers/istellar.c @@ -274,6 +274,7 @@ INPUT_PORTS_END static PALETTE_INIT( istellar ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* Oddly enough, the top 4 bits of each byte is 0 */ diff --git a/src/mame/drivers/jangou.c b/src/mame/drivers/jangou.c index 36634f81292..7ed9038bbab 100644 --- a/src/mame/drivers/jangou.c +++ b/src/mame/drivers/jangou.c @@ -89,6 +89,7 @@ public: /* guess: use the same resistor values as Crazy Climber (needs checking on the real HW) */ static PALETTE_INIT( jangou ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double weights_rg[3], weights_b[2]; diff --git a/src/mame/drivers/jantotsu.c b/src/mame/drivers/jantotsu.c index 4146d98b700..6ceb5dfe048 100644 --- a/src/mame/drivers/jantotsu.c +++ b/src/mame/drivers/jantotsu.c @@ -200,6 +200,7 @@ WRITE8_MEMBER(jantotsu_state::bankaddr_w) static PALETTE_INIT( jantotsu ) { + const UINT8 *color_prom = machine.region("proms")->base(); int bit0, bit1, bit2, r, g, b; int i; diff --git a/src/mame/drivers/jollyjgr.c b/src/mame/drivers/jollyjgr.c index 02200a0306a..511129c903c 100644 --- a/src/mame/drivers/jollyjgr.c +++ b/src/mame/drivers/jollyjgr.c @@ -402,6 +402,7 @@ INPUT_PORTS_END static PALETTE_INIT( jollyjgr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* tilemap / sprites palette */ diff --git a/src/mame/drivers/kingdrby.c b/src/mame/drivers/kingdrby.c index 389df39a9aa..0ed35509b28 100644 --- a/src/mame/drivers/kingdrby.c +++ b/src/mame/drivers/kingdrby.c @@ -954,6 +954,7 @@ static const ym2203_interface cowrace_ym2203_interface = static PALETTE_INIT(kingdrby) { + const UINT8 *color_prom = machine.region("proms")->base(); int bit0, bit1, bit2 , r, g, b; int i; diff --git a/src/mame/drivers/koikoi.c b/src/mame/drivers/koikoi.c index 9c6a3a71ce5..d9e496079c6 100644 --- a/src/mame/drivers/koikoi.c +++ b/src/mame/drivers/koikoi.c @@ -87,6 +87,7 @@ static TILE_GET_INFO( get_tile_info ) static PALETTE_INIT( koikoi ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/drivers/looping.c b/src/mame/drivers/looping.c index ae4672b95fd..dd1ad19aab5 100644 --- a/src/mame/drivers/looping.c +++ b/src/mame/drivers/looping.c @@ -145,6 +145,7 @@ public: static PALETTE_INIT( looping ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[3] = { 1000, 470, 220 }; double rweights[3], gweights[3], bweights[2]; int i; diff --git a/src/mame/drivers/m63.c b/src/mame/drivers/m63.c index 9a6b33040e9..e8b30cf375b 100644 --- a/src/mame/drivers/m63.c +++ b/src/mame/drivers/m63.c @@ -180,6 +180,7 @@ public: static PALETTE_INIT( m63 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 256; i++) diff --git a/src/mame/drivers/marinedt.c b/src/mame/drivers/marinedt.c index b4cdc0dc9fb..bffb31df78d 100644 --- a/src/mame/drivers/marinedt.c +++ b/src/mame/drivers/marinedt.c @@ -445,6 +445,7 @@ GFXDECODE_END static PALETTE_INIT( marinedt ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i,r,b,g; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/drivers/meijinsn.c b/src/mame/drivers/meijinsn.c index ec94feef267..cf8627ae32c 100644 --- a/src/mame/drivers/meijinsn.c +++ b/src/mame/drivers/meijinsn.c @@ -248,6 +248,7 @@ static VIDEO_START(meijinsn) static PALETTE_INIT( meijinsn ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; static const int resistances_b[2] = { 470, 220 }; static const int resistances_rg[3] = { 1000, 470, 220 }; diff --git a/src/mame/drivers/miniboy7.c b/src/mame/drivers/miniboy7.c index 58e857f5b34..c6f0c757649 100644 --- a/src/mame/drivers/miniboy7.c +++ b/src/mame/drivers/miniboy7.c @@ -219,6 +219,7 @@ static SCREEN_UPDATE_IND16( miniboy7 ) static PALETTE_INIT( miniboy7 ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* FIXME... Can't get the correct palette. sometimes RGB bits are inverted, disregarding the 4th bit. diff --git a/src/mame/drivers/mirax.c b/src/mame/drivers/mirax.c index 17140f610d4..b9bc7f87a2a 100644 --- a/src/mame/drivers/mirax.c +++ b/src/mame/drivers/mirax.c @@ -130,6 +130,7 @@ public: static PALETTE_INIT( mirax ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < machine.total_colors();i++) diff --git a/src/mame/drivers/mogura.c b/src/mame/drivers/mogura.c index 2aaffaa6606..02a56ef5180 100644 --- a/src/mame/drivers/mogura.c +++ b/src/mame/drivers/mogura.c @@ -32,6 +32,7 @@ public: static PALETTE_INIT( mogura ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, j; j = 0; diff --git a/src/mame/drivers/mpu4vid.c b/src/mame/drivers/mpu4vid.c index 63a593c2cbb..4451dc2cbf8 100644 --- a/src/mame/drivers/mpu4vid.c +++ b/src/mame/drivers/mpu4vid.c @@ -2112,6 +2112,7 @@ GFXDECODE_END static PALETTE_INIT( dealem ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, len; static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; diff --git a/src/mame/drivers/murogmbl.c b/src/mame/drivers/murogmbl.c index ea552de3164..2b653132b5d 100644 --- a/src/mame/drivers/murogmbl.c +++ b/src/mame/drivers/murogmbl.c @@ -51,6 +51,7 @@ public: static PALETTE_INIT( murogmbl ) { + const UINT8 *color_prom = machine.region("proms")->base(); int bit0, bit1, bit2 , r, g, b; int i; diff --git a/src/mame/drivers/nightgal.c b/src/mame/drivers/nightgal.c index 1c09d61b8a3..57380905bd3 100644 --- a/src/mame/drivers/nightgal.c +++ b/src/mame/drivers/nightgal.c @@ -250,6 +250,7 @@ WRITE8_MEMBER(nightgal_state::sexygal_nsc_true_blitter_w) /* guess: use the same resistor values as Crazy Climber (needs checking on the real HW) */ static PALETTE_INIT( nightgal ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double weights_rg[3], weights_b[2]; diff --git a/src/mame/drivers/olibochu.c b/src/mame/drivers/olibochu.c index ddf923e4c6e..1b9ee4053ef 100644 --- a/src/mame/drivers/olibochu.c +++ b/src/mame/drivers/olibochu.c @@ -87,6 +87,7 @@ public: static PALETTE_INIT( olibochu ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/drivers/panicr.c b/src/mame/drivers/panicr.c index a319190a832..79fd4f698b6 100644 --- a/src/mame/drivers/panicr.c +++ b/src/mame/drivers/panicr.c @@ -93,6 +93,7 @@ public: static PALETTE_INIT( panicr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/drivers/peplus.c b/src/mame/drivers/peplus.c index 1adf366aeb1..117637f2377 100644 --- a/src/mame/drivers/peplus.c +++ b/src/mame/drivers/peplus.c @@ -700,6 +700,7 @@ static SCREEN_UPDATE_IND16( peplus ) static PALETTE_INIT( peplus ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* prom bits 7654 3210 ---- -xxx red component. diff --git a/src/mame/drivers/poo.c b/src/mame/drivers/poo.c index 3ad2239e73f..3696edbaf4b 100644 --- a/src/mame/drivers/poo.c +++ b/src/mame/drivers/poo.c @@ -291,6 +291,7 @@ GFXDECODE_END static PALETTE_INIT( unclepoo ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i,r,g,b,val; int bit0,bit1,bit2; diff --git a/src/mame/drivers/progolf.c b/src/mame/drivers/progolf.c index fe120593b5e..a123be68ee5 100644 --- a/src/mame/drivers/progolf.c +++ b/src/mame/drivers/progolf.c @@ -388,6 +388,7 @@ static const mc6845_interface mc6845_intf = static PALETTE_INIT( progolf ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < machine.total_colors();i++) diff --git a/src/mame/drivers/quizo.c b/src/mame/drivers/quizo.c index f819194d9ad..05cc1eddbaa 100644 --- a/src/mame/drivers/quizo.c +++ b/src/mame/drivers/quizo.c @@ -51,6 +51,7 @@ static const UINT8 rombankLookup[]={ 2, 3, 4, 4, 4, 4, 4, 5, 0, 1}; static PALETTE_INIT(quizo) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < 16;i++) { diff --git a/src/mame/drivers/roul.c b/src/mame/drivers/roul.c index 2c28b0da21f..663b1dfb0ea 100644 --- a/src/mame/drivers/roul.c +++ b/src/mame/drivers/roul.c @@ -88,6 +88,7 @@ public: static PALETTE_INIT( roul ) { + const UINT8 *color_prom = machine.region("proms")->base(); int bit6, bit7, bit0, bit1, r, g, b; int i; diff --git a/src/mame/drivers/sbowling.c b/src/mame/drivers/sbowling.c index b57f493b562..f79fe366da1 100644 --- a/src/mame/drivers/sbowling.c +++ b/src/mame/drivers/sbowling.c @@ -342,6 +342,7 @@ GFXDECODE_END static PALETTE_INIT( sbowling ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; static const int resistances_rg[3] = { 470, 270, 100 }; diff --git a/src/mame/drivers/shougi.c b/src/mame/drivers/shougi.c index fa1af56ff3c..4431ed2ec68 100644 --- a/src/mame/drivers/shougi.c +++ b/src/mame/drivers/shougi.c @@ -133,6 +133,7 @@ public: static PALETTE_INIT( shougi ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; static const int resistances_b[2] = { 470, 220 }; static const int resistances_rg[3] = { 1000, 470, 220 }; diff --git a/src/mame/drivers/skyarmy.c b/src/mame/drivers/skyarmy.c index 0ca6ab0b989..c30ac7d8648 100644 --- a/src/mame/drivers/skyarmy.c +++ b/src/mame/drivers/skyarmy.c @@ -87,6 +87,7 @@ WRITE8_MEMBER(skyarmy_state::skyarmy_colorram_w) static PALETTE_INIT( skyarmy ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < 32;i++) diff --git a/src/mame/drivers/sub.c b/src/mame/drivers/sub.c index 2a1b438d891..5f03e39c0cd 100644 --- a/src/mame/drivers/sub.c +++ b/src/mame/drivers/sub.c @@ -386,6 +386,7 @@ GFXDECODE_END static PALETTE_INIT( sub ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; UINT8* lookup = machine.region("proms2")->base(); diff --git a/src/mame/drivers/subsino.c b/src/mame/drivers/subsino.c index 1882d1fb6cf..4847fa3aa2a 100644 --- a/src/mame/drivers/subsino.c +++ b/src/mame/drivers/subsino.c @@ -548,6 +548,7 @@ static SCREEN_UPDATE_IND16( stisub_reels ) static PALETTE_INIT( subsino_2proms ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i,r,g,b,val; int bit0,bit1,bit2; @@ -574,6 +575,7 @@ static PALETTE_INIT( subsino_2proms ) static PALETTE_INIT( subsino_3proms ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i,r,g,b,val; int bit0,bit1,bit2; diff --git a/src/mame/drivers/supdrapo.c b/src/mame/drivers/supdrapo.c index 54c8f67739a..9d0a571b843 100644 --- a/src/mame/drivers/supdrapo.c +++ b/src/mame/drivers/supdrapo.c @@ -126,6 +126,7 @@ static SCREEN_UPDATE_IND16( supdrapo ) /*Maybe bit 2 & 3 of the second color prom are intensity bits? */ static PALETTE_INIT( sdpoker ) { + const UINT8 *color_prom = machine.region("proms")->base(); int bit0, bit1, bit2 , r, g, b; int i; diff --git a/src/mame/drivers/superdq.c b/src/mame/drivers/superdq.c index 23ad4154013..eceb40daf16 100644 --- a/src/mame/drivers/superdq.c +++ b/src/mame/drivers/superdq.c @@ -82,6 +82,7 @@ static SCREEN_UPDATE_IND16( superdq ) static PALETTE_INIT( superdq ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; static const int resistances[3] = { 820, 390, 200 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/drivers/tankbust.c b/src/mame/drivers/tankbust.c index ff35eda7c8f..f0abc81471c 100644 --- a/src/mame/drivers/tankbust.c +++ b/src/mame/drivers/tankbust.c @@ -115,6 +115,7 @@ READ8_MEMBER(tankbust_state::debug_output_area_r) static PALETTE_INIT( tankbust ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 128; i++) diff --git a/src/mame/drivers/tugboat.c b/src/mame/drivers/tugboat.c index e4201257b67..b1b245b5e77 100644 --- a/src/mame/drivers/tugboat.c +++ b/src/mame/drivers/tugboat.c @@ -51,6 +51,7 @@ public: just four 1k resistors. */ static PALETTE_INIT( tugboat ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; diff --git a/src/mame/drivers/videopkr.c b/src/mame/drivers/videopkr.c index 2ea314d8304..42c1b6ed4dc 100644 --- a/src/mame/drivers/videopkr.c +++ b/src/mame/drivers/videopkr.c @@ -400,6 +400,7 @@ static void count_7dig(unsigned long data, UINT8 index) static PALETTE_INIT( videopkr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int j; for (j = 0; j < machine.total_colors(); j++) @@ -426,6 +427,7 @@ static PALETTE_INIT( videopkr ) static PALETTE_INIT( babypkr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int j; for (j = 0; j < machine.total_colors(); j++) @@ -456,6 +458,7 @@ static PALETTE_INIT( babypkr ) static PALETTE_INIT( fortune1 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int j; for (j = 0; j < machine.total_colors(); j++) diff --git a/src/mame/drivers/wallc.c b/src/mame/drivers/wallc.c index 12ba61f9c6a..2256bf86e3b 100644 --- a/src/mame/drivers/wallc.c +++ b/src/mame/drivers/wallc.c @@ -94,6 +94,7 @@ public: static PALETTE_INIT( wallc ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; static const int resistances_rg[2] = { 330, 220 }; diff --git a/src/mame/video/1942.c b/src/mame/video/1942.c index 7ec32c4aee2..5dac1f28396 100644 --- a/src/mame/video/1942.c +++ b/src/mame/video/1942.c @@ -26,6 +26,7 @@ PALETTE_INIT( 1942 ) { + const UINT8 *color_prom = machine.region("proms")->base(); rgb_t palette[256]; int i, colorbase; diff --git a/src/mame/video/1943.c b/src/mame/video/1943.c index 59fa60ae138..6d65299b189 100644 --- a/src/mame/video/1943.c +++ b/src/mame/video/1943.c @@ -47,6 +47,7 @@ other 2 bits (output & 0x0c) unknown PALETTE_INIT( 1943 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/40love.c b/src/mame/video/40love.c index 6e87a6b91cf..d260e94f802 100644 --- a/src/mame/video/40love.c +++ b/src/mame/video/40love.c @@ -12,6 +12,7 @@ PALETTE_INIT( fortyl ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/alpha68k.c b/src/mame/video/alpha68k.c index 62e4ba92596..58fe06e83c6 100644 --- a/src/mame/video/alpha68k.c +++ b/src/mame/video/alpha68k.c @@ -383,6 +383,7 @@ SCREEN_UPDATE_IND16( alpha68k_I ) PALETTE_INIT( kyros ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ @@ -410,6 +411,7 @@ PALETTE_INIT( kyros ) PALETTE_INIT( paddlem ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/ambush.c b/src/mame/video/ambush.c index 2f700831b1d..f1d59a70686 100644 --- a/src/mame/video/ambush.c +++ b/src/mame/video/ambush.c @@ -20,6 +20,7 @@ PALETTE_INIT( ambush ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/ampoker2.c b/src/mame/video/ampoker2.c index 2bc7717242a..0b1701f7912 100644 --- a/src/mame/video/ampoker2.c +++ b/src/mame/video/ampoker2.c @@ -73,6 +73,7 @@ PALETTE_INIT( ampoker2 ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* - bits - 76543210 RRRGGGBB diff --git a/src/mame/video/appoooh.c b/src/mame/video/appoooh.c index 868e1faab30..48101cb71fb 100644 --- a/src/mame/video/appoooh.c +++ b/src/mame/video/appoooh.c @@ -22,6 +22,7 @@ PALETTE_INIT( appoooh ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) @@ -60,6 +61,7 @@ PALETTE_INIT( appoooh ) PALETTE_INIT( robowres ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/bagman.c b/src/mame/video/bagman.c index 9cd03c1017b..88d0ae90db2 100644 --- a/src/mame/video/bagman.c +++ b/src/mame/video/bagman.c @@ -44,6 +44,7 @@ WRITE8_MEMBER(bagman_state::bagman_colorram_w) ***************************************************************************/ PALETTE_INIT( bagman ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; diff --git a/src/mame/video/bankp.c b/src/mame/video/bankp.c index f00a76f548c..885d479da4f 100644 --- a/src/mame/video/bankp.c +++ b/src/mame/video/bankp.c @@ -35,6 +35,7 @@ PALETTE_INIT( bankp ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/baraduke.c b/src/mame/video/baraduke.c index 258b48e9106..e7f7eeec133 100644 --- a/src/mame/video/baraduke.c +++ b/src/mame/video/baraduke.c @@ -17,6 +17,7 @@ PALETTE_INIT( baraduke ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; int bit0,bit1,bit2,bit3,r,g,b; diff --git a/src/mame/video/bking.c b/src/mame/video/bking.c index 948a92f6eb2..6dc46221ce0 100644 --- a/src/mame/video/bking.c +++ b/src/mame/video/bking.c @@ -30,6 +30,7 @@ PALETTE_INIT( bking ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 220, 390, 820 }; static const int resistances_b [2] = { 220, 390 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/bladestl.c b/src/mame/video/bladestl.c index 96d87737ae0..eacc4ff002e 100644 --- a/src/mame/video/bladestl.c +++ b/src/mame/video/bladestl.c @@ -5,6 +5,7 @@ PALETTE_INIT( bladestl ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/bogeyman.c b/src/mame/video/bogeyman.c index 73316d44339..818605fd122 100644 --- a/src/mame/video/bogeyman.c +++ b/src/mame/video/bogeyman.c @@ -4,6 +4,7 @@ PALETTE_INIT( bogeyman ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* first 16 colors are RAM */ diff --git a/src/mame/video/bosco.c b/src/mame/video/bosco.c index b98a787055f..51cadf83991 100644 --- a/src/mame/video/bosco.c +++ b/src/mame/video/bosco.c @@ -16,6 +16,7 @@ PALETTE_INIT( bosco ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; machine.colortable = colortable_alloc(machine, 32+64); diff --git a/src/mame/video/brkthru.c b/src/mame/video/brkthru.c index 0a276a3cec2..beb5b646cf5 100644 --- a/src/mame/video/brkthru.c +++ b/src/mame/video/brkthru.c @@ -34,6 +34,7 @@ PALETTE_INIT( brkthru ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/btime.c b/src/mame/video/btime.c index d15014b7f7c..dda9066387c 100644 --- a/src/mame/video/btime.c +++ b/src/mame/video/btime.c @@ -30,6 +30,7 @@ PALETTE_INIT( btime ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; @@ -80,6 +81,7 @@ PALETTE_INIT( btime ) PALETTE_INIT( lnc ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/calomega.c b/src/mame/video/calomega.c index 747953c625f..1d887b293bf 100644 --- a/src/mame/video/calomega.c +++ b/src/mame/video/calomega.c @@ -70,6 +70,7 @@ SCREEN_UPDATE_IND16( calomega ) PALETTE_INIT( calomega ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* prom bits 7654 3210 ---- ---x red component. diff --git a/src/mame/video/carjmbre.c b/src/mame/video/carjmbre.c index 767fcabca52..681edd57afc 100644 --- a/src/mame/video/carjmbre.c +++ b/src/mame/video/carjmbre.c @@ -32,6 +32,7 @@ static const res_net_info carjmbre_net_info = PALETTE_INIT( carjmbre ) { + const UINT8 *color_prom = machine.region("proms")->base(); rgb_t *rgb; rgb = compute_res_net_all(machine, color_prom, &carjmbre_decode_info, &carjmbre_net_info); diff --git a/src/mame/video/carpolo.c b/src/mame/video/carpolo.c index 8ad3c9e0760..88689720cf8 100644 --- a/src/mame/video/carpolo.c +++ b/src/mame/video/carpolo.c @@ -66,6 +66,7 @@ PALETTE_INIT( carpolo ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* thanks to Jarek Burczynski for analyzing the circuit */ diff --git a/src/mame/video/cclimber.c b/src/mame/video/cclimber.c index f630445f68e..8ce25a05432 100644 --- a/src/mame/video/cclimber.c +++ b/src/mame/video/cclimber.c @@ -38,6 +38,7 @@ ***************************************************************************/ PALETTE_INIT( cclimber ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double weights_rg[3], weights_b[2]; @@ -114,6 +115,7 @@ PALETTE_INIT( cclimber ) PALETTE_INIT( swimmer ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 0x100; i++) @@ -182,6 +184,7 @@ PALETTE_INIT( swimmer ) PALETTE_INIT( yamato ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* chars - 12 bits RGB */ @@ -249,6 +252,7 @@ PALETTE_INIT( yamato ) PALETTE_INIT( toprollr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 0xa0; i++) diff --git a/src/mame/video/centiped.c b/src/mame/video/centiped.c index 913fcf22b3e..765e6de6615 100644 --- a/src/mame/video/centiped.c +++ b/src/mame/video/centiped.c @@ -290,6 +290,7 @@ WRITE8_MEMBER(centiped_state::centiped_paletteram_w) PALETTE_INIT( warlords ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/chaknpop.c b/src/mame/video/chaknpop.c index 8f953eec5cb..b338e8d6aa9 100644 --- a/src/mame/video/chaknpop.c +++ b/src/mame/video/chaknpop.c @@ -24,6 +24,7 @@ PALETTE_INIT( chaknpop ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 1024; i++) diff --git a/src/mame/video/champbas.c b/src/mame/video/champbas.c index 6ec01453a62..0670f9fda42 100644 --- a/src/mame/video/champbas.c +++ b/src/mame/video/champbas.c @@ -22,6 +22,7 @@ PALETTE_INIT( champbas ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; @@ -74,6 +75,7 @@ PALETTE_INIT( champbas ) PALETTE_INIT( exctsccr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/cheekyms.c b/src/mame/video/cheekyms.c index e09ba4d4f9b..e41c568c18b 100644 --- a/src/mame/video/cheekyms.c +++ b/src/mame/video/cheekyms.c @@ -17,6 +17,7 @@ Functions to emulate the video hardware of the machine. PALETTE_INIT( cheekyms ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, j, bit, r, g, b; for (i = 0; i < 6; i++) diff --git a/src/mame/video/circusc.c b/src/mame/video/circusc.c index 27b94fde089..2bf1bea0098 100644 --- a/src/mame/video/circusc.c +++ b/src/mame/video/circusc.c @@ -32,6 +32,7 @@ PALETTE_INIT( circusc ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/clshroad.c b/src/mame/video/clshroad.c index 60768388cd9..4ed4dd921d6 100644 --- a/src/mame/video/clshroad.c +++ b/src/mame/video/clshroad.c @@ -42,6 +42,7 @@ WRITE8_MEMBER(clshroad_state::clshroad_flipscreen_w) PALETTE_INIT( clshroad ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < 256;i++) palette_set_color_rgb(machine,i, pal4bit(color_prom[i + 256 * 0]), @@ -51,6 +52,7 @@ PALETTE_INIT( clshroad ) PALETTE_INIT( firebatl ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/combatsc.c b/src/mame/video/combatsc.c index c36c0e0b3a1..d1aad8f748d 100644 --- a/src/mame/video/combatsc.c +++ b/src/mame/video/combatsc.c @@ -12,6 +12,7 @@ PALETTE_INIT( combatsc ) { + const UINT8 *color_prom = machine.region("proms")->base(); int pal; /* allocate the colortable */ @@ -62,6 +63,7 @@ PALETTE_INIT( combatsc ) PALETTE_INIT( combatscb ) { + const UINT8 *color_prom = machine.region("proms")->base(); int pal; /* allocate the colortable */ diff --git a/src/mame/video/compgolf.c b/src/mame/video/compgolf.c index 65bf2e89275..007fbbc12ab 100644 --- a/src/mame/video/compgolf.c +++ b/src/mame/video/compgolf.c @@ -11,6 +11,7 @@ PALETTE_INIT( compgolf ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/contra.c b/src/mame/video/contra.c index 1de9606a545..bb39dc155b1 100644 --- a/src/mame/video/contra.c +++ b/src/mame/video/contra.c @@ -22,6 +22,7 @@ PALETTE_INIT( contra ) { + const UINT8 *color_prom = machine.region("proms")->base(); int chip; /* allocate the colortable */ diff --git a/src/mame/video/cop01.c b/src/mame/video/cop01.c index c9a97820834..f88673f5238 100644 --- a/src/mame/video/cop01.c +++ b/src/mame/video/cop01.c @@ -12,6 +12,7 @@ PALETTE_INIT( cop01 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/cosmic.c b/src/mame/video/cosmic.c index 5f8b327b413..f2cfa2420f4 100644 --- a/src/mame/video/cosmic.c +++ b/src/mame/video/cosmic.c @@ -77,6 +77,7 @@ static pen_t magspot_map_color( running_machine &machine, UINT8 x, UINT8 y ) PALETTE_INIT( panic ) { + const UINT8 *color_prom = machine.region("proms")->base(); cosmic_state *state = machine.driver_data(); int i; @@ -119,6 +120,7 @@ PALETTE_INIT( panic ) PALETTE_INIT( cosmica ) { + const UINT8 *color_prom = machine.region("proms")->base(); cosmic_state *state = machine.driver_data(); int i; @@ -180,6 +182,7 @@ PALETTE_INIT( cosmicg ) PALETTE_INIT( magspot ) { + const UINT8 *color_prom = machine.region("proms")->base(); cosmic_state *state = machine.driver_data(); int i; @@ -214,6 +217,7 @@ PALETTE_INIT( magspot ) PALETTE_INIT( nomnlnd ) { + const UINT8 *color_prom = machine.region("proms")->base(); cosmic_state *state = machine.driver_data(); int i; diff --git a/src/mame/video/cvs.c b/src/mame/video/cvs.c index 9778e675af0..6971d3eeac3 100644 --- a/src/mame/video/cvs.c +++ b/src/mame/video/cvs.c @@ -27,6 +27,7 @@ PALETTE_INIT( cvs ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, attr; /* allocate the colortable */ diff --git a/src/mame/video/darkmist.c b/src/mame/video/darkmist.c index 38d5b9ceeff..7b41fb3d906 100644 --- a/src/mame/video/darkmist.c +++ b/src/mame/video/darkmist.c @@ -71,6 +71,7 @@ static TILE_GET_INFO( get_txttile_info ) PALETTE_INIT(darkmist) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/dday.c b/src/mame/video/dday.c index 3edfabb021a..67e1ded1a6c 100644 --- a/src/mame/video/dday.c +++ b/src/mame/video/dday.c @@ -50,6 +50,7 @@ static void start_countdown_timer(running_machine &machine) PALETTE_INIT( dday ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; palette_set_shadow_factor(machine, 1.0 / 8); diff --git a/src/mame/video/ddribble.c b/src/mame/video/ddribble.c index 7d5db2cf019..ff493fae62c 100644 --- a/src/mame/video/ddribble.c +++ b/src/mame/video/ddribble.c @@ -12,6 +12,7 @@ PALETTE_INIT( ddribble ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/dec8.c b/src/mame/video/dec8.c index e17b966dcbb..6dd62b4c68f 100644 --- a/src/mame/video/dec8.c +++ b/src/mame/video/dec8.c @@ -77,6 +77,7 @@ sprites. PALETTE_INIT( ghostb ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/digdug.c b/src/mame/video/digdug.c index c7178212743..cd1b3bcd7bd 100644 --- a/src/mame/video/digdug.c +++ b/src/mame/video/digdug.c @@ -23,6 +23,7 @@ PALETTE_INIT( digdug ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; machine.colortable = colortable_alloc(machine, 32); diff --git a/src/mame/video/dkong.c b/src/mame/video/dkong.c index 64ccc68af3a..27da37edef3 100644 --- a/src/mame/video/dkong.c +++ b/src/mame/video/dkong.c @@ -201,6 +201,7 @@ static const res_net_info radarscp_grid_net_info = PALETTE_INIT( dkong2b) { + const UINT8 *color_prom = machine.region("proms")->base(); dkong_state *state = machine.driver_data(); rgb_t *rgb; int i; @@ -231,6 +232,7 @@ PALETTE_INIT( dkong2b) #ifdef UNUSED_FUNCTION PALETTE_INIT( dkong4b ) { + const UINT8 *color_prom = machine.region("proms")->base(); dkong_state *state = machine.driver_data(); int i; int r,g,b; @@ -270,6 +272,7 @@ PALETTE_INIT( dkong4b ) PALETTE_INIT( radarscp ) { + const UINT8 *color_prom = machine.region("proms")->base(); dkong_state *state = machine.driver_data(); int i; int r,g,b; @@ -334,6 +337,7 @@ PALETTE_INIT( radarscp ) PALETTE_INIT( radarscp1 ) { + const UINT8 *color_prom = machine.region("proms")->base(); dkong_state *state = machine.driver_data(); int i; int r,g,b; @@ -434,6 +438,7 @@ PALETTE_INIT( radarscp1 ) PALETTE_INIT( dkong3 ) { + const UINT8 *color_prom = machine.region("proms")->base(); dkong_state *state = machine.driver_data(); rgb_t *rgb; diff --git a/src/mame/video/docastle.c b/src/mame/video/docastle.c index 2ac26e377b7..d3c5ded5bbb 100644 --- a/src/mame/video/docastle.c +++ b/src/mame/video/docastle.c @@ -31,6 +31,7 @@ PALETTE_INIT( docastle ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 256; i++) diff --git a/src/mame/video/dogfgt.c b/src/mame/video/dogfgt.c index 64ba29cf8d3..28dc9500499 100644 --- a/src/mame/video/dogfgt.c +++ b/src/mame/video/dogfgt.c @@ -13,6 +13,7 @@ PALETTE_INIT( dogfgt ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* first 16 colors are RAM */ diff --git a/src/mame/video/drmicro.c b/src/mame/video/drmicro.c index 694a1cd5f44..8648c3ebcf1 100644 --- a/src/mame/video/drmicro.c +++ b/src/mame/video/drmicro.c @@ -60,6 +60,7 @@ static TILE_GET_INFO( get_bg2_tile_info ) PALETTE_INIT( drmicro ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/dynax.c b/src/mame/video/dynax.c index ce3edbfd4a7..91a2f50652e 100644 --- a/src/mame/video/dynax.c +++ b/src/mame/video/dynax.c @@ -28,6 +28,7 @@ /* 0 B01234 G01234 R01234 */ PALETTE_INIT( sprtmtch ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/equites.c b/src/mame/video/equites.c index 35f66576fed..93831093602 100644 --- a/src/mame/video/equites.c +++ b/src/mame/video/equites.c @@ -10,6 +10,7 @@ PALETTE_INIT( equites ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; machine.colortable = colortable_alloc(machine, 256); @@ -29,6 +30,7 @@ PALETTE_INIT( equites ) PALETTE_INIT( splndrbt ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; machine.colortable = colortable_alloc(machine, 256); diff --git a/src/mame/video/espial.c b/src/mame/video/espial.c index 52171eed483..ef910df56ba 100644 --- a/src/mame/video/espial.c +++ b/src/mame/video/espial.c @@ -31,6 +31,7 @@ PALETTE_INIT( espial ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/exedexes.c b/src/mame/video/exedexes.c index 8e11d3c8322..f10d40b771c 100644 --- a/src/mame/video/exedexes.c +++ b/src/mame/video/exedexes.c @@ -33,6 +33,7 @@ PALETTE_INIT( exedexes ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/exerion.c b/src/mame/video/exerion.c index 7b6b8d7363e..501ddd00e5a 100644 --- a/src/mame/video/exerion.c +++ b/src/mame/video/exerion.c @@ -36,6 +36,7 @@ PALETTE_INIT( exerion ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/fastfred.c b/src/mame/video/fastfred.c index 6a54cdd636b..1ffd97d9f4a 100644 --- a/src/mame/video/fastfred.c +++ b/src/mame/video/fastfred.c @@ -25,6 +25,7 @@ PALETTE_INIT( fastfred ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[4] = { 1000, 470, 220, 100 }; double rweights[4], gweights[4], bweights[4]; int i; diff --git a/src/mame/video/fastlane.c b/src/mame/video/fastlane.c index b6eeb85cb89..c694be35f0d 100644 --- a/src/mame/video/fastlane.c +++ b/src/mame/video/fastlane.c @@ -5,6 +5,7 @@ PALETTE_INIT( fastlane ) { + const UINT8 *color_prom = machine.region("proms")->base(); int pal; /* allocate the colortable */ diff --git a/src/mame/video/fcombat.c b/src/mame/video/fcombat.c index e1e200eaead..e499d4d6860 100644 --- a/src/mame/video/fcombat.c +++ b/src/mame/video/fcombat.c @@ -39,6 +39,7 @@ static TILE_GET_INFO( get_bg_tile_info ) PALETTE_INIT( fcombat ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/finalizr.c b/src/mame/video/finalizr.c index a1bfebd4090..55a8913fd61 100644 --- a/src/mame/video/finalizr.c +++ b/src/mame/video/finalizr.c @@ -12,6 +12,7 @@ PALETTE_INIT( finalizr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/firetrap.c b/src/mame/video/firetrap.c index ad24f5572e4..ac20cb7e987 100644 --- a/src/mame/video/firetrap.c +++ b/src/mame/video/firetrap.c @@ -36,6 +36,7 @@ PALETTE_INIT( firetrap ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; diff --git a/src/mame/video/firetrk.c b/src/mame/video/firetrk.c index 227e4db7c6f..6d4470c3e30 100644 --- a/src/mame/video/firetrk.c +++ b/src/mame/video/firetrk.c @@ -65,6 +65,7 @@ static void prom_to_palette(running_machine &machine, int number, UINT8 val) PALETTE_INIT( montecar ) { + const UINT8 *color_prom = machine.region("proms")->base(); firetrk_state *state = machine.driver_data(); int i; diff --git a/src/mame/video/flower.c b/src/mame/video/flower.c index cc3288b6c1a..c71fc6fa9ef 100644 --- a/src/mame/video/flower.c +++ b/src/mame/video/flower.c @@ -6,6 +6,7 @@ PALETTE_INIT( flower ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/funkybee.c b/src/mame/video/funkybee.c index b32c12a2360..0603514c447 100644 --- a/src/mame/video/funkybee.c +++ b/src/mame/video/funkybee.c @@ -11,6 +11,7 @@ PALETTE_INIT( funkybee ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* first, the character/sprite palette */ diff --git a/src/mame/video/funworld.c b/src/mame/video/funworld.c index eb1ec000959..e1f25c118ca 100644 --- a/src/mame/video/funworld.c +++ b/src/mame/video/funworld.c @@ -107,6 +107,7 @@ PALETTE_INIT(funworld) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; static const int resistances_rb[3] = { 1000, 470, 220 }; static const int resistances_g [2] = { 470, 220 }; diff --git a/src/mame/video/fuukifg2.c b/src/mame/video/fuukifg2.c index cf2960d1209..e16053fd0ce 100644 --- a/src/mame/video/fuukifg2.c +++ b/src/mame/video/fuukifg2.c @@ -82,6 +82,7 @@ WRITE16_MEMBER(fuuki16_state::fuuki16_vram_3_w){ fuuki16_vram_w(&space, offset, #if 0 PALETTE_INIT( fuuki16 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int pen; /* The game does not initialise the palette at startup. It should diff --git a/src/mame/video/galaga.c b/src/mame/video/galaga.c index bda46f91811..b7bef81e746 100644 --- a/src/mame/video/galaga.c +++ b/src/mame/video/galaga.c @@ -326,6 +326,7 @@ const struct star star_seed_tab[252]= PALETTE_INIT( galaga ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; machine.colortable = colortable_alloc(machine, 32+64); diff --git a/src/mame/video/galaxian.c b/src/mame/video/galaxian.c index 2fa2ab11ae3..7ffa2f10c63 100644 --- a/src/mame/video/galaxian.c +++ b/src/mame/video/galaxian.c @@ -255,6 +255,7 @@ static void bullets_draw(running_machine &machine, bitmap_rgb32 &bitmap, const r PALETTE_INIT( galaxian ) { + const UINT8 *color_prom = machine.region("proms")->base(); galaxian_state *state = machine.driver_data(); static const int rgb_resistances[3] = { 1000, 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/galaxold.c b/src/mame/video/galaxold.c index 85e68510da6..096264a210c 100644 --- a/src/mame/video/galaxold.c +++ b/src/mame/video/galaxold.c @@ -94,6 +94,7 @@ static void dambustr_draw_background(running_machine &machine, bitmap_ind16 &bit ***************************************************************************/ PALETTE_INIT( galaxold ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, len; @@ -168,6 +169,7 @@ PALETTE_INIT( stratgyx ) PALETTE_INIT( rockclim ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, len; @@ -216,6 +218,7 @@ PALETTE_INIT( rockclim ) ***************************************************************************/ PALETTE_INIT( darkplnt ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; @@ -335,6 +338,7 @@ PALETTE_INIT( mariner ) /* swapped r/g/b hook-up */ PALETTE_INIT( dambustr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int base = BACKGROUND_COLOR_BASE; int i, len; diff --git a/src/mame/video/galivan.c b/src/mame/video/galivan.c index 947465fce69..4d552f5148e 100644 --- a/src/mame/video/galivan.c +++ b/src/mame/video/galivan.c @@ -54,6 +54,7 @@ background: 0x4000 bytes of ROM: 76543210 tile code low bits PALETTE_INIT( galivan ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/gaplus.c b/src/mame/video/gaplus.c index 59f9d8126c6..da58eba4935 100644 --- a/src/mame/video/gaplus.c +++ b/src/mame/video/gaplus.c @@ -25,6 +25,7 @@ PALETTE_INIT( gaplus ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/gberet.c b/src/mame/video/gberet.c index 7b3cf5244b8..cdaa89e9eb9 100644 --- a/src/mame/video/gberet.c +++ b/src/mame/video/gberet.c @@ -23,6 +23,7 @@ PALETTE_INIT( gberet ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/gomoku.c b/src/mame/video/gomoku.c index 612c4cec5b5..34124786a18 100644 --- a/src/mame/video/gomoku.c +++ b/src/mame/video/gomoku.c @@ -20,6 +20,7 @@ PALETTE_INIT( gomoku ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; int bit0, bit1, bit2, r, g, b; diff --git a/src/mame/video/gotya.c b/src/mame/video/gotya.c index ef6bebda50e..902eed85518 100644 --- a/src/mame/video/gotya.c +++ b/src/mame/video/gotya.c @@ -11,6 +11,7 @@ PALETTE_INIT( gotya ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/grchamp.c b/src/mame/video/grchamp.c index 256a01f4bd5..aa1de38e284 100644 --- a/src/mame/video/grchamp.c +++ b/src/mame/video/grchamp.c @@ -14,6 +14,7 @@ PALETTE_INIT( grchamp ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[3] = { 100, 270, 470 }; double rweights[3], gweights[3], bweights[2]; grchamp_state *state = machine.driver_data(); diff --git a/src/mame/video/gridlee.c b/src/mame/video/gridlee.c index f6ac3026e2c..8b1ae40fb07 100644 --- a/src/mame/video/gridlee.c +++ b/src/mame/video/gridlee.c @@ -20,6 +20,7 @@ PALETTE_INIT( gridlee ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/gsword.c b/src/mame/video/gsword.c index f6920413726..c5770345302 100644 --- a/src/mame/video/gsword.c +++ b/src/mame/video/gsword.c @@ -11,6 +11,7 @@ static PALETTE_INIT( common ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* characters */ @@ -28,6 +29,7 @@ static PALETTE_INIT( common ) PALETTE_INIT( josvolly ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ @@ -52,6 +54,7 @@ PALETTE_INIT( josvolly ) PALETTE_INIT( gsword ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/gunsmoke.c b/src/mame/video/gunsmoke.c index 5dacb8970ef..11bd941bf55 100644 --- a/src/mame/video/gunsmoke.c +++ b/src/mame/video/gunsmoke.c @@ -18,6 +18,7 @@ PALETTE_INIT( gunsmoke ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/gyruss.c b/src/mame/video/gyruss.c index 3d81bbea25c..12638cf200a 100644 --- a/src/mame/video/gyruss.c +++ b/src/mame/video/gyruss.c @@ -31,6 +31,7 @@ PALETTE_INIT( gyruss ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double weights_rg[3], weights_b[2]; diff --git a/src/mame/video/hanaawas.c b/src/mame/video/hanaawas.c index 210af843a17..e1b3ff7657e 100644 --- a/src/mame/video/hanaawas.c +++ b/src/mame/video/hanaawas.c @@ -17,6 +17,7 @@ PALETTE_INIT( hanaawas ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/hcastle.c b/src/mame/video/hcastle.c index b5c4c74d2b3..be88e388202 100644 --- a/src/mame/video/hcastle.c +++ b/src/mame/video/hcastle.c @@ -11,6 +11,7 @@ PALETTE_INIT( hcastle ) { + const UINT8 *color_prom = machine.region("proms")->base(); int chip; /* allocate the colortable */ diff --git a/src/mame/video/higemaru.c b/src/mame/video/higemaru.c index 5fa1254077e..54d268ec8bc 100644 --- a/src/mame/video/higemaru.c +++ b/src/mame/video/higemaru.c @@ -21,6 +21,7 @@ WRITE8_MEMBER(higemaru_state::higemaru_colorram_w) PALETTE_INIT( higemaru ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/homedata.c b/src/mame/video/homedata.c index 38fb451ece0..352f4c199a0 100644 --- a/src/mame/video/homedata.c +++ b/src/mame/video/homedata.c @@ -315,6 +315,7 @@ finish: PALETTE_INIT( mrokumei ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* initialize 555 RGB palette */ @@ -337,6 +338,7 @@ PALETTE_INIT( mrokumei ) PALETTE_INIT( reikaids ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* initialize 555 RGB palette */ @@ -359,6 +361,7 @@ PALETTE_INIT( reikaids ) PALETTE_INIT( pteacher ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* initialize 555 RGB palette */ @@ -381,6 +384,7 @@ PALETTE_INIT( pteacher ) PALETTE_INIT( mirderby ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 0x100; i++) diff --git a/src/mame/video/hyperspt.c b/src/mame/video/hyperspt.c index d3406c75740..00f91d31742 100644 --- a/src/mame/video/hyperspt.c +++ b/src/mame/video/hyperspt.c @@ -31,6 +31,7 @@ PALETTE_INIT( hyperspt ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b[2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/ikki.c b/src/mame/video/ikki.c index 13e33667cbe..905d1f6ef67 100644 --- a/src/mame/video/ikki.c +++ b/src/mame/video/ikki.c @@ -13,6 +13,7 @@ Video hardware driver by Uki PALETTE_INIT( ikki ) { + const UINT8 *color_prom = machine.region("proms")->base(); ikki_state *state = machine.driver_data(); int i; diff --git a/src/mame/video/irobot.c b/src/mame/video/irobot.c index bf85c0af5af..a47d4f495b1 100644 --- a/src/mame/video/irobot.c +++ b/src/mame/video/irobot.c @@ -39,6 +39,7 @@ PALETTE_INIT( irobot ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* convert the color prom for the text palette */ diff --git a/src/mame/video/ironhors.c b/src/mame/video/ironhors.c index 0f3addd8534..29bf8b898c3 100644 --- a/src/mame/video/ironhors.c +++ b/src/mame/video/ironhors.c @@ -18,6 +18,7 @@ PALETTE_INIT( ironhors ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[4] = { 2000, 1000, 470, 220 }; double rweights[4], gweights[4], bweights[4]; int i; diff --git a/src/mame/video/jack.c b/src/mame/video/jack.c index 2380d352dac..36b705c203f 100644 --- a/src/mame/video/jack.c +++ b/src/mame/video/jack.c @@ -110,6 +110,7 @@ SCREEN_UPDATE_IND16( jack ) PALETTE_INIT( joinem ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/jackal.c b/src/mame/video/jackal.c index a6bee12bbb4..6557a74abef 100644 --- a/src/mame/video/jackal.c +++ b/src/mame/video/jackal.c @@ -14,6 +14,7 @@ PALETTE_INIT( jackal ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/jailbrek.c b/src/mame/video/jailbrek.c index 27679daeb22..3b360653ae7 100644 --- a/src/mame/video/jailbrek.c +++ b/src/mame/video/jailbrek.c @@ -3,6 +3,7 @@ PALETTE_INIT( jailbrek ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/karnov.c b/src/mame/video/karnov.c index 35b4d34fefb..fce2304edac 100644 --- a/src/mame/video/karnov.c +++ b/src/mame/video/karnov.c @@ -38,6 +38,7 @@ PALETTE_INIT( karnov ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/kchamp.c b/src/mame/video/kchamp.c index b5586f88c2e..c7bf7dd325d 100644 --- a/src/mame/video/kchamp.c +++ b/src/mame/video/kchamp.c @@ -12,6 +12,7 @@ PALETTE_INIT( kchamp ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, red, green, blue; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/kingobox.c b/src/mame/video/kingobox.c index 125faaec37d..261f68d1fe1 100644 --- a/src/mame/video/kingobox.c +++ b/src/mame/video/kingobox.c @@ -123,11 +123,13 @@ static void ringking_get_rgb_data( const UINT8 *color_prom, int i, int *r_data, PALETTE_INIT( kingofb ) { + const UINT8 *color_prom = machine.region("proms")->base(); palette_init_common(machine, color_prom, kingofb_get_rgb_data); } PALETTE_INIT( ringking ) { + const UINT8 *color_prom = machine.region("proms")->base(); palette_init_common(machine, color_prom, ringking_get_rgb_data); } diff --git a/src/mame/video/kncljoe.c b/src/mame/video/kncljoe.c index af035aaea12..463e5297ef5 100644 --- a/src/mame/video/kncljoe.c +++ b/src/mame/video/kncljoe.c @@ -16,6 +16,7 @@ Knuckle Joe - (c) 1985 Taito Corporation PALETTE_INIT( kncljoe ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/kopunch.c b/src/mame/video/kopunch.c index 50094a3e907..436c73d4058 100644 --- a/src/mame/video/kopunch.c +++ b/src/mame/video/kopunch.c @@ -4,6 +4,7 @@ PALETTE_INIT( kopunch ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; color_prom += 24; /* first 24 colors are black */ diff --git a/src/mame/video/labyrunr.c b/src/mame/video/labyrunr.c index e4ffb9293e5..99cb2317e60 100644 --- a/src/mame/video/labyrunr.c +++ b/src/mame/video/labyrunr.c @@ -4,6 +4,7 @@ PALETTE_INIT( labyrunr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int pal; /* allocate the colortable */ diff --git a/src/mame/video/ladybug.c b/src/mame/video/ladybug.c index fff5f115301..09ac935f8ef 100644 --- a/src/mame/video/ladybug.c +++ b/src/mame/video/ladybug.c @@ -95,11 +95,13 @@ static void palette_init_common( running_machine &machine, const UINT8 *color_pr PALETTE_INIT( ladybug ) { + const UINT8 *color_prom = machine.region("proms")->base(); palette_init_common(machine, color_prom, 0x20, 0, 5, 2, 6, 4, 7); } PALETTE_INIT( sraider ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* the resistor net may be probably different than Lady Bug */ diff --git a/src/mame/video/lasso.c b/src/mame/video/lasso.c index 819d801ac92..c2f8b4a2ade 100644 --- a/src/mame/video/lasso.c +++ b/src/mame/video/lasso.c @@ -66,6 +66,7 @@ static rgb_t get_color( int data ) PALETTE_INIT( lasso ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 0x40; i++) @@ -75,6 +76,7 @@ PALETTE_INIT( lasso ) PALETTE_INIT( wwjgtin ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/liberate.c b/src/mame/video/liberate.c index 656ac2207a0..b84513fc4c0 100644 --- a/src/mame/video/liberate.c +++ b/src/mame/video/liberate.c @@ -253,6 +253,7 @@ WRITE8_MEMBER(liberate_state::prosport_paletteram_w) PALETTE_INIT( liberate ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, bit0, bit1, bit2, g, r, b; for (i = 0;i < 32;i++) diff --git a/src/mame/video/lockon.c b/src/mame/video/lockon.c index 6ff367e89af..4bed0631856 100644 --- a/src/mame/video/lockon.c +++ b/src/mame/video/lockon.c @@ -100,6 +100,7 @@ static const res_net_info lockon_pd_net_info = PALETTE_INIT( lockon ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 1024; ++i) diff --git a/src/mame/video/lucky74.c b/src/mame/video/lucky74.c index f51ade1a563..6c2edb70239 100644 --- a/src/mame/video/lucky74.c +++ b/src/mame/video/lucky74.c @@ -129,6 +129,7 @@ PALETTE_INIT( lucky74 ) We're constructing a double-sized palette with one half for each state. */ { + const UINT8 *color_prom = machine.region("proms")->base(); int i; static const int resistances_rgb[4] = { 2000, 1000, 470, 220 }; double weights_r[4], weights_g[4], weights_b[4]; diff --git a/src/mame/video/lvcards.c b/src/mame/video/lvcards.c index 601fc4a1da6..e8b682fd379 100644 --- a/src/mame/video/lvcards.c +++ b/src/mame/video/lvcards.c @@ -12,6 +12,7 @@ PALETTE_INIT( ponttehk ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for ( i = 0; i < machine.total_colors(); i++ ) @@ -47,6 +48,7 @@ PALETTE_INIT( ponttehk ) PALETTE_INIT( lvcards ) //Ever so slightly different, but different enough. { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for ( i = 0; i < machine.total_colors(); i++ ) diff --git a/src/mame/video/m52.c b/src/mame/video/m52.c index b2af6a44507..ff63531a15b 100644 --- a/src/mame/video/m52.c +++ b/src/mame/video/m52.c @@ -19,6 +19,7 @@ PALETTE_INIT( m52 ) { + const UINT8 *color_prom = machine.region("proms")->base(); const UINT8 *char_pal = color_prom + 0x000; const UINT8 *back_pal = color_prom + 0x200; const UINT8 *sprite_pal = color_prom + 0x220; diff --git a/src/mame/video/m57.c b/src/mame/video/m57.c index de6fb4de2e6..fa3598affdd 100644 --- a/src/mame/video/m57.c +++ b/src/mame/video/m57.c @@ -32,6 +32,7 @@ PALETTE_INIT( m57 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; machine.colortable = colortable_alloc(machine, 32 * 8 + 16); diff --git a/src/mame/video/m58.c b/src/mame/video/m58.c index 3339b222ad4..fca6079d971 100644 --- a/src/mame/video/m58.c +++ b/src/mame/video/m58.c @@ -21,6 +21,7 @@ PALETTE_INIT( yard ) { + const UINT8 *color_prom = machine.region("proms")->base(); const UINT8 *char_lopal = color_prom + 0x000; const UINT8 *char_hipal = color_prom + 0x100; const UINT8 *sprite_pal = color_prom + 0x200; diff --git a/src/mame/video/m62.c b/src/mame/video/m62.c index dc25530d90d..608148d652d 100644 --- a/src/mame/video/m62.c +++ b/src/mame/video/m62.c @@ -199,6 +199,7 @@ static void m62_amplify_contrast(palette_t *palette, UINT32 numcolors) PALETTE_INIT( m62 ) { + const UINT8 *color_prom = machine.region("proms")->base(); m62_state *state = machine.driver_data(); rgb_t *rgb; @@ -219,6 +220,7 @@ PALETTE_INIT( m62 ) PALETTE_INIT( lotlot ) { + const UINT8 *color_prom = machine.region("proms")->base(); m62_state *state = machine.driver_data(); rgb_t *rgb; @@ -239,6 +241,7 @@ PALETTE_INIT( lotlot ) PALETTE_INIT( battroad ) { + const UINT8 *color_prom = machine.region("proms")->base(); m62_state *state = machine.driver_data(); rgb_t *rgb; @@ -265,6 +268,7 @@ PALETTE_INIT( battroad ) PALETTE_INIT( spelunk2 ) { + const UINT8 *color_prom = machine.region("proms")->base(); m62_state *state = machine.driver_data(); rgb_t *rgb; diff --git a/src/mame/video/madalien.c b/src/mame/video/madalien.c index 69aeac0fde3..be315bf0153 100644 --- a/src/mame/video/madalien.c +++ b/src/mame/video/madalien.c @@ -16,6 +16,7 @@ static PALETTE_INIT( madalien ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/magmax.c b/src/mame/video/magmax.c index d9b1006776b..2339717ed35 100644 --- a/src/mame/video/magmax.c +++ b/src/mame/video/magmax.c @@ -26,6 +26,7 @@ Additional tweaking by Jarek Burczynski ***************************************************************************/ PALETTE_INIT( magmax ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/mainsnk.c b/src/mame/video/mainsnk.c index 89edce4c206..c6b494f6ee5 100644 --- a/src/mame/video/mainsnk.c +++ b/src/mame/video/mainsnk.c @@ -4,6 +4,7 @@ PALETTE_INIT( mainsnk ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; int num_colors = 0x400; diff --git a/src/mame/video/mappy.c b/src/mame/video/mappy.c index 32640ea724e..d66e67f272e 100644 --- a/src/mame/video/mappy.c +++ b/src/mame/video/mappy.c @@ -32,6 +32,7 @@ PALETTE_INIT( superpac ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[3] = { 1000, 470, 220 }; double rweights[3], gweights[3], bweights[2]; int i; @@ -91,6 +92,7 @@ PALETTE_INIT( superpac ) PALETTE_INIT( mappy ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[3] = { 1000, 470, 220 }; double rweights[3], gweights[3], bweights[2]; int i; @@ -162,6 +164,7 @@ PALETTE_INIT( mappy ) PALETTE_INIT( phozon ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[4] = { 2200, 1000, 470, 220 }; double rweights[4], gweights[4], bweights[4]; int i; diff --git a/src/mame/video/marineb.c b/src/mame/video/marineb.c index 000ed0822ef..4970cd1eade 100644 --- a/src/mame/video/marineb.c +++ b/src/mame/video/marineb.c @@ -12,6 +12,7 @@ PALETTE_INIT( marineb ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/mario.c b/src/mame/video/mario.c index ac2387405a1..8ce5f6636a7 100644 --- a/src/mame/video/mario.c +++ b/src/mame/video/mario.c @@ -64,6 +64,7 @@ static const res_net_info mario_net_info_std = ***************************************************************************/ PALETTE_INIT( mario ) { + const UINT8 *color_prom = machine.region("proms")->base(); rgb_t *rgb; rgb = compute_res_net_all(machine, color_prom, &mario_decode_info, &mario_net_info); diff --git a/src/mame/video/markham.c b/src/mame/video/markham.c index ba41b23c78d..ae69da5f14a 100644 --- a/src/mame/video/markham.c +++ b/src/mame/video/markham.c @@ -13,6 +13,7 @@ PALETTE_INIT( markham ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/matmania.c b/src/mame/video/matmania.c index 0e4f5046739..b5593801032 100644 --- a/src/mame/video/matmania.c +++ b/src/mame/video/matmania.c @@ -43,6 +43,7 @@ ***************************************************************************/ PALETTE_INIT( matmania ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 64; i++) diff --git a/src/mame/video/megasys1.c b/src/mame/video/megasys1.c index 56544049322..4959a64dcc2 100644 --- a/src/mame/video/megasys1.c +++ b/src/mame/video/megasys1.c @@ -753,6 +753,7 @@ static const struct priority priorities[] = PALETTE_INIT( megasys1 ) { + const UINT8 *color_prom = machine.region("proms")->base(); megasys1_state *state = machine.driver_data(); int pri_code, offset, i, order; diff --git a/src/mame/video/megazone.c b/src/mame/video/megazone.c index 3c0cce4dba5..aa41de94138 100644 --- a/src/mame/video/megazone.c +++ b/src/mame/video/megazone.c @@ -38,6 +38,7 @@ Changes by Martin M. (pfloyd@gmx.net) 14.10.2001: PALETTE_INIT( megazone ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/mermaid.c b/src/mame/video/mermaid.c index 31cd1b904b2..1c7272b397f 100644 --- a/src/mame/video/mermaid.c +++ b/src/mame/video/mermaid.c @@ -4,6 +4,7 @@ PALETTE_INIT( mermaid ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ @@ -34,6 +35,7 @@ PALETTE_INIT( mermaid ) PALETTE_INIT( rougien ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/mikie.c b/src/mame/video/mikie.c index bb85a9dc30f..9b97c0e531e 100644 --- a/src/mame/video/mikie.c +++ b/src/mame/video/mikie.c @@ -28,6 +28,7 @@ PALETTE_INIT( mikie ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[4] = { 2200, 1000, 470, 220 }; double rweights[4], gweights[4], bweights[4]; int i; diff --git a/src/mame/video/mouser.c b/src/mame/video/mouser.c index e389388fafe..5db5754246a 100644 --- a/src/mame/video/mouser.c +++ b/src/mame/video/mouser.c @@ -18,6 +18,7 @@ PALETTE_INIT( mouser ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/mrdo.c b/src/mame/video/mrdo.c index 0b627636903..56b893fe330 100644 --- a/src/mame/video/mrdo.c +++ b/src/mame/video/mrdo.c @@ -44,6 +44,7 @@ PALETTE_INIT( mrdo ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; const int R1 = 150; diff --git a/src/mame/video/mrjong.c b/src/mame/video/mrjong.c index ced313e02c8..e757d02f100 100644 --- a/src/mame/video/mrjong.c +++ b/src/mame/video/mrjong.c @@ -18,6 +18,7 @@ PALETTE_INIT( mrjong ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/munchmo.c b/src/mame/video/munchmo.c index aeb45437919..8d0b2e0b53c 100644 --- a/src/mame/video/munchmo.c +++ b/src/mame/video/munchmo.c @@ -4,6 +4,7 @@ PALETTE_INIT( mnchmobl ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/mustache.c b/src/mame/video/mustache.c index e54fc8a3f2d..70f439daa10 100644 --- a/src/mame/video/mustache.c +++ b/src/mame/video/mustache.c @@ -12,6 +12,7 @@ PALETTE_INIT(mustache) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < 256;i++) diff --git a/src/mame/video/namcos86.c b/src/mame/video/namcos86.c index ea698f08da7..478c7ee42f3 100644 --- a/src/mame/video/namcos86.c +++ b/src/mame/video/namcos86.c @@ -34,6 +34,7 @@ Namco System 86 Video Hardware PALETTE_INIT( namcos86 ) { + const UINT8 *color_prom = machine.region("proms")->base(); namcos86_state *state = machine.driver_data(); int i; rgb_t palette[512]; diff --git a/src/mame/video/naughtyb.c b/src/mame/video/naughtyb.c index 1ad816b05dd..781b700a5d2 100644 --- a/src/mame/video/naughtyb.c +++ b/src/mame/video/naughtyb.c @@ -58,6 +58,7 @@ static const res_net_info naughtyb_net_info = PALETTE_INIT( naughtyb ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[2] = { 270, 130 }; double weights[2]; int i; diff --git a/src/mame/video/nova2001.c b/src/mame/video/nova2001.c index 16977c41640..b6305996d9f 100644 --- a/src/mame/video/nova2001.c +++ b/src/mame/video/nova2001.c @@ -10,6 +10,7 @@ PALETTE_INIT( nova2001 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* Color #1 is used for palette animation. */ diff --git a/src/mame/video/ojankohs.c b/src/mame/video/ojankohs.c index a2bc5036653..bf511d8a2d8 100644 --- a/src/mame/video/ojankohs.c +++ b/src/mame/video/ojankohs.c @@ -19,6 +19,7 @@ PALETTE_INIT( ojankoy ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; int bit0, bit1, bit2, bit3, bit4, r, g, b; diff --git a/src/mame/video/pacland.c b/src/mame/video/pacland.c index fa62658c87d..d75ad4b91ff 100644 --- a/src/mame/video/pacland.c +++ b/src/mame/video/pacland.c @@ -90,6 +90,7 @@ static void switch_palette(running_machine &machine) PALETTE_INIT( pacland ) { + const UINT8 *color_prom = machine.region("proms")->base(); pacland_state *state = machine.driver_data(); int i; diff --git a/src/mame/video/pacman.c b/src/mame/video/pacman.c index 7b18ee6b73d..f208e96d0c7 100644 --- a/src/mame/video/pacman.c +++ b/src/mame/video/pacman.c @@ -63,6 +63,7 @@ PALETTE_INIT( pacman ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[3] = { 1000, 470, 220 }; double rweights[3], gweights[3], bweights[2]; int i; diff --git a/src/mame/video/pandoras.c b/src/mame/video/pandoras.c index f52f82fafae..4833d9fb698 100644 --- a/src/mame/video/pandoras.c +++ b/src/mame/video/pandoras.c @@ -23,6 +23,7 @@ PALETTE_INIT( pandoras ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/pastelg.c b/src/mame/video/pastelg.c index 78c8b257f47..64ceed59ffe 100644 --- a/src/mame/video/pastelg.c +++ b/src/mame/video/pastelg.c @@ -21,6 +21,7 @@ static void pastelg_gfxdraw(running_machine &machine); ******************************************************************************/ PALETTE_INIT( pastelg ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; int bit0, bit1, bit2, bit3, r, g, b; diff --git a/src/mame/video/pcktgal.c b/src/mame/video/pcktgal.c index 12e7e145686..aca53e3e94e 100644 --- a/src/mame/video/pcktgal.c +++ b/src/mame/video/pcktgal.c @@ -4,6 +4,7 @@ PALETTE_INIT( pcktgal ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < machine.total_colors();i++) diff --git a/src/mame/video/phoenix.c b/src/mame/video/phoenix.c index ee452759f3e..ebec2a27c72 100644 --- a/src/mame/video/phoenix.c +++ b/src/mame/video/phoenix.c @@ -78,6 +78,7 @@ static const res_net_info survival_net_info = PALETTE_INIT( phoenix ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; rgb_t *rgb; @@ -95,6 +96,7 @@ PALETTE_INIT( phoenix ) PALETTE_INIT( survival ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; rgb_t *rgb; @@ -112,6 +114,7 @@ PALETTE_INIT( survival ) PALETTE_INIT( pleiads ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; rgb_t *rgb; diff --git a/src/mame/video/pingpong.c b/src/mame/video/pingpong.c index 9376a43099a..08115f12b06 100644 --- a/src/mame/video/pingpong.c +++ b/src/mame/video/pingpong.c @@ -32,6 +32,7 @@ ***************************************************************************/ PALETTE_INIT( pingpong ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/pitnrun.c b/src/mame/video/pitnrun.c index ebdc1a8bc98..498b7f7de51 100644 --- a/src/mame/video/pitnrun.c +++ b/src/mame/video/pitnrun.c @@ -117,6 +117,7 @@ static void pitnrun_spotlights(running_machine &machine) PALETTE_INIT (pitnrun) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; int bit0,bit1,bit2,r,g,b; for (i = 0;i < 32*3; i++) diff --git a/src/mame/video/playch10.c b/src/mame/video/playch10.c index bdea51567e3..a91ced248ef 100644 --- a/src/mame/video/playch10.c +++ b/src/mame/video/playch10.c @@ -16,6 +16,7 @@ WRITE8_MEMBER(playch10_state::playch10_videoram_w) PALETTE_INIT( playch10 ) { + const UINT8 *color_prom = machine.region("proms")->base(); ppu2c0x_device *ppu = machine.device("ppu"); int i; diff --git a/src/mame/video/polepos.c b/src/mame/video/polepos.c index a940766c12e..c5bb1276e0d 100644 --- a/src/mame/video/polepos.c +++ b/src/mame/video/polepos.c @@ -27,6 +27,7 @@ PALETTE_INIT( polepos ) { + const UINT8 *color_prom = machine.region("proms")->base(); polepos_state *state = machine.driver_data(); int i, j; diff --git a/src/mame/video/pooyan.c b/src/mame/video/pooyan.c index c7dc23f3195..eb7a3f996e2 100644 --- a/src/mame/video/pooyan.c +++ b/src/mame/video/pooyan.c @@ -29,6 +29,7 @@ PALETTE_INIT( pooyan ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/popeye.c b/src/mame/video/popeye.c index b6f6053b41e..d32ccf04dcc 100644 --- a/src/mame/video/popeye.c +++ b/src/mame/video/popeye.c @@ -115,6 +115,7 @@ static void convert_color_prom(running_machine &machine,const UINT8 *color_prom) PALETTE_INIT( popeye ) { + const UINT8 *color_prom = machine.region("proms")->base(); popeye_state *state = machine.driver_data(); state->m_invertmask = 0xff; @@ -123,6 +124,7 @@ PALETTE_INIT( popeye ) PALETTE_INIT( popeyebl ) { + const UINT8 *color_prom = machine.region("proms")->base(); popeye_state *state = machine.driver_data(); state->m_invertmask = 0x00; diff --git a/src/mame/video/popper.c b/src/mame/video/popper.c index 758e16bec04..58448cc20b2 100644 --- a/src/mame/video/popper.c +++ b/src/mame/video/popper.c @@ -46,6 +46,7 @@ static const res_net_info popper_net_info = PALETTE_INIT( popper ) { + const UINT8 *color_prom = machine.region("proms")->base(); rgb_t *rgb; rgb = compute_res_net_all(machine, color_prom, &popper_decode_info, &popper_net_info); diff --git a/src/mame/video/portrait.c b/src/mame/video/portrait.c index 7081204c22d..72e6edfde79 100644 --- a/src/mame/video/portrait.c +++ b/src/mame/video/portrait.c @@ -77,6 +77,7 @@ VIDEO_START( portrait ) PALETTE_INIT( portrait ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; UINT8* lookup = machine.region("tileattr")->base(); diff --git a/src/mame/video/quasar.c b/src/mame/video/quasar.c index f9ccfdd7e0d..d5ff8432624 100644 --- a/src/mame/video/quasar.c +++ b/src/mame/video/quasar.c @@ -21,6 +21,7 @@ PALETTE_INIT( quasar ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/rallyx.c b/src/mame/video/rallyx.c index 684f5ac0bc1..17d26099ba0 100644 --- a/src/mame/video/rallyx.c +++ b/src/mame/video/rallyx.c @@ -57,6 +57,7 @@ needs more color combination to render its graphics. PALETTE_INIT( rallyx ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; @@ -115,6 +116,7 @@ PALETTE_INIT( rallyx ) PALETTE_INIT( jungler ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; static const int resistances_star[3] = { 150, 100 }; diff --git a/src/mame/video/redclash.c b/src/mame/video/redclash.c index e9e98e88f4b..6c28df2ab2c 100644 --- a/src/mame/video/redclash.c +++ b/src/mame/video/redclash.c @@ -20,6 +20,7 @@ PALETTE_INIT( redclash ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/retofinv.c b/src/mame/video/retofinv.c index c57cf33ec9d..c883466ac2c 100644 --- a/src/mame/video/retofinv.c +++ b/src/mame/video/retofinv.c @@ -12,6 +12,7 @@ PALETTE_INIT( retofinv ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/rockrage.c b/src/mame/video/rockrage.c index 8f80a7e2021..cdf85519b52 100644 --- a/src/mame/video/rockrage.c +++ b/src/mame/video/rockrage.c @@ -4,6 +4,7 @@ PALETTE_INIT( rockrage ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/rocnrope.c b/src/mame/video/rocnrope.c index a6a56fccbbf..0148bda9c15 100644 --- a/src/mame/video/rocnrope.c +++ b/src/mame/video/rocnrope.c @@ -31,6 +31,7 @@ PALETTE_INIT( rocnrope ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/rollrace.c b/src/mame/video/rollrace.c index 4ec825f0b5b..ef07a4cf98b 100644 --- a/src/mame/video/rollrace.c +++ b/src/mame/video/rollrace.c @@ -22,6 +22,7 @@ ***************************************************************************/ PALETTE_INIT( rollrace ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; diff --git a/src/mame/video/sbasketb.c b/src/mame/video/sbasketb.c index 6cc9e857d29..21b86633a2f 100644 --- a/src/mame/video/sbasketb.c +++ b/src/mame/video/sbasketb.c @@ -28,6 +28,7 @@ PALETTE_INIT( sbasketb ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[4] = { 2000, 1000, 470, 220 }; double rweights[4], gweights[4], bweights[4]; int i; diff --git a/src/mame/video/scotrsht.c b/src/mame/video/scotrsht.c index cdcf2dd989c..e03723c06d0 100644 --- a/src/mame/video/scotrsht.c +++ b/src/mame/video/scotrsht.c @@ -5,6 +5,7 @@ /* Similar as Iron Horse */ PALETTE_INIT( scotrsht ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/seicross.c b/src/mame/video/seicross.c index 5057e2bfbb7..7d6fd092afb 100644 --- a/src/mame/video/seicross.c +++ b/src/mame/video/seicross.c @@ -27,6 +27,7 @@ ***************************************************************************/ PALETTE_INIT( seicross ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; diff --git a/src/mame/video/seta.c b/src/mame/video/seta.c index 814bfe4ef90..be6c96e033f 100644 --- a/src/mame/video/seta.c +++ b/src/mame/video/seta.c @@ -665,6 +665,7 @@ PALETTE_INIT( zingzip ) // color prom PALETTE_INIT( inttoote ) { + const UINT8 *color_prom = machine.region("proms")->base(); int x; for (x = 0; x < 0x200 ; x++) { @@ -683,6 +684,7 @@ PALETTE_INIT( setaroul ) PALETTE_INIT( usclssic ) { + const UINT8 *color_prom = machine.region("proms")->base(); int color, pen; int x; diff --git a/src/mame/video/shangkid.c b/src/mame/video/shangkid.c index a4d507a0703..cfd6f269ffe 100644 --- a/src/mame/video/shangkid.c +++ b/src/mame/video/shangkid.c @@ -201,6 +201,7 @@ SCREEN_UPDATE_IND16( shangkid ) PALETTE_INIT( dynamski ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/shaolins.c b/src/mame/video/shaolins.c index 5feb96daa2d..528f07fc8e4 100644 --- a/src/mame/video/shaolins.c +++ b/src/mame/video/shaolins.c @@ -28,6 +28,7 @@ ***************************************************************************/ PALETTE_INIT( shaolins ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[4] = { 2200, 1000, 470, 220 }; double rweights[4], gweights[4], bweights[4]; int i; diff --git a/src/mame/video/shootout.c b/src/mame/video/shootout.c index c583867dae6..f89d90f7e0d 100644 --- a/src/mame/video/shootout.c +++ b/src/mame/video/shootout.c @@ -9,6 +9,7 @@ PALETTE_INIT( shootout ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; diff --git a/src/mame/video/sidepckt.c b/src/mame/video/sidepckt.c index 4ba0dec5c6e..cba1915b6d8 100644 --- a/src/mame/video/sidepckt.c +++ b/src/mame/video/sidepckt.c @@ -4,6 +4,7 @@ PALETTE_INIT( sidepckt ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < machine.total_colors();i++) diff --git a/src/mame/video/skyfox.c b/src/mame/video/skyfox.c index c4e834fba24..8795d8465b6 100644 --- a/src/mame/video/skyfox.c +++ b/src/mame/video/skyfox.c @@ -89,6 +89,7 @@ WRITE8_MEMBER(skyfox_state::skyfox_vregs_w) PALETTE_INIT( skyfox ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 256; i++) diff --git a/src/mame/video/skykid.c b/src/mame/video/skykid.c index a407b7bc717..065efd0a69c 100644 --- a/src/mame/video/skykid.c +++ b/src/mame/video/skykid.c @@ -17,6 +17,7 @@ PALETTE_INIT( skykid ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/snk.c b/src/mame/video/snk.c index 29b7c9f60cc..28ef08641a8 100644 --- a/src/mame/video/snk.c +++ b/src/mame/video/snk.c @@ -27,6 +27,7 @@ PALETTE_INIT( tnk3 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; int num_colors = 0x400; diff --git a/src/mame/video/snk6502.c b/src/mame/video/snk6502.c index 4b13a7a6387..e6bd5337b06 100644 --- a/src/mame/video/snk6502.c +++ b/src/mame/video/snk6502.c @@ -24,6 +24,7 @@ ***************************************************************************/ PALETTE_INIT( snk6502 ) { + const UINT8 *color_prom = machine.region("proms")->base(); snk6502_state *state = machine.driver_data(); int i; @@ -209,6 +210,7 @@ SCREEN_UPDATE_IND16( snk6502 ) PALETTE_INIT( satansat ) { + const UINT8 *color_prom = machine.region("proms")->base(); snk6502_state *state = machine.driver_data(); int i; diff --git a/src/mame/video/snookr10.c b/src/mame/video/snookr10.c index 7f1030840dd..bc1f5b21df8 100644 --- a/src/mame/video/snookr10.c +++ b/src/mame/video/snookr10.c @@ -57,6 +57,7 @@ WRITE8_MEMBER(snookr10_state::snookr10_colorram_w) PALETTE_INIT( snookr10 ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* GGBBBRRR */ int i; @@ -117,6 +118,7 @@ static TILE_GET_INFO( get_bg_tile_info ) PALETTE_INIT( apple10 ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* GGBBBRRR */ int i, cn; diff --git a/src/mame/video/sonson.c b/src/mame/video/sonson.c index 673afa94e83..7accde882c3 100644 --- a/src/mame/video/sonson.c +++ b/src/mame/video/sonson.c @@ -41,6 +41,7 @@ PALETTE_INIT( sonson ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/spdodgeb.c b/src/mame/video/spdodgeb.c index 25ea2389031..fb00fb30ed4 100644 --- a/src/mame/video/spdodgeb.c +++ b/src/mame/video/spdodgeb.c @@ -5,6 +5,7 @@ PALETTE_INIT( spdodgeb ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; diff --git a/src/mame/video/speedatk.c b/src/mame/video/speedatk.c index 5b6ee6a9152..65425ecb8e6 100644 --- a/src/mame/video/speedatk.c +++ b/src/mame/video/speedatk.c @@ -10,6 +10,7 @@ PALETTE_INIT( speedatk ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/sprcros2.c b/src/mame/video/sprcros2.c index dc8a5f811e2..9349135ae5f 100644 --- a/src/mame/video/sprcros2.c +++ b/src/mame/video/sprcros2.c @@ -9,6 +9,7 @@ Super Cross II (JPN Ver.) PALETTE_INIT( sprcros2 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/srmp2.c b/src/mame/video/srmp2.c index 9ca918379f1..574f1429301 100644 --- a/src/mame/video/srmp2.c +++ b/src/mame/video/srmp2.c @@ -11,6 +11,7 @@ Functions to emulate the video hardware of the machine. PALETTE_INIT( srmp2 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) @@ -25,6 +26,7 @@ PALETTE_INIT( srmp2 ) PALETTE_INIT( srmp3 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/ssozumo.c b/src/mame/video/ssozumo.c index 828324ed028..447bc61a298 100644 --- a/src/mame/video/ssozumo.c +++ b/src/mame/video/ssozumo.c @@ -14,6 +14,7 @@ Driver by Takahiro Nogi (nogi@kt.rim.or.jp) 1999/10/04 PALETTE_INIT( ssozumo ) { + const UINT8 *color_prom = machine.region("proms")->base(); int bit0, bit1, bit2, bit3, r, g, b; int i; diff --git a/src/mame/video/stactics.c b/src/mame/video/stactics.c index eda54eb0482..ded231b9661 100644 --- a/src/mame/video/stactics.c +++ b/src/mame/video/stactics.c @@ -59,6 +59,7 @@ tilt the mirror up and down, and the monitor left and right. static PALETTE_INIT( stactics ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 0x400; i++) diff --git a/src/mame/video/stfight.c b/src/mame/video/stfight.c index ec38b6b51c8..1a11299f066 100644 --- a/src/mame/video/stfight.c +++ b/src/mame/video/stfight.c @@ -32,6 +32,7 @@ PALETTE_INIT( stfight ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/strnskil.c b/src/mame/video/strnskil.c index 1dfe1914c6b..fe03dd75c99 100644 --- a/src/mame/video/strnskil.c +++ b/src/mame/video/strnskil.c @@ -14,6 +14,7 @@ Video hardware driver by Uki PALETTE_INIT( strnskil ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/suprloco.c b/src/mame/video/suprloco.c index 9124d8effb8..a85fa7124ad 100644 --- a/src/mame/video/suprloco.c +++ b/src/mame/video/suprloco.c @@ -30,6 +30,7 @@ ***************************************************************************/ PALETTE_INIT( suprloco ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; diff --git a/src/mame/video/suprridr.c b/src/mame/video/suprridr.c index 105377d6ddb..a2ae19cee32 100644 --- a/src/mame/video/suprridr.c +++ b/src/mame/video/suprridr.c @@ -57,6 +57,7 @@ VIDEO_START( suprridr ) PALETTE_INIT( suprridr ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 96; i++) diff --git a/src/mame/video/tagteam.c b/src/mame/video/tagteam.c index b5a507a4efc..7bfd9b96efb 100644 --- a/src/mame/video/tagteam.c +++ b/src/mame/video/tagteam.c @@ -34,6 +34,7 @@ static const res_net_decode_info tagteam_decode_info = PALETTE_INIT( tagteam ) { + const UINT8 *color_prom = machine.region("proms")->base(); rgb_t *rgb; rgb = compute_res_net_all(machine, color_prom, &tagteam_decode_info, &tagteam_net_info); diff --git a/src/mame/video/tankbatt.c b/src/mame/video/tankbatt.c index 954842c6dec..7449f2a8c0e 100644 --- a/src/mame/video/tankbatt.c +++ b/src/mame/video/tankbatt.c @@ -17,6 +17,7 @@ ***************************************************************************/ PALETTE_INIT( tankbatt ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; #define RES_1 0xc0 /* this is a guess */ diff --git a/src/mame/video/tceptor.c b/src/mame/video/tceptor.c index 4ba14dbb5b1..541ee62b203 100644 --- a/src/mame/video/tceptor.c +++ b/src/mame/video/tceptor.c @@ -20,6 +20,7 @@ PALETTE_INIT( tceptor ) { + const UINT8 *color_prom = machine.region("proms")->base(); tceptor_state *state = machine.driver_data(); int i; diff --git a/src/mame/video/terracre.c b/src/mame/video/terracre.c index b350f092505..95954bc784c 100644 --- a/src/mame/video/terracre.c +++ b/src/mame/video/terracre.c @@ -95,6 +95,7 @@ static void draw_sprites(running_machine &machine, bitmap_ind16 &bitmap, const r PALETTE_INIT( amazon ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/thedeep.c b/src/mame/video/thedeep.c index e98ceae0979..86da0a3a283 100644 --- a/src/mame/video/thedeep.c +++ b/src/mame/video/thedeep.c @@ -88,6 +88,7 @@ WRITE8_MEMBER(thedeep_state::thedeep_vram_1_w) PALETTE_INIT( thedeep ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < 512;i++) palette_set_color_rgb(machine,i,pal4bit(color_prom[0x400 + i] >> 0),pal4bit(color_prom[0x400 + i] >> 4),pal4bit(color_prom[0x200 + i] >> 0)); diff --git a/src/mame/video/thepit.c b/src/mame/video/thepit.c index 0ffb93e1725..70e339f2f82 100644 --- a/src/mame/video/thepit.c +++ b/src/mame/video/thepit.c @@ -28,6 +28,7 @@ PALETTE_INIT( thepit ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 32; i++) @@ -68,6 +69,7 @@ PALETTE_INIT( thepit ) PALETTE_INIT( suprmous ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 32; i++) diff --git a/src/mame/video/timelimt.c b/src/mame/video/timelimt.c index cf61a363a2f..49ca4b217ab 100644 --- a/src/mame/video/timelimt.c +++ b/src/mame/video/timelimt.c @@ -21,6 +21,7 @@ ***************************************************************************/ PALETTE_INIT( timelimt ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < machine.total_colors();i++) diff --git a/src/mame/video/timeplt.c b/src/mame/video/timeplt.c index cdba59499eb..b2bdc08094c 100644 --- a/src/mame/video/timeplt.c +++ b/src/mame/video/timeplt.c @@ -39,6 +39,7 @@ PALETTE_INIT( timeplt ) { + const UINT8 *color_prom = machine.region("proms")->base(); rgb_t palette[32]; int i; diff --git a/src/mame/video/tnzs.c b/src/mame/video/tnzs.c index f6c2c8b65cf..77497e499ad 100644 --- a/src/mame/video/tnzs.c +++ b/src/mame/video/tnzs.c @@ -32,6 +32,7 @@ PALETTE_INIT( arknoid2 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, col; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/toypop.c b/src/mame/video/toypop.c index f3bfbb7378e..60e7eb75b4e 100644 --- a/src/mame/video/toypop.c +++ b/src/mame/video/toypop.c @@ -20,6 +20,7 @@ PALETTE_INIT( toypop ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* allocate the colortable */ machine.colortable = colortable_alloc(machine, 256); diff --git a/src/mame/video/tp84.c b/src/mame/video/tp84.c index cb8dbbba15e..e6486aaed73 100644 --- a/src/mame/video/tp84.c +++ b/src/mame/video/tp84.c @@ -43,6 +43,7 @@ */ PALETTE_INIT( tp84 ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances[4] = { 1000, 470, 220, 100 }; double weights[4]; int i; diff --git a/src/mame/video/trackfld.c b/src/mame/video/trackfld.c index 687365eadaa..ed2ffbd1b27 100644 --- a/src/mame/video/trackfld.c +++ b/src/mame/video/trackfld.c @@ -31,6 +31,7 @@ PALETTE_INIT( trackfld ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/travrusa.c b/src/mame/video/travrusa.c index bce50eac705..79db742e552 100644 --- a/src/mame/video/travrusa.c +++ b/src/mame/video/travrusa.c @@ -39,6 +39,7 @@ J Clegg PALETTE_INIT( travrusa ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ @@ -114,6 +115,7 @@ PALETTE_INIT( travrusa ) PALETTE_INIT( shtrider ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */ diff --git a/src/mame/video/trucocl.c b/src/mame/video/trucocl.c index 771d6666b72..44c51f83b8e 100644 --- a/src/mame/video/trucocl.c +++ b/src/mame/video/trucocl.c @@ -38,6 +38,7 @@ Daughterboard: Custom made, plugged in the 2 roms and Z80 mainboard sockets. PALETTE_INIT( trucocl ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < 32;i++) diff --git a/src/mame/video/tryout.c b/src/mame/video/tryout.c index a6d4b500e6e..4001d308e40 100644 --- a/src/mame/video/tryout.c +++ b/src/mame/video/tryout.c @@ -11,6 +11,7 @@ PALETTE_INIT( tryout ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < machine.total_colors();i++) diff --git a/src/mame/video/tubep.c b/src/mame/video/tubep.c index 6f3ab53d595..7b31c779e21 100644 --- a/src/mame/video/tubep.c +++ b/src/mame/video/tubep.c @@ -133,6 +133,7 @@ PALETTE_INIT( tubep ) { + const UINT8 *color_prom = machine.region("proms")->base(); tubep_state *state = machine.driver_data(); int i,r,g,b; @@ -685,6 +686,7 @@ SCREEN_UPDATE_IND16( tubep ) PALETTE_INIT( rjammer ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; static const int resistors_rg[3] = { 1000, 470, 220 }; diff --git a/src/mame/video/tx1.c b/src/mame/video/tx1.c index 5f0bfca863e..45a27eba783 100644 --- a/src/mame/video/tx1.c +++ b/src/mame/video/tx1.c @@ -112,6 +112,7 @@ enum PALETTE_INIT( tx1 ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; static const res_net_info tx1_net_info = @@ -1248,6 +1249,7 @@ SCREEN_UPDATE_IND16( tx1_right ) PALETTE_INIT( buggyboy ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < 0x100; i++) diff --git a/src/mame/video/ultratnk.c b/src/mame/video/ultratnk.c index a2a5a055b4f..ac51ea5dde5 100644 --- a/src/mame/video/ultratnk.c +++ b/src/mame/video/ultratnk.c @@ -11,6 +11,7 @@ Atari Ultra Tank video emulation PALETTE_INIT( ultratnk ) { + const UINT8 *color_prom = machine.region("proms")->base(); /* allocate the colortable */ machine.colortable = colortable_alloc(machine, 4); diff --git a/src/mame/video/vulgus.c b/src/mame/video/vulgus.c index 118601240be..08202b5d6e2 100644 --- a/src/mame/video/vulgus.c +++ b/src/mame/video/vulgus.c @@ -18,6 +18,7 @@ PALETTE_INIT( vulgus ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; machine.colortable = colortable_alloc(machine, 256); diff --git a/src/mame/video/wiping.c b/src/mame/video/wiping.c index d1b862ad47a..f341c25c7bd 100644 --- a/src/mame/video/wiping.c +++ b/src/mame/video/wiping.c @@ -19,6 +19,7 @@ PALETTE_INIT( wiping ) { + const UINT8 *color_prom = machine.region("proms")->base(); static const int resistances_rg[3] = { 1000, 470, 220 }; static const int resistances_b [2] = { 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/wiz.c b/src/mame/video/wiz.c index 4bd703541c6..41f8487f4c9 100644 --- a/src/mame/video/wiz.c +++ b/src/mame/video/wiz.c @@ -35,6 +35,7 @@ VIDEO_START( wiz ) ***************************************************************************/ PALETTE_INIT( wiz ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; diff --git a/src/mame/video/xevious.c b/src/mame/video/xevious.c index 143dd8b5fad..64557adccd4 100644 --- a/src/mame/video/xevious.c +++ b/src/mame/video/xevious.c @@ -26,6 +26,7 @@ ***************************************************************************/ PALETTE_INIT( xevious ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; #define TOTAL_COLORS(gfxn) (machine.gfx[gfxn]->total_colors * machine.gfx[gfxn]->color_granularity) @@ -99,6 +100,7 @@ PALETTE_INIT( xevious ) PALETTE_INIT( battles ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; machine.colortable = colortable_alloc(machine, 128+1); diff --git a/src/mame/video/xorworld.c b/src/mame/video/xorworld.c index 1c6e6c46320..329b6e6da69 100644 --- a/src/mame/video/xorworld.c +++ b/src/mame/video/xorworld.c @@ -18,6 +18,7 @@ PALETTE_INIT( xorworld ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0;i < machine.total_colors();i++){ diff --git a/src/mame/video/xyonix.c b/src/mame/video/xyonix.c index cb4eec4522c..3feca59da96 100644 --- a/src/mame/video/xyonix.c +++ b/src/mame/video/xyonix.c @@ -3,6 +3,7 @@ PALETTE_INIT( xyonix ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; diff --git a/src/mame/video/yiear.c b/src/mame/video/yiear.c index 5c27d7e809f..1dff9a4752d 100644 --- a/src/mame/video/yiear.c +++ b/src/mame/video/yiear.c @@ -30,6 +30,7 @@ PALETTE_INIT( yiear ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; for (i = 0; i < machine.total_colors(); i++) diff --git a/src/mame/video/zaccaria.c b/src/mame/video/zaccaria.c index 848aaefdd3b..2f96212e161 100644 --- a/src/mame/video/zaccaria.c +++ b/src/mame/video/zaccaria.c @@ -35,6 +35,7 @@ Here's the hookup from the proms (82s131) to the r-g-b-outputs ***************************************************************************/ PALETTE_INIT( zaccaria ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i, j, k; static const int resistances_rg[] = { 1200, 1000, 820 }; static const int resistances_b[] = { 1000, 820 }; diff --git a/src/mame/video/zaxxon.c b/src/mame/video/zaxxon.c index 5a79f29dde3..99a23cb8024 100644 --- a/src/mame/video/zaxxon.c +++ b/src/mame/video/zaxxon.c @@ -17,6 +17,7 @@ PALETTE_INIT( zaxxon ) { + const UINT8 *color_prom = machine.region("proms")->base(); zaxxon_state *state = machine.driver_data(); static const int resistances[3] = { 1000, 470, 220 }; double rweights[3], gweights[3], bweights[2]; diff --git a/src/mame/video/zodiack.c b/src/mame/video/zodiack.c index 6c37f790ca5..82e9557b519 100644 --- a/src/mame/video/zodiack.c +++ b/src/mame/video/zodiack.c @@ -48,6 +48,7 @@ WRITE8_MEMBER( zodiack_state::flipscreen_w ) PALETTE_INIT( zodiack ) { + const UINT8 *color_prom = machine.region("proms")->base(); int i; /* allocate the colortable */