Overall cleanup.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
static uint8 reg;
|
||||
|
||||
static SFORMAT Mapper384_stateRegs[] ={
|
||||
static SFORMAT stateRegs[] ={
|
||||
{ ®, 1, "EXP0" },
|
||||
{ 0 }
|
||||
};
|
||||
@@ -36,7 +36,7 @@ static void sync () {
|
||||
VRC24_syncWRAM(0);
|
||||
}
|
||||
|
||||
DECLFW(Mapper384_writeReg) {
|
||||
static DECLFW (writeReg) {
|
||||
if (A &0x800 && ~reg &0x08) {
|
||||
reg =V;
|
||||
sync();
|
||||
@@ -44,20 +44,20 @@ DECLFW(Mapper384_writeReg) {
|
||||
CartBW(A, V);
|
||||
}
|
||||
|
||||
void Mapper384_power(void) {
|
||||
static void power (void) {
|
||||
reg =0;
|
||||
VRC24_power();
|
||||
}
|
||||
|
||||
void Mapper384_reset(void) {
|
||||
static void reset (void) {
|
||||
reg =0;
|
||||
sync();
|
||||
}
|
||||
VRC24_clear();
|
||||
}
|
||||
|
||||
void Mapper384_Init (CartInfo *info) {
|
||||
VRC4_init(info, sync, 0x04, 0x08, 0, NULL, NULL, NULL, Mapper384_writeReg, NULL);
|
||||
VRC4_init(info, sync, 0x04, 0x08, 0, NULL, NULL, NULL, writeReg, NULL);
|
||||
WRAM_init(info, 2);
|
||||
info->Power =Mapper384_power;
|
||||
info->Reset =Mapper384_reset;
|
||||
AddExState(Mapper384_stateRegs, ~0, 0, 0);
|
||||
info->Power =power;
|
||||
info->Reset =reset;
|
||||
AddExState(stateRegs, ~0, 0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user