summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/mos8722.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/mos8722.cpp')
-rw-r--r--src/devices/machine/mos8722.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/devices/machine/mos8722.cpp b/src/devices/machine/mos8722.cpp
index 1472320cf57..b55d8393a9f 100644
--- a/src/devices/machine/mos8722.cpp
+++ b/src/devices/machine/mos8722.cpp
@@ -9,13 +9,16 @@
#include "emu.h"
#include "mos8722.h"
+//#define VERBOSE 1
+#include "logmacro.h"
+
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
-const device_type MOS8722 = device_creator<mos8722_device>;
+DEFINE_DEVICE_TYPE(MOS8722, mos8722_device, "mos8722", "MOS 8722 MMU")
@@ -23,9 +26,6 @@ const device_type MOS8722 = device_creator<mos8722_device>;
// MACROS / CONSTANTS
//**************************************************************************
-#define LOG 0
-
-
#define CR_IO BIT(m_reg[CR], 0)
#define CR_ROM_LO BIT(m_reg[CR], 1)
#define CR_ROM_MID ((m_reg[CR] >> 2) & 0x03)
@@ -70,7 +70,7 @@ static const offs_t RCR_TOP_ADDRESS[4] = { 0xf000, 0xf000, 0xe000, 0xc000 };
//-------------------------------------------------
mos8722_device::mos8722_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- device_t(mconfig, MOS8722, "MOS8722", tag, owner, clock, "mos8722", __FILE__),
+ device_t(mconfig, MOS8722, tag, owner, clock),
m_write_z80en(*this),
m_write_fsdir(*this),
m_read_game(*this),
@@ -177,7 +177,7 @@ WRITE8_MEMBER( mos8722_device::write )
if (!CR_IO && offset >= 0xd500 && offset < 0xd50c)
{
- if (LOG) logerror("MOS8722 '%s' Write %01x : %02x\n", tag(), offset & 0x0f, data);
+ LOG("MOS8722 Write %01x : %02x\n", offset & 0x0f, data);
switch (offset & 0x0f)
{
@@ -232,7 +232,7 @@ WRITE8_MEMBER( mos8722_device::write )
}
else if (offset >= 0xff00 && offset < 0xff05)
{
- if (LOG) logerror("MOS8722 '%s' Write %01x : %02x\n", tag(), offset & 0x0f, data);
+ LOG("MOS8722 Write %01x : %02x\n", offset & 0x0f, data);
switch (offset & 0x0f)
{