summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-06-08 05:43:50 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-06-08 05:43:50 +0000
commitce83de86a8c88053081d9f5cb8c6b83baf606fb9 (patch)
tree7729630ed967f79cecd7da3229a2c0e4675d6e60
parente7f6662790f67c60b26e93272d3d9c534fad4799 (diff)
The other larger patch adds missing static and const qualifiers, and
fixes up some header files. In particular, I adjusted const char *DEVTEMPLATE_SOURCE = __FILE__ to const char DEVTEMPLATE_SOURCE[] = __FILE__ which makes it actually const and saves a little memory. [Atari Ace]
-rw-r--r--src/emu/cpu/dsp56k/dsp56pcu.c2
-rw-r--r--src/emu/cpu/h83002/h8_8.c6
-rw-r--r--src/emu/cpu/i860/i860dec.c8
-rw-r--r--src/emu/cpu/i860/i860dis.c6
-rw-r--r--src/emu/cpu/tlcs900/dasm900.c18
-rw-r--r--src/emu/crsshair.h3
-rw-r--r--src/emu/devtempl.h2
-rw-r--r--src/emu/machine/6522via.h1
-rw-r--r--src/emu/machine/6821pia.c2
-rw-r--r--src/emu/machine/6840ptm.c2
-rw-r--r--src/emu/machine/adc083x.c2
-rw-r--r--src/emu/machine/adc1213x.c2
-rw-r--r--src/emu/machine/ds1302.c2
-rw-r--r--src/emu/machine/mb3773.c2
-rw-r--r--src/emu/machine/pd4990a.c6
-rw-r--r--src/emu/machine/rp5h01.c2
-rw-r--r--src/emu/machine/upd4701.c2
-rw-r--r--src/emu/sound/okim6258.h1
-rw-r--r--src/emu/sound/okim6376.c2
-rw-r--r--src/emu/sound/pokey.c4
-rw-r--r--src/emu/video/voodoo.c2
-rw-r--r--src/emu/watchdog.c3
-rw-r--r--src/mame/audio/namco52.c4
-rw-r--r--src/mame/audio/namco54.c4
-rw-r--r--src/mame/audio/trackfld.c1
-rw-r--r--src/mame/audio/wiping.c1
-rw-r--r--src/mame/drivers/cubeqst.c2
-rw-r--r--src/mame/drivers/darius.c4
-rw-r--r--src/mame/drivers/fantland.c2
-rw-r--r--src/mame/drivers/galaxian.c2
-rw-r--r--src/mame/drivers/goldstar.c6
-rw-r--r--src/mame/drivers/junofrst.c2
-rw-r--r--src/mame/drivers/maygay1b.c2
-rw-r--r--src/mame/drivers/maygayv1.c2
-rw-r--r--src/mame/drivers/megadriv.c8
-rw-r--r--src/mame/drivers/megazone.c2
-rw-r--r--src/mame/drivers/mirax.c2
-rw-r--r--src/mame/drivers/naomi.c81
-rw-r--r--src/mame/drivers/ninjaw.c2
-rw-r--r--src/mame/drivers/suna8.c2
-rw-r--r--src/mame/drivers/system1.c2
-rw-r--r--src/mame/drivers/system16.c17
-rw-r--r--src/mame/drivers/taito_z.c2
-rw-r--r--src/mame/drivers/twinkle.c6
-rw-r--r--src/mame/drivers/warriorb.c2
-rw-r--r--src/mame/drivers/wiping.c13
-rw-r--r--src/mame/includes/archimds.h2
-rw-r--r--src/mame/includes/kaneko16.h4
-rw-r--r--src/mame/includes/m79amb.h2
-rw-r--r--src/mame/includes/naomi.h2
-rw-r--r--src/mame/includes/naomibd.h2
-rw-r--r--src/mame/includes/rockola.h2
-rw-r--r--src/mame/includes/sei_crtc.h4
-rw-r--r--src/mame/includes/seta.h1
-rw-r--r--src/mame/includes/suprnova.h3
-rw-r--r--src/mame/includes/system16.h22
-rw-r--r--src/mame/includes/tatsumi.h2
-rw-r--r--src/mame/includes/tetrisp2.h2
-rw-r--r--src/mame/includes/tnzs.h1
-rw-r--r--src/mame/includes/tx1.h3
-rw-r--r--src/mame/machine/namco06.c2
-rw-r--r--src/mame/machine/namco50.c4
-rw-r--r--src/mame/machine/namco51.c4
-rw-r--r--src/mame/machine/namco53.c4
-rw-r--r--src/mame/video/dc.c2
-rw-r--r--src/mame/video/rockola.c1
-rw-r--r--src/mame/video/system16.c8
-rw-r--r--src/mame/video/trackfld.c1
-rw-r--r--src/mame/video/wiping.c1
69 files changed, 146 insertions, 184 deletions
diff --git a/src/emu/cpu/dsp56k/dsp56pcu.c b/src/emu/cpu/dsp56k/dsp56pcu.c
index 355a413d291..662889a0f6f 100644
--- a/src/emu/cpu/dsp56k/dsp56pcu.c
+++ b/src/emu/cpu/dsp56k/dsp56pcu.c
@@ -107,7 +107,7 @@ static UINT8 SE_bit(dsp56k_core* cpustate) { return (SP & 0x0010) >> 4; }
//static void SE_bit_set(dsp56k_core* cpustate, UINT8 value) {};
-UINT8 dsp56k_operating_mode(dsp56k_core* cpustate)
+static UINT8 dsp56k_operating_mode(dsp56k_core* cpustate)
{
return ((MB_bit(cpustate) << 1) | MA_bit(cpustate));
}
diff --git a/src/emu/cpu/h83002/h8_8.c b/src/emu/cpu/h83002/h8_8.c
index f9aaec6b87f..61c9134b4d8 100644
--- a/src/emu/cpu/h83002/h8_8.c
+++ b/src/emu/cpu/h83002/h8_8.c
@@ -398,7 +398,7 @@ static void h8_check_irqs(h83xx_state *h8)
// peripherals
static void recalc_8bit_timer(h83xx_state *h8, int t)
{
- static INT32 dividers[8] = { 0, 0, 8, 2, 64, 32, 1024, 256 };
+ static const INT32 dividers[8] = { 0, 0, 8, 2, 64, 32, 1024, 256 };
int div;
INT32 time;
@@ -428,7 +428,7 @@ static void recalc_8bit_timer(h83xx_state *h8, int t)
// IRQs: timer 0: 19 A 20 B 21 OV timer1: 22 A 23 B 24 OV
static void timer_8bit_expire(h83xx_state *h8, int t, int sel)
{
- static int irqbase[2] = { 19, 22 };
+ static const int irqbase[2] = { 19, 22 };
timer_adjust_oneshot(h8->timer[(t*2)+sel], attotime_never, 0);
@@ -512,7 +512,7 @@ static READ8_HANDLER( h8330_itu_r )
UINT8 val;
UINT8 reg;
UINT64 frc;
- static UINT64 divider[4] = { 2, 8, 32, 1 };
+ static const UINT64 divider[4] = { 2, 8, 32, 1 };
h83xx_state *h8 = (h83xx_state *)space->cpu->token;
reg = (offset + 0x88) & 0xff;
diff --git a/src/emu/cpu/i860/i860dec.c b/src/emu/cpu/i860/i860dec.c
index 5116536695d..d7485ccd61d 100644
--- a/src/emu/cpu/i860/i860dec.c
+++ b/src/emu/cpu/i860/i860dec.c
@@ -2961,7 +2961,7 @@ enum {
So we only represent the PFAM table and use a special flag on any entry
where the PFMAM table would use the M pipe rather than the A pipe.
Also, entry 16 is not valid for PFMAM. */
-static struct
+static const struct
{
int M_unit_op1;
int M_unit_op2;
@@ -4083,7 +4083,7 @@ typedef struct {
/* First-level decode table (i.e., for the 6 primary opcode bits). */
-static decode_tbl_t decode_tbl[64] = {
+static const decode_tbl_t decode_tbl[64] = {
/* A slight bit of decoding for loads and stores is done in the
execution routines (operand size and addressing mode), which
is why their respective entries are identical. */
@@ -4155,7 +4155,7 @@ static decode_tbl_t decode_tbl[64] = {
/* Second-level decode table (i.e., for the 3 core escape opcode bits). */
-static decode_tbl_t core_esc_decode_tbl[8] = {
+static const decode_tbl_t core_esc_decode_tbl[8] = {
{ 0, 0},
{ 0, 0}, /* lock (FIXME: unimplemented). */
{ insn_calli, DEC_DECODED}, /* calli isrc1ni. */
@@ -4168,7 +4168,7 @@ static decode_tbl_t core_esc_decode_tbl[8] = {
/* Second-level decode table (i.e., for the 7 FP extended opcode bits). */
-static decode_tbl_t fp_decode_tbl[128] = {
+static const decode_tbl_t fp_decode_tbl[128] = {
/* Floating point instructions. The least significant 7 bits are
the (extended) opcode and bits 10:7 are P,D,S,R respectively
([p]ipelined, [d]ual, [s]ource prec., [r]esult prec.).
diff --git a/src/emu/cpu/i860/i860dis.c b/src/emu/cpu/i860/i860dis.c
index fb1e7315477..f47dab745a4 100644
--- a/src/emu/cpu/i860/i860dis.c
+++ b/src/emu/cpu/i860/i860dis.c
@@ -388,7 +388,7 @@ typedef struct
/* First-level decode table (i.e., for the 6 primary opcode bits). */
-static decode_tbl_t decode_tbl[64] =
+static const decode_tbl_t decode_tbl[64] =
{
/* A slight bit of decoding for loads and stores is done in the
execution routines (operand size and addressing mode), which
@@ -461,7 +461,7 @@ static decode_tbl_t decode_tbl[64] =
/* Second-level decode table (i.e., for the 3 core escape opcode bits). */
-static decode_tbl_t core_esc_decode_tbl[8] =
+static const decode_tbl_t core_esc_decode_tbl[8] =
{
{ 0, 0 , 0 },
{ int_0, DEC_DECODED, "lock" }, /* lock. */
@@ -475,7 +475,7 @@ static decode_tbl_t core_esc_decode_tbl[8] =
/* Second-level decode table (i.e., for the 7 FP extended opcode bits). */
-static decode_tbl_t fp_decode_tbl[128] =
+static const decode_tbl_t fp_decode_tbl[128] =
{
/* Floating point instructions. The least significant 7 bits are
the (extended) opcode and bits 10:7 are P,D,S,R respectively
diff --git a/src/emu/cpu/tlcs900/dasm900.c b/src/emu/cpu/tlcs900/dasm900.c
index 97bc94585a4..1ecbaf14837 100644
--- a/src/emu/cpu/tlcs900/dasm900.c
+++ b/src/emu/cpu/tlcs900/dasm900.c
@@ -35,7 +35,7 @@ enum e_mnemonics
};
-static const char *s_mnemonic[] =
+static const char *const s_mnemonic[] =
{
"adc", "add", "and", "andcf", "bit", "bs1b",
"bs1f", "call", "calr", "ccf", "chg", "cp",
@@ -1358,11 +1358,11 @@ static const tlcs900inst mnemonic[256] =
-static const char *s_reg8[8] = { "W", "A", "B", "C", "D", "E", "H", "L" };
-static const char *s_reg16[8] = { "WA", "BC", "DE", "HL", "IX", "IY", "IZ", "SP" };
-static const char *s_reg32[8] = { "XWA", "XBC", "XDE", "XHL", "XIX", "XIY", "XIZ", "XSP" };
-static const char *s_mulreg16[8] = { "??", "WA", "??", "BC", "??", "DE", "??", "HL" };
-static const char *s_allreg8[256] =
+static const char *const s_reg8[8] = { "W", "A", "B", "C", "D", "E", "H", "L" };
+static const char *const s_reg16[8] = { "WA", "BC", "DE", "HL", "IX", "IY", "IZ", "SP" };
+static const char *const s_reg32[8] = { "XWA", "XBC", "XDE", "XHL", "XIX", "XIY", "XIZ", "XSP" };
+static const char *const s_mulreg16[8] = { "??", "WA", "??", "BC", "??", "DE", "??", "HL" };
+static const char *const s_allreg8[256] =
{
"RA0" ,"RW0" ,"QA0" ,"QW0" ,"RC0" ,"RB0" ,"QC0" ,"QB0" ,"RE0" ,"RD0" ,"QE0" ,"QD0" ,"RL0" ,"RH0" ,"QL0" ,"QH0" ,
"RA1" ,"RW1" ,"QA1" ,"QW1" ,"RC1" ,"RB1" ,"QC1" ,"QB1" ,"RE1" ,"RD1" ,"QE1" ,"QD1" ,"RL1" ,"RH1" ,"QL1" ,"QH1" ,
@@ -1383,7 +1383,7 @@ static const char *s_allreg8[256] =
};
-static const char *s_allreg16[256] =
+static const char *const s_allreg16[256] =
{
"RWA0","r01W","QWA0","r03W","RBC0","r05W","QBC0","r07W","RDE0","r09W","QDE0","r0BW","RHL0","r0DW","QHL0","r0FW",
"RWA1","r11W","QWA1","r13W","RBC1","r15W","QBC1","r17W","RDE1","r19W","QDE1","r1BW","RHL1","r1DW","QHL1","r1FW",
@@ -1404,7 +1404,7 @@ static const char *s_allreg16[256] =
};
-static const char *s_allreg32[256] =
+static const char *const s_allreg32[256] =
{
"XWA0","XWA0","XWA0","r03L","XBC0","XBC0","XBC0","r07L","XDE0","XDE0","XDE0","r0BL","XHL0","XHL0","XHL0","r0FL",
"XWA1","XWA1","XWA1","r13L","XBC1","XBC1","XBC1","r17L","XDE1","XDE1","XDE1","r1BL","XHL1","XHL1","XHL1","r1FL",
@@ -1425,7 +1425,7 @@ static const char *s_allreg32[256] =
};
-static const char *s_cond[16] =
+static const char *const s_cond[16] =
{
"F","LT","LE","ULE","PE/OV","M/MI","Z","C","T","GE","GT","UGT","PO/NOV","P/PL","NZ","NC"
};
diff --git a/src/emu/crsshair.h b/src/emu/crsshair.h
index 6979873d051..6458dc4648b 100644
--- a/src/emu/crsshair.h
+++ b/src/emu/crsshair.h
@@ -64,9 +64,6 @@ void crosshair_init(running_machine *machine);
/* draws crosshair(s) in a given screen, if neccessary */
void crosshair_render(const device_config *screen);
-/* toggles crosshair visibility */
-void crosshair_toggle(running_machine *machine);
-
/* sets the screen(s) for a given player's crosshair */
void crosshair_set_screen(running_machine *machine, int player, const device_config *screen);
diff --git a/src/emu/devtempl.h b/src/emu/devtempl.h
index 054d9fc68fc..04978aa1b0c 100644
--- a/src/emu/devtempl.h
+++ b/src/emu/devtempl.h
@@ -11,7 +11,7 @@
Typical usage is as follows:
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
// for a primary device....
#define DEVTEMPLATE_ID(p,s) p##devicenameprefix##s
diff --git a/src/emu/machine/6522via.h b/src/emu/machine/6522via.h
index d7ba52888ea..e875a3b63b8 100644
--- a/src/emu/machine/6522via.h
+++ b/src/emu/machine/6522via.h
@@ -77,7 +77,6 @@ DEVICE_GET_INFO(via6522);
READ8_DEVICE_HANDLER(via_r);
WRITE8_DEVICE_HANDLER(via_w);
-READ8_DEVICE_HANDLER(via_porta_r);
WRITE8_DEVICE_HANDLER(via_porta_w);
READ8_DEVICE_HANDLER(via_portb_r);
diff --git a/src/emu/machine/6821pia.c b/src/emu/machine/6821pia.c
index 4f7447eab40..bf54fbfa518 100644
--- a/src/emu/machine/6821pia.c
+++ b/src/emu/machine/6821pia.c
@@ -1322,7 +1322,7 @@ int pia6821_get_irq_b(const device_config *device)
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##pia6821##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
diff --git a/src/emu/machine/6840ptm.c b/src/emu/machine/6840ptm.c
index e86d9368ed8..e2ff13e1bc5 100644
--- a/src/emu/machine/6840ptm.c
+++ b/src/emu/machine/6840ptm.c
@@ -839,7 +839,7 @@ static DEVICE_RESET( ptm6840 )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##ptm6840##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
diff --git a/src/emu/machine/adc083x.c b/src/emu/machine/adc083x.c
index 36bdca53457..c4c8354149e 100644
--- a/src/emu/machine/adc083x.c
+++ b/src/emu/machine/adc083x.c
@@ -492,7 +492,7 @@ static DEVICE_RESET( adc0831 )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##adc0831##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
diff --git a/src/emu/machine/adc1213x.c b/src/emu/machine/adc1213x.c
index cc4d4df521f..65e6d163a69 100644
--- a/src/emu/machine/adc1213x.c
+++ b/src/emu/machine/adc1213x.c
@@ -354,7 +354,7 @@ static DEVICE_RESET( adc12138 )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##adc12138##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
diff --git a/src/emu/machine/ds1302.c b/src/emu/machine/ds1302.c
index 6db3065a0e4..585c0b23b58 100644
--- a/src/emu/machine/ds1302.c
+++ b/src/emu/machine/ds1302.c
@@ -219,7 +219,7 @@ static DEVICE_RESET( ds1302 )
DEVICE_GET_INFO( ds1302 )
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##ds1302##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
diff --git a/src/emu/machine/mb3773.c b/src/emu/machine/mb3773.c
index 2897e361f3b..8539345ac88 100644
--- a/src/emu/machine/mb3773.c
+++ b/src/emu/machine/mb3773.c
@@ -106,7 +106,7 @@ static DEVICE_RESET( mb3773 )
DEVICE_GET_INFO( mb3773 )
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##mb3773##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
diff --git a/src/emu/machine/pd4990a.c b/src/emu/machine/pd4990a.c
index c02cd915ebb..bee8f1d5542 100644
--- a/src/emu/machine/pd4990a.c
+++ b/src/emu/machine/pd4990a.c
@@ -104,7 +104,7 @@ INLINE UINT8 convert_to_bcd(int val)
upd4990a_increment_month
-------------------------------------------------*/
-void upd4990a_increment_month( const device_config *device )
+static void upd4990a_increment_month( const device_config *device )
{
upd4990a_state *upd4990a = get_safe_token(device);
@@ -127,7 +127,7 @@ void upd4990a_increment_month( const device_config *device )
upd4990a_increment_day
-------------------------------------------------*/
-void upd4990a_increment_day( const device_config *device )
+static void upd4990a_increment_day( const device_config *device )
{
upd4990a_state *upd4990a = get_safe_token(device);
int real_year;
@@ -526,7 +526,7 @@ static DEVICE_RESET( upd4990a )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##upd4990a##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
diff --git a/src/emu/machine/rp5h01.c b/src/emu/machine/rp5h01.c
index 4f979fdd0b3..3b96704c916 100644
--- a/src/emu/machine/rp5h01.c
+++ b/src/emu/machine/rp5h01.c
@@ -211,7 +211,7 @@ static DEVICE_RESET( rp5h01 )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##rp5h01##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
diff --git a/src/emu/machine/upd4701.c b/src/emu/machine/upd4701.c
index 416017ce19c..ad7c16525eb 100644
--- a/src/emu/machine/upd4701.c
+++ b/src/emu/machine/upd4701.c
@@ -306,7 +306,7 @@ static DEVICE_RESET( upd4701 )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##upd4701##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET
diff --git a/src/emu/sound/okim6258.h b/src/emu/sound/okim6258.h
index f0ed30b4322..286741e0590 100644
--- a/src/emu/sound/okim6258.h
+++ b/src/emu/sound/okim6258.h
@@ -29,7 +29,6 @@ void okim6258_set_clock(const device_config *device, int val);
int okim6258_get_vclk(const device_config *device);
READ8_DEVICE_HANDLER( okim6258_status_r );
-READ8_DEVICE_HANDLER( okim6258_data_r );
WRITE8_DEVICE_HANDLER( okim6258_data_w );
WRITE8_DEVICE_HANDLER( okim6258_ctrl_w );
diff --git a/src/emu/sound/okim6376.c b/src/emu/sound/okim6376.c
index c3b4ab2639b..80a14348e04 100644
--- a/src/emu/sound/okim6376.c
+++ b/src/emu/sound/okim6376.c
@@ -53,7 +53,7 @@ static int diff_lookup[49*16];
/* volume lookup table. Upon configuration, the number of ST pulses determine how much
attenuation to apply to the sound signal. */
-static int volume_table[4] =
+static const int volume_table[4] =
{
0x20, // 0 dB
0x10, // -6.0 dB
diff --git a/src/emu/sound/pokey.c b/src/emu/sound/pokey.c
index 7d36c711ade..0644b08ac3b 100644
--- a/src/emu/sound/pokey.c
+++ b/src/emu/sound/pokey.c
@@ -946,7 +946,7 @@ READ8_DEVICE_HANDLER( pokey_r )
READ8_HANDLER( quad_pokey_r )
{
- static const char *devname[4] = { "pokey1", "pokey2", "pokey3", "pokey4" };
+ static const char *const devname[4] = { "pokey1", "pokey2", "pokey3", "pokey4" };
int pokey_num = (offset >> 3) & ~0x04;
int control = (offset & 0x20) >> 2;
int pokey_reg = (offset % 8) | control;
@@ -1332,7 +1332,7 @@ WRITE8_DEVICE_HANDLER( pokey_w )
WRITE8_HANDLER( quad_pokey_w )
{
- static const char *devname[4] = { "pokey1", "pokey2", "pokey3", "pokey4" };
+ static const char *const devname[4] = { "pokey1", "pokey2", "pokey3", "pokey4" };
int pokey_num = (offset >> 3) & ~0x04;
int control = (offset & 0x20) >> 2;
int pokey_reg = (offset % 8) | control;
diff --git a/src/emu/video/voodoo.c b/src/emu/video/voodoo.c
index fec20b8e941..f8086acd699 100644
--- a/src/emu/video/voodoo.c
+++ b/src/emu/video/voodoo.c
@@ -4659,7 +4659,7 @@ INLINE const char *get_voodoo_name(const device_config *device)
}
}
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##voodoo##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET | DT_HAS_STOP | DT_HAS_INLINE_CONFIG
diff --git a/src/emu/watchdog.c b/src/emu/watchdog.c
index b505072149d..b218c19988e 100644
--- a/src/emu/watchdog.c
+++ b/src/emu/watchdog.c
@@ -1,6 +1,6 @@
/***************************************************************************
- watchdog.h
+ watchdog.c
Watchdog handling
@@ -13,7 +13,6 @@
-
/***************************************************************************
GLOBAL VARIABLES
***************************************************************************/
diff --git a/src/mame/audio/namco52.c b/src/mame/audio/namco52.c
index 97e1cb4dc54..aca0703f8f2 100644
--- a/src/mame/audio/namco52.c
+++ b/src/mame/audio/namco52.c
@@ -171,7 +171,7 @@ static TIMER_CALLBACK( external_clock_pulse )
DEVICE INTERFACE
***************************************************************************/
-ADDRESS_MAP_START( namco_52xx_map_io, ADDRESS_SPACE_IO, 8 )
+static ADDRESS_MAP_START( namco_52xx_map_io, ADDRESS_SPACE_IO, 8 )
AM_RANGE(MB88_PORTK, MB88_PORTK) AM_READ(namco_52xx_K_r)
AM_RANGE(MB88_PORTO, MB88_PORTO) AM_WRITE(namco_52xx_O_w)
AM_RANGE(MB88_PORTP, MB88_PORTP) AM_WRITE(namco_52xx_P_w)
@@ -230,7 +230,7 @@ static DEVICE_START( namco_52xx )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_52xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
diff --git a/src/mame/audio/namco54.c b/src/mame/audio/namco54.c
index 6c471f2000a..b6c3260eebf 100644
--- a/src/mame/audio/namco54.c
+++ b/src/mame/audio/namco54.c
@@ -138,7 +138,7 @@ WRITE8_DEVICE_HANDLER( namco_54xx_write )
DEVICE INTERFACE
***************************************************************************/
-ADDRESS_MAP_START( namco_54xx_map_io, ADDRESS_SPACE_IO, 8 )
+static ADDRESS_MAP_START( namco_54xx_map_io, ADDRESS_SPACE_IO, 8 )
AM_RANGE(MB88_PORTK, MB88_PORTK) AM_READ(namco_54xx_K_r)
AM_RANGE(MB88_PORTO, MB88_PORTO) AM_WRITE(namco_54xx_O_w)
AM_RANGE(MB88_PORTR0, MB88_PORTR0) AM_READ(namco_54xx_R0_r)
@@ -186,7 +186,7 @@ static DEVICE_START( namco_54xx )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_54xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG | DT_HAS_INLINE_CONFIG
diff --git a/src/mame/audio/trackfld.c b/src/mame/audio/trackfld.c
index b1290b553ca..262e499a3f3 100644
--- a/src/mame/audio/trackfld.c
+++ b/src/mame/audio/trackfld.c
@@ -2,6 +2,7 @@
#include "sound/vlm5030.h"
#include "sound/msm5205.h"
#include "sound/sn76496.h"
+#include "includes/trackfld.h"
#define TIMER_RATE (4096/4)
diff --git a/src/mame/audio/wiping.c b/src/mame/audio/wiping.c
index 999927b64a8..60c80e2683b 100644
--- a/src/mame/audio/wiping.c
+++ b/src/mame/audio/wiping.c
@@ -8,6 +8,7 @@
#include "driver.h"
#include "streams.h"
+#include "includes/wiping.h"
/* 8 voices max */
diff --git a/src/mame/drivers/cubeqst.c b/src/mame/drivers/cubeqst.c
index 09078c0f6ea..c3992aa4e44 100644
--- a/src/mame/drivers/cubeqst.c
+++ b/src/mame/drivers/cubeqst.c
@@ -456,7 +456,7 @@ static MACHINE_RESET( cubeqst )
/* Called by the sound CPU emulation */
static void sound_dac_w(const device_config *device, UINT16 data)
{
- static const char *dacs[] =
+ static const char *const dacs[] =
{
"rdac0", "ldac0",
"rdac1", "ldac1",
diff --git a/src/mame/drivers/darius.c b/src/mame/drivers/darius.c
index 1774db62990..1eb87e53dcc 100644
--- a/src/mame/drivers/darius.c
+++ b/src/mame/drivers/darius.c
@@ -351,7 +351,7 @@ static void update_fm1( running_machine *machine )
static void update_psg0( running_machine *machine, int port )
{
- static const char *fltname[3][2] = { { "filter0.0l", "filter0.0r" }, { "filter0.1l", "filter0.1r" }, { "filter0.2l", "filter0.2r" } };
+ static const char *const fltname[3][2] = { { "filter0.0l", "filter0.0r" }, { "filter0.1l", "filter0.1r" }, { "filter0.2l", "filter0.2r" } };
const device_config *lvol = devtag_get_device(machine, fltname[port][0]);
const device_config *rvol = devtag_get_device(machine, fltname[port][1]);
int left, right;
@@ -365,7 +365,7 @@ static void update_psg0( running_machine *machine, int port )
static void update_psg1( running_machine *machine, int port )
{
- static const char *fltname[3][2] = { { "filter0.0l", "filter0.0r" }, { "filter0.1l", "filter0.1r" }, { "filter0.2l", "filter0.2r" } };
+ static const char *const fltname[3][2] = { { "filter0.0l", "filter0.0r" }, { "filter0.1l", "filter0.1r" }, { "filter0.2l", "filter0.2r" } };
const device_config *lvol = devtag_get_device(machine, fltname[port][0]);
const device_config *rvol = devtag_get_device(machine, fltname[port][1]);
int left, right;
diff --git a/src/mame/drivers/fantland.c b/src/mame/drivers/fantland.c
index b12db185f86..9563bf41a78 100644
--- a/src/mame/drivers/fantland.c
+++ b/src/mame/drivers/fantland.c
@@ -55,7 +55,7 @@ Year + Game Main CPU Sound CPU Sound Video
VIDEO_UPDATE( fantland );
-static const char *msm_name[4] = { "msm1", "msm2", "msm3", "msm4" };
+static const char *const msm_name[4] = { "msm1", "msm2", "msm3", "msm4" };
/***************************************************************************
diff --git a/src/mame/drivers/galaxian.c b/src/mame/drivers/galaxian.c
index 5adccac5aad..3720d6c216c 100644
--- a/src/mame/drivers/galaxian.c
+++ b/src/mame/drivers/galaxian.c
@@ -413,7 +413,7 @@ static READ8_DEVICE_HANDLER( konami_sound_timer_r )
static WRITE8_HANDLER( konami_sound_filter_w )
{
const device_config *discrete = devtag_get_device(space->machine, "konami");
- static const char *ayname[2] = { "8910.0", "8910.1" };
+ static const char *const ayname[2] = { "8910.0", "8910.1" };
int which, chan;
/* the offset is used as data, 6 channels * 2 bits each */
diff --git a/src/mame/drivers/goldstar.c b/src/mame/drivers/goldstar.c
index 78e21517ebd..6eca6f3f860 100644
--- a/src/mame/drivers/goldstar.c
+++ b/src/mame/drivers/goldstar.c
@@ -5069,12 +5069,12 @@ static MACHINE_DRIVER_START( nfm )
MACHINE_DRIVER_END
-VIDEO_START( unkch )
+static VIDEO_START( unkch )
{
}
-VIDEO_UPDATE( unkch )
+static VIDEO_UPDATE( unkch )
{
return 0;
}
@@ -7855,7 +7855,7 @@ static DRIVER_INIT( match133 )
memory_install_read8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_IO), 0x1a, 0x1a, 0, 0, fixedvale4_r);
}
-DRIVER_INIT(cherrys)
+static DRIVER_INIT(cherrys)
{
int i;
UINT8 *ROM = memory_region(machine, "maincpu");
diff --git a/src/mame/drivers/junofrst.c b/src/mame/drivers/junofrst.c
index 8a59e1f7696..f3526819873 100644
--- a/src/mame/drivers/junofrst.c
+++ b/src/mame/drivers/junofrst.c
@@ -115,7 +115,7 @@ static READ8_DEVICE_HANDLER( junofrst_portA_r )
static WRITE8_DEVICE_HANDLER( junofrst_portB_w )
{
- static const char *fltname[] = { "filter.0.0", "filter.0.1", "filter.0.2" };
+ static const char *const fltname[] = { "filter.0.0", "filter.0.1", "filter.0.2" };
int i;
diff --git a/src/mame/drivers/maygay1b.c b/src/mame/drivers/maygay1b.c
index aba54d33998..b790d4dd18c 100644
--- a/src/mame/drivers/maygay1b.c
+++ b/src/mame/drivers/maygay1b.c
@@ -114,7 +114,7 @@ static void update_outputs(i8279_state *chip, UINT16 which)
static READ8_HANDLER( m1_8279_r )
{
i8279_state *chip = i8279 + 0;
- static const char *portnames[] = { "SW1","STROBE5","STROBE7","STROBE3","SW2","STROBE4","STROBE6","STROBE2" };
+ static const char *const portnames[] = { "SW1","STROBE5","STROBE7","STROBE3","SW2","STROBE4","STROBE6","STROBE2" };
UINT8 result = 0xff;
UINT8 addr;
diff --git a/src/mame/drivers/maygayv1.c b/src/mame/drivers/maygayv1.c
index 3bf52ed7dec..dbdf1600ebe 100644
--- a/src/mame/drivers/maygayv1.c
+++ b/src/mame/drivers/maygayv1.c
@@ -486,7 +486,7 @@ static void update_outputs(UINT16 which)
static READ16_HANDLER( maygay_8279_r )
{
- static const char *portnames[] = { "STROBE1","STROBE2","STROBE3","STROBE4","STROBE5","STROBE6","STROBE7","STROBE8" };
+ static const char *const portnames[] = { "STROBE1","STROBE2","STROBE3","STROBE4","STROBE5","STROBE6","STROBE7","STROBE8" };
UINT8 result = 0xff;
UINT8 addr;
diff --git a/src/mame/drivers/megadriv.c b/src/mame/drivers/megadriv.c
index 404ee56bbee..97ec475513b 100644
--- a/src/mame/drivers/megadriv.c
+++ b/src/mame/drivers/megadriv.c
@@ -1484,7 +1484,7 @@ void (*megadrive_io_write_data_port_ptr)(running_machine *machine, int offset, U
*/
-INPUT_PORTS_START( md_common )
+static INPUT_PORTS_START( md_common )
PORT_START("PAD1") /* Joypad 1 (3 button + start) NOT READ DIRECTLY */
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
@@ -1675,8 +1675,8 @@ static void megadrive_init_io(running_machine *machine)
static UINT8 megadrive_io_read_data_port_6button(running_machine *machine, int portnum)
{
UINT8 retdata, helper = (megadrive_io_ctrl_regs[portnum] & 0x3f) | 0xc0; // bits 6 & 7 always come from megadrive_io_data_regs
- static const char *pad3names[] = { "PAD1", "PAD2", "IN0", "UNK" };
- static const char *pad6names[] = { "EXTRA1", "EXTRA2", "IN0", "UNK" };
+ static const char *const pad3names[] = { "PAD1", "PAD2", "IN0", "UNK" };
+ static const char *const pad6names[] = { "EXTRA1", "EXTRA2", "IN0", "UNK" };
if (megadrive_io_data_regs[portnum] & 0x40)
{
@@ -1727,7 +1727,7 @@ static UINT8 megadrive_io_read_data_port_6button(running_machine *machine, int p
static UINT8 megadrive_io_read_data_port_3button(running_machine *machine, int portnum)
{
UINT8 retdata, helper = (megadrive_io_ctrl_regs[portnum] & 0x7f) | 0x80; // bit 7 always comes from megadrive_io_data_regs
- static const char *pad3names[] = { "PAD1", "PAD2", "IN0", "UNK" };
+ static const char *const pad3names[] = { "PAD1", "PAD2", "IN0", "UNK" };
if (megadrive_io_data_regs[portnum] & 0x40)
{
diff --git a/src/mame/drivers/megazone.c b/src/mame/drivers/megazone.c
index bae00c1ce95..d6b3214a7e0 100644
--- a/src/mame/drivers/megazone.c
+++ b/src/mame/drivers/megazone.c
@@ -56,7 +56,7 @@ static READ8_DEVICE_HANDLER( megazone_portA_r )
static WRITE8_DEVICE_HANDLER( megazone_portB_w )
{
- static const char *fltname[] = { "filter.0.0", "filter.0.1", "filter.0.2" };
+ static const char *const fltname[] = { "filter.0.0", "filter.0.1", "filter.0.2" };
int i;
diff --git a/src/mame/drivers/mirax.c b/src/mame/drivers/mirax.c
index e5709d17e6f..bc3d9e534e9 100644
--- a/src/mame/drivers/mirax.c
+++ b/src/mame/drivers/mirax.c
@@ -340,7 +340,7 @@ static INPUT_PORTS_START( mirax )
INPUT_PORTS_END
-PALETTE_INIT( mirax )
+static PALETTE_INIT( mirax )
{
int i;
diff --git a/src/mame/drivers/naomi.c b/src/mame/drivers/naomi.c
index 21400c82d74..ac14b034d2c 100644
--- a/src/mame/drivers/naomi.c
+++ b/src/mame/drivers/naomi.c
@@ -931,28 +931,35 @@ extern UINT8 maple0x86data1[0x80];
// some default eeprom settings
-UINT8 jvseeprom_default_karous[128] = { 0x58, 0xE5, 0x11, 0x42, 0x4D, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x58, 0xE5, 0x11, 0x42, 0x4D, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_sfz3ugd[128] = { 0xE3, 0xF2, 0x10, 0x42, 0x43, 0x59, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xE3, 0xF2, 0x10, 0x42, 0x43, 0x59, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xBE, 0x1F, 0x18, 0x18, 0xBE, 0x1F, 0x18, 0x18, 0x30, 0x59, 0x43, 0x42, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x30, 0x59, 0x43, 0x42, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_shikgam2[128] = { 0xA4, 0xF6, 0x11, 0x42, 0x47, 0x45, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA4, 0xF6, 0x11, 0x42, 0x47, 0x45, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,0x43, 0x84, 0x20, 0x20, 0x43, 0x84, 0x20, 0x20, 0x42, 0x47, 0x45, 0x30, 0x53, 0x48, 0x49, 0x4B, 0x49, 0x32, 0x52, 0x4F, 0x4D, 0x20, 0x30, 0x32, 0x32, 0x38, 0x00, 0x00, 0x4B, 0x4B, 0x00, 0x02, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x47, 0x45, 0x30, 0x53, 0x48, 0x49, 0x4B, 0x49, 0x32, 0x52, 0x4F, 0x4D, 0x20, 0x30, 0x32, 0x32, 0x38, 0x00, 0x00, 0x4B, 0x4B, 0x00, 0x02, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_quizqgd[128] = { 0xAD, 0x1E, 0x11, 0x42, 0x46, 0x50, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAD, 0x1E, 0x11, 0x42, 0x46, 0x50, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xC4, 0x18, 0x1D, 0x20, 0xC4, 0x18, 0x1D, 0x20, 0x42, 0x46, 0x50, 0x31, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x01, 0x01, 0x05, 0x01, 0x02, 0x00, 0x01, 0x03, 0x01, 0x00, 0x4B, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x42, 0x46, 0x50, 0x31, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x01, 0x01, 0x05, 0x01, 0x02, 0x00, 0x01, 0x03, 0x01, 0x00, 0x4B, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_senko[128] = { 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xE5, 0x91, 0x10, 0x10, 0xE5, 0x91, 0x10, 0x10, 0x07, 0x51, 0x17, 0x03, 0x00, 0x01, 0x02, 0x02, 0x46, 0x00, 0x96, 0x00, 0x46, 0x00, 0x00, 0x00, 0x07, 0x51, 0x17, 0x03, 0x00, 0x01, 0x02, 0x02, 0x46, 0x00, 0x96, 0x00, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_senkoo[128] = { 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x12, 0xF0, 0x0C, 0x0C, 0x12, 0xF0, 0x0C, 0x0C, 0x07, 0x51, 0x17, 0x03, 0x01, 0x02, 0x46, 0x00, 0x96, 0x00, 0x00, 0x00, 0x07, 0x51, 0x17, 0x03, 0x01, 0x02, 0x46, 0x00, 0x96, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_radirgy[128] = { 0x0C, 0x29, 0x11, 0x42, 0x4B, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x0C, 0x29, 0x11, 0x42, 0x4B, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_trgheart[128] = { 0xF0, 0xC2, 0x11, 0x42, 0x4D, 0x41, 0x31, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xF0, 0xC2, 0x11, 0x42, 0x4D, 0x41, 0x31, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x7E, 0xE1, 0x24, 0x24, 0x7E, 0xE1, 0x24, 0x24, 0x30, 0x41, 0x4D, 0x42, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x48, 0x45, 0x41, 0x52, 0x54, 0x20, 0x45, 0x58, 0x45, 0x4C, 0x49, 0x43, 0x41, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x00, 0x09, 0x09, 0x09, 0x00, 0x30, 0x41, 0x4D, 0x42, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x48, 0x45, 0x41, 0x52, 0x54, 0x20, 0x45, 0x58, 0x45, 0x4C, 0x49, 0x43, 0x41, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x00, 0x09, 0x09, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_gundmgd[128] = { 0xCD, 0x77, 0x10, 0x42, 0x43, 0x56, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0x77, 0x10, 0x42, 0x43, 0x56, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_gundmxgd[128] = { 0xAA, 0xAD, 0x10, 0x42, 0x44, 0x55, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAA, 0xAD, 0x10, 0x42, 0x44, 0x55, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_psyvar2[128] = { 0xCB, 0x6E, 0x11, 0x42, 0x48, 0x42, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCB, 0x6E, 0x11, 0x42, 0x48, 0x42, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_cfield[128] = { 0xFB, 0xD4, 0x10, 0x42, 0x4A, 0x42, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xFB, 0xD4, 0x10, 0x42, 0x4A, 0x42, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_puyofev[128] = { 0x65, 0x7E, 0x10, 0x42, 0x48, 0x44, 0x00, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x65, 0x7E, 0x10, 0x42, 0x48, 0x44, 0x00, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x0E, 0x0B, 0x20, 0x20, 0x0E, 0x0B, 0x20, 0x20, 0x42, 0x48, 0x44, 0x00, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x46, 0x45, 0x56, 0x45, 0x52, 0x2E, 0x20, 0x10, 0x03, 0x20, 0x01, 0x00, 0x02, 0x03, 0x00, 0x80, 0x00, 0x00, 0x42, 0x48, 0x44, 0x00, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x46, 0x45, 0x56, 0x45, 0x52, 0x2E, 0x20, 0x10, 0x03, 0x20, 0x01, 0x00, 0x02, 0x03, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_bdrdown[128] = { 0xA0, 0x75, 0x10, 0x42, 0x47, 0x48, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA0, 0x75, 0x10, 0x42, 0x47, 0x48, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAE, 0x7E, 0x08, 0x08, 0xAE, 0x7E, 0x08, 0x08, 0x01, 0x00, 0x00, 0x00, 0x33, 0xB8, 0x96, 0xE4, 0x01, 0x00, 0x00, 0x00, 0x33, 0xB8, 0x96, 0xE4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_ss2005[128] = { 0xAD, 0x0A, 0x10, 0x42, 0x4B, 0x4C, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAD, 0x0A, 0x10, 0x42, 0x4B, 0x4C, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_usagui[128] = { 0x02, 0x8C, 0x10, 0x42, 0x47, 0x46, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x02, 0x8C, 0x10, 0x42, 0x47, 0x46, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_undefeat[128] = { 0x06, 0x18, 0x11, 0x42, 0x4C, 0x48, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x06, 0x18, 0x11, 0x42, 0x4C, 0x48, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_trizeal[128] = { 0x8F, 0x05, 0x11, 0x42, 0x4A, 0x46, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x8F, 0x05, 0x11, 0x42, 0x4A, 0x46, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_moeru[128] = { 0xA1, 0x18, 0x10, 0x42, 0x45, 0x55, 0x20, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA1, 0x18, 0x10, 0x42, 0x45, 0x55, 0x20, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_tetkiwam[128] = { 0x3C, 0x11, 0x10, 0x42, 0x47, 0x43, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x3C, 0x11, 0x10, 0x42, 0x47, 0x43, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-UINT8 jvseeprom_default_keyboard[128] = { 0x32, 0x7E, 0x10, 0x42, 0x45, 0x42, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x32, 0x7E, 0x10, 0x42, 0x45, 0x42, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xF0, 0x4A, 0x0C, 0x0C, 0xF0, 0x4A, 0x0C, 0x0C, 0x18, 0x09, 0x01, 0x20, 0x02, 0x00, 0x3C, 0x00, 0x32, 0x00, 0x00, 0x00, 0x18, 0x09, 0x01, 0x20, 0x02, 0x00, 0x3C, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-
+static const struct
+{
+ const char *name;
+ const UINT8 eeprom[128];
+}
+jvseeprom_default_game[] =
+{
+ { "karous", { 0x58, 0xE5, 0x11, 0x42, 0x4D, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x58, 0xE5, 0x11, 0x42, 0x4D, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "sfz3ugd", { 0xE3, 0xF2, 0x10, 0x42, 0x43, 0x59, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xE3, 0xF2, 0x10, 0x42, 0x43, 0x59, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xBE, 0x1F, 0x18, 0x18, 0xBE, 0x1F, 0x18, 0x18, 0x30, 0x59, 0x43, 0x42, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x30, 0x59, 0x43, 0x42, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "shikgam2", { 0xA4, 0xF6, 0x11, 0x42, 0x47, 0x45, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA4, 0xF6, 0x11, 0x42, 0x47, 0x45, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11,0x43, 0x84, 0x20, 0x20, 0x43, 0x84, 0x20, 0x20, 0x42, 0x47, 0x45, 0x30, 0x53, 0x48, 0x49, 0x4B, 0x49, 0x32, 0x52, 0x4F, 0x4D, 0x20, 0x30, 0x32, 0x32, 0x38, 0x00, 0x00, 0x4B, 0x4B, 0x00, 0x02, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x47, 0x45, 0x30, 0x53, 0x48, 0x49, 0x4B, 0x49, 0x32, 0x52, 0x4F, 0x4D, 0x20, 0x30, 0x32, 0x32, 0x38, 0x00, 0x00, 0x4B, 0x4B, 0x00, 0x02, 0x00, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "quizqgd", { 0xAD, 0x1E, 0x11, 0x42, 0x46, 0x50, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAD, 0x1E, 0x11, 0x42, 0x46, 0x50, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xC4, 0x18, 0x1D, 0x20, 0xC4, 0x18, 0x1D, 0x20, 0x42, 0x46, 0x50, 0x31, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x01, 0x01, 0x05, 0x01, 0x02, 0x00, 0x01, 0x03, 0x01, 0x00, 0x4B, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x42, 0x46, 0x50, 0x31, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x51, 0x2D, 0x4D, 0x4F, 0x44, 0x45, 0x01, 0x01, 0x05, 0x01, 0x02, 0x00, 0x01, 0x03, 0x01, 0x00, 0x4B, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "senko", { 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xE5, 0x91, 0x10, 0x10, 0xE5, 0x91, 0x10, 0x10, 0x07, 0x51, 0x17, 0x03, 0x00, 0x01, 0x02, 0x02, 0x46, 0x00, 0x96, 0x00, 0x46, 0x00, 0x00, 0x00, 0x07, 0x51, 0x17, 0x03, 0x00, 0x01, 0x02, 0x02, 0x46, 0x00, 0x96, 0x00, 0x46, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "senkoo", { 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0xEE, 0x10, 0x42, 0x4B, 0x47, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x12, 0xF0, 0x0C, 0x0C, 0x12, 0xF0, 0x0C, 0x0C, 0x07, 0x51, 0x17, 0x03, 0x01, 0x02, 0x46, 0x00, 0x96, 0x00, 0x00, 0x00, 0x07, 0x51, 0x17, 0x03, 0x01, 0x02, 0x46, 0x00, 0x96, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "radirgy", { 0x0C, 0x29, 0x11, 0x42, 0x4B, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x0C, 0x29, 0x11, 0x42, 0x4B, 0x57, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "trgheart", { 0xF0, 0xC2, 0x11, 0x42, 0x4D, 0x41, 0x31, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xF0, 0xC2, 0x11, 0x42, 0x4D, 0x41, 0x31, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x7E, 0xE1, 0x24, 0x24, 0x7E, 0xE1, 0x24, 0x24, 0x30, 0x41, 0x4D, 0x42, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x48, 0x45, 0x41, 0x52, 0x54, 0x20, 0x45, 0x58, 0x45, 0x4C, 0x49, 0x43, 0x41, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x00, 0x09, 0x09, 0x09, 0x00, 0x30, 0x41, 0x4D, 0x42, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x48, 0x45, 0x41, 0x52, 0x54, 0x20, 0x45, 0x58, 0x45, 0x4C, 0x49, 0x43, 0x41, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x00, 0x09, 0x09, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "gundmgd", { 0xCD, 0x77, 0x10, 0x42, 0x43, 0x56, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCD, 0x77, 0x10, 0x42, 0x43, 0x56, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "gundmxgd", { 0xAA, 0xAD, 0x10, 0x42, 0x44, 0x55, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAA, 0xAD, 0x10, 0x42, 0x44, 0x55, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "psyvar2", { 0xCB, 0x6E, 0x11, 0x42, 0x48, 0x42, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xCB, 0x6E, 0x11, 0x42, 0x48, 0x42, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "cfield", { 0xFB, 0xD4, 0x10, 0x42, 0x4A, 0x42, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xFB, 0xD4, 0x10, 0x42, 0x4A, 0x42, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "puyofev", { 0x65, 0x7E, 0x10, 0x42, 0x48, 0x44, 0x00, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x65, 0x7E, 0x10, 0x42, 0x48, 0x44, 0x00, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x0E, 0x0B, 0x20, 0x20, 0x0E, 0x0B, 0x20, 0x20, 0x42, 0x48, 0x44, 0x00, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x46, 0x45, 0x56, 0x45, 0x52, 0x2E, 0x20, 0x10, 0x03, 0x20, 0x01, 0x00, 0x02, 0x03, 0x00, 0x80, 0x00, 0x00, 0x42, 0x48, 0x44, 0x00, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x50, 0x55, 0x59, 0x4F, 0x20, 0x46, 0x45, 0x56, 0x45, 0x52, 0x2E, 0x20, 0x10, 0x03, 0x20, 0x01, 0x00, 0x02, 0x03, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "bdrdown", { 0xA0, 0x75, 0x10, 0x42, 0x47, 0x48, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA0, 0x75, 0x10, 0x42, 0x47, 0x48, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAE, 0x7E, 0x08, 0x08, 0xAE, 0x7E, 0x08, 0x08, 0x01, 0x00, 0x00, 0x00, 0x33, 0xB8, 0x96, 0xE4, 0x01, 0x00, 0x00, 0x00, 0x33, 0xB8, 0x96, 0xE4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "ss2005", { 0xAD, 0x0A, 0x10, 0x42, 0x4B, 0x4C, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xAD, 0x0A, 0x10, 0x42, 0x4B, 0x4C, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "usagui", { 0x02, 0x8C, 0x10, 0x42, 0x47, 0x46, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x02, 0x8C, 0x10, 0x42, 0x47, 0x46, 0x00, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "undefeat", { 0x06, 0x18, 0x11, 0x42, 0x4C, 0x48, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x06, 0x18, 0x11, 0x42, 0x4C, 0x48, 0x30, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "trizeal", { 0x8F, 0x05, 0x11, 0x42, 0x4A, 0x46, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x8F, 0x05, 0x11, 0x42, 0x4A, 0x46, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "moeru", { 0xA1, 0x18, 0x10, 0x42, 0x45, 0x55, 0x20, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xA1, 0x18, 0x10, 0x42, 0x45, 0x55, 0x20, 0x09, 0x00, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "tetkiwam", { 0x3C, 0x11, 0x10, 0x42, 0x47, 0x43, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x3C, 0x11, 0x10, 0x42, 0x47, 0x43, 0x31, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } },
+ { "keyboard", { 0x32, 0x7E, 0x10, 0x42, 0x45, 0x42, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0x32, 0x7E, 0x10, 0x42, 0x45, 0x42, 0x30, 0x09, 0x10, 0x00, 0x01, 0x01, 0x01, 0x00, 0x11, 0x11, 0x11, 0x11, 0xF0, 0x4A, 0x0C, 0x0C, 0xF0, 0x4A, 0x0C, 0x0C, 0x18, 0x09, 0x01, 0x20, 0x02, 0x00, 0x3C, 0x00, 0x32, 0x00, 0x00, 0x00, 0x18, 0x09, 0x01, 0x20, 0x02, 0x00, 0x3C, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }
+};
static NVRAM_HANDLER( naomi_eeproms )
{
@@ -989,7 +996,8 @@ static NVRAM_HANDLER( naomi_eeproms )
UINT32 length, size;
UINT8 *dat;
- UINT8* jvseeprom_default = NULL;
+ const UINT8* jvseeprom_default = NULL;
+ int i;
dat = (UINT8 *)eeprom_get_data_pointer(&length, &size);
memset(dat, 0, length * size);
@@ -998,27 +1006,12 @@ static NVRAM_HANDLER( naomi_eeproms )
eeprom_set_data((UINT8 *)"\011\241 0000000000000000", 48); // 2*checksum 30*unknown 16*serial
// some games require defaults to boot (vertical, 1 player etc.)
- if (!strcmp(machine->gamedrv->name,"karous")) jvseeprom_default = jvseeprom_default_karous;
- if (!strcmp(machine->gamedrv->name,"sfz3ugd")) jvseeprom_default = jvseeprom_default_sfz3ugd;
- if (!strcmp(machine->gamedrv->name,"shikgam2")) jvseeprom_default = jvseeprom_default_shikgam2;
- if (!strcmp(machine->gamedrv->name,"quizqgd")) jvseeprom_default = jvseeprom_default_quizqgd;
- if (!strcmp(machine->gamedrv->name,"senko")) jvseeprom_default = jvseeprom_default_senko;
- if (!strcmp(machine->gamedrv->name,"senkoo")) jvseeprom_default = jvseeprom_default_senkoo;
- if (!strcmp(machine->gamedrv->name,"radirgy")) jvseeprom_default = jvseeprom_default_radirgy;
- if (!strcmp(machine->gamedrv->name,"trgheart")) jvseeprom_default = jvseeprom_default_trgheart;
- if (!strcmp(machine->gamedrv->name,"gundmgd")) jvseeprom_default = jvseeprom_default_gundmgd;
- if (!strcmp(machine->gamedrv->name,"gundmxgd")) jvseeprom_default = jvseeprom_default_gundmxgd;
- if (!strcmp(machine->gamedrv->name,"psyvar2")) jvseeprom_default = jvseeprom_default_psyvar2;
- if (!strcmp(machine->gamedrv->name,"cfield")) jvseeprom_default = jvseeprom_default_cfield;
- if (!strcmp(machine->gamedrv->name,"puyofev")) jvseeprom_default = jvseeprom_default_puyofev;
- if (!strcmp(machine->gamedrv->name,"bdrdown")) jvseeprom_default = jvseeprom_default_bdrdown;
- if (!strcmp(machine->gamedrv->name,"ss2005")) jvseeprom_default = jvseeprom_default_ss2005;
- if (!strcmp(machine->gamedrv->name,"usagui")) jvseeprom_default = jvseeprom_default_usagui;
- if (!strcmp(machine->gamedrv->name,"undefeat")) jvseeprom_default = jvseeprom_default_undefeat;
- if (!strcmp(machine->gamedrv->name,"trizeal")) jvseeprom_default = jvseeprom_default_trizeal;
- if (!strcmp(machine->gamedrv->name,"moeru")) jvseeprom_default = jvseeprom_default_moeru;
- if (!strcmp(machine->gamedrv->name,"tetkiwam")) jvseeprom_default = jvseeprom_default_tetkiwam;
- if (!strcmp(machine->gamedrv->name,"keyboard")) jvseeprom_default = jvseeprom_default_keyboard;
+ for (i=0; i<ARRAY_LENGTH(jvseeprom_default_game); i++)
+ if (!strcmp(machine->gamedrv->name, jvseeprom_default_game[i].name))
+ {
+ jvseeprom_default = jvseeprom_default_game[i].eeprom;
+ break;
+ }
if (jvseeprom_default)
memcpy(maple0x86data1, jvseeprom_default, 0x80);
diff --git a/src/mame/drivers/ninjaw.c b/src/mame/drivers/ninjaw.c
index e67f8608b63..0e15ffcc4f6 100644
--- a/src/mame/drivers/ninjaw.c
+++ b/src/mame/drivers/ninjaw.c
@@ -392,7 +392,7 @@ static READ16_HANDLER( ninjaw_sound_r )
static int ninjaw_pandata[4];
static WRITE8_HANDLER( ninjaw_pancontrol )
{
- static const char *fltname[] = { "2610.1.l", "2610.1.r", "2610.2.l", "2610.2.r" };
+ static const char *const fltname[] = { "2610.1.l", "2610.1.r", "2610.2.l", "2610.2.r" };
offset = offset&3;
ninjaw_pandata[offset] = (float)data * (100.f / 255.0f);
//popmessage(" pan %02x %02x %02x %02x", ninjaw_pandata[0], ninjaw_pandata[1], ninjaw_pandata[2], ninjaw_pandata[3] );
diff --git a/src/mame/drivers/suna8.c b/src/mame/drivers/suna8.c
index 44aadc087df..eb2dae898d3 100644
--- a/src/mame/drivers/suna8.c
+++ b/src/mame/drivers/suna8.c
@@ -963,7 +963,7 @@ ADDRESS_MAP_END
static WRITE8_HANDLER( brickzn_pcm_w )
{
- static const char *dacs[] = { "dac1", "dac2", "dac3", "dac4" };
+ static const char *const dacs[] = { "dac1", "dac2", "dac3", "dac4" };
dac_signed_data_w( devtag_get_device(space->machine, dacs[offset & 3]), (data & 0xf) * 0x11 );
}
diff --git a/src/mame/drivers/system1.c b/src/mame/drivers/system1.c
index 67f06420cce..92199ff5d87 100644
--- a/src/mame/drivers/system1.c
+++ b/src/mame/drivers/system1.c
@@ -432,7 +432,7 @@ static WRITE8_HANDLER( videomode_w )
static CUSTOM_INPUT( dakkochn_mux_data_r )
{
- static const char *ports[] = { "KEY0", "KEY1", "KEY2", "KEY3", "KEY4", "KEY5", "KEY6" };
+ static const char *const ports[] = { "KEY0", "KEY1", "KEY2", "KEY3", "KEY4", "KEY5", "KEY6" };
return input_port_read(field->port->machine, ports[dakkochn_mux_data]);
}
diff --git a/src/mame/drivers/system16.c b/src/mame/drivers/system16.c
index f75cd88ea52..e1e3b34865a 100644
--- a/src/mame/drivers/system16.c
+++ b/src/mame/drivers/system16.c
@@ -96,17 +96,6 @@
#include "sound/2612intf.h"
#include "sound/rf5c68.h"
-extern VIDEO_START( system16a_bootleg );
-extern VIDEO_UPDATE( system16a_bootleg );
-extern VIDEO_UPDATE( system16a_bootleg_passht4b );
-extern WRITE16_HANDLER( system16a_bootleg_tilemapselect_w );
-extern WRITE16_HANDLER( system16a_bootleg_bgscrolly_w );
-extern WRITE16_HANDLER( system16a_bootleg_bgscrollx_w );
-extern WRITE16_HANDLER( system16a_bootleg_fgscrolly_w );
-extern WRITE16_HANDLER( system16a_bootleg_fgscrollx_w );
-extern UINT16* system16a_bootleg_bg0_tileram;
-extern UINT16* system16a_bootleg_bg1_tileram;
-
/***************************************************************************/
static UINT16 coinctrl;
@@ -875,7 +864,7 @@ ADDRESS_MAP_END
static UINT16 datsu_page[4];
-void datsu_set_pages(void)
+static void datsu_set_pages(void)
{
UINT16 page;
@@ -2127,7 +2116,7 @@ ROM_END
static UINT8 *decrypted_region;
-DRIVER_INIT( goldnabl )
+static DRIVER_INIT( goldnabl )
{
int i;
UINT8 *ROM = memory_region(machine, "maincpu");
@@ -2157,7 +2146,7 @@ DRIVER_INIT( goldnabl )
}
-DRIVER_INIT( bayrouteb1 )
+static DRIVER_INIT( bayrouteb1 )
{
// it has the same encryption as the golden axe bootleg!
//
diff --git a/src/mame/drivers/taito_z.c b/src/mame/drivers/taito_z.c
index 364533e4f90..f51180a044b 100644
--- a/src/mame/drivers/taito_z.c
+++ b/src/mame/drivers/taito_z.c
@@ -1447,7 +1447,7 @@ static READ16_HANDLER( taitoz_msb_sound_r )
/**** sound pan control ****/
static WRITE8_HANDLER( taitoz_pancontrol )
{
- static const char *fltname[] = { "2610.1.r", "2610.1.l", "2610.2.r", "2610.2.l" };
+ static const char *const fltname[] = { "2610.1.r", "2610.1.l", "2610.2.r", "2610.2.l" };
// static UINT8 taitoz_pandata[4];
diff --git a/src/mame/drivers/twinkle.c b/src/mame/drivers/twinkle.c
index cfa6fa3ec2c..9dc2439207e 100644
--- a/src/mame/drivers/twinkle.c
+++ b/src/mame/drivers/twinkle.c
@@ -787,7 +787,7 @@ static void scsi_irq(running_machine *machine)
psx_irq_set(machine, 0x400);
}
-static SCSIConfigTable dev_table =
+static const SCSIConfigTable dev_table =
{
1, /* 1 SCSI device */
{
@@ -795,7 +795,7 @@ static SCSIConfigTable dev_table =
}
};
-static struct AM53CF96interface scsi_intf =
+static const struct AM53CF96interface scsi_intf =
{
&dev_table, /* SCSI device table */
&scsi_irq, /* command completion IRQ */
@@ -879,7 +879,7 @@ static MACHINE_DRIVER_START( twinkle )
MDRV_SOUND_ROUTE( 1, "speakerright", 1.0 )
MACHINE_DRIVER_END
-INPUT_PORTS_START( twinkle )
+static INPUT_PORTS_START( twinkle )
PORT_START("IN0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1)
diff --git a/src/mame/drivers/warriorb.c b/src/mame/drivers/warriorb.c
index e6d12b18bb9..f6292225081 100644
--- a/src/mame/drivers/warriorb.c
+++ b/src/mame/drivers/warriorb.c
@@ -198,7 +198,7 @@ static int ninjaw_pandata[4]; /**** sound pan control ****/
static WRITE8_HANDLER( warriorb_pancontrol )
{
- static const char *fltname[] = { "2610.1.l", "2610.1.r", "2610.2.l", "2610.2.r" };
+ static const char *const fltname[] = { "2610.1.l", "2610.1.r", "2610.2.l", "2610.2.r" };
offset = offset&3;
ninjaw_pandata[offset] = (data<<1) + data; /* original volume*3 */
diff --git a/src/mame/drivers/wiping.c b/src/mame/drivers/wiping.c
index 1aed56ebf8a..c5093557212 100644
--- a/src/mame/drivers/wiping.c
+++ b/src/mame/drivers/wiping.c
@@ -35,18 +35,7 @@ dip: 6.7 7.7
***************************************************************************/
#include "driver.h"
#include "cpu/z80/z80.h"
-
-
-WRITE8_HANDLER( wiping_flipscreen_w );
-PALETTE_INIT( wiping );
-VIDEO_UPDATE( wiping );
-
-extern UINT8 *wiping_soundregs;
-
-DEVICE_GET_INFO( wiping_sound );
-#define SOUND_WIPING DEVICE_GET_INFO_NAME(wiping_sound)
-
-WRITE8_HANDLER( wiping_sound_w );
+#include "includes/wiping.h"
static UINT8 *sharedram1,*sharedram2;
diff --git a/src/mame/includes/archimds.h b/src/mame/includes/archimds.h
index d51d505622d..a822ecb791f 100644
--- a/src/mame/includes/archimds.h
+++ b/src/mame/includes/archimds.h
@@ -34,6 +34,8 @@
#define ARCHIMEDES_FIQ_PODULE (0x40)
#define ARCHIMEDES_FIQ_FORCE (0x80)
+/*----------- defined in machine/archimds.c -----------*/
+
extern UINT32 *memc_physmem;
void archimedes_init(running_machine *machine); // call at MACHINE_INIT
diff --git a/src/mame/includes/kaneko16.h b/src/mame/includes/kaneko16.h
index 6f815f772a1..5bf45d5ead7 100644
--- a/src/mame/includes/kaneko16.h
+++ b/src/mame/includes/kaneko16.h
@@ -119,10 +119,6 @@ extern UINT16* galsnew_bg_pixram;
extern UINT16* galsnew_fg_pixram;
-/*----------- defined in drivers/galpani2.c -----------*/
-
-void galpani2_mcu_run(running_machine *machine);
-
/*----------- defined in video/galpani2.c -----------*/
extern UINT16 *galpani2_bg8_0, *galpani2_bg8_1;
diff --git a/src/mame/includes/m79amb.h b/src/mame/includes/m79amb.h
index cb17a89e37f..dc57ea67936 100644
--- a/src/mame/includes/m79amb.h
+++ b/src/mame/includes/m79amb.h
@@ -1,7 +1,7 @@
#include "sound/discrete.h"
-/*----------- defined in sndhrdw/m79amb.c -----------*/
+/*----------- defined in audio/m79amb.c -----------*/
DISCRETE_SOUND_EXTERN( m79amb );
diff --git a/src/mame/includes/naomi.h b/src/mame/includes/naomi.h
index fd2796e753a..6b38a6601b5 100644
--- a/src/mame/includes/naomi.h
+++ b/src/mame/includes/naomi.h
@@ -12,6 +12,8 @@ enum {
JVSBD_KEYBOARD
};
+/*----------- defined in machine/naomi.c -----------*/
+
extern DRIVER_INIT( naomi );
extern DRIVER_INIT( naomi_mp );
diff --git a/src/mame/includes/naomibd.h b/src/mame/includes/naomibd.h
index e2e53d75a3e..222b28b90b9 100644
--- a/src/mame/includes/naomibd.h
+++ b/src/mame/includes/naomibd.h
@@ -78,6 +78,8 @@ struct _naomibd_config
MDRV_DEVICE_CONFIG_DATA32(naomibd_config, tmumem##_tmu, _tmumem)*/
+/*----------- defined in machine/naomibd.c -----------*/
+
/***************************************************************************
FUNCTION PROTOTYPES
***************************************************************************/
diff --git a/src/mame/includes/rockola.h b/src/mame/includes/rockola.h
index 76bec491ca5..21f425efea7 100644
--- a/src/mame/includes/rockola.h
+++ b/src/mame/includes/rockola.h
@@ -5,6 +5,8 @@
*************************************************************************/
#include "sound/discrete.h"
+#include "sound/samples.h"
+#include "sound/sn76477.h"
/*----------- defined in audio/rockola.c -----------*/
diff --git a/src/mame/includes/sei_crtc.h b/src/mame/includes/sei_crtc.h
index 9c7c67ba331..eb2fc8c3101 100644
--- a/src/mame/includes/sei_crtc.h
+++ b/src/mame/includes/sei_crtc.h
@@ -1,11 +1,9 @@
-/*----------- defined in video -----------*/
+/*----------- defined in video/sei_crtc.c -----------*/
extern UINT16 *seibucrtc_sc0vram,*seibucrtc_sc1vram,*seibucrtc_sc2vram,*seibucrtc_sc3vram;
extern UINT16 *seibucrtc_vregs;
extern UINT16 seibucrtc_sc0bank;
-/*----------- defined in drivers -----------*/
-
WRITE16_HANDLER( seibucrtc_sc0vram_w );
WRITE16_HANDLER( seibucrtc_sc1vram_w );
WRITE16_HANDLER( seibucrtc_sc2vram_w );
diff --git a/src/mame/includes/seta.h b/src/mame/includes/seta.h
index 6613dc73806..91ad2614978 100644
--- a/src/mame/includes/seta.h
+++ b/src/mame/includes/seta.h
@@ -68,7 +68,6 @@ extern int ssv_sprites_offsx, ssv_sprites_offsy;
extern int ssv_tilemap_offsx, ssv_tilemap_offsy;
extern UINT16 *eaglshot_gfxram, *gdfs_tmapram, *gdfs_tmapscroll;
-extern char eaglshot_dirty, *eaglshot_dirty_tile;
READ16_HANDLER( ssv_vblank_r );
WRITE16_HANDLER( ssv_scroll_w );
diff --git a/src/mame/includes/suprnova.h b/src/mame/includes/suprnova.h
index e04327cfd36..84149bd0ddd 100644
--- a/src/mame/includes/suprnova.h
+++ b/src/mame/includes/suprnova.h
@@ -3,9 +3,6 @@
extern UINT32 *skns_tilemapA_ram, *skns_tilemapB_ram, *skns_v3slc_ram;
extern UINT32 *skns_palette_ram;
extern UINT32 *skns_pal_regs, *skns_v3_regs, *skns_spc_regs;
-extern UINT32 skns_v3t_dirty[0x4000]; // allocate this elsewhere?
-extern UINT32 skns_v3t_4bppdirty[0x8000]; // allocate this elsewhere?
-extern int skns_v3t_somedirty,skns_v3t_4bpp_somedirty;
/*----------- defined in video/suprnova.c -----------*/
diff --git a/src/mame/includes/system16.h b/src/mame/includes/system16.h
index c00c1921c91..3077bde4b9b 100644
--- a/src/mame/includes/system16.h
+++ b/src/mame/includes/system16.h
@@ -124,12 +124,6 @@ extern MACHINE_RESET( sys16_onetime );
#define SYS16_MRA16_SPRITERAM SMH_RAM
#define SYS16_MWA16_SPRITERAM SMH_RAM
-#define SYS16_MRA16_TILERAM sys16_tileram_r
-#define SYS16_MWA16_TILERAM sys16_tileram_w
-
-#define SYS16_MRA16_TEXTRAM sys16_textram_r
-#define SYS16_MWA16_TEXTRAM sys16_textram_w
-
#define SYS16_MRA16_EXTRAM SMH_RAM
#define SYS16_MWA16_EXTRAM SMH_RAM
@@ -149,10 +143,19 @@ GFXDECODE_EXTERN( sys16 );
/*----------- defined in video/system16.c -----------*/
+extern VIDEO_START( system16a_bootleg );
+extern VIDEO_UPDATE( system16a_bootleg );
+extern VIDEO_UPDATE( system16a_bootleg_passht4b );
+extern WRITE16_HANDLER( system16a_bootleg_tilemapselect_w );
+extern WRITE16_HANDLER( system16a_bootleg_bgscrolly_w );
+extern WRITE16_HANDLER( system16a_bootleg_bgscrollx_w );
+extern WRITE16_HANDLER( system16a_bootleg_fgscrolly_w );
+extern WRITE16_HANDLER( system16a_bootleg_fgscrollx_w );
+extern UINT16* system16a_bootleg_bg0_tileram;
+extern UINT16* system16a_bootleg_bg1_tileram;
+
/* video hardware */
-extern READ16_HANDLER( sys16_tileram_r );
extern WRITE16_HANDLER( sys16_tileram_w );
-extern READ16_HANDLER( sys16_textram_r );
extern WRITE16_HANDLER( sys16_textram_w );
extern WRITE16_HANDLER( sys16_paletteram_w );
@@ -164,9 +167,6 @@ extern VIDEO_UPDATE( system16 );
extern VIDEO_START( system18old );
extern VIDEO_UPDATE( system18old );
-/* callback to poll video registers */
-extern void (* sys16_update_proc)( void );
-
extern UINT16 *sys16_tileram;
extern UINT16 *sys16_textram;
extern UINT16 *sys16_spriteram;
diff --git a/src/mame/includes/tatsumi.h b/src/mame/includes/tatsumi.h
index 12de37076ab..5e61e60b48f 100644
--- a/src/mame/includes/tatsumi.h
+++ b/src/mame/includes/tatsumi.h
@@ -1,5 +1,6 @@
/*----------- defined in drivers/tatsumi.c -----------*/
+extern UINT16 *apache3_g_ram;
extern UINT16 bigfight_a40000[2];
extern UINT8* tatsumi_rom_sprite_lookup1;
@@ -39,7 +40,6 @@ extern UINT16 *tatsumi_68k_ram;
extern UINT8 *apache3_z80_ram;
extern UINT16 tatsumi_control_word;
extern UINT16 apache3_rotate_ctrl[12];
-extern UINT16 *apache3_g_ram;
void tatsumi_reset(running_machine *machine);
diff --git a/src/mame/includes/tetrisp2.h b/src/mame/includes/tetrisp2.h
index 367bf8b1f63..4131f5014b6 100644
--- a/src/mame/includes/tetrisp2.h
+++ b/src/mame/includes/tetrisp2.h
@@ -19,10 +19,8 @@ extern UINT16 *rocknms_sub_priority;
WRITE16_HANDLER( tetrisp2_palette_w );
WRITE16_HANDLER( rocknms_sub_palette_w );
-READ16_HANDLER( tetrisp2_priority_r );
WRITE16_HANDLER( tetrisp2_priority_w );
WRITE16_HANDLER( rockn_priority_w );
-READ16_HANDLER( rocknms_sub_priority_r );
WRITE16_HANDLER( rocknms_sub_priority_w );
READ16_HANDLER( nndmseal_priority_r );
diff --git a/src/mame/includes/tnzs.h b/src/mame/includes/tnzs.h
index 3fe1b8f7ab9..4650103e143 100644
--- a/src/mame/includes/tnzs.h
+++ b/src/mame/includes/tnzs.h
@@ -26,7 +26,6 @@ READ8_HANDLER( tnzs_mcu_r );
WRITE8_HANDLER( tnzs_mcu_w );
INTERRUPT_GEN( arknoid2_interrupt );
MACHINE_RESET( tnzs );
-WRITE8_HANDLER( tnzs_sharedram_w );
WRITE8_HANDLER( tnzs_bankswitch_w );
WRITE8_HANDLER( tnzs_bankswitch1_w );
diff --git a/src/mame/includes/tx1.h b/src/mame/includes/tx1.h
index 6dfc2778f04..1cfca210574 100644
--- a/src/mame/includes/tx1.h
+++ b/src/mame/includes/tx1.h
@@ -38,7 +38,6 @@ READ16_HANDLER( tx1_spcs_ram_r );
WRITE16_HANDLER( tx1_spcs_ram_w );
READ16_HANDLER( tx1_math_r );
WRITE16_HANDLER( tx1_math_w );
-MACHINE_START( tx1 );
MACHINE_RESET( tx1 );
@@ -49,8 +48,6 @@ READ16_HANDLER( buggyboy_math_r );
WRITE16_HANDLER( buggyboy_math_w );
MACHINE_RESET( buggybjr );
MACHINE_RESET( buggyboy );
-MACHINE_START( buggybjr );
-MACHINE_START( buggyboy );
/*----------- defined in audio/tx1.c -----------*/
READ8_HANDLER( tx1_pit8253_r );
diff --git a/src/mame/machine/namco06.c b/src/mame/machine/namco06.c
index afc7956cccd..0f43bf87cdf 100644
--- a/src/mame/machine/namco06.c
+++ b/src/mame/machine/namco06.c
@@ -293,7 +293,7 @@ static DEVICE_RESET( namco_06xx )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_06xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET | DT_HAS_INLINE_CONFIG
diff --git a/src/mame/machine/namco50.c b/src/mame/machine/namco50.c
index 8e63012fb93..2be13051901 100644
--- a/src/mame/machine/namco50.c
+++ b/src/mame/machine/namco50.c
@@ -254,7 +254,7 @@ READ8_DEVICE_HANDLER( namco_50xx_read )
DEVICE INTERFACE
***************************************************************************/
-ADDRESS_MAP_START( namco_50xx_map_io, ADDRESS_SPACE_IO, 8 )
+static ADDRESS_MAP_START( namco_50xx_map_io, ADDRESS_SPACE_IO, 8 )
AM_RANGE(MB88_PORTK, MB88_PORTK) AM_READ(namco_50xx_K_r)
AM_RANGE(MB88_PORTO, MB88_PORTO) AM_WRITE(namco_50xx_O_w)
AM_RANGE(MB88_PORTR0, MB88_PORTR0) AM_READ(namco_50xx_R0_r)
@@ -294,7 +294,7 @@ static DEVICE_START( namco_50xx )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_50xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
diff --git a/src/mame/machine/namco51.c b/src/mame/machine/namco51.c
index c8e576f6d9a..421dc198276 100644
--- a/src/mame/machine/namco51.c
+++ b/src/mame/machine/namco51.c
@@ -350,7 +350,7 @@ READ8_DEVICE_HANDLER( namco_51xx_read )
DEVICE INTERFACE
***************************************************************************/
-ADDRESS_MAP_START( namco_51xx_map_io, ADDRESS_SPACE_IO, 8 )
+static ADDRESS_MAP_START( namco_51xx_map_io, ADDRESS_SPACE_IO, 8 )
// AM_RANGE(MB88_PORTK, MB88_PORTK) AM_READ(namco_51xx_K_r)
// AM_RANGE(MB88_PORTO, MB88_PORTO) AM_WRITE(namco_51xx_O_w)
// AM_RANGE(MB88_PORTR0, MB88_PORTR0) AM_READ(namco_51xx_R0_r)
@@ -432,7 +432,7 @@ static DEVICE_RESET( namco_51xx )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_51xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_RESET | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
diff --git a/src/mame/machine/namco53.c b/src/mame/machine/namco53.c
index f4dcd8b201d..bbbb5bfdd63 100644
--- a/src/mame/machine/namco53.c
+++ b/src/mame/machine/namco53.c
@@ -145,7 +145,7 @@ READ8_DEVICE_HANDLER( namco_53xx_read )
DEVICE INTERFACE
***************************************************************************/
-ADDRESS_MAP_START( namco_53xx_map_io, ADDRESS_SPACE_IO, 8 )
+static ADDRESS_MAP_START( namco_53xx_map_io, ADDRESS_SPACE_IO, 8 )
AM_RANGE(MB88_PORTK, MB88_PORTK) AM_READ(namco_53xx_K_r)
AM_RANGE(MB88_PORTO, MB88_PORTO) AM_WRITE(namco_53xx_O_w)
AM_RANGE(MB88_PORTP, MB88_PORTP) AM_WRITE(namco_53xx_P_w)
@@ -196,7 +196,7 @@ static DEVICE_START( namco_53xx )
device definition
-------------------------------------------------*/
-static const char *DEVTEMPLATE_SOURCE = __FILE__;
+static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_ID(p,s) p##namco_53xx##s
#define DEVTEMPLATE_FEATURES DT_HAS_START | DT_HAS_ROM_REGION | DT_HAS_MACHINE_CONFIG
diff --git a/src/mame/video/dc.c b/src/mame/video/dc.c
index 45561b3e701..05555886677 100644
--- a/src/mame/video/dc.c
+++ b/src/mame/video/dc.c
@@ -250,7 +250,7 @@ INLINE UINT32 bl75(UINT32 s, UINT32 d) { return bls(blia(s, d), blia(d, s)); }
INLINE UINT32 bl76(UINT32 s, UINT32 d) { return bls(blia(s, d), bla(d, d)); }
INLINE UINT32 bl77(UINT32 s, UINT32 d) { return bls(blia(s, d), blia(d, d)); }
-static UINT32 (*blend_functions[64])(UINT32 s, UINT32 d) = {
+static UINT32 (*const blend_functions[64])(UINT32 s, UINT32 d) = {
bl00, bl01, bl02, bl03, bl04, bl05, bl06, bl07,
bl10, bl11, bl12, bl13, bl14, bl15, bl16, bl17,
bl20, bl21, bl22, bl23, bl24, bl25, bl26, bl27,
diff --git a/src/mame/video/rockola.c b/src/mame/video/rockola.c
index bdb34cef8a9..4b1ea303e3d 100644
--- a/src/mame/video/rockola.c
+++ b/src/mame/video/rockola.c
@@ -7,6 +7,7 @@
***************************************************************************/
#include "driver.h"
+#include "includes/rockola.h"
UINT8 *rockola_videoram2;
diff --git a/src/mame/video/system16.c b/src/mame/video/system16.c
index 4ffad0c8204..d7c90a5fe6e 100644
--- a/src/mame/video/system16.c
+++ b/src/mame/video/system16.c
@@ -891,10 +891,10 @@ static tilemap *system16a_bootleg_text_tilemap;
static UINT16 system16a_bootleg_tilemapselect;
-int system16a_bootleg_bgscrolly;
-int system16a_bootleg_bgscrollx;
-int system16a_bootleg_fgscrolly;
-int system16a_bootleg_fgscrollx;
+static int system16a_bootleg_bgscrolly;
+static int system16a_bootleg_bgscrollx;
+static int system16a_bootleg_fgscrolly;
+static int system16a_bootleg_fgscrollx;
static TILE_GET_INFO( get_system16a_bootleg_tile_infotxt )
{
diff --git a/src/mame/video/trackfld.c b/src/mame/video/trackfld.c
index aac9778a16b..0b2369428e3 100644
--- a/src/mame/video/trackfld.c
+++ b/src/mame/video/trackfld.c
@@ -8,6 +8,7 @@
#include "driver.h"
#include "video/resnet.h"
+#include "includes/trackfld.h"
UINT8 *trackfld_scroll;
UINT8 *trackfld_scroll2;
diff --git a/src/mame/video/wiping.c b/src/mame/video/wiping.c
index a3c80d4d24e..b518d92a26d 100644
--- a/src/mame/video/wiping.c
+++ b/src/mame/video/wiping.c
@@ -8,6 +8,7 @@
#include "driver.h"
#include "video/resnet.h"
+#include "includes/wiping.h"
static int flipscreen;