summaryrefslogtreecommitdiffstats
path: root/src/devices/cpu/m6502/n2a03.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m6502/n2a03.cpp')
-rw-r--r--src/devices/cpu/m6502/n2a03.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/m6502/n2a03.cpp b/src/devices/cpu/m6502/n2a03.cpp
index c43d388655a..a7c182304b8 100644
--- a/src/devices/cpu/m6502/n2a03.cpp
+++ b/src/devices/cpu/m6502/n2a03.cpp
@@ -40,7 +40,7 @@ WRITE8_MEMBER(n2a03_device::psg1_4017_w)
// input port 0x4017 ^ ( APU_IRQCTRL )
// is there a fall through where every write is seen by other hw, or do these addresses really not touch the APU?? APU_IRQCTRL can definitely be written by can it be read back?
-static ADDRESS_MAP_START( n2a03_map, AS_PROGRAM, 8, n2a03_device )
+ADDRESS_MAP_START(n2a03_device::n2a03_map)
AM_RANGE(0x4000, 0x4013) AM_DEVREADWRITE("nesapu", nesapu_device, read, write)
AM_RANGE(0x4014, 0x4014) AM_READ(psg1_4014_r) // AM_WRITE(sprite_dma_0_w)
AM_RANGE(0x4015, 0x4015) AM_READWRITE(psg1_4015_r, psg1_4015_w) /* PSG status / first control register */
@@ -54,7 +54,7 @@ n2a03_device::n2a03_device(const machine_config &mconfig, const char *tag, devic
m6502_device(mconfig, N2A03, tag, owner, clock),
m_apu(*this, "nesapu")
{
- program_config.m_internal_map = ADDRESS_MAP_NAME(n2a03_map);
+ program_config.m_internal_map = address_map_constructor(FUNC(n2a03_device::n2a03_map), this);
}
util::disasm_interface *n2a03_device::create_disassembler()