summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2009-08-02 02:01:40 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2009-08-02 02:01:40 +0000
commitd57100051b22457eee83dcb621144df58b9a61f6 (patch)
tree163bede45a3ad49736bdb1cf70a903005bae15a3
parentef069cefdde67cd93a17c4cd6fd4e67de21408b8 (diff)
Made "static" the new functions and handlers in NES PPU code
-rw-r--r--src/mame/drivers/cham24.c2
-rw-r--r--src/mame/drivers/multigam.c4
-rw-r--r--src/mame/machine/playch10.c29
-rw-r--r--src/mame/machine/vsnes.c24
4 files changed, 28 insertions, 31 deletions
diff --git a/src/mame/drivers/cham24.c b/src/mame/drivers/cham24.c
index 3bf019e5515..5a2766164d6 100644
--- a/src/mame/drivers/cham24.c
+++ b/src/mame/drivers/cham24.c
@@ -63,7 +63,7 @@ Notes:
static UINT8* nt_ram;
static UINT8* nt_page[4];
-void cham24_set_mirroring( int mirroring )
+static void cham24_set_mirroring( int mirroring )
{
switch(mirroring)
{
diff --git a/src/mame/drivers/multigam.c b/src/mame/drivers/multigam.c
index f89a20086cc..32e52f46750 100644
--- a/src/mame/drivers/multigam.c
+++ b/src/mame/drivers/multigam.c
@@ -54,7 +54,7 @@
static UINT8* nt_ram;
static UINT8* nt_page[4];
-void set_mirroring(int mirroring)
+static void set_mirroring(int mirroring)
{
switch(mirroring)
{
@@ -99,7 +99,7 @@ static READ8_HANDLER (multigam_nt_r)
return nt_page[page][offset & 0x3ff];
}
-void set_videorom_bank(running_machine* machine, int start, int count, int bank, int bank_size_in_kb)
+static void set_videorom_bank(running_machine* machine, int start, int count, int bank, int bank_size_in_kb)
{
int i, j;
int offset = bank * (bank_size_in_kb * 0x400);
diff --git a/src/mame/machine/playch10.c b/src/mame/machine/playch10.c
index 56876a5b4c6..c3a1de8d989 100644
--- a/src/mame/machine/playch10.c
+++ b/src/mame/machine/playch10.c
@@ -4,13 +4,13 @@
#include "includes/playch10.h"
/* prototypes */
-void pc10_set_mirroring( int mirroring );
-WRITE8_HANDLER( pc10_nt_w );
-READ8_HANDLER( pc10_nt_r );
-WRITE8_HANDLER( pc10_chr_w );
-READ8_HANDLER( pc10_chr_r );
-void pc10_set_videorom_bank( running_machine *machine, int first, int count, int bank, int size );
-void set_videoram_bank( running_machine *machine, int first, int count, int bank, int size );
+static void pc10_set_mirroring( int mirroring );
+static WRITE8_HANDLER( pc10_nt_w );
+static READ8_HANDLER( pc10_nt_r );
+static WRITE8_HANDLER( pc10_chr_w );
+static READ8_HANDLER( pc10_chr_r );
+static void pc10_set_videorom_bank( running_machine *machine, int first, int count, int bank, int size );
+static void set_videoram_bank( running_machine *machine, int first, int count, int bank, int size );
typedef struct
{
@@ -318,19 +318,19 @@ READ8_HANDLER( pc10_in1_r )
*
*************************************/
-WRITE8_HANDLER( pc10_nt_w )
+static WRITE8_HANDLER( pc10_nt_w )
{
int page = ((offset & 0xc00) >> 10);
nametable[page][offset & 0x3ff] = data;
}
-READ8_HANDLER( pc10_nt_r )
+static READ8_HANDLER( pc10_nt_r )
{
int page = ((offset & 0xc00) >> 10);
return nametable[page][offset & 0x3ff];
}
-WRITE8_HANDLER( pc10_chr_w )
+static WRITE8_HANDLER( pc10_chr_w )
{
int bank = offset >> 10;
if (chr_page[bank].writable)
@@ -339,14 +339,13 @@ WRITE8_HANDLER( pc10_chr_w )
}
}
-READ8_HANDLER( pc10_chr_r )
+static READ8_HANDLER( pc10_chr_r )
{
int bank = offset >> 10;
return chr_page[bank].chr[offset & 0x3ff];
}
-
-void pc10_set_mirroring( int mirroring )
+static void pc10_set_mirroring( int mirroring )
{
switch (mirroring)
{
@@ -386,7 +385,7 @@ void pc10_set_mirroring( int mirroring )
* 64 1 *
\*****************/
-void pc10_set_videorom_bank( running_machine *machine, int first, int count, int bank, int size )
+static void pc10_set_videorom_bank( running_machine *machine, int first, int count, int bank, int size )
{
int i, len;
/* first = first bank to map */
@@ -411,7 +410,7 @@ void pc10_set_videorom_bank( running_machine *machine, int first, int count, int
}
}
-void set_videoram_bank( running_machine *machine, int first, int count, int bank, int size )
+static void set_videoram_bank( running_machine *machine, int first, int count, int bank, int size )
{
int i;
/* first = first bank to map */
diff --git a/src/mame/machine/vsnes.c b/src/mame/machine/vsnes.c
index 3eb0100e1fb..7ff46173833 100644
--- a/src/mame/machine/vsnes.c
+++ b/src/mame/machine/vsnes.c
@@ -35,11 +35,11 @@ static UINT8* nt_ram[2];
static UINT8* nt_page[2][4]; // because mirroring is used.
/* Prototypes for mapping board components to PPU bus */
-WRITE8_HANDLER( vsnes_nt0_w );
-WRITE8_HANDLER( vsnes_nt1_w );
-READ8_HANDLER( vsnes_nt0_r );
-READ8_HANDLER( vsnes_nt1_r );
-void v_set_videorom_bank( running_machine* machine, int start, int count, int bank, int bank_size_in_kb );
+static WRITE8_HANDLER( vsnes_nt0_w );
+static WRITE8_HANDLER( vsnes_nt1_w );
+static READ8_HANDLER( vsnes_nt0_r );
+static READ8_HANDLER( vsnes_nt1_r );
+static void v_set_videorom_bank( running_machine* machine, int start, int count, int bank, int bank_size_in_kb );
/*************************************
*
@@ -355,33 +355,31 @@ MACHINE_START( vsdual )
*
*************************************/
-WRITE8_HANDLER( vsnes_nt0_w )
+static WRITE8_HANDLER( vsnes_nt0_w )
{
int page = ((offset & 0xc00) >> 10);
nt_page[0][page][offset & 0x3ff] = data;
-
}
-WRITE8_HANDLER( vsnes_nt1_w )
+static WRITE8_HANDLER( vsnes_nt1_w )
{
int page = ((offset & 0xc00) >> 10);
nt_page[1][page][offset & 0x3ff] = data;
-
}
-READ8_HANDLER( vsnes_nt0_r )
+static READ8_HANDLER( vsnes_nt0_r )
{
int page = ((offset&0xc00) >> 10);
return nt_page[0][page][offset & 0x3ff];
}
-READ8_HANDLER( vsnes_nt1_r )
+static READ8_HANDLER( vsnes_nt1_r )
{
int page = ((offset & 0xc00) >> 10);
return nt_page[1][page][offset & 0x3ff];
}
-void v_set_mirroring( int ppu, int mirroring )
+static void v_set_mirroring( int ppu, int mirroring )
{
switch (mirroring)
{
@@ -414,7 +412,7 @@ void v_set_mirroring( int ppu, int mirroring )
}
-void v_set_videorom_bank( running_machine* machine, int start, int count, int bank, int bank_size_in_kb )
+static void v_set_videorom_bank( running_machine* machine, int start, int count, int bank, int bank_size_in_kb )
{
int i, j;
int offset = bank * (bank_size_in_kb * 0x400);