summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/tnzs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/tnzs.h')
-rw-r--r--src/mame/includes/tnzs.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/mame/includes/tnzs.h b/src/mame/includes/tnzs.h
index a71c95c10d6..6c02e4e0814 100644
--- a/src/mame/includes/tnzs.h
+++ b/src/mame/includes/tnzs.h
@@ -1,10 +1,10 @@
// license:BSD-3-Clause
// copyright-holders:Luca Elia, Mirko Buffoni, Takahiro Nogi
+#ifndef MAME_INCLUDES_TNZS_H
+#define MAME_INCLUDES_TNZS_H
#pragma once
-#ifndef MAME_INCLUDES_TNZS_H
-#define MAME_INCLUDES_TNZS_H
#include "sound/dac.h"
#include "sound/samples.h"
@@ -15,7 +15,6 @@
#include "machine/upd4701.h"
#include "emupal.h"
-#define MAX_SAMPLES 0x2f /* max samples */
class tnzs_base_state : public driver_device
{
@@ -33,8 +32,6 @@ public:
void tnzs_base(machine_config &config);
void tnzs_mainbank(machine_config &config);
- DECLARE_PALETTE_INIT(prompalette);
-
protected:
virtual void machine_start() override;
@@ -42,6 +39,7 @@ protected:
DECLARE_WRITE8_MEMBER(ramrom_bankswitch_w);
+ DECLARE_PALETTE_INIT(prompalette);
uint32_t screen_update_tnzs(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
DECLARE_WRITE_LINE_MEMBER(screen_vblank_tnzs);
@@ -185,10 +183,13 @@ public:
void init_kageki();
-private:
+protected:
virtual void machine_start() override;
virtual void machine_reset() override;
+private:
+ static constexpr unsigned MAX_SAMPLES = 0x2f;
+
virtual DECLARE_WRITE8_MEMBER(bankswitch1_w) override;
DECLARE_READ8_MEMBER(csport_r);
@@ -222,9 +223,10 @@ public:
void jpopnics(machine_config &config);
-private:
+protected:
virtual void machine_reset() override;
+private:
DECLARE_WRITE8_MEMBER(subbankswitch_w);
void jpopnics_main_map(address_map &map);
@@ -284,9 +286,10 @@ public:
void kabukiz(machine_config &config);
-private:
+protected:
virtual void machine_start() override;
+private:
DECLARE_WRITE8_MEMBER(sound_bank_w);
void kabukiz_cpu2_map(address_map &map);