summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/hosenkan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/hosenkan.cpp')
-rw-r--r--src/devices/bus/nes/hosenkan.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/bus/nes/hosenkan.cpp b/src/devices/bus/nes/hosenkan.cpp
index a0eedabcd79..72d47061d43 100644
--- a/src/devices/bus/nes/hosenkan.cpp
+++ b/src/devices/bus/nes/hosenkan.cpp
@@ -13,7 +13,7 @@
#include "hosenkan.h"
#include "cpu/m6502/m6502.h"
-#include "video/ppu2c0x.h" // this has to be included so that IRQ functions can access PPU_BOTTOM_VISIBLE_SCANLINE
+#include "video/ppu2c0x.h" // this has to be included so that IRQ functions can access ppu2c0x_device::BOTTOM_VISIBLE_SCANLINE
#include "screen.h"
@@ -30,17 +30,17 @@
// constructor
//-------------------------------------------------
-const device_type NES_HOSENKAN = device_creator<nes_hosenkan_device>;
+DEFINE_DEVICE_TYPE(NES_HOSENKAN, nes_hosenkan_device, "nes_hosenkan", "NES Cart HOSENKAN PCB")
nes_hosenkan_device::nes_hosenkan_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : nes_nrom_device(mconfig, NES_HOSENKAN, "NES Cart HOSENKAN PCB", tag, owner, clock, "nes_hosenkan", __FILE__),
- m_irq_count(0),
- m_irq_count_latch(0),
- m_irq_clear(0),
- m_irq_enable(0),
- m_latch(0)
- {
+ : nes_nrom_device(mconfig, NES_HOSENKAN, tag, owner, clock)
+ , m_irq_count(0)
+ , m_irq_count_latch(0)
+ , m_irq_clear(0)
+ , m_irq_enable(0)
+ , m_latch(0)
+{
}
@@ -89,7 +89,7 @@ void nes_hosenkan_device::pcb_reset()
// same as MMC3!
void nes_hosenkan_device::hblank_irq( int scanline, int vblank, int blanked )
{
- if (scanline < PPU_BOTTOM_VISIBLE_SCANLINE)
+ if (scanline < ppu2c0x_device::BOTTOM_VISIBLE_SCANLINE)
{
int prior_count = m_irq_count;
if ((m_irq_count == 0) || m_irq_clear)