rf51w14cg.cpp: Fixed checked-in Windows line endings. (#9722)

This commit is contained in:
couriersud 2022-05-08 19:22:35 +02:00 committed by GitHub
parent c0c87e98de
commit ec326fa8b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,138 +1,138 @@
// license:BSD-3-Clause // license:BSD-3-Clause
// copyright-holders: // copyright-holders:
/****************************************************************************** /******************************************************************************
Skeleton driver for Recreativos Franco "RF51W14-CG". Skeleton driver for Recreativos Franco "RF51W14-CG".
"RF51W14-CG" is the legal registry name, the game commercial name is unknown. "RF51W14-CG" is the legal registry name, the game commercial name is unknown.
TODO: TODO:
- Everything - Everything
________________________________________________________________ ________________________________________________________________
| ___J16_____ ___J17____ __J18__ _______________________ | | ___J16_____ ___J17____ __J18__ _______________________ |
| | ······ · | | ···· ·· | | ·· · | | :::::::::::::::::::: | | | | ······ · | | ···· ·· | | ·· · | | :::::::::::::::::::: | |
| ____ | | ____ |
| __ __________ |___| ____ __________________ : <- JMP4 | __ __________ |___| ____ __________________ : <- JMP4
|| | | PIA 5 | |___| | RAM | | || | | PIA 5 | |___| | RAM | |
||J| | OKI | ____ | M48T08/M48T18 | | ||J| | OKI | ____ | M48T08/M48T18 | |
||1| | 82C55A | |___| |_________________| | ||1| | 82C55A | |___| |_________________| |
||5| |_________| __________________ : <- JMP3 ||5| |_________| __________________ : <- JMP3
||_| | LOW | : <- JMP2 ||_| | LOW | : <- JMP2
| __ __________ ____________ | | | | __ __________ ____________ | | |
||J| | PIA 4 | XTAL | Intel | |_________________| | ||J| | PIA 4 | XTAL | Intel | |_________________| |
||11 | OKI | 32.000 |M80C188XL20| __________________ : <- JMP1 ||11 | OKI | 32.000 |M80C188XL20| __________________ : <- JMP1
| __ | 82C55A | MHz | | | HIGH |__ | | __ | 82C55A | MHz | | | HIGH |__ |
||J| |_________| | | | ||J|| ||J| |_________| | | | ||J||
||1| |___________| |_________________||1|| ||1| |___________| |_________________||1||
||4| __________ ____ |9|| ||4| __________ ____ |9||
| __ | PIA 6 | ____ ____ ______ |___| |_|| | __ | PIA 6 | ____ ____ ______ |___| |_||
||J| | OKI | HC573A HC573A |OKI | ____ __ | ||J| | OKI | HC573A HC573A |OKI | ____ __ |
||6| | 82C55A | 82C51A| |___| |J|| ||6| | 82C55A | 82C51A| |___| |J||
||_| |_________| __________________ ____ |8|| ||_| |_________| __________________ ____ |8||
| __ _______ | SONIDO 2 | |___| |_|| | __ _______ | SONIDO 2 | |___| |_||
|| |SW3->DIPSx4| | | __ | || |SW3->DIPSx4| | | __ |
||J| __________ |________________| |J|| ||J| __________ |________________| |J||
||7| | PIA 3 | __________________ __________ |9|| ||7| | PIA 3 | __________________ __________ |9||
||_| | OKI | | SONIDO 1 | |ULN2803A_| |_|| ||_| | OKI | | SONIDO 1 | |ULN2803A_| |_||
| __ | 82C55A | | | :: ________ __ | | __ | 82C55A | | | :: ________ __ |
|| | |_________| |________________| JMP8 |74HC238E| |J|| || | |_________| |________________| JMP8 |74HC238E| |J||
||J| _____ |5|| ||J| _____ |5||
||4| __________ |____| __ | ||4| __________ |____| __ |
|| | | PIA 1 | ___________ ......<-JMP10 |J|| || | | PIA 1 | ___________ ......<-JMP10 |J||
||_| | OKI | | OKI | |1|| ||_| | OKI | | OKI | |1||
| __ | 82C55A | | M6376 | XTAL 9.8304 |2|| | __ | 82C55A | | M6376 | XTAL 9.8304 |2||
||J| |_________| |__________| MHz __ | ||J| |_________| |__________| MHz __ |
||2| _____SW2__ ____JMP7 RS232-2 RS232-1 ____ |J|| ||2| _____SW2__ ____JMP7 RS232-2 RS232-1 ____ |J||
||0| |_DIPSx8__| HC4040 : :::: :::: |___| |1|| ||0| |_DIPSx8__| HC4040 : :::: :::: |___| |1||
||_| __________ ____ ______ ____ ____ |0|| ||_| __________ ____ ______ ____ ____ |0||
| __ | PIA 2 | |___| |OKI | |___| |___| __ | | __ | PIA 2 | |___| |OKI | |___| |___| __ |
||J| | OKI | ____ 82C51A| ____ |J|| ||J| | OKI | ____ 82C51A| ____ |J||
||3| | 82C55A | |___| _ |___| |1|| ||3| | 82C55A | |___| _ |___| |1||
|| | |_________| VOLUMEN->(_) _________ |3|| || | |_________| VOLUMEN->(_) _________ |3||
||_| |_LM380N_| |_|| ||_| |_LM380N_| |_||
| _______ ____________ ____________ ______ | | _______ ____________ ____________ ______ |
|SW1->DIPSx4| |___________| |___________| |_____| | |SW1->DIPSx4| |___________| |___________| |_____| |
|_______________________________________________________________| |_______________________________________________________________|
JPM7 = CLK/128 / CLK/64 JPM7 = CLK/128 / CLK/64
*******************************************************************************/ *******************************************************************************/
#include "emu.h" #include "emu.h"
#include "cpu/i86/i186.h" #include "cpu/i86/i186.h"
#include "sound/okim6376.h" #include "sound/okim6376.h"
#include "speaker.h" #include "speaker.h"
namespace namespace
{ {
class rf51w14cg_state : public driver_device class rf51w14cg_state : public driver_device
{ {
public: public:
rf51w14cg_state(const machine_config &mconfig, device_type type, const char *tag) rf51w14cg_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) : driver_device(mconfig, type, tag)
, m_maincpu(*this, "maincpu") , m_maincpu(*this, "maincpu")
, m_okim6376(*this, "oki") , m_okim6376(*this, "oki")
{ {
} }
void rf51w14cg(machine_config &config); void rf51w14cg(machine_config &config);
protected: protected:
required_device <cpu_device> m_maincpu; required_device <cpu_device> m_maincpu;
required_device <okim6376_device> m_okim6376; required_device <okim6376_device> m_okim6376;
}; };
static INPUT_PORTS_START( rf51w14cg ) static INPUT_PORTS_START( rf51w14cg )
PORT_START("DSW1") PORT_START("DSW1")
PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW1:1") PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW1:1")
PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW1:2") PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW1:2")
PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW1:3") PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW1:3")
PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW1:4") PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW1:4")
PORT_START("DSW2") PORT_START("DSW2")
PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW1:1") PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW1:1")
PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW1:2") PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW1:2")
PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW1:3") PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW1:3")
PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW1:4") PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW1:4")
PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW1:5") PORT_DIPUNKNOWN_DIPLOC(0x10, 0x10, "SW1:5")
PORT_DIPUNKNOWN_DIPLOC(0x20, 0x20, "SW1:6") PORT_DIPUNKNOWN_DIPLOC(0x20, 0x20, "SW1:6")
PORT_DIPUNKNOWN_DIPLOC(0x40, 0x40, "SW1:7") PORT_DIPUNKNOWN_DIPLOC(0x40, 0x40, "SW1:7")
PORT_DIPUNKNOWN_DIPLOC(0x80, 0x80, "SW1:8") PORT_DIPUNKNOWN_DIPLOC(0x80, 0x80, "SW1:8")
PORT_START("DSW3") PORT_START("DSW3")
PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW1:1") PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW1:1")
PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW1:2") PORT_DIPUNKNOWN_DIPLOC(0x02, 0x02, "SW1:2")
PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW1:3") PORT_DIPUNKNOWN_DIPLOC(0x04, 0x04, "SW1:3")
PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW1:4") PORT_DIPUNKNOWN_DIPLOC(0x08, 0x08, "SW1:4")
INPUT_PORTS_END INPUT_PORTS_END
void rf51w14cg_state::rf51w14cg(machine_config &config) void rf51w14cg_state::rf51w14cg(machine_config &config)
{ {
I80188(config, m_maincpu, 32_MHz_XTAL / 2); // Intel N80C188XL-20, guess divisor I80188(config, m_maincpu, 32_MHz_XTAL / 2); // Intel N80C188XL-20, guess divisor
SPEAKER(config, "mono").front_center(); SPEAKER(config, "mono").front_center();
OKIM6376(config, m_okim6376, XTAL(9'830'400)/64).add_route(ALL_OUTPUTS, "mono", 1.0); // Frecuency divisor as per JMP7 OKIM6376(config, m_okim6376, XTAL(9'830'400)/64).add_route(ALL_OUTPUTS, "mono", 1.0); // Frecuency divisor as per JMP7
} }
// The board was found with the program ROMs sockets unpopulated and the M48T08 with the battery dead // The board was found with the program ROMs sockets unpopulated and the M48T08 with the battery dead
ROM_START( rf51w14cg ) ROM_START( rf51w14cg )
ROM_REGION( 0x100000, "maincpu", 0 ) ROM_REGION( 0x100000, "maincpu", 0 )
ROM_LOAD( "high.bin", 0x00000, 0x80000, NO_DUMP ) ROM_LOAD( "high.bin", 0x00000, 0x80000, NO_DUMP )
ROM_LOAD( "low.bin", 0x80000, 0x80000, NO_DUMP ) ROM_LOAD( "low.bin", 0x80000, 0x80000, NO_DUMP )
ROM_REGION( 0x100000, "oki", 0 ) ROM_REGION( 0x100000, "oki", 0 )
ROM_LOAD( "recreativos_franco_sonido-1_321dabf_01083c.u3", 0x00000, 0x80000, CRC(bd9bb391) SHA1(f08da81544e6b8c518634d081bf68d862b90c099) ) ROM_LOAD( "recreativos_franco_sonido-1_321dabf_01083c.u3", 0x00000, 0x80000, CRC(bd9bb391) SHA1(f08da81544e6b8c518634d081bf68d862b90c099) )
ROM_LOAD( "recreativos_franco_sonido-2_7c8bced_01083d.u4", 0x80000, 0x80000, CRC(cf8e7957) SHA1(5d30d7f15c1690b819e467fc308f12f97577b906) ) ROM_LOAD( "recreativos_franco_sonido-2_7c8bced_01083d.u4", 0x80000, 0x80000, CRC(cf8e7957) SHA1(5d30d7f15c1690b819e467fc308f12f97577b906) )
ROM_REGION( 0x2000, "nvram", 0 ) ROM_REGION( 0x2000, "nvram", 0 )
ROM_LOAD( "recreativos_franco_mod_rf51w14-cg_2003_m48t08.bin", 0x0000, 0x2000, NO_DUMP ) ROM_LOAD( "recreativos_franco_mod_rf51w14-cg_2003_m48t08.bin", 0x0000, 0x2000, NO_DUMP )
ROM_END ROM_END
} // anonymous namespace } // anonymous namespace
// YEAR NAME PARENT MACHINE INPUT CLASS INIT ROT COMPANY FULLNAME FLAGS // YEAR NAME PARENT MACHINE INPUT CLASS INIT ROT COMPANY FULLNAME FLAGS
GAME( 2003, rf51w14cg, 0, rf51w14cg, rf51w14cg, rf51w14cg_state, empty_init, ROT0, "Recreativos Franco", "unknown Recreativos Franco slot machine (model RF51W14-CG)", MACHINE_IS_SKELETON_MECHANICAL ) GAME( 2003, rf51w14cg, 0, rf51w14cg, rf51w14cg, rf51w14cg_state, empty_init, ROT0, "Recreativos Franco", "unknown Recreativos Franco slot machine (model RF51W14-CG)", MACHINE_IS_SKELETON_MECHANICAL )