From b1ff9438ec016e90f51d3d9e485f6029120015d4 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Fri, 6 Oct 2017 18:06:34 +0200 Subject: New not working machine -------------------------------------- Ton Puu Mahjong [ShouTime, The Dumping Union] This is only a skeleton driver. ShouTime will keep the PCB only for a few more days, so if someone has the time to have a look.. (nw) --- scripts/target/mame/arcade.lua | 1 + src/mame/arcade.flt | 1 + src/mame/drivers/anes.cpp | 153 +++++++++++++++++++++++++++++++++++++++++ src/mame/mame.lst | 3 + 4 files changed, 158 insertions(+) create mode 100644 src/mame/drivers/anes.cpp diff --git a/scripts/target/mame/arcade.lua b/scripts/target/mame/arcade.lua index 0fbd675e71d..556ec00a181 100644 --- a/scripts/target/mame/arcade.lua +++ b/scripts/target/mame/arcade.lua @@ -4414,6 +4414,7 @@ files { MAME_DIR .. "src/mame/includes/amspdwy.h", MAME_DIR .. "src/mame/video/amspdwy.cpp", MAME_DIR .. "src/mame/drivers/amusco.cpp", + MAME_DIR .. "src/mame/drivers/anes.cpp", MAME_DIR .. "src/mame/drivers/arachnid.cpp", MAME_DIR .. "src/mame/drivers/artmagic.cpp", MAME_DIR .. "src/mame/includes/artmagic.h", diff --git a/src/mame/arcade.flt b/src/mame/arcade.flt index ac4eeff8dcf..36f4bb519ab 100644 --- a/src/mame/arcade.flt +++ b/src/mame/arcade.flt @@ -46,6 +46,7 @@ amerihok.cpp ampoker2.cpp amspdwy.cpp amusco.cpp +anes.cpp angelkds.cpp appoooh.cpp aquarium.cpp diff --git a/src/mame/drivers/anes.cpp b/src/mame/drivers/anes.cpp new file mode 100644 index 00000000000..206aeff43e8 --- /dev/null +++ b/src/mame/drivers/anes.cpp @@ -0,0 +1,153 @@ +// license:BSD-3-Clause +// copyright-holders:Ivan Vangelista + +/* +TON PUU MAHJONG (Japan) by ANES + +- 1x Z0840008PSC Z80 CPU +- 1x 16.000 XTAL near the Z80 +- 1x YM2413 sound chip +- 1x 3.579545 XTAL near the YM2413 +- 1x Xilinx XC7354 CPLD +- 2x ISSI IS61C64AH 8k x8 SRAM +- 1x HM6265LK-70 +- 1x unknown 160 pin device labeled "ANES ORIGINAL SEAL NO. A199." +- 4x bank of 8 dip-switches + +Sanma - 3nin-uchi Mahjong is another ANES game confirmed running on the same hardware. +*/ + +#include "emu.h" +#include "screen.h" +#include "speaker.h" +#include "cpu/z80/z80.h" +#include "sound/ym2413.h" + +class anes_state : public driver_device +{ +public: + anes_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag) + { + } + + u32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + +protected: + virtual void machine_start() override; + +private: +}; + +static ADDRESS_MAP_START( prg_map, AS_PROGRAM, 8, anes_state ) + AM_RANGE(0x0000, 0x7fff) AM_ROM +ADDRESS_MAP_END + +static ADDRESS_MAP_START( io_map, AS_IO, 8, anes_state ) + ADDRESS_MAP_GLOBAL_MASK(0xff) +ADDRESS_MAP_END + + +static INPUT_PORTS_START( anes ) + PORT_START("IN") + PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN ) + + PORT_START("SW1") + PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW1:1") + PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW1:2") + PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW1:3") + PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW1:4") + PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW1:5") + PORT_DIPUNKNOWN_DIPLOC(0x20, 0x20, "SW1:6") + PORT_DIPUNKNOWN_DIPLOC(0x40, 0x40, "SW1:7") + PORT_DIPUNKNOWN_DIPLOC(0x80, 0x80, "SW1:8") + + PORT_START("SW2") + PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW2:1") + PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW2:2") + PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW2:3") + PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW2:4") + PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW2:5") + PORT_DIPUNKNOWN_DIPLOC(0x20, 0x20, "SW2:6") + PORT_DIPUNKNOWN_DIPLOC(0x40, 0x40, "SW2:7") + PORT_DIPUNKNOWN_DIPLOC(0x80, 0x80, "SW2:8") + + PORT_START("SW3") + PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW3:1") + PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW3:2") + PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW3:3") + PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW3:4") + PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW3:5") + PORT_DIPUNKNOWN_DIPLOC(0x20, 0x20, "SW3:6") + PORT_DIPUNKNOWN_DIPLOC(0x40, 0x40, "SW3:7") + PORT_DIPUNKNOWN_DIPLOC(0x80, 0x80, "SW3:8") + + PORT_START("SW4") + PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW4:1") + PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW4:2") + PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW4:3") + PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW4:4") + PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW4:5") + PORT_DIPUNKNOWN_DIPLOC(0x20, 0x20, "SW4:6") + PORT_DIPUNKNOWN_DIPLOC(0x40, 0x40, "SW4:7") + PORT_DIPUNKNOWN_DIPLOC(0x80, 0x80, "SW4:8") +INPUT_PORTS_END + + +void anes_state::machine_start() +{ +} + +u32 anes_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) +{ + return 0; +} + + +static const gfx_layout gfx_layout = +{ +}; + + +static GFXDECODE_START( anes ) + GFXDECODE_ENTRY( "gfx1", 0, gfx_layout, 0x0, 16) +GFXDECODE_END + + +static MACHINE_CONFIG_START( anes ) + /* basic machine hardware */ + MCFG_CPU_ADD("maincpu", Z80, XTAL_16MHz / 2) // Z0840008PSC + MCFG_CPU_PROGRAM_MAP(prg_map) + MCFG_CPU_IO_MAP(io_map) + + // all wrong + MCFG_SCREEN_ADD("screen", RASTER) + MCFG_SCREEN_REFRESH_RATE(60) + MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) + MCFG_SCREEN_SIZE(64*8, 32*8) + MCFG_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) + MCFG_SCREEN_UPDATE_DRIVER(anes_state, screen_update) + MCFG_SCREEN_PALETTE("palette") + + MCFG_PALETTE_ADD("palette", 0x100) + + MCFG_GFXDECODE_ADD("gfxdecode", "palette", anes) + + /* sound hardware */ + MCFG_SPEAKER_STANDARD_MONO("mono") + MCFG_SOUND_ADD("ym", YM2413, XTAL_3_579545MHz) + MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) +MACHINE_CONFIG_END + + +ROM_START( tonpuu ) + ROM_REGION(0x20000, "maincpu", 0) + ROM_LOAD( "201.u32", 0x00000, 0x20000, CRC(ace857bb) SHA1(3f65976883c0c514abf73eeed9223ca52a2be410) ) // 27C010 + + ROM_REGION(0x100000, "gfx1", 0) + ROM_LOAD( "202.u33", 0x00000, 0x80000, CRC(4d62a358) SHA1(6edff8e031272cd5a466d9767454093870a0f90a) ) // 27C4001 + ROM_LOAD( "203.u34", 0x80000, 0x80000, CRC(a6068528) SHA1(c988bd1fc2f91befa9d0d39995ba98ef86b5d854) ) // 27C4001 +ROM_END + + +GAME( 200?, tonpuu, 0, anes, anes, anes_state, 0, ROT0, "ANES", "Ton Puu Mahjong", MACHINE_IS_SKELETON ) diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 360723d9641..bf2f16edb11 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -1212,6 +1212,9 @@ draw88pkr // 1988, BTE, Inc. @source:amust.cpp amust // +@source:anes.cpp +tonpuu // 200?, ANES + @source:angelkds.cpp angelkds // 833-6599 (c) 1988 Sega / Nasco? spcpostn // (c) 1986 Sega / Nasco" -- cgit v1.2.3