diff options
Diffstat (limited to 'src/devices/bus/vtech/memexp/rtty.cpp')
-rw-r--r-- | src/devices/bus/vtech/memexp/rtty.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/devices/bus/vtech/memexp/rtty.cpp b/src/devices/bus/vtech/memexp/rtty.cpp index d6a1278d577..96e394bfb4d 100644 --- a/src/devices/bus/vtech/memexp/rtty.cpp +++ b/src/devices/bus/vtech/memexp/rtty.cpp @@ -14,7 +14,7 @@ // DEVICE DEFINITIONS //************************************************************************** -const device_type RTTY_INTERFACE = device_creator<rtty_interface_device>; +DEFINE_DEVICE_TYPE(VTECH_RTTY_INTERFACE, vtech_rtty_interface_device, "vtech_rtty", "DSE VZ-200/300 RTTY Interface") //------------------------------------------------- // rom_region - device-specific ROM region @@ -25,7 +25,7 @@ ROM_START( rtty ) ROM_LOAD("vzrtty.ic3", 0x0000, 0x1000, CRC(ccf4289b) SHA1(de737ef0e0b582b3102da473836af1fa159a2e78)) ROM_END -const tiny_rom_entry *rtty_interface_device::device_rom_region() const +const tiny_rom_entry *vtech_rtty_interface_device::device_rom_region() const { return ROM_NAME( rtty ); } @@ -36,12 +36,12 @@ const tiny_rom_entry *rtty_interface_device::device_rom_region() const //************************************************************************** //------------------------------------------------- -// rtty_interface_device - constructor +// vtech_rtty_interface_device - constructor //------------------------------------------------- -rtty_interface_device::rtty_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : - device_t(mconfig, RTTY_INTERFACE, "DSE VZ-200/300 RTTY Interface", tag, owner, clock, "vz_rtty", __FILE__), - device_memexp_interface(mconfig, *this) +vtech_rtty_interface_device::vtech_rtty_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : + device_t(mconfig, VTECH_RTTY_INTERFACE, tag, owner, clock), + device_vtech_memexp_interface(mconfig, *this) { } @@ -49,7 +49,7 @@ rtty_interface_device::rtty_interface_device(const machine_config &mconfig, cons // device_start - device-specific startup //------------------------------------------------- -void rtty_interface_device::device_start() +void vtech_rtty_interface_device::device_start() { } @@ -57,15 +57,15 @@ void rtty_interface_device::device_start() // device_reset - device-specific reset //------------------------------------------------- -void rtty_interface_device::device_reset() +void vtech_rtty_interface_device::device_reset() { // program - m_slot->m_program->install_rom(0x4000, 0x4fff, 0x1000, memregion("software")->base()); + program_space().install_rom(0x4000, 0x4fff, 0x1000, memregion("software")->base()); // data - m_slot->m_program->install_read_handler(0x5000, 0x57ff, read8_delegate(FUNC(rtty_interface_device::receive_data_r), this)); - m_slot->m_program->install_write_handler(0x5800, 0x5fff, write8_delegate(FUNC(rtty_interface_device::transmit_data_w), this)); - m_slot->m_program->install_write_handler(0x6000, 0x67ff, write8_delegate(FUNC(rtty_interface_device::relay_w), this)); + program_space().install_read_handler(0x5000, 0x57ff, read8_delegate(FUNC(vtech_rtty_interface_device::receive_data_r), this)); + program_space().install_write_handler(0x5800, 0x5fff, write8_delegate(FUNC(vtech_rtty_interface_device::transmit_data_w), this)); + program_space().install_write_handler(0x6000, 0x67ff, write8_delegate(FUNC(vtech_rtty_interface_device::relay_w), this)); } @@ -73,17 +73,17 @@ void rtty_interface_device::device_reset() // IMPLEMENTATION //************************************************************************** -READ8_MEMBER( rtty_interface_device::receive_data_r ) +READ8_MEMBER( vtech_rtty_interface_device::receive_data_r ) { return 0xff; } -WRITE8_MEMBER( rtty_interface_device::transmit_data_w ) +WRITE8_MEMBER( vtech_rtty_interface_device::transmit_data_w ) { logerror("transmit_w: %d\n", BIT(data, 7)); } -WRITE8_MEMBER( rtty_interface_device::relay_w ) +WRITE8_MEMBER( vtech_rtty_interface_device::relay_w ) { logerror("relay_w: %d\n", BIT(data, 7)); } |