From c5d5251109bb2a859683aca786e99d2b756463e9 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Sun, 6 Feb 2022 17:05:15 +0100 Subject: New machines marked as NOT_WORKING ---------------------------------- Road Star [Jorge Silva] --- src/mame/drivers/sanremo.cpp | 57 +++++++++++++++++++++++++++++++++++++------- src/mame/mame.lst | 1 + 2 files changed, 49 insertions(+), 9 deletions(-) diff --git a/src/mame/drivers/sanremo.cpp b/src/mame/drivers/sanremo.cpp index 512d2cc79a4..8a4baee37f4 100644 --- a/src/mame/drivers/sanremo.cpp +++ b/src/mame/drivers/sanremo.cpp @@ -103,6 +103,8 @@ #include "sanremo.lh" +namespace { + #define MASTER_CLOCK XTAL(18'000'000) #define CPU_CLOCK MASTER_CLOCK/3 @@ -121,6 +123,7 @@ public: m_lamps(*this, "lamp%u", 0U) { } + void roadstar(machine_config &config); void sanremo(machine_config &config); protected: @@ -142,7 +145,8 @@ private: void lamps_w(uint8_t data); void sanremo_palette(palette_device &palette) const; uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); - void sanremo_map(address_map &map); + void number1_map(address_map &map); + void roadstar_map(address_map &map); void sanremo_portmap(address_map &map); }; @@ -233,13 +237,20 @@ void sanremo_state::banksel_w(uint8_t data) * Memory map information * *********************************************/ -void sanremo_state::sanremo_map(address_map &map) +void sanremo_state::number1_map(address_map &map) { map(0x0000, 0x7fff).rom(); map(0x8000, 0x87ff).ram().w(FUNC(sanremo_state::videoram_w)).share("videoram"); // 2x 76C28 (1x accessed directly, latched bank written to other like subsino etc.) map(0xc000, 0xc7ff).ram().share("nvram"); // battery backed UM6116 } +void sanremo_state::roadstar_map(address_map &map) +{ + map(0x0000, 0x7fff).rom(); + map(0x8000, 0x87ff).ram().w(FUNC(sanremo_state::videoram_w)).share("videoram"); + map(0xd000, 0xd7ff).ram().share("nvram"); +} + void sanremo_state::sanremo_portmap(address_map &map) { map.global_mask(0xff); @@ -360,7 +371,7 @@ void sanremo_state::sanremo(machine_config &config) { /* basic machine hardware */ Z80(config, m_maincpu, CPU_CLOCK); - m_maincpu->set_addrmap(AS_PROGRAM, &sanremo_state::sanremo_map); + m_maincpu->set_addrmap(AS_PROGRAM, &sanremo_state::number1_map); m_maincpu->set_addrmap(AS_IO, &sanremo_state::sanremo_portmap); m_maincpu->set_vblank_int("screen", FUNC(sanremo_state::irq0_line_hold)); @@ -393,6 +404,13 @@ void sanremo_state::sanremo(machine_config &config) ay8910.add_route(ALL_OUTPUTS, "mono", 1.00); } +void sanremo_state::roadstar(machine_config &config) +{ + sanremo(config); + + m_maincpu->set_addrmap(AS_PROGRAM, &sanremo_state::roadstar_map); +} + /********************************************* * Rom Load * @@ -411,16 +429,37 @@ ROM_START( number1 ) ROM_REGION( 0x0800, "nvram", 0 ) /* default NVRAM */ ROM_LOAD( "number1_nvram.bin", 0x0000, 0x0800, CRC(4ece7b39) SHA1(49815571d75a39ab67d26691f902dfbd4e05feb4) ) - ROM_REGION( 0x0600, "plds", 0 ) - ROM_LOAD( "palce1.bin", 0x0000, 0x0104, NO_DUMP ) /* PALCE is read protected */ - ROM_LOAD( "palce2.bin", 0x0200, 0x0104, NO_DUMP ) /* PALCE is read protected */ - ROM_LOAD( "palce3.bin", 0x0400, 0x0104, NO_DUMP ) /* PALCE is read protected */ + ROM_REGION( 0x0800, "plds", 0 ) + ROM_LOAD( "palce1.ic4", 0x0000, 0x0104, NO_DUMP ) /* PALCE is read protected */ + ROM_LOAD( "palce2.ic24", 0x0200, 0x0104, NO_DUMP ) /* PALCE is read protected */ + ROM_LOAD( "palce3.ic25", 0x0400, 0x0104, NO_DUMP ) /* PALCE is read protected */ + ROM_LOAD( "palce2.ic31", 0x0600, 0x0104, NO_DUMP ) /* PALCE is read protected */ ROM_END +ROM_START( roadstar ) + ROM_REGION( 0x10000, "maincpu", 0 ) + ROM_LOAD( "ic26", 0x0000, 0x8000, CRC(a5b85c28) SHA1(7f62ab82be18a094834529b9600867befa090782) ) + + ROM_REGION( 0x40000, "gfx", 0 ) + ROM_LOAD( "rp i.ic30", 0x00000, 0x8000, CRC(13a47975) SHA1(d2c210afb44e2615fe216a913172851f723660ab) ) // I + ROM_LOAD( "rp b.ic27", 0x10000, 0x8000, CRC(990df77e) SHA1(78755b8fd3a0b5f8453a1427b960844e1428cff7) ) // B + ROM_LOAD( "rp g.ic28", 0x20000, 0x8000, CRC(a836434c) SHA1(f8960591589932b1998d9b1c3816bc1409cabbe2) ) // G + ROM_LOAD( "rp r.ic29", 0x30000, 0x8000, CRC(6994ad22) SHA1(8288d50aa4db5c7da064a3932a0fd5b6e4070d8f) ) // R + + ROM_REGION( 0x0800, "plds", 0 ) + ROM_LOAD( "palce1.ic4", 0x0000, 0x0104, NO_DUMP ) + ROM_LOAD( "palce2.ic24", 0x0200, 0x0104, NO_DUMP ) + ROM_LOAD( "palce3.ic25", 0x0400, 0x0104, NO_DUMP ) + ROM_LOAD( "palce2.ic31", 0x0600, 0x0104, NO_DUMP ) +ROM_END + +} // anonymous namespace + /********************************************* * Game Drivers * *********************************************/ -// YEAR NAME PARENT MACHINE INPUT CLASS INIT ROT COMPANY FULLNAME FLAGS LAYOUT -GAMEL( 1996, number1, 0, sanremo, number1, sanremo_state, empty_init, ROT0, "San Remo Games", "Number One", MACHINE_SUPPORTS_SAVE, layout_sanremo ) +// YEAR NAME PARENT MACHINE INPUT CLASS INIT ROT COMPANY FULLNAME FLAGS LAYOUT +GAMEL( 1996, number1, 0, sanremo, number1, sanremo_state, empty_init, ROT0, "San Remo Games", "Number One", MACHINE_SUPPORTS_SAVE, layout_sanremo ) +GAMEL( 199?, roadstar, 0, roadstar, number1, sanremo_state, empty_init, ROT0, "San Remo Games", "Road Star", MACHINE_NOT_WORKING | MACHINE_SUPPORTS_SAVE, layout_sanremo ) // different I/O map? or does it need special init? diff --git a/src/mame/mame.lst b/src/mame/mame.lst index edab228bfe0..3a720a5be57 100644 --- a/src/mame/mame.lst +++ b/src/mame/mame.lst @@ -37298,6 +37298,7 @@ sanremmg // San Remo / Elsy @source:sanremo.cpp number1 // 1996 San Remo Games +roadstar // 199? San Remo Games @source:sansa_fuze.cpp sanfuze2 // -- cgit v1.2.3