M200: Add submapper 1.

This commit is contained in:
NewRisingSun
2023-03-27 15:50:50 +02:00
parent be2e1952b7
commit 09b8ef2830

View File

@@ -254,13 +254,14 @@ void Mapper92_Init(CartInfo *info) {
/*------------------ Map 200 ---------------------------*/
static void M200Sync(void) {
setprg16(0x8000, latche & 7);
setprg16(0xC000, latche & 7);
setchr8(latche & 7);
setmirror(((latche >> 3) & 1) ^ 1);
setprg16(0x8000, latche);
setprg16(0xC000, latche);
setchr8(latche);
setmirror(latche &(submapper ==1? 4: 8)? MI_H: MI_V);
}
void Mapper200_Init(CartInfo *info) {
submapper = info->submapper;
Latch_Init(info, M200Sync, NULL, 0xFFFF, 0x8000, 0xFFFF, 0);
}