openMSX
RomPadial16kB.cc
Go to the documentation of this file.
1 // Padial 16kB
2 //
3 // The address to change banks:
4 // first 16kb: 0x6000 - 0x67ff (0x6000 used)
5 // second 16kb: 0x7000 - 0x77ff (0x7000 and 0x77ff used)
6 
7 #include "RomPadial16kB.hh"
8 #include "serialize.hh"
9 
10 namespace openmsx {
11 
13  : RomAscii16kB(config, std::move(rom_))
14 {
15  reset(EmuTime::dummy());
16 }
17 
18 void RomPadial16kB::reset(EmuTime::param /*time*/)
19 {
20  setRom(0, 0);
21  setRom(1, 0);
22  setRom(2, 2);
23  setUnmapped(3);
24 }
25 
27 
28 } // namespace openmsx
serialize.hh
openmsx::RomPadial16kB
Definition: RomPadial16kB.hh:9
openmsx::DeviceConfig
Definition: DeviceConfig.hh:20
RomPadial16kB.hh
openmsx::RomAscii16kB
Definition: RomAscii16kB.hh:9
openmsx::REGISTER_MSXDEVICE
REGISTER_MSXDEVICE(ChakkariCopy, "ChakkariCopy")
openmsx::RomBlocks::setRom
void setRom(byte region, unsigned block)
Selects a block of the ROM image for reading in a certain region.
Definition: RomBlocks.cc:104
openmsx::RomBlocks::setUnmapped
void setUnmapped(byte region)
Select 'unmapped' memory for this region.
Definition: RomBlocks.cc:91
openmsx::Rom
Definition: Rom.hh:21
openmsx::RomPadial16kB::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomPadial16kB.cc:18
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::RomPadial16kB::RomPadial16kB
RomPadial16kB(const DeviceConfig &config, Rom &&rom)
Definition: RomPadial16kB.cc:12