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
#define REGISTER_MSXDEVICE(CLASS, NAME)
Definition MSXDevice.hh:356
void setUnmapped(unsigned region)
Select 'unmapped' memory for this region.
Definition RomBlocks.cc:92
void setRom(unsigned region, unsigned block)
Selects a block of the ROM image for reading in a certain region.
Definition RomBlocks.cc:104
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:11
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29
STL namespace.