From 07b62ad614ee76bc6d61d7054aa7cbbfdf2a1d13 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Mon, 13 May 2024 18:33:32 +0200 Subject: [PATCH] New systems marked not working ------------------------------ Clie PEG-T650C [Guru] --- src/mame/capcom/lwings.cpp | 4 +- src/mame/mame.lst | 3 ++ src/mame/sony/clie_db.cpp | 86 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 src/mame/sony/clie_db.cpp diff --git a/src/mame/capcom/lwings.cpp b/src/mame/capcom/lwings.cpp index b40c2006810..f2486ccea27 100644 --- a/src/mame/capcom/lwings.cpp +++ b/src/mame/capcom/lwings.cpp @@ -1685,7 +1685,7 @@ For the Trojan sets, Capcom labeled all program ROMs as TB 04, TB 05 & TB 06. S */ -ROM_START( trojan ) // One of these sets is rev A - need to verify +ROM_START( trojan ) // This set is likely rev A - need to verify ROM_REGION( 0x20000, "maincpu", 0 ) /* 64k for code + 3*16k for the banked ROMs images */ ROM_LOAD( "tb_04.10n", 0x00000, 0x8000, CRC(c1bbeb4e) SHA1(248ae4184d25b642b282ef44ac729c0f7952834d) ) ROM_LOAD( "tb_06.13n", 0x10000, 0x8000, CRC(d49592ef) SHA1(b538bac3c73f35474cc6745a4e4dc3ab6217eaac) ) @@ -1732,7 +1732,7 @@ ROM_START( trojan ) // One of these sets is rev A - need to verify ROM_LOAD( "tbb-1.1e", 0x0100, 0x0100, CRC(5052fa9d) SHA1(8cd240f4795a7ae76499573c09069dba37182be2) ) /* priority (not used) */ ROM_END -ROM_START( trojana ) // One of these sets is rev A - need to verify +ROM_START( trojana ) ROM_REGION( 0x20000, "maincpu", 0 ) /* 64k for code + 3*16k for the banked ROMs images */ ROM_LOAD( "tb_04.10n", 0x00000, 0x8000, CRC(0113a551) SHA1(933ebaf73fb70772fc2cf2b9143bf00757505772) ) // SLDH ROM_LOAD( "tb_06.13n", 0x10000, 0x8000, CRC(aa127a5b) SHA1(0b7115c2ffe8456ef463e22d68e03a2e396abf92) ) // SLDH diff --git a/src/mame/mame.lst b/src/mame/mame.lst index 2a94a657a82..6dff4dbff0b 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -42507,6 +42507,9 @@ uvw1800 // 199? Sony Betacam-SP UVW-1800 @source:sony/bvm.cpp bvm20f1e // +@source:sony/clie_db.cpp +t650c // + @source:sony/dfs500.cpp dfs500 // 1994 Sony DFS-500 Video Mixer diff --git a/src/mame/sony/clie_db.cpp b/src/mame/sony/clie_db.cpp new file mode 100644 index 00000000000..40e9a7cea02 --- /dev/null +++ b/src/mame/sony/clie_db.cpp @@ -0,0 +1,86 @@ +// license:BSD-3-Clause +// copyright-holders: + +/* +Skeleton driver for Sony Clie PDAs running on Motorola Dragonball CPU. +Later series ran on ARM based SoCs and should go in a separate driver. + +Sony Clie PEG T650C main components (PCB YSX-1230 MP-43): +- Motorola Super VZ DragonBall MC68SZ328AVH66 +- MediaQ MQ1100-CBC +- Sony CXD3523AGG +- Mosel-Vitelic V54C3128164VAT7 +- Sony CXD1859GA +*/ + +#include "emu.h" + +#include "machine/mc68328.h" + +#include "screen.h" +#include "speaker.h" + + +namespace { + +class clie_db_state : public driver_device +{ +public: + clie_db_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu") + { } + + void t650c(machine_config &config); + +private: + required_device m_maincpu; + + void program_map(address_map &map); + + uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); +}; + + +uint32_t clie_db_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) +{ + return 0; +} + + +void clie_db_state::program_map(address_map &map) +{ + map(0x00000000, 0x007fffff).rom(); +} + + +static INPUT_PORTS_START( t650c ) +INPUT_PORTS_END + +void clie_db_state::t650c(machine_config &config) +{ + MC68EZ328(config, m_maincpu, 66'000'000); // unknown clock, 66 MHz according to flyer + m_maincpu->set_addrmap(AS_PROGRAM, &clie_db_state::program_map); + + screen_device&screen(SCREEN(config, "screen", SCREEN_TYPE_LCD)); + screen.set_refresh_hz(60); + screen.set_size(320, 320); // 320 x 320 according to flyer + screen.set_visarea(0, 320 - 1, 0, 320 - 1); + screen.set_screen_update(FUNC(clie_db_state::screen_update)); + + // TODO: MediaQ MQ1100-CB LCD controller + + SPEAKER(config, "speaker").front_center(); + // TODO: CXD1859GA audio chip +} + + +ROM_START( t650c ) + ROM_REGION16_BE( 0x800000, "maincpu", 0 ) + ROM_LOAD16_WORD_SWAP( "sony_clie_peg_t650c_flashrom.bin", 0x000000, 0x800000, CRC(60855a64) SHA1(e08350e64438c62401041aaa335def08aa0decb7) ) // TODO: factory-reset +ROM_END + +} // anonymous namespace + + +SYST( 2002, t650c, 0, 0, t650c, t650c, clie_db_state, empty_init, "Sony", "Clie PEG-T650C", MACHINE_IS_SKELETON )