Add mapper 592 submapper 1. Add 'static' keybword to mapper 333.

This commit is contained in:
NewRisingSun
2026-03-10 17:54:22 +01:00
parent ba9f10a805
commit 7143a2730a
2 changed files with 10 additions and 3 deletions

View File

@@ -21,14 +21,21 @@
#include "mapinc.h"
#include "asic_latch.h"
static uint8 submapper;
static void sync () {
setprg16(0x8000, Latch_data);
setprg16(0xC000, Latch_data);
if (submapper == 1)
setprg32(0x8000, Latch_data);
else {
setprg16(0x8000, Latch_data);
setprg16(0xC000, Latch_data);
}
setchr8(Latch_data);
setmirror(Latch_data &0x08? MI_H: MI_V);
}
void Mapper592_Init (CartInfo *info) {
submapper = info->submapper;
Latch_init(info, sync, 0x8000, 0xFFFF, NULL);
info->Reset = Latch_clear;
}

View File

@@ -27,7 +27,7 @@
#include "mapinc.h"
#include "mmc3.h"
uint8 submapper;
static uint8 submapper;
static void BMC8IN1CW(uint32 A, uint8 V) {
setchr1(A, ((EXPREGS[0] & 0xC) << 5) | (V & 0x7F));