Add mapper 571 submapper 1.
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
#include "mapinc.h"
|
#include "mapinc.h"
|
||||||
#include "asic_vrc2and4.h"
|
#include "asic_vrc2and4.h"
|
||||||
|
|
||||||
|
static uint8 submapper;
|
||||||
static uint8 reg;
|
static uint8 reg;
|
||||||
|
|
||||||
static void sync () {
|
static void sync () {
|
||||||
@@ -33,7 +34,7 @@ static void sync () {
|
|||||||
if (reg &0x20)
|
if (reg &0x20)
|
||||||
VRC24_syncPRG(prgAND, prgOR &~prgAND);
|
VRC24_syncPRG(prgAND, prgOR &~prgAND);
|
||||||
else
|
else
|
||||||
if (reg &0x6)
|
if (submapper == 0 && reg &0x06 || submapper == 1 && reg &0x02 && reg &0x04)
|
||||||
setprg32(0x8000, reg >>1);
|
setprg32(0x8000, reg >>1);
|
||||||
else {
|
else {
|
||||||
setprg16(0x8000, reg);
|
setprg16(0x8000, reg);
|
||||||
@@ -65,6 +66,7 @@ static void power () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Mapper571_Init (CartInfo *info) {
|
void Mapper571_Init (CartInfo *info) {
|
||||||
|
submapper = info->submapper;
|
||||||
VRC4_init(info, sync, 4, 8, 1, NULL, NULL, NULL, writeReg, NULL);
|
VRC4_init(info, sync, 4, 8, 1, NULL, NULL, NULL, writeReg, NULL);
|
||||||
info->Power = power;
|
info->Power = power;
|
||||||
info->Reset = reset;
|
info->Reset = reset;
|
||||||
|
|||||||
Reference in New Issue
Block a user