summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/bandai.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/bandai.cpp')
-rw-r--r--src/devices/bus/nes/bandai.cpp35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/devices/bus/nes/bandai.cpp b/src/devices/bus/nes/bandai.cpp
index 9bb61da4262..66bd016c45a 100644
--- a/src/devices/bus/nes/bandai.cpp
+++ b/src/devices/bus/nes/bandai.cpp
@@ -34,13 +34,14 @@
#include "emu.h"
#include "bandai.h"
+#define LOG_UNHANDLED (1U << 1)
+
#ifdef NES_PCB_DEBUG
-#define VERBOSE 1
+#define VERBOSE (LOG_UNHANDLED | LOG_GENERAL)
#else
-#define VERBOSE 0
+#define VERBOSE (LOG_UNHANDLED)
#endif
-
-#define LOG_MMC(x) do { if (VERBOSE) logerror x; } while (0)
+#include "logmacro.h"
@@ -197,7 +198,7 @@ void nes_fjump2_device::pcb_reset()
iNES: mapper 96
- In MESS: Preliminary Support.
+ In MAME: Preliminary Support.
-------------------------------------------------*/
@@ -248,7 +249,7 @@ void nes_oekakids_device::ppu_latch(offs_t offset)
void nes_oekakids_device::write_h(offs_t offset, uint8_t data)
{
- LOG_MMC(("oeka kids write_h, offset: %04x, data: %02x\n", offset, data));
+ LOG("oeka kids write_h, offset: %04x, data: %02x\n", offset, data);
prg32(data & 0x03);
m_reg = data & 0x04;
@@ -274,7 +275,7 @@ void nes_oekakids_device::write_h(offs_t offset, uint8_t data)
iNES: mappers 16, 153 (see below), 157 & 159
- In MESS: Supported
+ In MAME: Supported
-------------------------------------------------*/
@@ -300,7 +301,7 @@ TIMER_CALLBACK_MEMBER(nes_fcg_device::irq_timer_tick)
void nes_fcg_device::fcg_write(offs_t offset, uint8_t data)
{
- LOG_MMC(("lz93d50_write, offset: %04x, data: %02x\n", offset, data));
+ LOG("lz93d50_write, offset: %04x, data: %02x\n", offset, data);
switch (offset & 0x0f)
{
@@ -331,14 +332,14 @@ void nes_fcg_device::fcg_write(offs_t offset, uint8_t data)
m_irq_count = (m_irq_count & 0x00ff) | (data << 8);
break;
default:
- logerror("lz93d50_write uncaught write, offset: %04x, data: %02x\n", offset, data);
+ LOGMASKED(LOG_UNHANDLED, "lz93d50_write uncaught write, offset: %04x, data: %02x\n", offset, data);
break;
}
}
void nes_fcg_device::write_m(offs_t offset, uint8_t data)
{
- LOG_MMC(("lz93d50 write_m, offset: %04x, data: %02x\n", offset, data));
+ LOG("lz93d50 write_m, offset: %04x, data: %02x\n", offset, data);
if (m_battery.empty() && m_prgram.empty())
fcg_write(offset & 0x0f, data);
@@ -353,7 +354,7 @@ void nes_fcg_device::write_m(offs_t offset, uint8_t data)
void nes_lz93d50_24c01_device::write_h(offs_t offset, uint8_t data)
{
- LOG_MMC(("lz93d50_24c01 write_h, offset: %04x, data: %02x\n", offset, data));
+ LOG("lz93d50_24c01 write_h, offset: %04x, data: %02x\n", offset, data);
switch (offset & 0x0f)
{
@@ -370,7 +371,7 @@ void nes_lz93d50_24c01_device::write_h(offs_t offset, uint8_t data)
uint8_t nes_lz93d50_24c01_device::read_m(offs_t offset)
{
- LOG_MMC(("lz93d50 EEPROM read, offset: %04x\n", offset));
+ LOG("lz93d50 EEPROM read, offset: %04x\n", offset);
if (m_i2c_dir)
return (m_i2cmem->read_sda() & 1) << 4;
else
@@ -383,7 +384,7 @@ uint8_t nes_lz93d50_24c01_device::read_m(offs_t offset)
void nes_lz93d50_24c01_device::device_add_mconfig(machine_config &config)
{
- I2C_24C01(config, m_i2cmem);
+ I2C_X24C01(config, m_i2cmem);
}
void nes_lz93d50_24c02_device::device_add_mconfig(machine_config &config)
@@ -405,7 +406,7 @@ void nes_lz93d50_24c02_device::device_add_mconfig(machine_config &config)
iNES: mappers 153
- In MESS: Supported
+ In MAME: Supported
-------------------------------------------------*/
@@ -422,19 +423,19 @@ void nes_fjump2_device::set_prg()
uint8_t nes_fjump2_device::read_m(offs_t offset)
{
- LOG_MMC(("fjump2 read_m, offset: %04x\n", offset));
+ LOG("fjump2 read_m, offset: %04x\n", offset);
return m_battery[offset & (m_battery.size() - 1)];
}
void nes_fjump2_device::write_m(offs_t offset, uint8_t data)
{
- LOG_MMC(("fjump2 write_m, offset: %04x, data: %02x\n", offset, data));
+ LOG("fjump2 write_m, offset: %04x, data: %02x\n", offset, data);
m_battery[offset & (m_battery.size() - 1)] = data;
}
void nes_fjump2_device::write_h(offs_t offset, uint8_t data)
{
- LOG_MMC(("fjump2 write_h, offset: %04x, data: %02x\n", offset, data));
+ LOG("fjump2 write_h, offset: %04x, data: %02x\n", offset, data);
switch (offset & 0x0f)
{