OXYGENHUB
◆ main openmsx / src / memory / RomSuperLodeRunner.cc
584 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#include "RomSuperLodeRunner.hh"
2
3
#include <cassert>
4
5
namespace openmsx {
6
7
RomSuperLodeRunner::RomSuperLodeRunner(
8
		const DeviceConfig& config, Rom&& rom_)
9
	: Rom16kBBlocks(config, std::move(rom_))
10
{
11
	reset(EmuTime::dummy());
12
}
13
14
void RomSuperLodeRunner::reset(EmuTime /*time*/)
15
{
16
	setUnmapped(0);
17
	setUnmapped(1);
18
	setRom(2, 0);
19
	setUnmapped(3);
20
}
21
22
void RomSuperLodeRunner::globalWrite(uint16_t address, byte value, EmuTime /*time*/)
23
{
24
	assert(address == 0);
25
	(void)address;
26
	setRom(2, value);
27
}
28
29
REGISTER_MSXDEVICE(RomSuperLodeRunner, "RomSuperLodeRunner");
30
31
} // namespace openmsx