Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/coolgirl-multicart/coolgirl-famicom-multicart.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-06-30 13:02:08 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-06-30 13:02:08 +0300
commit9ec406d9f14b2e2d0922de440ed5a58c66d353c6 (patch)
treef07a00901515e4f1236282cda9d28493a853f774
parent3ef421a3857d320d34bfee4a5755e331f2025781 (diff)
Mapper #89 support
-rw-r--r--CoolGirl_config.vh1
-rw-r--r--CoolGirl_mappers.vh8
2 files changed, 9 insertions, 0 deletions
diff --git a/CoolGirl_config.vh b/CoolGirl_config.vh
index 6e34a2f..84f247e 100644
--- a/CoolGirl_config.vh
+++ b/CoolGirl_config.vh
@@ -26,6 +26,7 @@ parameter ENABLE_MAPPER_078 = 1, // mapper #078 - Irem: Holy Diver a
parameter ENABLE_MAPPER_079_113_146 = 0, // mappers #079, #113, #146 - NINA-03/06 and Sachen 3015
parameter ENABLE_MAPPER_083 = 0, // mapper #083 - Cony/Yoko, submapper #0 only
parameter ENABLE_MAPPER_087 = 1, // mapper #087 - Jaleco
+parameter ENABLE_MAPPER_089 = 0, // mapper #089 - Sunsoft-2 chip on the Sunsoft-3 board: Mito Koumon
parameter ENABLE_MAPPER_090 = 1, // mapper #090 - JY (partical support): Aladdin only
parameter ENABLE_MAPPER_090_ACCURATE_IRQ = 0,// mapper #090 accurate IRQs: for Super Mario World
parameter ENABLE_MAPPER_090_MULTIPLIER = 0, // mapper #090 multiplier: for Super Mario World protection check
diff --git a/CoolGirl_mappers.vh b/CoolGirl_mappers.vh
index 0846b3e..34d6ef5 100644
--- a/CoolGirl_mappers.vh
+++ b/CoolGirl_mappers.vh
@@ -1362,6 +1362,14 @@ begin
mapper67_irq_out <= 0;
end
end
+
+ // Mapper #89 - Sunsoft-2 chip on the Sunsoft-3 board
+ if (ENABLE_MAPPER_089 && (mapper == 6'b100101))
+ begin
+ prg_bank_a[3:1] <= cpu_data_in[6:4];
+ chr_bank_a[6:3] <= {cpu_data_in[7], cpu_data_in[2:0]};
+ mirroring[1:0] <= {1'b1, cpu_data_in[3]};
+ end
end // romsel
end // write