summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/yiear.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/yiear.cpp')
-rw-r--r--src/mame/drivers/yiear.cpp370
1 files changed, 0 insertions, 370 deletions
diff --git a/src/mame/drivers/yiear.cpp b/src/mame/drivers/yiear.cpp
deleted file mode 100644
index ca188c9307f..00000000000
--- a/src/mame/drivers/yiear.cpp
+++ /dev/null
@@ -1,370 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Phil Stroffolino
-// thanks-to:Enrique Sanchez
-/***************************************************************************
-
- Yie Ar Kung-Fu memory map (preliminary)
-
-CPU: Motorola 6809
-
-Normal 6809 IRQs must be generated each video frame (60 fps).
-The 6809 NMI is used for sound timing.
-
-
-0000 R VLM5030 status ???
-4000 W control port
- bit 0 - flip screen
- bit 1 - NMI enable
- bit 2 - IRQ enable
- bit 3 - coin counter A
- bit 4 - coin counter B
-4800 W sound latch write
-4900 W copy sound latch to SN76496
-4a00 W VLM5030 control
-4b00 W VLM5030 data
-4c00 R DSW #0
-4d00 R DSW #1
-4e00 R IN #0
-4e01 R IN #1
-4e02 R IN #2
-4e03 R DSW #2
-4f00 W watchdog
-5000-502f W sprite RAM 1 (18 sprites)
- byte 0 - bit 0 - sprite code MSB
- bit 6 - flip X
- bit 7 - flip Y
- byte 1 - Y position
-5030-53ff RW RAM
-5400-542f W sprite RAM 2
- byte 0 - X position
- byte 1 - sprite code LSB
-5430-57ff RW RAM
-5800-5fff RW video RAM
- byte 0 - bit 4 - character code MSB
- bit 6 - flip Y
- bit 7 - flip X
- byte 1 - character code LSB
-8000-ffff R ROM
-
-
-Additional Information
-----------------------
-
-While the arcade game itself never had them, nor are they really
-mentioned in the manual, the board supports a third button for both
-players. This button enhances jump height on straight up jumps among
-other different stances in combination with movements. It is now in
-the emulation, but default mapping is "n/a" and must be manually mapped
-to be used.
-
-This is a chart for the edge connector showing the location of pins for
-"Button 3" for each player. The manual shows these without a function
-or not used.
-
-(Posted by Matt Osborne @ KLOV Forums)
-
- Solder Side | Parts Side
-_________________________|___________________________
- NC | A | 1 | +12V
- Speaker | B | 2 | Speaker
- 2P Button 2 (Punch) | C | 3 | 2P Button 1 (Kick)
- 2P Left | D | 4 | 2P Right
- 1P Start | E | 5 | 2P Start
- 1P Button 1 (Kick) | F | 6 | 2P Up
- 1P Button 2 (Punch) | H | 7 | Service
- 1P Right | J | 8 | 1P Left
- 1P Up | K | 9 | 2P Down
- Coin 1 | L | 10| Coin 2
- 1P Down | M | 11| Coin Counter 1
- 1P Button 3 (Boost?)| N | 12| Coin Counter 2
- Video Green | P | 13| Video Blue
- Video Red | R | 14| Video Sync
- NC | S | 15| 2P Button 3 (Boost?)
- GND | T | 16| GND
- GND | U | 17| GND
- +5V | V | 18| +5V
-
-PCB is silkscreened as:
-GX407 PWB 200211A
-
- CPU: 68B09EP at 6D
-Sound: VLM5030 at 7B
- OSC: 18.432MHz & 3.579545MHz
- DSW: SW1 at 3G 8-position
- SW2 at 3E 8-position
- SW3 at 3F 4-position
-
-***************************************************************************/
-
-#include "emu.h"
-#include "includes/yiear.h"
-#include "includes/konamipt.h"
-
-#include "cpu/m6809/m6809.h"
-#include "machine/watchdog.h"
-#include "sound/sn76496.h"
-#include "speaker.h"
-
-
-
-READ8_MEMBER(yiear_state::yiear_speech_r)
-{
- if (m_vlm->bsy())
- return 1;
- else
- return 0;
-}
-
-WRITE8_MEMBER(yiear_state::yiear_VLM5030_control_w)
-{
- /* bit 0 is latch direction */
- m_vlm->st((data >> 1) & 1);
- m_vlm->rst((data >> 2) & 1);
-}
-
-WRITE_LINE_MEMBER(yiear_state::vblank_irq)
-{
- if (state && m_yiear_irq_enable)
- m_maincpu->set_input_line(0, HOLD_LINE);
-}
-
-
-INTERRUPT_GEN_MEMBER(yiear_state::yiear_nmi_interrupt)
-{
- if (m_yiear_nmi_enable)
- device.execute().pulse_input_line(INPUT_LINE_NMI, attotime::zero);
-}
-
-
-void yiear_state::main_map(address_map &map)
-{
- map(0x0000, 0x0000).r(FUNC(yiear_state::yiear_speech_r));
- map(0x4000, 0x4000).w(FUNC(yiear_state::yiear_control_w));
- map(0x4800, 0x4800).w(FUNC(yiear_state::konami_SN76496_latch_w));
- map(0x4900, 0x4900).w(FUNC(yiear_state::konami_SN76496_w));
- map(0x4a00, 0x4a00).w(FUNC(yiear_state::yiear_VLM5030_control_w));
- map(0x4b00, 0x4b00).w(m_vlm, FUNC(vlm5030_device::data_w));
- map(0x4c00, 0x4c00).portr("DSW2");
- map(0x4d00, 0x4d00).portr("DSW3");
- map(0x4e00, 0x4e00).portr("SYSTEM");
- map(0x4e01, 0x4e01).portr("P1");
- map(0x4e02, 0x4e02).portr("P2");
- map(0x4e03, 0x4e03).portr("DSW1");
- map(0x4f00, 0x4f00).w("watchdog", FUNC(watchdog_timer_device::reset_w));
- map(0x5000, 0x502f).ram().share("spriteram");
- map(0x5030, 0x53ff).ram();
- map(0x5400, 0x542f).ram().share("spriteram2");
- map(0x5430, 0x57ff).ram();
- map(0x5800, 0x5fff).ram().w(FUNC(yiear_state::yiear_videoram_w)).share("videoram");
- map(0x8000, 0xffff).rom();
-}
-
-
-void yiear_state::vlm_map(address_map &map)
-{
- map.global_mask(0x1fff);
- map(0x0000, 0x1fff).rom();
-}
-
-
-static INPUT_PORTS_START( yiear )
- PORT_START("SYSTEM")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 )
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
- PORT_START("P1")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT) PORT_8WAY PORT_PLAYER(1)
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) /*WTF? PORT_CODE("NONE")*/
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
-
- PORT_START("P2")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL
- 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_LOW, IPT_BUTTON3 ) PORT_COCKTAIL /*WTF? PORT_CODE("NONE")*/
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
-
- PORT_START("DSW1")
- KONAMI_COINAGE_LOC(DEF_STR( Free_Play ), "Invalid", SW1)
- /* "Invalid" = both coin slots disabled */
-
- PORT_START("DSW2")
- PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2")
- PORT_DIPSETTING( 0x03, "1" )
- PORT_DIPSETTING( 0x02, "2" )
- PORT_DIPSETTING( 0x01, "3" )
- PORT_DIPSETTING( 0x00, "5" )
- PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW2:3")
- PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
- PORT_DIPSETTING( 0x04, DEF_STR( Cocktail ) )
- PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:4")
- PORT_DIPSETTING( 0x08, "30000 80000" )
- PORT_DIPSETTING( 0x00, "40000 90000" )
- PORT_DIPNAME( 0x30, 0x10, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6")
- PORT_DIPSETTING( 0x30, DEF_STR( Easy ) )
- PORT_DIPSETTING( 0x10, DEF_STR( Normal ) )
- PORT_DIPSETTING( 0x20, DEF_STR( Difficult ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Very_Difficult ) )
- PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_LOW, "SW2:7" )
- PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:8")
- PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x00, DEF_STR( On ) )
-
- PORT_START("DSW3")
- PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW3:1")
- PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
- PORT_DIPSETTING( 0x00, DEF_STR( On ) )
- PORT_DIPNAME( 0x02, 0x02, "Upright Controls" ) PORT_DIPLOCATION("SW3:2")
- PORT_DIPSETTING( 0x02, DEF_STR( Single ) )
- PORT_DIPSETTING( 0x00, DEF_STR( Dual ) )
- PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW3:3" )
- PORT_DIPUNUSED_DIPLOC( 0x08, IP_ACTIVE_LOW, "SW3:4" )
- PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
-INPUT_PORTS_END
-
-
-
-static const gfx_layout charlayout =
-{
- 8,8,
- RGN_FRAC(1,2),
- 4,
- { 4, 0, RGN_FRAC(1,2)+4, RGN_FRAC(1,2)+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
-};
-
-static const gfx_layout spritelayout =
-{
- 16,16,
- RGN_FRAC(1,2),
- 4,
- { 4, 0, RGN_FRAC(1,2)+4, RGN_FRAC(1,2)+0 },
- { 0*8*8+0, 0*8*8+1, 0*8*8+2, 0*8*8+3, 1*8*8+0, 1*8*8+1, 1*8*8+2, 1*8*8+3,
- 2*8*8+0, 2*8*8+1, 2*8*8+2, 2*8*8+3, 3*8*8+0, 3*8*8+1, 3*8*8+2, 3*8*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
-};
-
-static GFXDECODE_START( gfx_yiear )
- GFXDECODE_ENTRY( "gfx1", 0, charlayout, 16, 1 )
- GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 0, 1 )
-GFXDECODE_END
-
-
-
-void yiear_state::machine_start()
-{
- save_item(NAME(m_yiear_nmi_enable));
-}
-
-void yiear_state::machine_reset()
-{
- m_yiear_nmi_enable = 0;
-}
-
-void yiear_state::yiear(machine_config &config)
-{
- /* basic machine hardware */
- MC6809E(config, m_maincpu, XTAL(18'432'000)/12); /* verified on pcb */
- m_maincpu->set_addrmap(AS_PROGRAM, &yiear_state::main_map);
- m_maincpu->set_periodic_int(FUNC(yiear_state::yiear_nmi_interrupt), attotime::from_hz(480)); /* music tempo (correct frequency unknown) */
-
- WATCHDOG_TIMER(config, "watchdog");
-
- /* video hardware */
- SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
- m_screen->set_refresh_hz(60.58); /* verified on pcb */
- 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(yiear_state::screen_update_yiear));
- m_screen->set_palette(m_palette);
- m_screen->screen_vblank().set(FUNC(yiear_state::vblank_irq));
-
- GFXDECODE(config, m_gfxdecode, m_palette, gfx_yiear);
- PALETTE(config, m_palette, FUNC(yiear_state::yiear_palette), 32);
-
- /* sound hardware */
- SPEAKER(config, "mono").front_center();
-
- TRACKFLD_AUDIO(config, m_audio, 0, finder_base::DUMMY_TAG, m_vlm);
-
- SN76489A(config, m_sn, XTAL(18'432'000)/12).add_route(ALL_OUTPUTS, "mono", 1.0); /* verified on pcb */
-
- VLM5030(config, m_vlm, XTAL(3'579'545)); /* verified on pcb */
- m_vlm->set_addrmap(0, &yiear_state::vlm_map);
- m_vlm->add_route(ALL_OUTPUTS, "mono", 1.0);
-}
-
-
-/***************************************************************************
-
- Game driver(s)
-
-***************************************************************************/
-
-ROM_START( yiear )
- ROM_REGION( 0x10000, "maincpu", 0 )
- ROM_LOAD( "407_i08.10d", 0x08000, 0x4000, CRC(e2d7458b) SHA1(1b192130b5cd879ab686a21aa2b518c90edd89aa) )
- ROM_LOAD( "407_i07.8d", 0x0c000, 0x4000, CRC(7db7442e) SHA1(d604a995a5505251904447ad697fc9e7f94bf241) )
-
- ROM_REGION( 0x04000, "gfx1", 0 )
- ROM_LOAD( "407_c01.6h", 0x00000, 0x2000, CRC(b68fd91d) SHA1(c267931d69794c292b7ebae5bc35ad842194683a) ) /* was listed as g16_1 */
- ROM_LOAD( "407_c02.7h", 0x02000, 0x2000, CRC(d9b167c6) SHA1(a2fd10bddfa4e95e9d49892737ace146209bfa2b) ) /* was listed as g15_2 */
-
- ROM_REGION( 0x10000, "gfx2", 0 )
- ROM_LOAD( "407_d05.16h", 0x00000, 0x4000, CRC(45109b29) SHA1(0794935b490497b21b99045c90231b7bac151d42) ) /* was listed as g04_5 */
- ROM_LOAD( "407_d06.17h", 0x04000, 0x4000, CRC(1d650790) SHA1(5f2a4983b20251c712358547a7c62c0331c6cb6f) ) /* was listed as g03_6 */
- ROM_LOAD( "407_d03.14h", 0x08000, 0x4000, CRC(e6aa945b) SHA1(c5757d16c28f5966fd04675c0c640ef9b6b76ca5) ) /* was listed as g06_3 */
- ROM_LOAD( "407_d04.15h", 0x0c000, 0x4000, CRC(cc187c22) SHA1(555ba18a9648681e5140b3fd84af16959ee5296d) ) /* was listed as g05_4 */
-
- ROM_REGION( 0x0020, "proms", 0 )
- ROM_LOAD( "407c10.1g", 0x00000, 0x0020, CRC(c283d71f) SHA1(10cd39f4e951ba6ca5610081c8c1fcd9d68b34d2) ) /* Color BPROM type is TBP18S030N or compatible */
-
- ROM_REGION( 0x2000, "vlm", 0 ) /* 8k for the VLM5030 data */
- ROM_LOAD( "407_c09.8b", 0x00000, 0x2000, CRC(f75a1539) SHA1(f139f6cb41351eb81ee47d777db03012aa5fadb1) ) /* was listed as a12_9 */
-ROM_END
-
-ROM_START( yiear2 )
- ROM_REGION( 0x10000, "maincpu", 0 )
- ROM_LOAD( "407_g08.10d", 0x08000, 0x4000, CRC(49ecd9dd) SHA1(15692029351e87837cc5a251947ff315fd723aa4) ) /* was listed as d12_8 */
- ROM_LOAD( "407_g07.8d", 0x0c000, 0x4000, CRC(bc2e1208) SHA1(a5a0c78ff4e02bd7da3eab3842dfe99956e74155) ) /* was listed as d14_7 */
-
- ROM_REGION( 0x04000, "gfx1", 0 )
- ROM_LOAD( "407_c01.6h", 0x00000, 0x2000, CRC(b68fd91d) SHA1(c267931d69794c292b7ebae5bc35ad842194683a) ) /* was listed as g16_1 */
- ROM_LOAD( "407_c02.7h", 0x02000, 0x2000, CRC(d9b167c6) SHA1(a2fd10bddfa4e95e9d49892737ace146209bfa2b) ) /* was listed as g15_2 */
-
- ROM_REGION( 0x10000, "gfx2", 0 )
- ROM_LOAD( "407_d05.16h", 0x00000, 0x4000, CRC(45109b29) SHA1(0794935b490497b21b99045c90231b7bac151d42) ) /* was listed as g04_5 */
- ROM_LOAD( "407_d06.17h", 0x04000, 0x4000, CRC(1d650790) SHA1(5f2a4983b20251c712358547a7c62c0331c6cb6f) ) /* was listed as g03_6 */
- ROM_LOAD( "407_d03.14h", 0x08000, 0x4000, CRC(e6aa945b) SHA1(c5757d16c28f5966fd04675c0c640ef9b6b76ca5) ) /* was listed as g06_3 */
- ROM_LOAD( "407_d04.15h", 0x0c000, 0x4000, CRC(cc187c22) SHA1(555ba18a9648681e5140b3fd84af16959ee5296d) ) /* was listed as g05_4 */
-
- ROM_REGION( 0x0020, "proms", 0 )
- ROM_LOAD( "407c10.1g", 0x00000, 0x0020, CRC(c283d71f) SHA1(10cd39f4e951ba6ca5610081c8c1fcd9d68b34d2) ) /* Color BPROM type is TBP18S030N or compatible */
-
- ROM_REGION( 0x2000, "vlm", 0 ) /* 8k for the VLM5030 data */
- ROM_LOAD( "407_c09.8b", 0x00000, 0x2000, CRC(f75a1539) SHA1(f139f6cb41351eb81ee47d777db03012aa5fadb1) ) /* was listed as a12_9 */
-ROM_END
-
-
-
-GAME( 1985, yiear, 0, yiear, yiear, yiear_state, empty_init, ROT0, "Konami", "Yie Ar Kung-Fu (program code I)", MACHINE_SUPPORTS_SAVE )
-GAME( 1985, yiear2, yiear, yiear, yiear, yiear_state, empty_init, ROT0, "Konami", "Yie Ar Kung-Fu (program code G)", MACHINE_SUPPORTS_SAVE )