summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99/peb/memex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99/peb/memex.cpp')
-rw-r--r--src/devices/bus/ti99/peb/memex.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/devices/bus/ti99/peb/memex.cpp b/src/devices/bus/ti99/peb/memex.cpp
index bc5cbd5b2f0..ad1572d6215 100644
--- a/src/devices/bus/ti99/peb/memex.cpp
+++ b/src/devices/bus/ti99/peb/memex.cpp
@@ -15,12 +15,17 @@
#include "emu.h"
#include "memex.h"
+#define LOG_WARN (1U<<1) // Warnings
+#define LOG_CONFIG (1U<<2) // Configuration
+#define VERBOSE ( LOG_CONFIG | LOG_WARN )
+
+#include "logmacro.h"
+
DEFINE_DEVICE_TYPE_NS(TI99_MEMEX, bus::ti99::peb, geneve_memex_device, "ti99_memex", "Geneve memory expansion card")
namespace bus { namespace ti99 { namespace peb {
#define RAMREGION "ram2meg"
-#define TRACE_CONFIG 0
enum
{
@@ -56,7 +61,7 @@ bool geneve_memex_device::access_enabled(offs_t offset)
if (page == 0xba) return false;
if ((page & 0xc7)==0x82 && ((m_switches & MDIP2)==0))
{
- if (TRACE_CONFIG) logerror("memex blocks page %02x; dip2=%d\n", page, (m_switches & MDIP2)!=0);
+ LOGMASKED(LOG_CONFIG, "memex blocks page %02x; dip2=%d\n", page, (m_switches & MDIP2)!=0);
return false;
}
@@ -116,7 +121,7 @@ void geneve_memex_device::device_start()
void geneve_memex_device::device_reset()
{
m_switches = ioport("MEMEXDIPS")->read();
- if (TRACE_CONFIG) logerror("memex dips = %02x\n", m_switches);
+ LOGMASKED(LOG_CONFIG, "memex dips = %02x\n", m_switches);
}
INPUT_PORTS_START( memex )