summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/decocass_tape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/decocass_tape.cpp')
-rw-r--r--src/mame/machine/decocass_tape.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/machine/decocass_tape.cpp b/src/mame/machine/decocass_tape.cpp
index a3be6307cfc..8686be2cb06 100644
--- a/src/mame/machine/decocass_tape.cpp
+++ b/src/mame/machine/decocass_tape.cpp
@@ -7,9 +7,10 @@
***********************************************************************/
#include "emu.h"
+#include "machine/decocass_tape.h"
+
#include "cpu/m6502/m6502.h"
#include "cpu/mcs48/mcs48.h"
-#include "machine/decocass_tape.h"
#define LOG_CASSETTE_STATE 0
@@ -56,10 +57,10 @@
static uint16_t tape_crc16_byte(uint16_t crc, uint8_t data);
-const device_type DECOCASS_TAPE = device_creator<decocass_tape_device>;
+DEFINE_DEVICE_TYPE(DECOCASS_TAPE, decocass_tape_device, "decocass_tape", "DECO Cassette Tape")
decocass_tape_device::decocass_tape_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, DECOCASS_TAPE, "DECO Cassette Tape", tag, owner, clock, "decocass_tape", __FILE__),
+ : device_t(mconfig, DECOCASS_TAPE, tag, owner, clock),
m_tape_timer(nullptr),
m_speed(0),
m_region(REGION_LEADER),