summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/deco104.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/deco104.cpp')
-rw-r--r--src/mame/machine/deco104.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mame/machine/deco104.cpp b/src/mame/machine/deco104.cpp
index 42ce906f9a6..36fffd62e70 100644
--- a/src/mame/machine/deco104.cpp
+++ b/src/mame/machine/deco104.cpp
@@ -14,14 +14,12 @@
***************************************************************************/
#include "emu.h"
-#include "machine/eepromser.h"
#include "deco104.h"
+#include "machine/eepromser.h"
-
-
-deco146port_xx port104_table[] = {
+static deco146port_xx const port104_table[] = {
/* 0x000 */ { 0x04, { NIB3__, NIB0__, NIB1__, NIB2__ } , 1, 1 },
/* 0x002 */ { 0x2a, { NIB1__, NIB3__, NIB0__, NIB2__ } , 0, 1 },
/* 0x004 */ { 0x5e, { NIB0__, NIB1__, NIB2__, NIB3__ } , 0, 0 },
@@ -1051,12 +1049,12 @@ deco146port_xx port104_table[] = {
-const device_type DECO104PROT = device_creator<deco104_device>;
+DEFINE_DEVICE_TYPE(DECO104PROT, deco104_device, "deco104", "DECO 104 Protection")
deco104_device::deco104_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : deco_146_base_device(mconfig, DECO104PROT, "DECO 104 Protection", tag, owner, clock, "deco104", __FILE__)
+ : deco_146_base_device(mconfig, DECO104PROT, tag, owner, clock)
{
m_bankswitch_swap_read_address = 0x66;
m_magic_read_address_xor = 0x2a4;