summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/fromanc2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/fromanc2.h')
-rw-r--r--src/mame/includes/fromanc2.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/mame/includes/fromanc2.h b/src/mame/includes/fromanc2.h
index d3529cadc51..8ef889fe92f 100644
--- a/src/mame/includes/fromanc2.h
+++ b/src/mame/includes/fromanc2.h
@@ -22,6 +22,18 @@ public:
m_soundlatch2(*this, "soundlatch2"),
m_uart(*this, "uart") { }
+ void fromanc2(machine_config &config);
+ void fromancr(machine_config &config);
+ void fromanc4(machine_config &config);
+
+ void init_fromanc4();
+ void init_fromanc2();
+
+ DECLARE_CUSTOM_INPUT_MEMBER(subcpu_int_r);
+ DECLARE_CUSTOM_INPUT_MEMBER(sndcpu_nmi_r);
+ DECLARE_CUSTOM_INPUT_MEMBER(subcpu_nmi_r);
+
+private:
/* memory pointers */
std::unique_ptr<uint16_t[]> m_videoram[2][4];
std::unique_ptr<uint8_t[]> m_bankedram;
@@ -87,11 +99,7 @@ public:
DECLARE_WRITE16_MEMBER(fromanc4_gfxreg_0_w);
DECLARE_WRITE16_MEMBER(fromanc4_gfxreg_1_w);
DECLARE_WRITE16_MEMBER(fromanc4_gfxreg_2_w);
- DECLARE_CUSTOM_INPUT_MEMBER(subcpu_int_r);
- DECLARE_CUSTOM_INPUT_MEMBER(sndcpu_nmi_r);
- DECLARE_CUSTOM_INPUT_MEMBER(subcpu_nmi_r);
- void init_fromanc4();
- void init_fromanc2();
+
template<int VRAM, int Layer> TILE_GET_INFO_MEMBER(fromanc2_get_tile_info);
template<int VRAM, int Layer> TILE_GET_INFO_MEMBER(fromancr_get_tile_info);
virtual void machine_reset() override;
@@ -106,9 +114,6 @@ public:
inline void fromancr_vram_w(offs_t offset, uint16_t data, uint16_t mem_mask, int layer );
void fromancr_gfxbank_w( int data );
inline void fromanc4_vram_w( offs_t offset, uint16_t data, uint16_t mem_mask, int layer );
- void fromanc2(machine_config &config);
- void fromancr(machine_config &config);
- void fromanc4(machine_config &config);
void fromanc2_main_map(address_map &map);
void fromanc2_sound_io_map(address_map &map);
void fromanc2_sound_map(address_map &map);