Skip to content

Commit

Permalink
BNROM, some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ClusterM committed Sep 29, 2016
1 parent 6af40f1 commit 459157a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CoolGirl.v
Expand Up @@ -25,6 +25,7 @@ module CoolGirl # (
parameter USE_MAPPER_163 = 0, // mapper #163
parameter USE_MAPPER_189 = 1, // mapper #189
parameter USE_MAPPER_228 = 1, // mapper #228 - Cheetahmen II only
parameter USE_MAPPER_241 = 1, // mapper #241 - BNROM

parameter USE_FOUR_SCREEN = 1
)
Expand Down
5 changes: 3 additions & 2 deletions mappers.vh
Expand Up @@ -530,11 +530,12 @@
endcase
end

// Mapper #7 - AxROM
// Mapper #7 - AxROM, mapper #241 - BNROM
if (mapper == 5'b01000)
begin
prg_bank_a[5:2] = cpu_data_in[3:0];
mirroring = {1'b1, cpu_data_in[4]};
if (!USE_MAPPER_241 || !flags[0]) // BNROM?
mirroring = {1'b1, cpu_data_in[4]};
end

// Mapper #228 - Cheetahmen II
Expand Down

0 comments on commit 459157a

Please sign in to comment.