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
void setRom(byte region, unsigned block)
Selects a block of the ROM image for reading in a certain region.
Definition: RomBlocks.cc:105
void setUnmapped(byte region)
Select 'unmapped' memory for this region.
Definition: RomBlocks.cc:92
RomPadial16kB(const DeviceConfig &config, Rom &&rom)
void reset(EmuTime::param time) override
This method is called on reset.
This file implemented 3 utility functions:
Definition: Autofire.cc:9
REGISTER_MSXDEVICE(ChakkariCopy, "ChakkariCopy")