-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a skeleton for a new Recreativos Franco slot game and move all RF drivers to their own folder #12313
Merged
Merged
Add a skeleton for a new Recreativos Franco slot game and move all RF drivers to their own folder #12313
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fb63b27
Add a skeleton for a new Recreativos Franco slot game and move all RF…
clawgrip 8c64356
Forgot to add "pia4"
clawgrip b3fef99
Typo
clawgrip d333b58
Rename 'm_okim6376' as 'm_oki'
clawgrip ae9a833
Typo
clawgrip ebafee7
i188 xtal is 24 MHz
clawgrip File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
// license:BSD-3-Clause | ||
// copyright-holders: | ||
/************************************************************************************************** | ||
|
||
Skeleton driver for Recreativos Franco slot games on PCB "53396607". | ||
__________________________ _________________ __________________________ | ||
_________| J1 |________| J5 |________| J2 |_____ | ||
| |_________________________| |________________| |_________________________| | | ||
| | | ||
| 4116R-1 4116R-1 4116R-1 4116R-1 ___ ULN2803A ULN2803A ___ | | ||
| ___ | | ___ | | ___ | | ___ ___ ___ ___ ___ | | | | | | ___ | | | | | | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ||
| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| | | ||
| 74HC4052D 74HC4052D 74HC4052D 5xH11AA1 ___ ULN2803A 74HC4052D ULN2803A| | ||
| ___ ___ ___ ___ | | | | ||
| | | | | | | | | |__<-74HC4052D | | ||
| _______ _______ |__| |__| |__| |__| _______ _______ _______ _______ | | ||
||OKI | |OKI | ___ ___ ___ ___<- 8x |OKI | |OKI | |OKI | |OKI | | | ||
||M82C55A |M82C55A | | | | | | | | H1N202CBN |M82C55A |M82C55A |M82C55A |M82C55A | | ||
||______| |______| |__| |__| |__| |__| |______| |______| |______| |______| | | ||
| ___ ___ ___ ___ | | ||
||SW1 |SW2 |SW4 |SW3 | | ||
||__| | | _____ _____ _____ _____ _____ ___ | | | | | | ||
| |__| |OKI | |OKI | |OKI | |OKI | |OKI | ·· ·· | | |__| |__| | | ||
| __________ M82C51A M82C51A M82C51A M82C51A M82C51A JMP11 JMP12 |__<-74HC139M | | ||
| Xtal N80C188XL20 .. ___ .. ___ .. ___ .. ___ .. ___ __________ | | ||
| 24 MHz | | 74HC4024D 74HC4024D 74HC4024D 74HC4024D 74HC4024D| OKI | ___ ___ | | ||
| | | .. |__| .. |__| .. |__| .. |__| .. |__| | M6379 | | | | <-LM380N | | ||
| ___ ___ |_________| .. .. .. .. .. |_________| H11AA1 |__| | | ||
74LS20-> || | JMP3 JMP4 JMP8 JMP9 JMP10 ___ | | ||
||__||__| JMP1->.. .. .. _____ _____ ___ |SW5 JMP5 .. JMP6 .. JMP7 .. | | ||
| 74LS04 .. JMP2 JMP13 |CS82C59A |CS82C59A |HC138A | | .. .. .. | | ||
| ___ ___ _____ _____ _____ |____| |____| |__| |__| _____ _____ _____ | | ||
| | | | | |EPROM |EPROM DS1644 Xtal _______ |U39 | |U40 | |U41 | | | ||
| | | | | |H | |L | | | ___2.4576 ___ |OKI | |EMPTY |EMPTY |EMPTY | | ||
| |__| |__| | | | | | | | | MHz | | |M82C55A | | | | | | | | ||
2x74HC573AN | | | | | | |__| |__| · · |______| | | | | | | | | ||
| |____| |____| |____|74HC4060 74HC74 J3 J4 |____| |____| |____| | | ||
|_________________________________________________test_test___________________________________________| | ||
|
||
-JMP3, JMP4, JMP8, JMP9, and JMP10 are for setting up the baud rate of each OKI M82C51A USART (you can | ||
configuse 1200, 2400, 4800, 9600, 19200 or 38400 bps. | ||
|
||
****************************************************************************************/ | ||
|
||
#include "emu.h" | ||
#include "cpu/i86/i186.h" | ||
#include "machine/i8255.h" | ||
#include "machine/pic8259.h" | ||
#include "sound/okim6376.h" | ||
#include "speaker.h" | ||
|
||
namespace { | ||
|
||
class rfjailbrk_state : public driver_device | ||
{ | ||
public: | ||
rfjailbrk_state(const machine_config &mconfig, device_type type, const char *tag) | ||
: driver_device(mconfig, type, tag) | ||
, m_maincpu(*this, "maincpu") | ||
, m_okim6376(*this, "oki") | ||
{ | ||
} | ||
|
||
void rfjailbrk(machine_config &config); | ||
|
||
protected: | ||
virtual void machine_start() override; | ||
|
||
private: | ||
required_device<i80188_cpu_device> m_maincpu; | ||
required_device<okim6376_device> m_okim6376; | ||
}; | ||
|
||
void rfjailbrk_state::machine_start() | ||
{ | ||
} | ||
|
||
static INPUT_PORTS_START(rfjailbrk) | ||
INPUT_PORTS_END | ||
|
||
void rfjailbrk_state::rfjailbrk(machine_config &config) | ||
{ | ||
I80188(config, m_maincpu, 20.0000_MHz_XTAL); // Intel N80C188XL20 | ||
|
||
// Ordered as found on the PCB | ||
I8255A(config, "pia2"); // OKI M82C55A-2V | ||
I8255A(config, "pia1"); // OKI M82C55A-2V | ||
I8255A(config, "pia7"); // OKI M82C55A-2V | ||
I8255A(config, "pia3"); // OKI M82C55A-2V | ||
I8255A(config, "pia5"); // OKI M82C55A-2V | ||
I8255A(config, "pia6"); // OKI M82C55A-2V | ||
I8255A(config, "pia4"); // OKI M82C55A-2V | ||
|
||
PIC8259(config, "pic1", 0); // CS82C59A | ||
PIC8259(config, "pic2", 0); // CS82C59A | ||
|
||
// Sound hardware | ||
|
||
SPEAKER(config, "mono").front_center(); | ||
|
||
OKIM6376(config, m_okim6376, 2.4576_MHz_XTAL/8).add_route(ALL_OUTPUTS, "mono", 1.0); // Guess | ||
} | ||
|
||
// Only one PCB found, probably the game uses more PCBs for reels, etc. | ||
ROM_START(rfjailbrk) | ||
ROM_REGION(0x090000, "maincpu", 0) | ||
ROM_LOAD("jail_break_high_0322b.eprom_h", 0x00000, 0x80000, CRC(93bf9b55) SHA1(3296099b768b26c750a2164678b3585374c93a6d)) | ||
ROM_LOAD("jail_break_low_0322c.eprom_l", 0x80000, 0x10000, CRC(737291dc) SHA1(ce95acf88eda6a1e151d42dfdd7c69b27dc0a9e3)) // 1ST AND 2ND HALF IDENTICAL | ||
|
||
ROM_REGION(0x180000, "oki", 0) | ||
// Three sockets, all of them unpopulated on the found PCB | ||
ROM_LOAD("rfjailbrk_sound.u39", 0x000000, 0x080000, NO_DUMP) | ||
ROM_LOAD("rfjailbrk_sound.u40", 0x080000, 0x080000, NO_DUMP) | ||
ROM_LOAD("rfjailbrk_sound.u41", 0x100000, 0x080000, NO_DUMP) | ||
|
||
ROM_REGION(0x2000, "nvram", 0) | ||
ROM_LOAD("ds1644.ram", 0x0000, 0x2000, CRC(dc9cb822) SHA1(7e3ab8c0ad49a8e0efd66a2061b881d51877bc75)) | ||
ROM_END | ||
|
||
} // anonymous namespace | ||
|
||
// YEAR NAME PARENT MACHINE INPUT CLASS INIT ROT COMPANY FULLNAME FLAGS | ||
GAME(2000, rfjailbrk, 0, rfjailbrk, rfjailbrk, rfjailbrk_state, empty_init, ROT0, "Recreativos Franco", "Jail Break (Recreativos Franco slot machine)", MACHINE_IS_SKELETON_MECHANICAL) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dislike this naming. I don't need to remember this being 6376 in code, can as well be short-handed to
m_oki
as also the device tag hints.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean changing m_okim6376(*this, "oki") to m_oki(*this, "okim6376") ??
Thanks!!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
m_oki(*this, "oki")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks!!!!