summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/tigeroad.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/tigeroad.h')
-rw-r--r--src/mame/includes/tigeroad.h88
1 files changed, 47 insertions, 41 deletions
diff --git a/src/mame/includes/tigeroad.h b/src/mame/includes/tigeroad.h
index e81d8620b25..b272f303b5c 100644
--- a/src/mame/includes/tigeroad.h
+++ b/src/mame/includes/tigeroad.h
@@ -8,8 +8,6 @@
#include "cpu/z80/z80.h"
#include "cpu/mcs51/mcs51.h"
-#include "machine/gen_latch.h"
-
#include "sound/2203intf.h"
#include "sound/msm5205.h"
@@ -24,17 +22,15 @@ class tigeroad_state : public driver_device
public:
tigeroad_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_has_coinlock(true)
, m_spriteram(*this, "spriteram")
, m_videoram(*this, "videoram")
- , m_ram16(*this, "ram16")
- , m_maincpu(*this, "maincpu")
, m_audiocpu(*this, "audiocpu")
, m_msm(*this, "msm")
, m_gfxdecode(*this, "gfxdecode")
- , m_palette(*this, "palette")
, m_spritegen(*this, "spritegen")
- , m_soundlatch(*this, "soundlatch")
- , m_has_coinlock(true)
{ }
void toramich(machine_config &config);
@@ -42,39 +38,43 @@ public:
void f1dream_comad(machine_config &config);
protected:
- required_device<buffered_spriteram16_device> m_spriteram;
- required_shared_ptr<uint16_t> m_videoram;
- required_shared_ptr<uint16_t> m_ram16;
- int m_bgcharbank;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- void tigeroad_soundcmd_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tigeroad_videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tigeroad_videoctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void tigeroad_scroll_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- void msm5205_w(uint8_t data);
- TILE_GET_INFO_MEMBER(get_bg_tile_info);
- TILE_GET_INFO_MEMBER(get_fg_tile_info);
- TILEMAP_MAPPER_MEMBER(tigeroad_tilemap_scan);
- virtual void video_start() override;
- uint32_t screen_update_tigeroad(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
+ required_device<palette_device> m_palette;
+
+ void soundcmd_w(offs_t offset, u16 data, u16 mem_mask = ~0);
+ void videoram_w(offs_t offset, u16 data, u16 mem_mask = ~0);
+ void videoctrl_w(u8 data);
+ void scroll_w(offs_t offset, u16 data, u16 mem_mask = ~0);
+
+ void main_map(address_map &map);
+ // misc
+ bool m_has_coinlock;
+
+private:
+ required_device<buffered_spriteram16_device> m_spriteram;
+ required_shared_ptr<u16> m_videoram;
required_device<cpu_device> m_audiocpu;
optional_device<msm5205_device> m_msm;
required_device<gfxdecode_device> m_gfxdecode;
- required_device<palette_device> m_palette;
required_device<tigeroad_spr_device> m_spritegen;
- required_device<generic_latch_8_device> m_soundlatch;
+
+ u8 m_bgcharbank;
+ tilemap_t *m_bg_tilemap;
+ tilemap_t *m_fg_tilemap;
void comad_sound_io_map(address_map &map);
void comad_sound_map(address_map &map);
- void main_map(address_map &map);
void sample_map(address_map &map);
void sample_port_map(address_map &map);
void sound_map(address_map &map);
void sound_port_map(address_map &map);
- /* misc */
- bool m_has_coinlock;
+
+ void msm5205_w(u8 data);
+ TILE_GET_INFO_MEMBER(get_bg_tile_info);
+ TILE_GET_INFO_MEMBER(get_fg_tile_info);
+ TILEMAP_MAPPER_MEMBER(tigeroad_tilemap_scan);
+ virtual void video_start() override;
+ u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
@@ -97,20 +97,21 @@ public:
void pushman(machine_config &config);
void bballs(machine_config &config);
+protected:
+ virtual void machine_start() override;
+
private:
- uint16_t mcu_comm_r(offs_t offset, uint16_t mem_mask = ~0);
- void pushman_mcu_comm_w(offs_t offset, uint16_t data);
- void bballs_mcu_comm_w(uint16_t data);
+ u16 mcu_comm_r(offs_t offset, u16 mem_mask = ~0);
+ void pushman_mcu_comm_w(offs_t offset, u16 data);
+ void bballs_mcu_comm_w(u16 data);
- void mcu_pa_w(uint8_t data);
- void mcu_pb_w(uint8_t data);
- void mcu_pc_w(uint8_t data);
+ void mcu_pa_w(u8 data);
+ void mcu_pb_w(u8 data);
+ void mcu_pc_w(u8 data);
void bballs_map(address_map &map);
void pushman_map(address_map &map);
- virtual void machine_start() override;
-
required_device<m68705u_device> m_mcu;
bool m_host_semaphore, m_mcu_semaphore;
@@ -125,23 +126,28 @@ public:
f1dream_state(const machine_config &mconfig, device_type type, const char *tag)
: tigeroad_state(mconfig, type, tag)
, m_mcu(*this, "mcu")
+ , m_ram16(*this, "ram16")
, m_old_p3(0xff)
{
}
void f1dream(machine_config &config);
+protected:
+ virtual void machine_start() override;
+
private:
void f1dream_map(address_map &map);
void f1dream_mcu_io(address_map &map);
- void out3_w(uint8_t data);
+ void out3_w(u8 data);
- uint8_t mcu_shared_r(offs_t offset);
- void mcu_shared_w(offs_t offset, uint8_t data);
+ u8 mcu_shared_r(offs_t offset);
+ void mcu_shared_w(offs_t offset, u8 data);
- void blktiger_to_mcu_w(uint16_t data);
+ void to_mcu_w(u16 data);
required_device<i8751_device> m_mcu;
- uint8_t m_old_p3;
+ required_shared_ptr<u16> m_ram16;
+ u8 m_old_p3;
};