Add mapper 461

This commit is contained in:
NewRisingSun
2022-07-27 12:48:05 +02:00
parent 3999c571c9
commit 707853d234
3 changed files with 20 additions and 0 deletions

View File

@@ -776,6 +776,24 @@ void Mapper459_Init(CartInfo *info) {
Latch_Init(info, M459Sync, NULL, 0x0000, 0x8000, 0xFFFF, 1);
}
/*------------------ Map 461 ---------------------------*/
static void M461Sync(void) {
int p =latche <<1 | latche >>5 &1;
int c =latche >>8;
if (latche &0x10) {
setprg16(0x8000, p);
setprg16(0xC000, p);
} else {
setprg32(0x8000, p >>1);
}
setchr8(c);
setmirror(latche &0x80? MI_H: MI_V);
}
void Mapper461_Init(CartInfo *info) {
Latch_Init(info, M461Sync, NULL, 0x0000, 0x8000, 0xFFFF, 1);
}
/*------------------ Map 464 ---------------------------*/
static void M464Sync(void) {
int p =latche >>7;