trunk/src/emu/bus/msx_slot/ram.h
r32107 | r32108 | |
5 | 5 | |
6 | 6 | #define MCFG_MSX_SLOT_RAM_ADD(_tag, _startpage, _numpages) \ |
7 | 7 | MCFG_MSX_INTERNAL_SLOT_ADD(_tag, MSX_SLOT_RAM, _startpage, _numpages) |
| 8 | |
| 9 | #define MCFG_MSX_SLOT_RAM_8KB \ |
| 10 | msx_slot_ram_device::force_start_address(*device, 0xe000); |
| 11 | |
| 12 | |
8 | 13 | class msx_slot_ram_device : public device_t, |
9 | 14 | public msx_internal_slot_interface |
10 | 15 | { |
11 | 16 | public: |
12 | 17 | msx_slot_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
13 | 18 | |
| 19 | static void force_start_address(device_t &device, UINT16 start) { downcast<msx_slot_ram_device &>(device).m_start_address = start; } |
| 20 | |
14 | 21 | virtual void device_start(); |
15 | 22 | |
16 | 23 | virtual DECLARE_READ8_MEMBER(read); |
r32107 | r32108 | |
20 | 27 | dynamic_array<UINT8> m_ram; |
21 | 28 | }; |
22 | 29 | |
| 30 | |
23 | 31 | extern const device_type MSX_SLOT_RAM; |
24 | 32 | |
| 33 | |
25 | 34 | #endif |