Skip to content

Commit

Permalink
cv: tab->space
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeUsher committed Dec 11, 2023
1 parent 42462da commit 2edae5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ares/cv/cartridge/board/coleco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct coleco : Interface {
}

auto write(n16 address, n8 data) -> void override {
return;
return;
}

auto power() -> void override {}
Expand Down
6 changes: 3 additions & 3 deletions ares/cv/cartridge/board/megacart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ struct megacart : Interface {
auto unload() -> void override {}

auto read(n16 address) -> n8 override {
if (address >= 0x7fc0) return bank = address & (bankCount - 1);
if (address >= 0x4000) return rom.read((bank << 14) + (address - 0x4000));
if(address >= 0x7fc0) return bank = address & (bankCount - 1);
if(address >= 0x4000) return rom.read((bank << 14) + (address - 0x4000));
return rom.read((bankCount << 14) + (address - 0x4000));
}

auto write(n16 address, n8 data) -> void override {
return;
return;
}

auto power() -> void override {
Expand Down
2 changes: 1 addition & 1 deletion ares/cv/cartridge/board/xin1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct xin1 : Interface {
auto unload() -> void override {}

auto read(n16 address) -> n8 override {
if(address >= 0x7fc0) return bank = (address - 0x7fc0) % bankCount;
if(address >= 0x7fc0) return bank = (address - 0x7fc0) % bankCount;
return rom.read(address + (bank * 0x8000));
}

Expand Down

0 comments on commit 2edae5f

Please sign in to comment.