openMSX
RomColecoMegaCart.hh
Go to the documentation of this file.
1 #ifndef ROMCOLECOMEGACART_HH
2 #define ROMCOLECOMEGACART_HH
3 
4 #include "RomBlocks.hh"
5 
6 namespace openmsx {
7 
8 class RomColecoMegaCart final : public Rom16kBBlocks
9 {
10 public:
11  RomColecoMegaCart(const DeviceConfig& config, Rom&& rom);
12 
13  void reset(EmuTime::param time) override;
14  byte readMem(word address, EmuTime::param time) override;
15  const byte* getReadCacheLine(word start) const override;
16 };
17 
18 } // namespace openmsx
19 
20 #endif
openmsx::DeviceConfig
Definition: DeviceConfig.hh:20
openmsx::RomColecoMegaCart::getReadCacheLine
const byte * getReadCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
Definition: RomColecoMegaCart.cc:48
openmsx::RomBlocks
Definition: RomBlocks.hh:14
openmsx::RomColecoMegaCart
Definition: RomColecoMegaCart.hh:9
openmsx::MSXRom::rom
Rom rom
Definition: MSXRom.hh:20
openmsx::Rom
Definition: Rom.hh:21
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::RomColecoMegaCart::readMem
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
Definition: RomColecoMegaCart.cc:35
openmsx::RomColecoMegaCart::RomColecoMegaCart
RomColecoMegaCart(const DeviceConfig &config, Rom &&rom)
Definition: RomColecoMegaCart.cc:12
openmsx::RomColecoMegaCart::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomColecoMegaCart.cc:24
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
RomBlocks.hh