Cleanup mappers 548 and 549.

This commit is contained in:
NewRisingSun
2025-09-12 01:28:11 +02:00
parent f56be8ce5e
commit 92d2a150ad
2 changed files with 13 additions and 3 deletions

View File

@@ -20,8 +20,6 @@
*
*/
/* The UNIF dump of "(JY-103) 3-in-1" (JY4M4 MAPR) has a strange bank order and will not run with this emulation. */
#include "mapinc.h"
#include "wram.h"
#include "../fds_apu.h"

View File

@@ -20,6 +20,7 @@
#include "mapinc.h"
#include "asic_latch.h"
#include "../fds_apu.h"
static void sync () {
setprg8(0x6000, Latch_address >>2 | Latch_address >>3 &0x04);
@@ -27,7 +28,18 @@ static void sync () {
setchr8(0);
}
static void power() {
Latch_power();
FDSSoundPower();
}
static void reset() {
FDSSoundReset();
Latch_clear();
}
void Mapper549_Init (CartInfo *info) {
Latch_init(info, sync, 0x8000, 0xFFFF, NULL);
info->Reset = Latch_clear;
info->Power = power;
info->Reset = reset;
}