mirror of https://github.com/bsnes-emu/bsnes.git
48 lines
805 B
C++
48 lines
805 B
C++
struct NES_ExROM : Board {
|
|
NES_ExROM(Markup::Node& document) : Board(document), mmc5(*this) {
|
|
revision = Revision::ELROM;
|
|
}
|
|
|
|
auto main() -> void {
|
|
mmc5.main();
|
|
}
|
|
|
|
auto readPRG(uint addr) -> uint8 {
|
|
return mmc5.readPRG(addr);
|
|
}
|
|
|
|
auto writePRG(uint addr, uint8 data) -> void {
|
|
mmc5.writePRG(addr, data);
|
|
}
|
|
|
|
auto readCHR(uint addr) -> uint8 {
|
|
return mmc5.readCHR(addr);
|
|
}
|
|
|
|
auto writeCHR(uint addr, uint8 data) -> void {
|
|
mmc5.writeCHR(addr, data);
|
|
}
|
|
|
|
auto scanline(uint y) -> void {
|
|
mmc5.scanline(y);
|
|
}
|
|
|
|
auto power() -> void {
|
|
mmc5.power();
|
|
}
|
|
|
|
auto serialize(serializer& s) -> void {
|
|
Board::serialize(s);
|
|
mmc5.serialize(s);
|
|
}
|
|
|
|
enum class Revision : uint {
|
|
EKROM,
|
|
ELROM,
|
|
ETROM,
|
|
EWROM,
|
|
} revision;
|
|
|
|
MMC5 mmc5;
|
|
};
|