Update mapper 61
This commit is contained in:
committed by
LibretroAdmin
parent
47c852a8f7
commit
6cbcb160de
@@ -176,16 +176,22 @@ void Mapper59_Init(CartInfo *info) {
|
|||||||
|
|
||||||
/*------------------ Map 061 ---------------------------*/
|
/*------------------ Map 061 ---------------------------*/
|
||||||
static void M61Sync(void) {
|
static void M61Sync(void) {
|
||||||
if (((latche & 0x10) << 1) ^ (latche & 0x20)) {
|
if (latche &0x10) {
|
||||||
setprg16(0x8000, ((latche & 0xF) << 1) | (((latche & 0x20) >> 4)));
|
setprg16(0x8000, latche <<1 &0x1E | latche >>5 &0x01);
|
||||||
setprg16(0xC000, ((latche & 0xF) << 1) | (((latche & 0x20) >> 4)));
|
setprg16(0xC000, latche <<1 &0x1E | latche >>5 &0x01);
|
||||||
} else
|
} else
|
||||||
setprg32(0x8000, latche & 0xF);
|
setprg32(0x8000, latche & 0xF);
|
||||||
setchr8(latche >> 8);
|
setchr8(latche >> 8);
|
||||||
setmirror(((latche >> 7) & 1) ^ 1);
|
setmirror(((latche >> 7) & 1) ^ 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Mapper61_Reset() {
|
||||||
|
latche =0;
|
||||||
|
M61Sync();
|
||||||
|
}
|
||||||
|
|
||||||
void Mapper61_Init(CartInfo *info) {
|
void Mapper61_Init(CartInfo *info) {
|
||||||
|
info->Reset = Mapper61_Reset;
|
||||||
Latch_Init(info, M61Sync, NULL, 0x0000, 0x8000, 0xFFFF, 0);
|
Latch_Init(info, M61Sync, NULL, 0x0000, 0x8000, 0xFFFF, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user