Overall cleanup.

This commit is contained in:
NewRisingSun
2025-09-12 21:59:27 +02:00
parent 19e357c040
commit db279aa338
86 changed files with 476 additions and 476 deletions

View File

@@ -26,11 +26,11 @@
static uint8 reg;
static uint8 pad;
static DECLFR(readPad) {
static DECLFR (readPad) {
return CartBR(A &~0xF | pad &0xF);
}
static void sync() {
static void sync () {
if (reg &0x20)
setprg32(0x8000, reg >>1);
else {
@@ -42,24 +42,24 @@ static void sync() {
SetReadHandler(0x8000, 0xFFFF, reg &0x80? readPad: CartBR);
}
static DECLFW(writeReg) {
static DECLFW (writeReg) {
reg = A &0xFF;
sync();
}
static void reset() {
reg = 0;
++pad;
sync();
}
static void power() {
static void power () {
reg = 0;
pad = 0;
MMC3_power();
}
void Mapper490_Init(CartInfo *info) {
static void reset () {
reg = 0;
++pad;
MMC3_clear();
}
void Mapper490_Init (CartInfo *info) {
MMC3_init(info, sync, MMC3_TYPE_AX5202P, NULL, NULL, NULL, writeReg);
info->Power = power;
info->Reset = reset;