openMSX
RomSuperLodeRunner.cc
Go to the documentation of this file.
2#include "serialize.hh"
3#include <cassert>
4
5namespace openmsx {
6
8 const DeviceConfig& config, Rom&& rom_)
9 : Rom16kBBlocks(config, std::move(rom_))
10{
11 reset(EmuTime::dummy());
12}
13
14void RomSuperLodeRunner::reset(EmuTime::param /*time*/)
15{
16 setUnmapped(0);
17 setUnmapped(1);
18 setRom(2, 0);
19 setUnmapped(3);
20}
21
22void RomSuperLodeRunner::globalWrite(word address, byte value, EmuTime::param /*time*/)
23{
24 assert(address == 0);
25 (void)address;
26 setRom(2, value);
27}
28
30
31} // namespace openmsx
void setRom(byte region, unsigned block)
Selects a block of the ROM image for reading in a certain region.
Definition: RomBlocks.cc:103
void setUnmapped(byte region)
Select 'unmapped' memory for this region.
Definition: RomBlocks.cc:91
void reset(EmuTime::param time) override
This method is called on reset.
RomSuperLodeRunner(const DeviceConfig &config, Rom &&rom)
void globalWrite(word address, byte value, EmuTime::param time) override
Global writes.
This file implemented 3 utility functions:
Definition: Autofire.cc:9
REGISTER_MSXDEVICE(ChakkariCopy, "ChakkariCopy")
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
STL namespace.