summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/konami/hyperspt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/konami/hyperspt.cpp')
-rw-r--r--src/mame/konami/hyperspt.cpp583
1 files changed, 442 insertions, 141 deletions
diff --git a/src/mame/konami/hyperspt.cpp b/src/mame/konami/hyperspt.cpp
index 7bced29aad2..c0e278dc3e6 100644
--- a/src/mame/konami/hyperspt.cpp
+++ b/src/mame/konami/hyperspt.cpp
@@ -1,7 +1,11 @@
// license:BSD-3-Clause
-// copyright-holders:Chris Hardy
+// copyright-holders: Chris Hardy
+
/***************************************************************************
+Hyper Sports - GX330 (c) 1984
+Road Fighter - GX461 (c) 1984
+
Based on drivers from Juno First emulator by Chris Hardy (chrish@kcbbs.gen.nz)
- DIPs verified and defaults (when available) are set from manuals
@@ -9,106 +13,420 @@ Based on drivers from Juno First emulator by Chris Hardy (chrish@kcbbs.gen.nz)
***************************************************************************/
#include "emu.h"
-#include "hyperspt.h"
-#include "konamipt.h"
+
#include "hyprolyb.h"
+#include "konami1.h"
+#include "konamipt.h"
+#include "trackfld_a.h"
#include "cpu/m6800/m6800.h"
#include "cpu/m6809/m6809.h"
#include "cpu/z80/z80.h"
#include "machine/74259.h"
#include "machine/gen_latch.h"
-#include "konami1.h"
#include "machine/nvram.h"
#include "machine/watchdog.h"
+#include "sound/dac.h"
+#include "sound/sn76496.h"
+#include "sound/vlm5030.h"
+#include "video/resnet.h"
+#include "emupal.h"
+#include "screen.h"
#include "speaker.h"
+#include "tilemap.h"
+
+namespace {
-void hyperspt_state::machine_start()
+class base_state : public driver_device
{
- save_item(NAME(m_irq_mask));
- save_item(NAME(m_SN76496_latch));
+public:
+ base_state(const machine_config &mconfig, device_type type, const char *tag) :
+ driver_device(mconfig, type, tag),
+ m_spriteram(*this, "spriteram"),
+ m_scroll(*this, "scroll"),
+ m_videoram(*this, "videoram"),
+ m_colorram(*this, "colorram"),
+ m_maincpu(*this, "maincpu"),
+ m_audiocpu(*this, "audiocpu"),
+ m_dac(*this, "dac"),
+ m_sn(*this, "snsnd"),
+ m_soundbrd(*this, "trackfld_audio"),
+ m_screen(*this, "screen"),
+ m_gfxdecode(*this, "gfxdecode"),
+ m_palette(*this, "palette")
+ { }
+
+ void base(machine_config &config);
+
+protected:
+ virtual void machine_start() override;
+ virtual void video_start() override;
+
+ void common_map(address_map &map);
+ void common_sound_map(address_map &map);
+ void hyperspt_common_main_map(address_map &map);
+
+ // memory pointers
+ required_shared_ptr<uint8_t> m_spriteram;
+ required_shared_ptr<uint8_t> m_scroll;
+ required_shared_ptr<uint8_t> m_videoram;
+ required_shared_ptr<uint8_t> m_colorram;
+
+ // devices
+ required_device<cpu_device> m_maincpu;
+ required_device<cpu_device> m_audiocpu;
+ required_device<dac_8bit_r2r_device> m_dac;
+ required_device<sn76496_device> m_sn;
+ required_device<trackfld_audio_device> m_soundbrd;
+ required_device<screen_device> m_screen;
+ required_device<gfxdecode_device> m_gfxdecode;
+ required_device<palette_device> m_palette;
+
+ // video-related
+ tilemap_t *m_bg_tilemap = nullptr;
+
+private:
+ uint8_t m_sn76496_latch = 0U;
+
+ void konami_sn76496_latch_w(uint8_t data) { m_sn76496_latch = data; }
+ void konami_sn76496_w(uint8_t data) { m_sn->write(m_sn76496_latch); }
+
+ uint8_t m_irq_mask = 0U;
+ template <uint8_t Which> void coin_counter_w(int state);
+ void irq_mask_w(int state);
+ void videoram_w(offs_t offset, uint8_t data);
+ void colorram_w(offs_t offset, uint8_t data);
+
+ void palette(palette_device &palette) const;
+
+ TILE_GET_INFO_MEMBER(get_bg_tile_info);
+ uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ void vblank_irq(int state);
+ void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
+};
+
+class hyperspt_state : public base_state
+{
+public:
+ hyperspt_state(const machine_config &mconfig, device_type type, const char *tag) :
+ base_state(mconfig, type, tag),
+ m_vlm(*this, "vlm")
+ { }
+
+ void hyperspt(machine_config &config);
+
+private:
+ required_device<vlm5030_device> m_vlm;
+
+ void sound_map(address_map &map);
+};
+
+class hypersptb_state : public base_state
+{
+public:
+ using base_state::base_state;
+
+ void hypersptb(machine_config &config);
+
+private:
+ void sound_map(address_map &map);
+ void adpcm_map(address_map &map);
+};
+
+class roadf_state : public base_state
+{
+public:
+ using base_state::base_state;
+
+ void roadf(machine_config &config);
+ void roadfu(machine_config &config);
+
+protected:
+ virtual void video_start() override;
+
+private:
+ TILE_GET_INFO_MEMBER(get_bg_tile_info);
+
+ void main_map(address_map &map);
+ void sound_map(address_map &map);
+};
+
+
+/***************************************************************************
+
+ Convert the color PROMs into a more useable format.
+
+ Hyper Sports has one 32x8 palette PROM and two 256x4 lookup table PROMs
+ (one for characters, one for sprites).
+ The palette PROM is connected to the RGB output this way:
+
+ bit 7 -- 220 ohm resistor -- BLUE
+ -- 470 ohm resistor -- BLUE
+ -- 220 ohm resistor -- GREEN
+ -- 470 ohm resistor -- GREEN
+ -- 1 kohm resistor -- GREEN
+ -- 220 ohm resistor -- RED
+ -- 470 ohm resistor -- RED
+ bit 0 -- 1 kohm resistor -- RED
+
+***************************************************************************/
+
+void base_state::palette(palette_device &palette) const
+{
+ const uint8_t *color_prom = memregion("proms")->base();
+ static constexpr int resistances_rg[3] = { 1000, 470, 220 };
+ static constexpr int resistances_b[2] = { 470, 220 };
+
+ // compute the color output resistor weights
+ double rweights[3], gweights[3], bweights[2];
+ compute_resistor_weights(0, 255, -1.0,
+ 3, &resistances_rg[0], rweights, 1000, 0,
+ 3, &resistances_rg[0], gweights, 1000, 0,
+ 2, &resistances_b[0], bweights, 1000, 0);
+
+ // create a lookup table for the palette
+ for (int i = 0; i < 0x20; i++)
+ {
+ int bit0, bit1, bit2;
+
+ // red component
+ bit0 = BIT(color_prom[i], 0);
+ bit1 = BIT(color_prom[i], 1);
+ bit2 = BIT(color_prom[i], 2);
+ int const r = combine_weights(rweights, bit0, bit1, bit2);
+
+ // green component
+ bit0 = BIT(color_prom[i], 3);
+ bit1 = BIT(color_prom[i], 4);
+ bit2 = BIT(color_prom[i], 5);
+ int const g = combine_weights(gweights, bit0, bit1, bit2);
+
+ // blue component
+ bit0 = BIT(color_prom[i], 6);
+ bit1 = BIT(color_prom[i], 7);
+ int const b = combine_weights(bweights, bit0, bit1);
+
+ palette.set_indirect_color(i, rgb_t(r, g, b));
+ }
+
+ // color_prom now points to the beginning of the lookup table
+ color_prom += 0x20;
+
+ // sprites
+ for (int i = 0; i < 0x100; i++)
+ {
+ uint8_t const ctabentry = color_prom[i] & 0x0f;
+ palette.set_pen_indirect(i, ctabentry);
+ }
+
+ // characters
+ for (int i = 0x100; i < 0x200; i++)
+ {
+ uint8_t const ctabentry = (color_prom[i] & 0x0f) | 0x10;
+ palette.set_pen_indirect(i, ctabentry);
+ }
+}
+
+void base_state::videoram_w(offs_t offset, uint8_t data)
+{
+ m_videoram[offset] = data;
+ m_bg_tilemap->mark_tile_dirty(offset);
+}
+
+void base_state::colorram_w(offs_t offset, uint8_t data)
+{
+ m_colorram[offset] = data;
+ m_bg_tilemap->mark_tile_dirty(offset);
+}
+
+TILE_GET_INFO_MEMBER(base_state::get_bg_tile_info)
+{
+ int const code = m_videoram[tile_index] + ((m_colorram[tile_index] & 0x80) << 1) + ((m_colorram[tile_index] & 0x40) << 3);
+ int const color = m_colorram[tile_index] & 0x0f;
+ int const flags = ((m_colorram[tile_index] & 0x10) ? TILE_FLIPX : 0) | ((m_colorram[tile_index] & 0x20) ? TILE_FLIPY : 0);
+
+ tileinfo.set(1, code, color, flags);
+}
+
+void base_state::video_start()
+{
+ m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(base_state::get_bg_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
+ m_bg_tilemap->set_scroll_rows(32);
}
-WRITE_LINE_MEMBER(hyperspt_state::coin_counter_1_w)
+void base_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
{
- machine().bookkeeping().coin_counter_w(0, state);
+ for (int offs = m_spriteram.bytes() - 4; offs >= 0; offs -= 4)
+ {
+ int sx = m_spriteram[offs + 3];
+ int sy = 240 - m_spriteram[offs + 1];
+ int const code = m_spriteram[offs + 2] + 8 * (m_spriteram[offs] & 0x20);
+ int const color = m_spriteram[offs] & 0x0f;
+ int const flipx = ~m_spriteram[offs] & 0x40;
+ int flipy = m_spriteram[offs] & 0x80;
+
+ if (flip_screen())
+ {
+ sy = 240 - sy;
+ flipy = !flipy;
+ }
+
+ /* Note that this adjustment must be done AFTER handling flip_screen(), thus
+ proving that this is a hardware related "feature" */
+
+ sy += 1;
+
+
+ m_gfxdecode->gfx(0)->transmask(bitmap, cliprect,
+ code, color,
+ flipx, flipy,
+ sx, sy,
+ m_palette->transpen_mask(*m_gfxdecode->gfx(0), color, 0));
+
+ // redraw with wraparound
+ m_gfxdecode->gfx(0)->transmask(bitmap, cliprect,
+ code, color,
+ flipx, flipy,
+ sx - 256, sy,
+ m_palette->transpen_mask(*m_gfxdecode->gfx(0), color, 0));
+ }
}
-WRITE_LINE_MEMBER(hyperspt_state::coin_counter_2_w)
+uint32_t base_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- machine().bookkeeping().coin_counter_w(1, state);
+ for (int row = 0; row < 32; row++)
+ {
+ int scrollx = m_scroll[row * 2] + (m_scroll[(row * 2) + 1] & 0x01) * 256;
+ if (flip_screen()) scrollx = -scrollx;
+ m_bg_tilemap->set_scrollx(row, scrollx);
+ }
+
+ m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
+ draw_sprites(bitmap, cliprect);
+ return 0;
}
-WRITE_LINE_MEMBER(hyperspt_state::irq_mask_w)
+// Road Fighter
+TILE_GET_INFO_MEMBER(roadf_state::get_bg_tile_info)
+{
+ int const code = m_videoram[tile_index] + ((m_colorram[tile_index] & 0x80) << 1) + ((m_colorram[tile_index] & 0x60) << 4);
+ int const color = m_colorram[tile_index] & 0x0f;
+ int const flags = (m_colorram[tile_index] & 0x10) ? TILE_FLIPX : 0;
+
+ tileinfo.set(1, code, color, flags);
+}
+
+void roadf_state::video_start()
+{
+ m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(roadf_state::get_bg_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 64, 32);
+ m_bg_tilemap->set_scroll_rows(32);
+}
+
+
+void base_state::machine_start()
+{
+ save_item(NAME(m_irq_mask));
+ save_item(NAME(m_sn76496_latch));
+}
+
+template <uint8_t Which>
+void base_state::coin_counter_w(int state)
+{
+ machine().bookkeeping().coin_counter_w(Which, state);
+}
+
+void base_state::irq_mask_w(int state)
{
m_irq_mask = state;
if (!m_irq_mask)
m_maincpu->set_input_line(0, CLEAR_LINE);
}
-void hyperspt_state::common_map(address_map &map)
+void base_state::common_map(address_map &map)
{
- map(0x1000, 0x10bf).ram().share("spriteram");
- map(0x10c0, 0x10ff).ram().share("scroll"); /* Scroll amount */
+ map(0x1000, 0x10bf).ram().share(m_spriteram);
+ map(0x10c0, 0x10ff).ram().share(m_scroll);
map(0x1400, 0x1400).w("watchdog", FUNC(watchdog_timer_device::reset_w));
map(0x1480, 0x1487).w("mainlatch", FUNC(ls259_device::write_d0));
map(0x1500, 0x1500).w("soundlatch", FUNC(generic_latch_8_device::write));
map(0x1600, 0x1600).portr("DSW2");
map(0x1680, 0x1680).portr("SYSTEM");
map(0x1683, 0x1683).portr("DSW1");
- map(0x2000, 0x27ff).ram().w(FUNC(hyperspt_state::videoram_w)).share("videoram");
- map(0x2800, 0x2fff).ram().w(FUNC(hyperspt_state::colorram_w)).share("colorram");
+ map(0x2000, 0x27ff).ram().w(FUNC(base_state::videoram_w)).share(m_videoram);
+ map(0x2800, 0x2fff).ram().w(FUNC(base_state::colorram_w)).share(m_colorram);
map(0x3000, 0x37ff).ram();
map(0x3800, 0x3fff).ram().share("nvram");
map(0x4000, 0xffff).rom();
}
-void hyperspt_state::hyperspt_map(address_map &map)
+void base_state::hyperspt_common_main_map(address_map &map)
{
common_map(map);
map(0x1681, 0x1681).portr("P1_P2");
map(0x1682, 0x1682).portr("P3_P4");
}
-void hyperspt_state::roadf_map(address_map &map)
+void roadf_state::main_map(address_map &map)
{
common_map(map);
map(0x1681, 0x1681).portr("P1");
map(0x1682, 0x1682).portr("P2");
}
-void hyperspt_state::common_sound_map(address_map &map)
+void base_state::common_sound_map(address_map &map)
{
map(0x0000, 0x3fff).rom();
map(0x4000, 0x4fff).ram();
map(0x6000, 0x6000).r("soundlatch", FUNC(generic_latch_8_device::read));
map(0x8000, 0x8000).r(m_soundbrd, FUNC(trackfld_audio_device::hyperspt_sh_timer_r));
map(0xe000, 0xe000).w(m_dac, FUNC(dac_byte_interface::data_w));
- map(0xe001, 0xe001).w(FUNC(hyperspt_state::konami_SN76496_latch_w)); /* Loads the snd command into the snd latch */
- map(0xe002, 0xe002).w(FUNC(hyperspt_state::konami_SN76496_w)); /* This address triggers the SN chip to read the data port. */
+ map(0xe001, 0xe001).w(FUNC(hyperspt_state::konami_sn76496_latch_w)); // Loads the snd command into the snd latch
+ map(0xe002, 0xe002).w(FUNC(hyperspt_state::konami_sn76496_w)); // This address triggers the SN chip to read the data port.
}
-void hyperspt_state::hyperspt_sound_map(address_map &map)
+void hyperspt_state::sound_map(address_map &map)
{
common_sound_map(map);
- map(0xa000, 0xa000).w(m_vlm, FUNC(vlm5030_device::data_w)); /* speech data */
- map(0xc000, 0xdfff).w(m_soundbrd, FUNC(trackfld_audio_device::hyperspt_sound_w)); /* speech and output control */
+ map(0xa000, 0xa000).w(m_vlm, FUNC(vlm5030_device::data_w)); // speech data
+ map(0xc000, 0xdfff).w(m_soundbrd, FUNC(trackfld_audio_device::hyperspt_sound_w)); // speech and output control
}
-void hyperspt_state::roadf_sound_map(address_map &map)
+void roadf_state::sound_map(address_map &map)
{
common_sound_map(map);
map(0xa000, 0xa000).noprw(); // No VLM
map(0xc000, 0xdfff).noprw(); // No VLM
}
-void hyperspt_state::soundb_map(address_map &map)
+void hypersptb_state::sound_map(address_map &map)
{
common_sound_map(map);
map(0xa000, 0xa000).noprw(); // No VLM
- map(0xc000, 0xdfff).w("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::write)); /* speech and output control */
+ map(0xc000, 0xdfff).w("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::write)); // speech and output control
+}
+
+void hypersptb_state::adpcm_map(address_map &map)
+{
+ map(0x1000, 0x1000).r("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::data_r));
+ map(0x1001, 0x1001).r("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::ready_r));
+ map(0x1002, 0x1002).w("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::msm_data_w));
+ map(0x1003, 0x1003).r("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::msm_vck_r));
+ // on init:
+ // $1003 = $00
+ // $1002 = $FF
+ // $1003 = $34
+ // $1001 = $36
+ // $1002 = $80
+ // loops while ($1003) & 0x80 == 0
+ // 1002 = ADPCM data written (low 4 bits)
+ //
+ // $1003 & $80 (in) = 5205 DRQ
+ // $1002 & $0f (out) = 5205 data
+ // $1001 & $80 (in) = sound latch request
+ // $1000 (in) = sound latch data
+ map(0x8000, 0xffff).rom();
}
static INPUT_PORTS_START( hyperspt )
@@ -144,7 +462,7 @@ static INPUT_PORTS_START( hyperspt )
PORT_START("DSW1")
KONAMI_COINAGE_LOC(DEF_STR( Free_Play ), "No Coin B", SW1)
- /* "No Coin B" = coins produce sound, but no effect on coin counter */
+ // "No Coin B" = coins produce sound, but no effect on coin counter
PORT_START("DSW2")
PORT_DIPNAME( 0x01, 0x01, "After Last Event" ) PORT_DIPLOCATION("SW2:1")
@@ -193,12 +511,12 @@ static INPUT_PORTS_START( roadf )
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* the game doesn't boot if this is 1 */
+ PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // the game doesn't boot if this is 1
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("DSW1")
KONAMI_COINAGE_LOC(DEF_STR( Free_Play ), "No Coin B", SW1)
- /* "No Coin B" = coins produce sound, but no effect on coin counter */
+ // "No Coin B" = coins produce sound, but no effect on coin counter
PORT_START("DSW2")
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:1")
@@ -228,181 +546,163 @@ INPUT_PORTS_END
static const gfx_layout hyperspt_charlayout =
{
- 8,8, /* 8*8 sprites */
- 1024, /* 1024 characters */
- 4, /* 4 bits per pixel */
+ 8,8, // 8*8 sprites
+ 1024, // 1024 characters
+ 4, // 4 bits per pixel
{ 0x4000*8+4, 0x4000*8+0, 4, 0 },
{ 0, 1, 2, 3, 8*8+0, 8*8+1, 8*8+2, 8*8+3 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
- 16*8 /* every sprite takes 64 consecutive bytes */
+ 16*8 // every sprite takes 64 consecutive bytes
};
static const gfx_layout hyperspt_spritelayout =
{
- 16,16, /* 16*16 sprites */
- 512, /* 512 sprites */
- 4, /* 4 bits per pixel */
+ 16,16, // 16*16 sprites
+ 512, // 512 sprites
+ 4, // 4 bits per pixel
{ 0x8000*8+4, 0x8000*8+0, 4, 0 },
{ 0, 1, 2, 3, 8*8+0, 8*8+1, 8*8+2, 8*8+3,
16*8+0, 16*8+1, 16*8+2, 16*8+3, 24*8+0, 24*8+1, 24*8+2, 24*8+3 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 ,
32*8, 33*8, 34*8, 35*8, 36*8, 37*8, 38*8, 39*8 },
- 64*8 /* every sprite takes 64 consecutive bytes */
+ 64*8 // every sprite takes 64 consecutive bytes
};
static GFXDECODE_START( gfx_hyperspt )
- GFXDECODE_ENTRY( "gfx1", 0, hyperspt_spritelayout, 0, 16 )
- GFXDECODE_ENTRY( "gfx2", 0, hyperspt_charlayout, 16*16, 16 )
+ GFXDECODE_ENTRY( "sprites", 0, hyperspt_spritelayout, 0, 16 )
+ GFXDECODE_ENTRY( "tiles", 0, hyperspt_charlayout, 16*16, 16 )
GFXDECODE_END
static const gfx_layout roadf_charlayout =
{
- 8,8, /* 8*8 sprites */
- 1536, /* 1536 characters */
- 4, /* 4 bits per pixel */
+ 8,8, // 8*8 sprites
+ 1536, // 1536 characters
+ 4, // 4 bits per pixel
{ 0x6000*8+4, 0x6000*8+0, 4, 0 },
{ 0, 1, 2, 3, 8*8+0, 8*8+1, 8*8+2, 8*8+3 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
- 16*8 /* every sprite takes 64 consecutive bytes */
+ 16*8 // every sprite takes 64 consecutive bytes
};
static const gfx_layout roadf_spritelayout =
{
- 16,16, /* 16*16 sprites */
- 256, /* 256 sprites */
- 4, /* 4 bits per pixel */
+ 16,16, // 16*16 sprites
+ 256, // 256 sprites
+ 4, // 4 bits per pixel
{ 0x4000*8+4, 0x4000*8+0, 4, 0 },
{ 0, 1, 2, 3, 8*8+0, 8*8+1, 8*8+2, 8*8+3,
16*8+0, 16*8+1, 16*8+2, 16*8+3, 24*8+0, 24*8+1, 24*8+2, 24*8+3 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 ,
32*8, 33*8, 34*8, 35*8, 36*8, 37*8, 38*8, 39*8 },
- 64*8 /* every sprite takes 64 consecutive bytes */
+ 64*8 // every sprite takes 64 consecutive bytes
};
static GFXDECODE_START( gfx_roadf )
- GFXDECODE_ENTRY( "gfx1", 0, roadf_spritelayout, 0, 16 )
- GFXDECODE_ENTRY( "gfx2", 0, roadf_charlayout, 16*16, 16 )
+ GFXDECODE_ENTRY( "sprites", 0, roadf_spritelayout, 0, 16 )
+ GFXDECODE_ENTRY( "tiles", 0, roadf_charlayout, 16*16, 16 )
GFXDECODE_END
-WRITE_LINE_MEMBER(hyperspt_state::vblank_irq)
+void base_state::vblank_irq(int state)
{
if (state && m_irq_mask)
m_maincpu->set_input_line(0, ASSERT_LINE);
}
-void hyperspt_state::hyperspt(machine_config &config)
+void base_state::base(machine_config &config)
{
- /* basic machine hardware */
- KONAMI1(config, m_maincpu, XTAL(18'432'000)/12); /* verified on pcb */
- m_maincpu->set_addrmap(AS_PROGRAM, &hyperspt_state::hyperspt_map);
+ // basic machine hardware
+ KONAMI1(config, m_maincpu, XTAL(18'432'000) / 12); // verified on PCB
- Z80(config, m_audiocpu, XTAL(14'318'181)/4); /* verified on pcb */
- m_audiocpu->set_addrmap(AS_PROGRAM, &hyperspt_state::hyperspt_sound_map);
+ Z80(config, m_audiocpu, XTAL(14'318'181) / 4); // verified on PCB
ls259_device &mainlatch(LS259(config, "mainlatch")); // F2
- mainlatch.q_out_cb<0>().set(FUNC(hyperspt_state::flipscreen_w));
+ mainlatch.q_out_cb<0>().set(FUNC(base_state::flip_screen_set));
mainlatch.q_out_cb<1>().set(m_soundbrd, FUNC(trackfld_audio_device::sh_irqtrigger_w)); // SOUND ON
mainlatch.q_out_cb<2>().set_nop(); // END
- mainlatch.q_out_cb<3>().set(FUNC(hyperspt_state::coin_counter_1_w)); // COIN 1
- mainlatch.q_out_cb<4>().set(FUNC(hyperspt_state::coin_counter_2_w)); // COIN 2
+ mainlatch.q_out_cb<3>().set(FUNC(base_state::coin_counter_w<0>)); // COIN 1
+ mainlatch.q_out_cb<4>().set(FUNC(base_state::coin_counter_w<1>)); // COIN 2
mainlatch.q_out_cb<5>().set_nop(); // SA
- mainlatch.q_out_cb<7>().set(FUNC(hyperspt_state::irq_mask_w)); // INT
+ mainlatch.q_out_cb<7>().set(FUNC(base_state::irq_mask_w)); // INT
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
WATCHDOG_TIMER(config, "watchdog");
- /* video hardware */
+ // video hardware
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
m_screen->set_refresh_hz(60);
m_screen->set_vblank_time(ATTOSECONDS_IN_USEC(0));
m_screen->set_size(32*8, 32*8);
m_screen->set_visarea(0*8, 32*8-1, 2*8, 30*8-1);
- m_screen->set_screen_update(FUNC(hyperspt_state::screen_update));
+ m_screen->set_screen_update(FUNC(base_state::screen_update));
m_screen->set_palette(m_palette);
- m_screen->screen_vblank().set(FUNC(hyperspt_state::vblank_irq));
+ m_screen->screen_vblank().set(FUNC(base_state::vblank_irq));
GFXDECODE(config, m_gfxdecode, m_palette, gfx_hyperspt);
- PALETTE(config, m_palette, FUNC(hyperspt_state::hyperspt_palette), 16*16+16*16, 32);
+ PALETTE(config, m_palette, FUNC(base_state::palette), 16*16+16*16, 32);
- /* sound hardware */
+ // sound hardware
SPEAKER(config, "speaker").front_center();
GENERIC_LATCH_8(config, "soundlatch");
- TRACKFLD_AUDIO(config, m_soundbrd, 0, m_audiocpu, m_vlm);
+ TRACKFLD_AUDIO(config, m_soundbrd, 0, m_audiocpu, finder_base::DUMMY_TAG);
DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.4); // unknown DAC
- SN76496(config, m_sn, XTAL(14'318'181)/8); /* verified on pcb */
+ SN76496(config, m_sn, XTAL(14'318'181)/8); // verified on PCB
m_sn->add_route(ALL_OUTPUTS, "speaker", 1.0);
-
- VLM5030(config, m_vlm, XTAL(3'579'545)); /* verified on pcb */
- m_vlm->add_route(ALL_OUTPUTS, "speaker", 1.0);
}
-void hyperspt_state::hyprolyb_adpcm_map(address_map &map)
+void hyperspt_state::hyperspt(machine_config &config)
{
- map(0x1000, 0x1000).r("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::data_r));
- map(0x1001, 0x1001).r("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::ready_r));
- map(0x1002, 0x1002).w("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::msm_data_w));
- map(0x1003, 0x1003).r("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::msm_vck_r));
- // on init:
- // $1003 = $00
- // $1002 = $FF
- // $1003 = $34
- // $1001 = $36
- // $1002 = $80
- // loops while ($1003) & 0x80 == 0
- // 1002 = ADPCM data written (low 4 bits)
- //
- // $1003 & $80 (in) = 5205 DRQ
- // $1002 & $0f (out) = 5205 data
- // $1001 & $80 (in) = sound latch request
- // $1000 (in) = sound latch data
- map(0x8000, 0xffff).rom();
+ base(config);
+
+ m_maincpu->set_addrmap(AS_PROGRAM, &hyperspt_state::hyperspt_common_main_map);
+ m_audiocpu->set_addrmap(AS_PROGRAM, &hyperspt_state::sound_map);
+
+ TRACKFLD_AUDIO(config.replace(), m_soundbrd, 0, m_audiocpu, m_vlm);
+
+ VLM5030(config, m_vlm, XTAL(3'579'545)); // verified on PCB
+ m_vlm->add_route(ALL_OUTPUTS, "speaker", 1.0);
}
-void hyperspt_state::hypersptb(machine_config &config)
+void hypersptb_state::hypersptb(machine_config &config)
{
- hyperspt(config);
- config.device_remove("vlm");
+ base(config);
- m_audiocpu->set_addrmap(AS_PROGRAM, &hyperspt_state::soundb_map);
+ m_maincpu->set_addrmap(AS_PROGRAM, &hypersptb_state::hyperspt_common_main_map);
+ m_audiocpu->set_addrmap(AS_PROGRAM, &hypersptb_state::sound_map);
- M6802(config, "adpcm", XTAL(14'318'181)/8) /* unknown clock */
- .set_addrmap(AS_PROGRAM, &hyperspt_state::hyprolyb_adpcm_map);
+ M6802(config, "adpcm", XTAL(14'318'181) / 8) // unknown clock
+ .set_addrmap(AS_PROGRAM, &hypersptb_state::adpcm_map);
GENERIC_LATCH_8(config, "soundlatch2");
HYPROLYB_ADPCM(config, "hyprolyb_adpcm", 0);
- msm5205_device &msm(MSM5205(config, "msm", 384000));
- msm.vck_legacy_callback().set("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::vck_callback)); /* VCK function */
- msm.set_prescaler_selector(msm5205_device::S96_4B); /* 4 kHz */
+ msm5205_device &msm(MSM5205(config, "msm", 384'000));
+ msm.vck_legacy_callback().set("hyprolyb_adpcm", FUNC(hyprolyb_adpcm_device::vck_callback));
+ msm.set_prescaler_selector(msm5205_device::S96_4B); // 4 kHz
msm.add_route(ALL_OUTPUTS, "speaker", 0.5);
}
-void hyperspt_state::roadf(machine_config &config)
+void roadf_state::roadf(machine_config &config)
{
- hyperspt(config);
+ base(config);
- m_maincpu->set_addrmap(AS_PROGRAM, &hyperspt_state::roadf_map);
- m_audiocpu->set_addrmap(AS_PROGRAM, &hyperspt_state::roadf_sound_map);
+ m_maincpu->set_addrmap(AS_PROGRAM, &roadf_state::main_map);
+ m_audiocpu->set_addrmap(AS_PROGRAM, &roadf_state::sound_map);
m_gfxdecode->set_info(gfx_roadf);
-
- MCFG_VIDEO_START_OVERRIDE(hyperspt_state,roadf)
-
- config.device_remove("vlm");
}
-void hyperspt_state::roadfu(machine_config &config)
+void roadf_state::roadfu(machine_config &config)
{
roadf(config);
- MC6809E(config.replace(), m_maincpu, XTAL(18'432'000)/12);
- m_maincpu->set_addrmap(AS_PROGRAM, &hyperspt_state::roadf_map);
+ MC6809E(config.replace(), m_maincpu, XTAL(18'432'000) / 12);
+ m_maincpu->set_addrmap(AS_PROGRAM, &roadf_state::main_map);
}
@@ -425,7 +725,7 @@ ROM_START( hyperspt )
ROM_LOAD( "c10", 0x0000, 0x2000, CRC(3dc1a6ff) SHA1(1e67cac46b6c8a9a0bb1560e135983435520f1fc) )
ROM_LOAD( "c09", 0x2000, 0x2000, CRC(9b525c3e) SHA1(d8775ec3b4f12117431a2b7c7eaa038c1255241b) )
- ROM_REGION( 0x10000, "gfx1", 0 )
+ ROM_REGION( 0x10000, "sprites", 0 )
ROM_LOAD( "c14", 0x00000, 0x2000, CRC(c72d63be) SHA1(0677b4f7196551ebc1bbbecd0e15d79f8e32857d) )
ROM_LOAD( "c13", 0x02000, 0x2000, CRC(76565608) SHA1(418fb9a81c0583d0214afb27fea28794563b8460) )
ROM_LOAD( "c12", 0x04000, 0x2000, CRC(74d2cc69) SHA1(684b65455217f243b3690822d445efdcb18211bb) )
@@ -435,7 +735,7 @@ ROM_START( hyperspt )
ROM_LOAD( "c16", 0x0c000, 0x2000, CRC(d7ff9f2b) SHA1(b0e6a056db96027ba0c10d3ee3bfdef145a236e2) )
ROM_LOAD( "c15", 0x0e000, 0x2000, CRC(f3d454e6) SHA1(9d04dcd1b0354e01773923295bba2602e00467f9) )
- ROM_REGION( 0x08000, "gfx2", 0 )
+ ROM_REGION( 0x08000, "tiles", 0 )
ROM_LOAD( "c26", 0x00000, 0x2000, CRC(a6897eac) SHA1(a1dd950c29885f7bb4784fed46810ae47bff87dd) )
ROM_LOAD( "c24", 0x02000, 0x2000, CRC(5fb230c0) SHA1(8caebf3788c1fb71c1ba72b0045503d45936d4ce) )
ROM_LOAD( "c22", 0x04000, 0x2000, CRC(ed9271a0) SHA1(a458ad79922383f45f6522775e19cf693e226883) )
@@ -446,12 +746,10 @@ ROM_START( hyperspt )
ROM_LOAD( "j12_c28.bin", 0x0020, 0x0100, CRC(2c891d59) SHA1(79050fbe058c24349927edc7937ec68a77f450f1) )
ROM_LOAD( "a09_c29.bin", 0x0120, 0x0100, CRC(811a3f3f) SHA1(474f03345847cd9791ff6b7161286bbfef3f990a) )
- ROM_REGION( 0x10000, "vlm", 0 ) /* 64k for speech rom */
+ ROM_REGION( 0x10000, "vlm", 0 ) // speech
ROM_LOAD( "c08", 0x0000, 0x2000, CRC(e8f8ea78) SHA1(8d37818e5a2740c96696f37996f2a3f870386690) )
ROM_END
-
-
ROM_START( hypersptb )
ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "1.5g", 0x4000, 0x2000, CRC(0cfc68a7) SHA1(48ddd444f4366a39afb589e1c5df10d815b4b64f) )
@@ -465,7 +763,7 @@ ROM_START( hypersptb )
ROM_LOAD( "12.17a", 0x0000, 0x2000, CRC(3dc1a6ff) SHA1(1e67cac46b6c8a9a0bb1560e135983435520f1fc) )
ROM_LOAD( "11.15a", 0x2000, 0x2000, CRC(9b525c3e) SHA1(d8775ec3b4f12117431a2b7c7eaa038c1255241b) )
- ROM_REGION( 0x10000, "gfx1", 0 )
+ ROM_REGION( 0x10000, "sprites", 0 )
ROM_LOAD( "20.15g", 0x00000, 0x4000, CRC(551d222f) SHA1(cd3d544ca5009cad3f9748804301bfed57329775) ) // 27256 ?! - it doesn't need to be!
ROM_CONTINUE(0xc000,0x4000) // causes data we want to be at 0xe000 - 0xffff
ROM_LOAD( "16.19j", 0x00000, 0x2000, CRC(c72d63be) SHA1(0677b4f7196551ebc1bbbecd0e15d79f8e32857d) )
@@ -476,8 +774,7 @@ ROM_START( hypersptb )
ROM_LOAD( "18.18g", 0x0a000, 0x2000, CRC(b145b39f) SHA1(e696e1f9b44aa44360ea9962c4ee9b61db8e53f5) )
ROM_LOAD( "19.17g", 0x0c000, 0x2000, CRC(d7ff9f2b) SHA1(b0e6a056db96027ba0c10d3ee3bfdef145a236e2) )
-
- ROM_REGION( 0x08000, "gfx2", 0 )
+ ROM_REGION( 0x08000, "tiles", 0 )
ROM_LOAD( "b.14a", 0x00000, 0x4000, CRC(8fd90bd2) SHA1(4faa270002f859a27719d08004b012cc297405f5) ) // 27256 ?! - it doesn't need to be!
ROM_CONTINUE(0x0000,0x4000) // causes data we want to be at 0x0000 - 0x1fff
ROM_LOAD( "a.12a", 0x02000, 0x2000, CRC(a3d422c6) SHA1(f0e26a7190e64acd9b682aab5a66223de4055de0) )
@@ -486,17 +783,16 @@ ROM_START( hypersptb )
ROM_REGION( 0x0220, "proms", 0 )
ROM_LOAD( "mmi6331-1.3c", 0x0000, 0x0020, CRC(bc8a5956) SHA1(90746145d9f380c29919edea3ef7a8434c48c9d9) )
- // no proms matched the ones below, but they're colours, so I assume them to be the same
+ // no PROMs matched the ones below, but they're colours, so I assume them to be the same
ROM_LOAD( "j12_c28.bin", 0x0020, 0x0100, CRC(2c891d59) SHA1(79050fbe058c24349927edc7937ec68a77f450f1) )
ROM_LOAD( "a09_c29.bin", 0x0120, 0x0100, CRC(811a3f3f) SHA1(474f03345847cd9791ff6b7161286bbfef3f990a) )
- /* These ROM's are located on the Sound Board */
- ROM_REGION( 0x10000, "adpcm", 0 ) /* 64k for the 6802 which plays ADPCM samples */
+ // These ROMs are located on the Sound Board
+ ROM_REGION( 0x10000, "adpcm", 0 ) // 6802
ROM_LOAD( "10.20c", 0x8000, 0x2000, CRC(a4cddeb8) SHA1(057981ad3b04239662bb19342e9ec14b0dab2351) )
ROM_LOAD( "9.20cd", 0xa000, 0x2000, CRC(e9919365) SHA1(bd11d6e3ee2c6e698159c2768e315389d666107f) )
ROM_LOAD( "8.20d", 0xc000, 0x2000, CRC(49a06454) SHA1(159a293125d7ac92a81120e290497ee7ed6d8acf) )
ROM_LOAD( "7.20b", 0xe000, 0x2000, CRC(607a36df) SHA1(17e553e5070771133ed094f05b26dd6cd63cfc23) )
-
ROM_END
ROM_START( hpolym84 )
@@ -512,7 +808,7 @@ ROM_START( hpolym84 )
ROM_LOAD( "c10", 0x0000, 0x2000, CRC(3dc1a6ff) SHA1(1e67cac46b6c8a9a0bb1560e135983435520f1fc) )
ROM_LOAD( "c09", 0x2000, 0x2000, CRC(9b525c3e) SHA1(d8775ec3b4f12117431a2b7c7eaa038c1255241b) )
- ROM_REGION( 0x10000, "gfx1", 0 )
+ ROM_REGION( 0x10000, "sprites", 0 )
ROM_LOAD( "c14", 0x00000, 0x2000, CRC(c72d63be) SHA1(0677b4f7196551ebc1bbbecd0e15d79f8e32857d) )
ROM_LOAD( "c13", 0x02000, 0x2000, CRC(76565608) SHA1(418fb9a81c0583d0214afb27fea28794563b8460) )
ROM_LOAD( "c12", 0x04000, 0x2000, CRC(74d2cc69) SHA1(684b65455217f243b3690822d445efdcb18211bb) )
@@ -522,7 +818,7 @@ ROM_START( hpolym84 )
ROM_LOAD( "c16", 0x0c000, 0x2000, CRC(d7ff9f2b) SHA1(b0e6a056db96027ba0c10d3ee3bfdef145a236e2) )
ROM_LOAD( "c15", 0x0e000, 0x2000, CRC(f3d454e6) SHA1(9d04dcd1b0354e01773923295bba2602e00467f9) )
- ROM_REGION( 0x08000, "gfx2", 0 )
+ ROM_REGION( 0x08000, "tiles", 0 )
ROM_LOAD( "c26", 0x00000, 0x2000, CRC(a6897eac) SHA1(a1dd950c29885f7bb4784fed46810ae47bff87dd) )
ROM_LOAD( "330e24.bin", 0x02000, 0x2000, CRC(f9bbfe1d) SHA1(f24a0c3e10e727e3e9fd123cda8bb557af1fea12) )
ROM_LOAD( "c22", 0x04000, 0x2000, CRC(ed9271a0) SHA1(a458ad79922383f45f6522775e19cf693e226883) )
@@ -533,10 +829,12 @@ ROM_START( hpolym84 )
ROM_LOAD( "j12_c28.bin", 0x0020, 0x0100, CRC(2c891d59) SHA1(79050fbe058c24349927edc7937ec68a77f450f1) )
ROM_LOAD( "a09_c29.bin", 0x0120, 0x0100, CRC(811a3f3f) SHA1(474f03345847cd9791ff6b7161286bbfef3f990a) )
- ROM_REGION( 0x10000, "vlm", 0 ) /* 64k for speech rom */
+ ROM_REGION( 0x10000, "vlm", 0 ) // speech
ROM_LOAD( "c08", 0x0000, 0x2000, CRC(e8f8ea78) SHA1(8d37818e5a2740c96696f37996f2a3f870386690) )
ROM_END
+/* Tecfri manufactures a Road Fighter PCB (probaby bootleg) with exactly the same software as the 'roadf'
+ set, but with ROMs 'J19_E14', 'G19_E18', 'A14_E26' and 'C14_E22' split on half capacity EPROMs. */
ROM_START( roadf )
ROM_REGION( 0x10000, "maincpu", 0 )
ROM_LOAD( "g05_g01.bin", 0x4000, 0x2000, CRC(e2492a06) SHA1(e03895b83f1529dd7bb20e1380cb60c7606db3e4) )
@@ -549,11 +847,11 @@ ROM_START( roadf )
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "a17_d10.bin", 0x0000, 0x2000, CRC(c33c927e) SHA1(f1a8522e3bfc3a07bb42408d2937a4129e4c3fee) )
- ROM_REGION( 0x08000, "gfx1", 0 )
+ ROM_REGION( 0x08000, "sprites", 0 )
ROM_LOAD( "j19_e14.bin", 0x00000, 0x4000, CRC(16d2bcff) SHA1(37c63faaaca43909bfb1e2ccb370efe4b276d8a9) )
ROM_LOAD( "g19_e18.bin", 0x04000, 0x4000, CRC(490685ff) SHA1(5ca0aa3771d60688671aae196f10f9feecb15106) )
- ROM_REGION( 0x0c000, "gfx2", 0 )
+ ROM_REGION( 0x0c000, "tiles", 0 )
ROM_LOAD( "a14_e26.bin", 0x00000, 0x4000, CRC(f5c738e2) SHA1(9f10be775791dee9801b1167f838a9110084842d) )
ROM_LOAD( "a12_d24.bin", 0x04000, 0x2000, CRC(2d82c930) SHA1(fea26c00ad3acb1f44a5fdc79a7dd8ddce17d317) )
ROM_LOAD( "c14_e22.bin", 0x06000, 0x4000, CRC(fbcfbeb9) SHA1(e5a938fc2fe2378d836dfe8ba516994cd5cf0bb5) )
@@ -577,11 +875,11 @@ ROM_START( roadf2 )
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "a17_d10.bin", 0x0000, 0x2000, CRC(c33c927e) SHA1(f1a8522e3bfc3a07bb42408d2937a4129e4c3fee) )
- ROM_REGION( 0x08000, "gfx1", 0 )
+ ROM_REGION( 0x08000, "sprites", 0 )
ROM_LOAD( "j19_e14.bin", 0x00000, 0x4000, CRC(16d2bcff) SHA1(37c63faaaca43909bfb1e2ccb370efe4b276d8a9) )
ROM_LOAD( "g19_e18.bin", 0x04000, 0x4000, CRC(490685ff) SHA1(5ca0aa3771d60688671aae196f10f9feecb15106) )
- ROM_REGION( 0x0c000, "gfx2", 0 )
+ ROM_REGION( 0x0c000, "tiles", 0 )
ROM_LOAD( "a14_e26.bin", 0x00000, 0x4000, CRC(f5c738e2) SHA1(9f10be775791dee9801b1167f838a9110084842d) )
ROM_LOAD( "a12_d24.bin", 0x04000, 0x2000, CRC(2d82c930) SHA1(fea26c00ad3acb1f44a5fdc79a7dd8ddce17d317) )
ROM_LOAD( "c14_e22.bin", 0x06000, 0x4000, CRC(fbcfbeb9) SHA1(e5a938fc2fe2378d836dfe8ba516994cd5cf0bb5) )
@@ -602,11 +900,11 @@ ROM_START( roadfu ) // GX461 PCB, unencrypted
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "461_d10.a17", 0x0000, 0x2000, CRC(c33c927e) SHA1(f1a8522e3bfc3a07bb42408d2937a4129e4c3fee) )
- ROM_REGION( 0x08000, "gfx1", 0 )
+ ROM_REGION( 0x08000, "sprites", 0 )
ROM_LOAD( "j19_e14.bin", 0x00000, 0x4000, CRC(16d2bcff) SHA1(37c63faaaca43909bfb1e2ccb370efe4b276d8a9) )
ROM_LOAD( "g19_e18.bin", 0x04000, 0x4000, CRC(490685ff) SHA1(5ca0aa3771d60688671aae196f10f9feecb15106) )
- ROM_REGION( 0x0c000, "gfx2", 0 )
+ ROM_REGION( 0x0c000, "tiles", 0 )
ROM_LOAD( "a14_e26.bin", 0x00000, 0x4000, CRC(f5c738e2) SHA1(9f10be775791dee9801b1167f838a9110084842d) )
ROM_LOAD( "a12_d24.bin", 0x04000, 0x2000, CRC(2d82c930) SHA1(fea26c00ad3acb1f44a5fdc79a7dd8ddce17d317) )
ROM_LOAD( "c14_e22.bin", 0x06000, 0x4000, CRC(fbcfbeb9) SHA1(e5a938fc2fe2378d836dfe8ba516994cd5cf0bb5) )
@@ -627,13 +925,13 @@ ROM_START( roadfh ) // This hack was found on an original GX330 (Hyper Sports) P
ROM_REGION( 0x10000, "audiocpu", 0 )
ROM_LOAD( "suond7.a9", 0x0000, 0x2000, CRC(c33c927e) SHA1(f1a8522e3bfc3a07bb42408d2937a4129e4c3fee) ) // yes: "SUOND", identical to a17_d10.bin
- ROM_REGION( 0x08000, "gfx1", 0 )
+ ROM_REGION( 0x08000, "sprites", 0 )
ROM_LOAD( "j19.bin", 0x00000, 0x2000, CRC(5eeb0283) SHA1(67e3a079e091a41e10be7c8584d7069455780a24) ) // j19.bin + j18.bin identical to j19_e14.bin
ROM_LOAD( "j18.bin", 0x02000, 0x2000, CRC(43c1590d) SHA1(db6904aefb93d5b64aeca4d8d07209ad73bbfa02) )
ROM_LOAD( "g19.bin", 0x04000, 0x2000, CRC(f2819ef3) SHA1(3766d94a4cc2bbbee9af855d1d53814806f61a1e) ) // g19.bin + g18.bin almost identical to g19_e18.bin
ROM_LOAD( "g18.bin", 0x06000, 0x2000, CRC(dbd1d844) SHA1(aab5c009035cb8b1e163ac304865e3df8cea33ad) )
- ROM_REGION( 0x0c000, "gfx2", 0 )
+ ROM_REGION( 0x0c000, "tiles", 0 )
ROM_LOAD( "a14.bin", 0x00000, 0x2000, CRC(0b595c1e) SHA1(b1a852a29d90eb274716693a3648f4f61068ee95) ) // a14.bin + a13.bin almost identical to a14_e26.bin
ROM_LOAD( "a13.bin", 0x02000, 0x2000, CRC(4f0acc76) SHA1(b913530c9168f2ad37e2ed019c882620c80bcabf) )
ROM_LOAD( "a12.bin", 0x04000, 0x2000, CRC(2d82c930) SHA1(fea26c00ad3acb1f44a5fdc79a7dd8ddce17d317) ) // identical to a12_d24.bin
@@ -647,10 +945,13 @@ ROM_START( roadfh ) // This hack was found on an original GX330 (Hyper Sports) P
ROM_LOAD( "82s129.a9", 0x0120, 0x0100, CRC(5b3b5f2a) SHA1(e83556fba6d50ad20dff6e19bd300ba0c30cc6e2) ) // identical to a09_c29.bin
ROM_END
-GAME( 1984, hyperspt, 0, hyperspt, hyperspt, hyperspt_state, empty_init, ROT0, "Konami (Centuri license)", "Hyper Sports", MACHINE_SUPPORTS_SAVE )
-GAME( 1984, hypersptb, hyperspt, hypersptb, hyperspt, hyperspt_state, empty_init, ROT0, "bootleg", "Hyper Sports (bootleg)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) // has ADPCM vis MSM5205 instead of VLM
-GAME( 1984, hpolym84, hyperspt, hyperspt, hyperspt, hyperspt_state, empty_init, ROT0, "Konami", "Hyper Olympic '84", MACHINE_SUPPORTS_SAVE )
-GAME( 1984, roadf, 0, roadf, roadf, hyperspt_state, empty_init, ROT90, "Konami", "Road Fighter (set 1)", MACHINE_SUPPORTS_SAVE )
-GAME( 1984, roadf2, roadf, roadf, roadf, hyperspt_state, empty_init, ROT90, "Konami", "Road Fighter (set 2)", MACHINE_SUPPORTS_SAVE )
-GAME( 1984, roadfu, roadf, roadfu, roadf, hyperspt_state, empty_init, ROT90, "Konami", "Road Fighter (set 3, unencrypted)", MACHINE_SUPPORTS_SAVE )
-GAME( 1984, roadfh, roadf, roadf, roadf, hyperspt_state, empty_init, ROT90, "bootleg", "Road Fighter (bootleg GX330 conversion)", MACHINE_SUPPORTS_SAVE ) // GX330 = Hyper Sports
+} // anonymous namespace
+
+
+GAME( 1984, hyperspt, 0, hyperspt, hyperspt, hyperspt_state, empty_init, ROT0, "Konami (Centuri license)", "Hyper Sports", MACHINE_SUPPORTS_SAVE )
+GAME( 1984, hypersptb, hyperspt, hypersptb, hyperspt, hypersptb_state, empty_init, ROT0, "bootleg", "Hyper Sports (bootleg)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) // has ADPCM vis MSM5205 instead of VLM
+GAME( 1984, hpolym84, hyperspt, hyperspt, hyperspt, hyperspt_state, empty_init, ROT0, "Konami", "Hyper Olympic '84", MACHINE_SUPPORTS_SAVE )
+GAME( 1984, roadf, 0, roadf, roadf, roadf_state, empty_init, ROT90, "Konami", "Road Fighter (set 1)", MACHINE_SUPPORTS_SAVE )
+GAME( 1984, roadf2, roadf, roadf, roadf, roadf_state, empty_init, ROT90, "Konami", "Road Fighter (set 2)", MACHINE_SUPPORTS_SAVE )
+GAME( 1984, roadfu, roadf, roadfu, roadf, roadf_state, empty_init, ROT90, "Konami", "Road Fighter (set 3, unencrypted)", MACHINE_SUPPORTS_SAVE )
+GAME( 1984, roadfh, roadf, roadf, roadf, roadf_state, empty_init, ROT90, "bootleg", "Road Fighter (bootleg GX330 conversion)", MACHINE_SUPPORTS_SAVE ) // GX330 = Hyper Sports