diff --git a/src/boards/548.c b/src/boards/548.c index 0ca04ca..013dc7c 100644 --- a/src/boards/548.c +++ b/src/boards/548.c @@ -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" diff --git a/src/boards/549.c b/src/boards/549.c index 3d62dae..18cfa13 100644 --- a/src/boards/549.c +++ b/src/boards/549.c @@ -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; }