summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/mmc2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/mmc2.cpp')
-rw-r--r--src/devices/bus/nes/mmc2.cpp27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/devices/bus/nes/mmc2.cpp b/src/devices/bus/nes/mmc2.cpp
index 8be7b04d2d7..70c5ac71b5c 100644
--- a/src/devices/bus/nes/mmc2.cpp
+++ b/src/devices/bus/nes/mmc2.cpp
@@ -16,12 +16,11 @@
#ifdef NES_PCB_DEBUG
-#define VERBOSE 1
+#define VERBOSE (LOG_GENERAL)
#else
-#define VERBOSE 0
+#define VERBOSE (0)
#endif
-
-#define LOG_MMC(x) do { if (VERBOSE) logerror x; } while (0)
+#include "logmacro.h"
//-------------------------------------------------
@@ -59,7 +58,6 @@ void nes_pxrom_device::device_start()
void nes_pxrom_device::pcb_reset()
{
- m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg8_89(0);
prg8_ab((m_prg_chunks << 1) - 3);
prg8_cd((m_prg_chunks << 1) - 2);
@@ -73,7 +71,6 @@ void nes_pxrom_device::pcb_reset()
void nes_fxrom_device::pcb_reset()
{
- m_chr_source = m_vrom_chunks ? CHRROM : CHRRAM;
prg16_89ab(0);
prg16_cdef(m_prg_chunks - 1);
chr8(0, m_chr_source);
@@ -98,7 +95,7 @@ void nes_fxrom_device::pcb_reset()
iNES: mapper 9
- In MESS: Supported
+ In MAME: Supported
-------------------------------------------------*/
@@ -106,25 +103,25 @@ void nes_pxrom_device::ppu_latch(offs_t offset)
{
if ((offset & 0x3ff0) == 0x0fd0)
{
- LOG_MMC(("mmc2 vrom latch switch (bank 0 low): %02x\n", m_reg[0]));
+ LOG("mmc2 vrom latch switch (bank 0 low): %02x\n", m_reg[0]);
m_latch1 = 0xfd;
chr4_0(m_reg[0], CHRROM);
}
else if ((offset & 0x3ff0) == 0x0fe0)
{
- LOG_MMC(("mmc2 vrom latch switch (bank 0 high): %02x\n", m_reg[1]));
+ LOG("mmc2 vrom latch switch (bank 0 high): %02x\n", m_reg[1]);
m_latch1 = 0xfe;
chr4_0(m_reg[1], CHRROM);
}
else if ((offset & 0x3ff0) == 0x1fd0)
{
- LOG_MMC(("mmc2 vrom latch switch (bank 1 low): %02x\n", m_reg[2]));
+ LOG("mmc2 vrom latch switch (bank 1 low): %02x\n", m_reg[2]);
m_latch2 = 0xfd;
chr4_4(m_reg[2], CHRROM);
}
else if ((offset & 0x3ff0) == 0x1fe0)
{
- LOG_MMC(("mmc2 vrom latch switch (bank 0 high): %02x\n", m_reg[3]));
+ LOG("mmc2 vrom latch switch (bank 0 high): %02x\n", m_reg[3]);
m_latch2 = 0xfe;
chr4_4(m_reg[3], CHRROM);
}
@@ -132,7 +129,7 @@ void nes_pxrom_device::ppu_latch(offs_t offset)
void nes_pxrom_device::pxrom_write(offs_t offset, uint8_t data)
{
- LOG_MMC(("pxrom write_h, offset: %04x, data: %02x\n", offset, data));
+ LOG("pxrom write_h, offset: %04x, data: %02x\n", offset, data);
switch (offset & 0x7000)
{
case 0x2000:
@@ -162,7 +159,7 @@ void nes_pxrom_device::pxrom_write(offs_t offset, uint8_t data)
set_nt_mirroring(BIT(data, 0) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT);
break;
default:
- LOG_MMC(("MMC2 uncaught w: %04x:%02x\n", offset, data));
+ LOG("MMC2 uncaught w: %04x:%02x\n", offset, data);
break;
}
}
@@ -178,13 +175,13 @@ void nes_pxrom_device::pxrom_write(offs_t offset, uint8_t data)
iNES: mapper 10
- In MESS: Supported
+ In MAME: Supported
-------------------------------------------------*/
void nes_fxrom_device::write_h(offs_t offset, uint8_t data)
{
- LOG_MMC(("fxrom write_h, offset: %04x, data: %02x\n", offset, data));
+ LOG("fxrom write_h, offset: %04x, data: %02x\n", offset, data);
switch (offset & 0x7000)
{
case 0x2000: