summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/msx_slot/ram.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/msx_slot/ram.h')
-rw-r--r--src/devices/bus/msx_slot/ram.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/devices/bus/msx_slot/ram.h b/src/devices/bus/msx_slot/ram.h
index 17bff978148..f96271ad066 100644
--- a/src/devices/bus/msx_slot/ram.h
+++ b/src/devices/bus/msx_slot/ram.h
@@ -5,23 +5,17 @@
#include "slot.h"
-#define MCFG_MSX_SLOT_RAM_ADD(_tag, _startpage, _numpages) \
- MCFG_MSX_INTERNAL_SLOT_ADD(_tag, MSX_SLOT_RAM, _startpage, _numpages)
-
-#define MCFG_MSX_SLOT_RAM_8KB \
- downcast<msx_slot_ram_device &>(*device).force_start_address(0xe000);
-
-
class msx_slot_ram_device : public device_t,
public msx_internal_slot_interface
{
public:
msx_slot_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ // Set to 0xe000 for 8KB RAM
void force_start_address(uint16_t start) { m_start_address = start; }
- virtual DECLARE_READ8_MEMBER(read) override;
- virtual DECLARE_WRITE8_MEMBER(write) override;
+ virtual uint8_t read(offs_t offset) override;
+ virtual void write(offs_t offset, uint8_t data) override;
protected:
virtual void device_start() override;