From 92d2a150adb77543360c479b318612fc11d96022 Mon Sep 17 00:00:00 2001 From: NewRisingSun <8vytz1+dhp372pv94ebg@sharklasers.com> Date: Fri, 12 Sep 2025 01:28:11 +0200 Subject: [PATCH] Cleanup mappers 548 and 549. --- src/boards/548.c | 2 -- src/boards/549.c | 14 +++++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) 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; }