Update mapper 288
This commit is contained in:
committed by
LibretroAdmin
parent
56d5eec432
commit
405fe54d86
@@ -548,18 +548,19 @@ void Mapper242_Init(CartInfo *info) {
|
|||||||
static void M288Sync(void) {
|
static void M288Sync(void) {
|
||||||
setchr8(latche);
|
setchr8(latche);
|
||||||
setprg32(0x8000, latche >> 3);
|
setprg32(0x8000, latche >> 3);
|
||||||
|
setmirror(latche &0x20? MI_H: MI_V);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DECLFR(M288Read) {
|
static DECLFR(M288Read) {
|
||||||
uint8 ret = CartBR(A);
|
if (latche & 0x120 && ~latche & 0x10)
|
||||||
if (latche & 0x20)
|
A |= dipswitch;
|
||||||
ret |= (dipswitch << 2);
|
return CartBR(A);
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void M288Reset(void) {
|
static void M288Reset(void) {
|
||||||
dipswitch++;
|
dipswitch++;
|
||||||
dipswitch &= 3;
|
dipswitch &= 15;
|
||||||
|
latche =0;
|
||||||
M288Sync();
|
M288Sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user