summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/vsystem/taotaido.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/vsystem/taotaido.cpp')
-rw-r--r--src/mame/vsystem/taotaido.cpp36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/mame/vsystem/taotaido.cpp b/src/mame/vsystem/taotaido.cpp
index 0291baadcee..5d6475e160f 100644
--- a/src/mame/vsystem/taotaido.cpp
+++ b/src/mame/vsystem/taotaido.cpp
@@ -120,8 +120,8 @@ public:
void taotaido(machine_config &config);
protected:
- virtual void machine_start() override;
- virtual void video_start() override;
+ virtual void machine_start() override ATTR_COLD;
+ virtual void video_start() override ATTR_COLD;
private:
required_device<cpu_device> m_maincpu;
@@ -160,14 +160,12 @@ private:
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
void screen_vblank(int state);
uint32_t tile_callback(uint32_t code);
- void main_map(address_map &map);
- void sound_map(address_map &map);
- void sound_port_map(address_map &map);
+ void main_map(address_map &map) ATTR_COLD;
+ void sound_map(address_map &map) ATTR_COLD;
+ void sound_port_map(address_map &map) ATTR_COLD;
};
-// video
-
// sprite tile codes 0x4000 - 0x7fff get remapped according to the content of these registers
void taotaido_state::spritebank_w(offs_t offset, uint8_t data)
{
@@ -218,7 +216,7 @@ TILE_GET_INFO_MEMBER(taotaido_state::bg_tile_info)
code |= m_bgbank[bank] << 9;
- tileinfo.set(1, code, col, 0);
+ tileinfo.set(0, code, col, 0);
}
TILEMAP_MAPPER_MEMBER(taotaido_state::tilemap_scan_rows)
@@ -289,8 +287,6 @@ void taotaido_state::screen_vblank(int state)
}
-// machine
-
void taotaido_state::machine_start()
{
m_soundbank->configure_entries(0, 4, memregion("audiocpu")->base(), 0x8000);
@@ -552,10 +548,13 @@ INPUT_PORTS_END
static GFXDECODE_START( gfx_taotaido )
- GFXDECODE_ENTRY( "sprites", 0, gfx_16x16x4_packed_lsb, 0x000, 256 )
GFXDECODE_ENTRY( "bgtiles", 0, gfx_16x16x4_packed_lsb, 0x300, 256 )
GFXDECODE_END
+static GFXDECODE_START( gfx_taotaido_spr )
+ GFXDECODE_ENTRY( "sprites", 0, gfx_16x16x4_packed_lsb, 0x000, 256 )
+GFXDECODE_END
+
void taotaido_state::taotaido(machine_config &config)
@@ -597,14 +596,11 @@ void taotaido_state::taotaido(machine_config &config)
PALETTE(config, "palette").set_format(palette_device::xRGB_555, 0x800);
- VSYSTEM_SPR(config, m_spr, 0);
+ VSYSTEM_SPR(config, m_spr, 0, "palette", gfx_taotaido_spr);
m_spr->set_tile_indirect_cb(FUNC(taotaido_state::tile_callback));
- m_spr->set_gfx_region(0);
- m_spr->set_gfxdecode_tag(m_gfxdecode);
// sound hardware
- SPEAKER(config, "lspeaker").front_left();
- SPEAKER(config, "rspeaker").front_right();
+ SPEAKER(config, "speaker", 2).front();
GENERIC_LATCH_8(config, m_soundlatch);
m_soundlatch->data_pending_callback().set(FUNC(taotaido_state::soundlatch_pending_w));
@@ -612,10 +608,10 @@ void taotaido_state::taotaido(machine_config &config)
ym2610_device &ymsnd(YM2610(config, "ymsnd", 8'000'000));
ymsnd.irq_handler().set_inputline(m_audiocpu, 0);
- ymsnd.add_route(0, "lspeaker", 0.25);
- ymsnd.add_route(0, "rspeaker", 0.25);
- ymsnd.add_route(1, "lspeaker", 1.0);
- ymsnd.add_route(2, "rspeaker", 1.0);
+ ymsnd.add_route(0, "speaker", 0.75, 0);
+ ymsnd.add_route(0, "speaker", 0.75, 1);
+ ymsnd.add_route(1, "speaker", 1.0, 0);
+ ymsnd.add_route(2, "speaker", 1.0, 1);
}