summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/midtunit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/midtunit.h')
-rw-r--r--src/mame/includes/midtunit.h144
1 files changed, 72 insertions, 72 deletions
diff --git a/src/mame/includes/midtunit.h b/src/mame/includes/midtunit.h
index 38902b56759..c4d84ae2cb0 100644
--- a/src/mame/includes/midtunit.h
+++ b/src/mame/includes/midtunit.h
@@ -14,35 +14,35 @@ public:
{
TIMER_DMA
};
-
- midtunit_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_palette(*this, "palette"),
- m_dcs(*this, "dcs"),
- m_cvsd_sound(*this, "cvsd"),
- m_adpcm_sound(*this, "adpcm") ,
- m_generic_paletteram_16(*this, "paletteram"),
- m_nvram(*this, "nvram"),
- m_gfxrom(*this, "gfxrom"),
- m_ports(*this, tunit_ports) { }
-
- required_device<cpu_device> m_maincpu;
- required_device<palette_device> m_palette;
- optional_device<dcs_audio_device> m_dcs;
- optional_device<williams_cvsd_sound_device> m_cvsd_sound;
- optional_device<williams_adpcm_sound_device> m_adpcm_sound;
-
- required_shared_ptr<UINT16> m_generic_paletteram_16;
- required_shared_ptr<UINT16> m_nvram;
-
- required_memory_region m_gfxrom;
-
- required_ioport_array<4> m_ports;
- DECLARE_IOPORT_ARRAY(tunit_ports);
-
- DECLARE_WRITE16_MEMBER(midtunit_cmos_enable_w);
- DECLARE_WRITE16_MEMBER(midtunit_cmos_w);
+
+ midtunit_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag),
+ m_maincpu(*this, "maincpu"),
+ m_palette(*this, "palette"),
+ m_dcs(*this, "dcs"),
+ m_cvsd_sound(*this, "cvsd"),
+ m_adpcm_sound(*this, "adpcm") ,
+ m_generic_paletteram_16(*this, "paletteram"),
+ m_nvram(*this, "nvram"),
+ m_gfxrom(*this, "gfxrom"),
+ m_ports(*this, tunit_ports) { }
+
+ required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
+ optional_device<dcs_audio_device> m_dcs;
+ optional_device<williams_cvsd_sound_device> m_cvsd_sound;
+ optional_device<williams_adpcm_sound_device> m_adpcm_sound;
+
+ required_shared_ptr<UINT16> m_generic_paletteram_16;
+ required_shared_ptr<UINT16> m_nvram;
+
+ required_memory_region m_gfxrom;
+
+ required_ioport_array<4> m_ports;
+ DECLARE_IOPORT_ARRAY(tunit_ports);
+
+ DECLARE_WRITE16_MEMBER(midtunit_cmos_enable_w);
+ DECLARE_WRITE16_MEMBER(midtunit_cmos_w);
DECLARE_READ16_MEMBER(midtunit_cmos_r);
DECLARE_READ16_MEMBER(midtunit_input_r);
DECLARE_READ16_MEMBER(midtunit_sound_state_r);
@@ -73,49 +73,49 @@ public:
DECLARE_READ16_MEMBER(midwunit_control_r);
DECLARE_WRITE16_MEMBER(midtunit_paletteram_w);
DECLARE_WRITE16_MEMBER(midxunit_paletteram_w);
- DECLARE_READ16_MEMBER(midxunit_paletteram_r);
- DECLARE_READ16_MEMBER(midtunit_dma_r);
- DECLARE_WRITE16_MEMBER(midtunit_dma_w);
-
- TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg);
- TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg);
- TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_update);
-
- DECLARE_DRIVER_INIT(mktunit);
- DECLARE_DRIVER_INIT(mkturbo);
- DECLARE_DRIVER_INIT(nbajamte);
- DECLARE_DRIVER_INIT(nbajam);
- DECLARE_DRIVER_INIT(jdreddp);
- DECLARE_DRIVER_INIT(mk2);
-
- DECLARE_MACHINE_RESET(midtunit);
- DECLARE_VIDEO_START(midtunit);
-
- void register_state_saving();
- void init_tunit_generic(int sound);
- void init_nbajam_common(int te_protection);
-
- /* CMOS-related variables */
- UINT8 m_cmos_write_enable;
-
- /* sound-related variables */
- UINT8 m_chip_type;
- UINT8 m_fake_sound_state;
-
- /* protection */
- UINT8 m_mk_prot_index;
- UINT16 m_mk2_prot_data;
-
- const UINT32 *m_nbajam_prot_table;
- UINT16 m_nbajam_prot_queue[5];
- UINT8 m_nbajam_prot_index;
-
- const UINT8 *m_jdredd_prot_table;
- UINT8 m_jdredd_prot_index;
- UINT8 m_jdredd_prot_max;
-
- UINT8 m_gfx_rom_large;
-
+ DECLARE_READ16_MEMBER(midxunit_paletteram_r);
+ DECLARE_READ16_MEMBER(midtunit_dma_r);
+ DECLARE_WRITE16_MEMBER(midtunit_dma_w);
+
+ TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg);
+ TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg);
+ TMS340X0_SCANLINE_IND16_CB_MEMBER(scanline_update);
+
+ DECLARE_DRIVER_INIT(mktunit);
+ DECLARE_DRIVER_INIT(mkturbo);
+ DECLARE_DRIVER_INIT(nbajamte);
+ DECLARE_DRIVER_INIT(nbajam);
+ DECLARE_DRIVER_INIT(jdreddp);
+ DECLARE_DRIVER_INIT(mk2);
+
+ DECLARE_MACHINE_RESET(midtunit);
+ DECLARE_VIDEO_START(midtunit);
+
+ void register_state_saving();
+ void init_tunit_generic(int sound);
+ void init_nbajam_common(int te_protection);
+
+ /* CMOS-related variables */
+ UINT8 m_cmos_write_enable;
+
+ /* sound-related variables */
+ UINT8 m_chip_type;
+ UINT8 m_fake_sound_state;
+
+ /* protection */
+ UINT8 m_mk_prot_index;
+ UINT16 m_mk2_prot_data;
+
+ const UINT32 *m_nbajam_prot_table;
+ UINT16 m_nbajam_prot_queue[5];
+ UINT8 m_nbajam_prot_index;
+
+ const UINT8 *m_jdredd_prot_table;
+ UINT8 m_jdredd_prot_index;
+ UINT8 m_jdredd_prot_max;
+
+ UINT8 m_gfx_rom_large;
+
protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
};