blob: 6bcd480a5a3f79760b36d96b6adfc52f1b7f14e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// license:BSD-3-Clause
// copyright-holders:Wilbert Pol
#ifndef MAME_BUS_MSX_SLOT_ROM_H
#define MAME_BUS_MSX_SLOT_ROM_H
#pragma once
#include "slot.h"
class msx_slot_rom_device : public device_t,
public msx_internal_slot_interface
{
public:
msx_slot_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// configuration helpers
void set_rom_start(const char *region, uint32_t offset) { m_rom_region.set_tag(region); m_region_offset = offset; }
virtual uint8_t read(offs_t offset) override;
protected:
msx_slot_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
virtual void device_start() override;
private:
required_memory_region m_rom_region;
uint32_t m_region_offset;
const uint8_t *m_rom;
};
DECLARE_DEVICE_TYPE(MSX_SLOT_ROM, msx_slot_rom_device)
#endif // MAME_BUS_MSX_SLOT_ROM_H
|