Skip to content

Commit

Permalink
COOLBOY submapper 2 and 3 writing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ClusterM committed Jan 22, 2023
1 parent 088f03e commit 8df8a4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion FamicomDumper/FlashWriters/CoolboyWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ private void SelectBank(int bank)
case 2:
case 3:
r1 = (byte)(
(((bank >> 8) & 1) << 1) // 8(22)
(1 << 4) // PRG mask 32KB, inverted
| (((bank >> 8) & 1) << 1) // 8(22)
| (((bank >> 7) & 1) << 2) // 7(21)
| (((bank >> 6) & 1) << 3) // 6(20)
| (1 << 7)); // PRG mask 512KB
Expand Down
2 changes: 1 addition & 1 deletion FamicomDumper/IMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void DumpChr(IFamicomDumperConnection dumper, List<byte> data, int size = 0)
/// This method will be called to enable PRG RAM
/// </summary>
/// <param name="dumper"></param>
void EnablePrgRam(IFamicomDumperConnection dumper)
void EnablePrgRam(IFamicomDumperConnection dumper)
=> throw new NotImplementedException("PRG RAM is not supported by this mapper");

/// <summary>
Expand Down

0 comments on commit 8df8a4a

Please sign in to comment.