summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/namconb1.h
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-04-07 17:05:31 -0400
committer AJR <ajrhacker@users.noreply.github.com>2019-04-07 17:08:11 -0400
commit702b45b1bc3ee8690d88914a2cfabab1f0de4bbd (patch)
tree111e69f7bfedd7ceb41aaf0cdff54e2a2fcecff4 /src/mame/includes/namconb1.h
parenta60f8ba71d3e4ce5ab33c4b97536829bc3f64d58 (diff)
m37710: Replace I/O space with callbacks
namcos22.cpp: Separate System Super 22 state class (nw)
Diffstat (limited to 'src/mame/includes/namconb1.h')
-rw-r--r--src/mame/includes/namconb1.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mame/includes/namconb1.h b/src/mame/includes/namconb1.h
index 0b3a27f9b12..67942c1848c 100644
--- a/src/mame/includes/namconb1.h
+++ b/src/mame/includes/namconb1.h
@@ -11,6 +11,7 @@
#pragma once
#include "machine/eeprompar.h"
+#include "machine/namcomcu.h"
#include "machine/timer.h"
#include "screen.h"
#include "video/namco_c116.h"
@@ -92,7 +93,7 @@ private:
required_device<namco_c355spr_device> m_c355spr;
optional_device<namco_c169roz_device> m_c169roz; // NB1 only, not NA1
required_device<screen_device> m_screen;
- required_device<cpu_device> m_mcu;
+ required_device<m37710_cpu_device> m_mcu;
required_device<eeprom_parallel_28xx_device> m_eeprom;
required_ioport m_p1;
required_ioport m_p2;
@@ -129,14 +130,7 @@ private:
DECLARE_READ8_MEMBER(port6_r);
DECLARE_WRITE8_MEMBER(port6_w);
DECLARE_READ8_MEMBER(port7_r);
- DECLARE_READ8_MEMBER(dac7_r);
- DECLARE_READ8_MEMBER(dac6_r);
- DECLARE_READ8_MEMBER(dac5_r);
- DECLARE_READ8_MEMBER(dac4_r);
- DECLARE_READ8_MEMBER(dac3_r);
- DECLARE_READ8_MEMBER(dac2_r);
- DECLARE_READ8_MEMBER(dac1_r);
- DECLARE_READ8_MEMBER(dac0_r);
+ template <int Bit> uint16_t dac_bit_r();
DECLARE_WRITE32_MEMBER(rozbank32_w);
virtual void machine_start() override;
@@ -162,7 +156,6 @@ private:
void NB2RozCB_machbrkr(uint16_t code, int *tile, int *mask, int which);
void NB2RozCB_outfxies(uint16_t code, int *tile, int *mask, int which);
void namcoc75_am(address_map &map);
- void namcoc75_io(address_map &map);
void namconb1_am(address_map &map);
void namconb2_am(address_map &map);
};