mmc3: Make some variables static

This commit is contained in:
negativeExponent
2022-02-12 16:37:04 +08:00
parent 55639a156a
commit 690862829a
2 changed files with 6 additions and 15 deletions

View File

@@ -28,20 +28,17 @@
#include "mmc3.h"
uint8 MMC3_cmd;
uint8 *WRAM;
uint32 WRAMSIZE;
uint8 *CHRRAM;
uint32 CHRRAMSIZE;
static uint8 *WRAM;
static uint32 WRAMSIZE;
static uint8 *CHRRAM;
static uint32 CHRRAMSIZE;
uint8 DRegBuf[8];
uint8 EXPREGS[8]; /* For bootleg games, mostly. */
uint8 A000B, A001B;
uint8 mmc3opts = 0;
#undef IRQCount
#undef IRQLatch
#undef IRQa
uint8 IRQCount, IRQLatch, IRQa;
uint8 IRQReload;
static uint8 IRQCount, IRQLatch, IRQa;
static uint8 IRQReload;
static SFORMAT MMC3_StateRegs[] =
{

View File

@@ -8,12 +8,6 @@ extern uint8 A001B;
extern uint8 EXPREGS[8];
extern uint8 DRegBuf[8];
#undef IRQCount
#undef IRQLatch
#undef IRQa
extern uint8 IRQCount, IRQLatch, IRQa;
extern uint8 IRQReload;
extern void (*pwrap)(uint32 A, uint8 V);
extern void (*cwrap)(uint32 A, uint8 V);
extern void (*mwrap)(uint8 V);