openMSX
RomPadial8kB.cc
Go to the documentation of this file.
1 // Padial 8kB
2 //
3 // The address to change banks:
4 // bank 1: 0x6000 - 0x67ff (0x6000 used)
5 // bank 2: 0x6800 - 0x6fff (0x6800 used)
6 // bank 3: 0x7000 - 0x77ff (0x7000 used)
7 // bank 4: 0x7800 - 0x7fff (0x7800 used)
8 
9 #include "RomPadial8kB.hh"
10 #include "serialize.hh"
11 
12 namespace openmsx {
13 
15  : RomAscii8kB(config, std::move(rom_))
16 {
17  reset(EmuTime::dummy());
18 }
19 
20 void RomPadial8kB::reset(EmuTime::param /*time*/)
21 {
22  setRom(0, 0);
23  setRom(1, 0);
24  for (int i = 2; i < 6; ++i) {
25  setRom(i, i - 2);
26  }
27  setUnmapped(6);
28  setUnmapped(7);
29 }
30 
32 
33 } // namespace openmsx
RomPadial8kB.hh
serialize.hh
openmsx::DeviceConfig
Definition: DeviceConfig.hh:20
openmsx::REGISTER_MSXDEVICE
REGISTER_MSXDEVICE(ChakkariCopy, "ChakkariCopy")
openmsx::RomPadial8kB
Definition: RomPadial8kB.hh:9
openmsx::RomAscii8kB
Definition: RomAscii8kB.hh:9
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::RomPadial8kB::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomPadial8kB.cc:20
openmsx::RomBlocks::setUnmapped
void setUnmapped(byte region)
Select 'unmapped' memory for this region.
Definition: RomBlocks.cc:91
openmsx::RomPadial8kB::RomPadial8kB
RomPadial8kB(const DeviceConfig &config, Rom &&rom)
Definition: RomPadial8kB.cc:14
openmsx::Rom
Definition: Rom.hh:21
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5