diff options
Diffstat (limited to 'src/devices/bus/sg1000_exp/sg1000exp.h')
-rw-r--r-- | src/devices/bus/sg1000_exp/sg1000exp.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/devices/bus/sg1000_exp/sg1000exp.h b/src/devices/bus/sg1000_exp/sg1000exp.h index 328f12e269c..ce8ae982980 100644 --- a/src/devices/bus/sg1000_exp/sg1000exp.h +++ b/src/devices/bus/sg1000_exp/sg1000exp.h @@ -9,10 +9,10 @@ **********************************************************************/ -#pragma once +#ifndef MAME_BUS_SG1000_EXP_SG1000EXP_H +#define MAME_BUS_SG1000_EXP_SG1000EXP_H -#ifndef __SG1000_EXPANSION_SLOT__ -#define __SG1000_EXPANSION_SLOT__ +#pragma once @@ -37,8 +37,7 @@ class device_sg1000_expansion_slot_interface; -class sg1000_expansion_slot_device : public device_t, - public device_slot_interface +class sg1000_expansion_slot_device : public device_t, public device_slot_interface { public: // construction/destruction @@ -66,25 +65,26 @@ class device_sg1000_expansion_slot_interface : public device_slot_card_interface { public: // construction/destruction - device_sg1000_expansion_slot_interface(const machine_config &mconfig, device_t &device); virtual ~device_sg1000_expansion_slot_interface(); - virtual DECLARE_READ8_MEMBER(peripheral_r) { return 0xff; }; - virtual DECLARE_WRITE8_MEMBER(peripheral_w) { }; + virtual DECLARE_READ8_MEMBER(peripheral_r) { return 0xff; } + virtual DECLARE_WRITE8_MEMBER(peripheral_w) { } - virtual bool is_readable(uint8_t offset) { return true; }; - virtual bool is_writeable(uint8_t offset) { return true; }; + virtual bool is_readable(uint8_t offset) { return true; } + virtual bool is_writeable(uint8_t offset) { return true; } protected: + device_sg1000_expansion_slot_interface(const machine_config &mconfig, device_t &device); + sg1000_expansion_slot_device *m_port; }; // device type definition -extern const device_type SG1000_EXPANSION_SLOT; +DECLARE_DEVICE_TYPE(SG1000_EXPANSION_SLOT, sg1000_expansion_slot_device) SLOT_INTERFACE_EXTERN( sg1000_expansion_devices ); -#endif +#endif // MAME_BUS_SG1000_EXP_SG1000EXP_H |