itgambl2.cpp driver: Added technical notes and some clean-ups [Roberto Fresca]

This commit is contained in:
RobertoFresca 2016-04-23 16:17:57 -03:00
parent a9910b679d
commit 8a65666cee

View File

@ -38,6 +38,8 @@
ROMs: 1x (up to) 27C2000 or similar (sound).
3x or 4x 27C4001 or similar (graphics).
RAMs: 3x 128K x 8-bit SRAM (TC551001, CXK581000BM, MX66C1024MC or similar).
Connectors: 1x 28x2 edge connector.
1x RS232 connector.
1x 14 legs connector.
@ -45,7 +47,7 @@
Other: 1x battery.
1x red led.
2x 8 DIP switches.
2x 8 DIP switches banks.
2x trimmer.
@ -120,19 +122,19 @@ UINT32 itgambl2_state::screen_update_itgambl2(screen_device &screen, bitmap_rgb3
if(machine().input().code_pressed(KEYCODE_R))
m_start_offs--;
popmessage("%d %d %04x",m_test_x,m_test_y,m_start_offs);
popmessage("%d %d %04x", m_test_x, m_test_y, m_start_offs);
bitmap.fill(m_palette->black_pen(), cliprect);
count = (m_start_offs);
for(y=0;y<m_test_y;y++)
for(y = 0; y < m_test_y; y++)
{
for(x=0;x<m_test_x;x++)
for(x = 0; x < m_test_x; x++)
{
UINT32 color;
color = (blit_ram[count] & 0xff)>>0;
color = (blit_ram[count] & 0xff) >> 0;
if(cliprect.contains(x, y))
bitmap.pix32(y, x) = m_palette->pen(color);
@ -219,7 +221,7 @@ static const gfx_layout gfxlayout_8x8x8 =
{
/* this is wrong and need to be fixed */
8,8,
8, 8,
RGN_FRAC(1,1),
8,
{ 0, 1, 2, 3, 4, 5, 6, 7 },
@ -234,7 +236,7 @@ static const gfx_layout gfxlayout_8x8x8 =
******************************/
static GFXDECODE_START( itgambl2 )
GFXDECODE_ENTRY( "gfx1", 0, gfxlayout_8x8x8, 0, 16 )
GFXDECODE_ENTRY( "gfx1", 0, gfxlayout_8x8x8, 0, 16 )
GFXDECODE_END
@ -251,14 +253,14 @@ void itgambl2_state::machine_reset()
/* default 444 palette for debug purpose*/
PALETTE_INIT_MEMBER(itgambl2_state, itgambl2)
{
int x,r,g,b;
int x, r, g, b;
for(x=0;x<0x100;x++)
for(x = 0; x < 0x100; x++)
{
r = (x & 0xf)*0x10;
g = ((x & 0x3c)>>2)*0x10;
b = ((x & 0xf0)>>4)*0x10;
palette.set_pen_color(x,rgb_t(r,g,b));
r = (x & 0xf) * 0x10;
g = ((x & 0x3c) >> 2) * 0x10;
b = ((x & 0xf0) >> 4) * 0x10;
palette.set_pen_color(x, rgb_t(r, g, b));
}
}
@ -296,32 +298,29 @@ MACHINE_CONFIG_END
* Rom Load *
*************************/
/* NtCash
/*
NtCash
CPU:
CPU:
1x HD64F3337CP16 (main)
2x ispLSI1032E-70JL (PLD)
1x NEC D7759GC (sound)
1x TDA2003 (audio amp)
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
1x HD64F3337CP16 (main)
2x ispLSI1032E-70JL (PLD)
1x NEC D7759GC (sound)
1x TDA2003 (audio amp)
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
ROMs:
1x M27C1001 (0)
4x M27C4001 (1, 2, 3, 4)
Note:
1x 28x2 edge connector
1x RS232 connector
1x 14 legs isp connector
1x battery
1x red led
2x 8x2 switches dip
2x trimmer
ROMs:
1x M27C1001 (0)
4x M27C4001 (1, 2, 3, 4)
Note:
1x 28x2 edge connector
1x RS232 connector
1x 14 legs isp connector
1x battery
1x red led
2x 8 DIP switches banks
2x trimmer
*/
ROM_START( ntcash )
@ -339,32 +338,29 @@ ROM_START( ntcash )
ROM_END
/* Wizard (Ver 1.0)
/*
Wizard (Ver 1.0)
CPU:
CPU:
1x HD64F3337CP16 (main)
2x ispLSI1032E-70JL (PLD)
1x NEC D7759GC (sound)
1x TDA2003 (audio amp)
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
1x HD64F3337CP16 (main)
2x ispLSI1032E-70JL (PLD)
1x NEC D7759GC (sound)
1x TDA2003 (audio amp)
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
ROMs:
1x M27C1001 (0)
4x M27C4001 (1, 2, 3, 4)
Note:
1x 28x2 edge connector
1x RS232 connector
1x 14 legs isp connector
1x battery
1x red led
2x 8x2 DIP switches
2x trimmer
ROMs:
1x M27C1001 (0)
4x M27C4001 (1, 2, 3, 4)
Note:
1x 28x2 edge connector
1x RS232 connector
1x 14 legs isp connector
1x battery
1x red led
2x 8 DIP switches banks
2x trimmer
*/
ROM_START( wizard )
@ -382,32 +378,30 @@ ROM_START( wizard )
ROM_END
/* Laser 2001 (Ver 1.2)
/*
Laser 2001 (Ver 1.2)
CPU:
CPU:
1x HD64F3337CP16 (main)
2x ispLSI1032E-70JL (PLD)
1x NEC D7759GC (sound)
1x TDA2003 (audio amp)
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
1x HD64F3337CP16 (main)
2x ispLSI1032E-70JL (PLD)
1x NEC D7759GC (sound)
1x TDA2003 (audio amp)
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
ROMs:
1x M27C1001 (0)
4x M27C4001 (1, 2, 3, 4)
ROMs:
1x M27C1001 (0)
4x M27C4001 (1, 2, 3, 4)
Note:
1x 28x2 edge connector
1x RS232 connector
1x 14 legs isp connector
1x battery
1x red led
2x 8x2 switches dip
2x trimmer
Note:
1x 28x2 edge connector
1x RS232 connector
1x 14 legs isp connector
1x battery
1x red led
2x 8 DIP switches banks
2x trimmer
*/
ROM_START( laser2k1 )
@ -425,32 +419,30 @@ ROM_START( laser2k1 )
ROM_END
/* Magic Drink (Ver 1.2)
/*
Magic Drink (Ver 1.2)
CPU:
CPU:
1x HD64F3337CP16 (main)
2x ispLSI1032E-70JL (PLD)
1x NEC D7759GC (sound)
1x TDA2003 (audio amp)
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
1x HD64F3337CP16 (main)
2x ispLSI1032E-70JL (PLD)
1x NEC D7759GC (sound)
1x TDA2003 (audio amp)
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
ROMs:
1x 27C2000 (s)
3x M27C4001 (1, 2, 3)
ROMs:
1x 27C2000 (s)
3x M27C4001 (1, 2, 3)
Note:
1x 28x2 edge connector
1x RS232 connector
1x 14 legs isp connector
1x battery
1x red led
2x 8x2 switches dip
2x trimmer
Note:
1x 28x2 edge connector
1x RS232 connector
1x 14 legs isp connector
1x battery
1x red led
2x 8 DIP switches banks
2x trimmer
*/
ROM_START( mdrink )
@ -467,42 +459,39 @@ ROM_START( mdrink )
ROM_END
/* Unknown... (Ver 1.2)
/*
Unknown... (Ver 1.2)
CPU
CPU
1x H8/3337-HDY1A3-64F3337F16 (main)
1x NEC D7759GC-0124XY007 (sound)
2x ispLSI1032E-70LJ-C110AA02 (main)
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
1x H8/3337-HDY1A3-64F3337F16 (main)
1x NEC D7759GC-0124XY007 (sound)
2x ispLSI1032E-70LJ-C110AA02 (main)
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
ROMs
1x M27C1001 (0)
1x 27C4000 (1)
3x M27C4001 (2, 3, 4)
ROMs
Note
1x 28x2 edge connector (not JAMMA)
1x RS232 connector
1x 14 legs connector
1x 34 legs connector
2x 8 DIP switches banks
1x battery
1x trimmer (volume)
1x trimmer (unknown)
1x M27C1001 (0)
1x 27C4000 (1)
3x M27C4001 (2, 3, 4)
--------------------------
Note
Silkscreened on PCB:
"CE Angelo Arena - Via Vighi, 26 40026 - Imola (BO)"
1x 28x2 edge connector (not JAMMA)
1x RS232 connector
1x 14 legs connector
1x 34 legs connector
2x 8 DIP switches
1x battery
1x trimmer (volume)
1x trimmer (unknown)
--------------------------
Silkscreened on PCB:
"CE Angelo Arena - Via Vighi, 26 40026 - Imola (BO)"
PCB n. 2-0276 TE04.01
Formely named "videopoker1"
PCB n. 2-0276 TE04.01
Formely named "videopoker1"
*/
ROM_START( te0144 )
@ -520,39 +509,36 @@ ROM_START( te0144 )
ROM_END
/* Carta Magica (Ver 1.8)
/*
Carta Magica (Ver 1.8)
CPU:
CPU:
1x H8/3337-HD64F3337CP16 (main)
1x NEC D7759GC (sound)
1x TDA2003 (sound)
2x ispLSI1032E-70LJ-E011J02
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
1x H8/3337-HD64F3337CP16 (main)
1x NEC D7759GC (sound)
1x TDA2003 (sound)
2x ispLSI1032E-70LJ-E011J02
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
ROMs:
1x 27C1001 or similar (0)
3x 27C4001 or similar (1, 2, 3)
ROMs:
Note:
1x 28x2 edge connector (not JAMMA).
1x RS232 connector.
1x 14 legs connector.
2x 8 DIP switches.
1x battery.
1x trimmer (volume).
1x trimmer (unknown).
1x 27C1001 or similar (0)
3x 27C4001 or similar (1, 2, 3)
Note:
1x 28x2 edge connector (not JAMMA)
1x RS232 connector
1x 14 legs connector
2x 8 DIP switches
1x battery
1x trimmer (volume)
1x trimmer (unknown)
--------------------------
Silkscreened on PCB:
"SMS distribuzione"
"Base 2 Synth Rev.1"
"APM1"
--------------------------
Silkscreened on PCB:
"SMS distribuzione"
"Base 2 Synth Rev.1"
"APM1"
*/
ROM_START( cmagica )
@ -569,38 +555,35 @@ ROM_START( cmagica )
ROM_END
/* Millennium Sun
/*
Millennium Sun.
CPU:
CPU:
1x H8/3337-HD64F3337F16 (main)
1x maybe NEC D7759GC (sound)
1x TDA2003 (audio amp)
2x ispLSI1032E-70LJ
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
1x H8/3337-HD64F3337F16 (main)
1x maybe NEC D7759GC (sound)
1x TDA2003 (audio amp)
2x ispLSI1032E-70LJ
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
ROMs:
1x 27C1001 or similar (msg0)
4x 27C4001 or similar (ep1, ep2, ep3)
ROMs:
Note:
1x 28x2 edge connector (not JAMMA).
1x RS232 connector.
1x 14 legs connector.
1x 34 legs connector.
2x 8 DIP switches banks.
1x battery.
1x trimmer (volume).
1x trimmer (unknown).
1x 27C1001 or similar (msg0)
4x 27C4001 or similar (ep1, ep2, ep3)
Note:
1x 28x2 edge connector (not JAMMA)
1x RS232 connector
1x 14 legs connector
1x 34 legs connector
2x 8 DIP switches
1x battery
1x trimmer (volume)
1x trimmer (unknown)
--------------------------
Silkscreened on PCB:
"BV 2-0257/A"
--------------------------
Silkscreened on PCB:
"BV 2-0257/A"
*/
ROM_START( millsun )
@ -618,38 +601,35 @@ ROM_START( millsun )
ROM_END
/* Super Space 2001
/*
Super Space 2001.
CPU:
CPU:
1x H8/3337-HD64F3337F16 (main)
1x maybe NEC D7759GC (sound)
1x TDA2003 (audio amp)
2x ispLSI1032E-70LJ
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
1x H8/3337-HD64F3337F16 (main)
1x maybe NEC D7759GC (sound)
1x TDA2003 (audio amp)
2x ispLSI1032E-70LJ
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
ROMs:
1x 27C1001 or similar (msg0)
4x 27C4001 or similar (ep1, ep2, ep3)
ROMs:
Note:
1x 28x2 edge connector (not JAMMA).
1x RS232 connector.
1x 14 legs connector.
1x 34 legs connector.
2x 8 DIP switches banks.
1x battery.
1x trimmer (volume).
1x trimmer (unknown).
1x 27C1001 or similar (msg0)
4x 27C4001 or similar (ep1, ep2, ep3)
Note:
1x 28x2 edge connector (not JAMMA)
1x RS232 connector
1x 14 legs connector
1x 34 legs connector
2x 8 DIP switches
1x battery
1x trimmer (volume)
1x trimmer (unknown)
--------------------------
Silkscreened on PCB:
"BV 2-0257/A"
--------------------------
Silkscreened on PCB:
"BV 2-0257/A"
*/
ROM_START( sspac2k1 )
@ -667,37 +647,34 @@ ROM_START( sspac2k1 )
ROM_END
/* Elvis?
/*
Elvis?
CPU:
CPU:
1x H8/3337-HD64F3337CP16
1x NEC D7759GC (sound)
1x TDA2003 (audio amp)
2x ispLSI1032E-70LJ
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
1x H8/3337-HD64F3337CP16
1x NEC D7759GC (sound)
1x TDA2003 (audio amp)
2x ispLSI1032E-70LJ
1x oscillator 14.318180 MHz
1x oscillator 16.000 MHz
ROMs:
1x 27C1001 or similar (0)
3x 27C4001 or similar (1, 2, 3)
ROMs:
Note:
1x 28x2 edge connector (not JAMMA)
1x RS232 connector
1x 14 legs connector
2x 8 DIP switches banks
1x battery
1x trimmer (volume)
1x trimmer (unknown)
1x 27C1001 or similar (0)
3x 27C4001 or similar (1, 2, 3)
Note:
1x 28x2 edge connector (not JAMMA)
1x RS232 connector
1x 14 legs connector
2x 8 DIP switches
1x battery
1x trimmer (volume)
1x trimmer (unknown)
--------------------------
Silkscreened on PCB:
"2-0250"
--------------------------
Silkscreened on PCB:
"2-0250"
*/
ROM_START( elvis )
@ -713,34 +690,35 @@ ROM_START( elvis )
ROM_LOAD( "0.bin", 0x00000, 0x20000, CRC(833c5be5) SHA1(89110cb52265ee5bfdf73c0af343b7ce2356e394) )
ROM_END
/* Triple Star 2000
/*
Triple Star 2000.
CPU:
1x HD64F3337YCP16 (main)(not dumped)
2x NEC D7759GC (speech synthesizer)
1x TDA2003 (sound)
1x oscillator 16.000000
1x oscillator 14.318180
CPU:
1x HD64F3337YCP16 (main)(not dumped)
2x NEC D7759GC (speech synthesizer)
1x TDA2003 (sound)
1x oscillator 16.000000
1x oscillator 14.318180
ROMs:
1x M27C1001 (0)
4x M27C4001 (1,2,3,4)
ROMs:
1x M27C1001 (0)
4x M27C4001 (1,2,3,4)
RAMs
3x TC551001
RAMs
3x TC551001
PLDs
2x ispLSI10032E-70LJ
PLDs
2x ispLSI10032E-70LJ
Other
1x 28x2 edge connector
1x 14 legs connector
1x RS232 connector
1x trimmer (volume)
1x trimmer (unknown)
1x red LED
2x 8x2 switches DIP
1x battery 3.6V
Other
1x 28x2 edge connector.
1x 14 legs connector.
1x RS232 connector.
1x trimmer (volume).
1x trimmer (unknown).
1x red LED.
2x 8 DIP switches banks.
1x battery 3.6V.
*/
ROM_START( trstar2k )
@ -757,12 +735,39 @@ ROM_START( trstar2k )
ROM_LOAD( "msg0.bin", 0x00000, 0x20000, CRC(b25e1c8a) SHA1(a211412c3354a9f1a9662445b4cc379dad27813b) )
ROM_END
/* Super Star
/*
Super Star
(no readme)
CPUs
1x HD64F3337YCP16 (32-bit Single-Chip Microcomputer - main) (not dumped)
1x NEC D7759GC (ADPCM Speech Synthesizer LSIs - sound)
1x TDA2003 (Audio Amplifier - sound)
1x 16.000000 MHz. oscillator.
1x 14.318180 MHz. oscillator.
ROMs
1x 27010 (msg0)(dumped).
3x 27040 (ep1, ep2, ep3) (dumped).
RAMs
3x TC551001
PLDs
2x ispLSI10032E-70LJ (not dumped)
Others
1x 28x2 edge connector.
1x 14 legs connector.
1x RS232 connector.
1x trimmer (volume).
1x trimmer (unknown).
1x red LED.
2x 8 DIP switches banks.
1x battery 3.6V.
*/
ROM_START( sstar )
ROM_REGION( 0x1000000, "maincpu", 0 ) /* all the program code is in here */
ROM_LOAD( "sstar_hd64f3337cp16.mcu", 0x00000, 0x4000, NO_DUMP )
@ -799,32 +804,35 @@ ROM_START( pirati )
ROM_END
/*
Magic Number
Magic Number
CPUs
1x H8/3337 32-bit Single-Chip Microcomputer - main (internal ROM not dumped)
1x D7759 ADPCM Speech Synthesizer LSIs - sound
1x TDA2003 Audio Amplifier - sound
CPUs
1x H8/3337 32-bit Single-Chip Microcomputer - main (internal ROM not dumped)
1x D7759 ADPCM Speech Synthesizer LSIs - sound
1x TDA2003 Audio Amplifier - sound
1x oscillator 14.31818MHz
1x oscillator 16.000
ROMs
3x M27C4001 1,2,3 dumped
1x M27C1001 MSG dumped
RAMs
3x CXK581000BM-70LL
PLDs
2x ispLSI1032E-70Lj not dumped
Others
1x 14.31818 MHz. oscillator.
1x 16.000 MHz. oscillator.
1x 28x2 edge connector
1x 7x2 legs ISP connector
1x RS232 connector
2x trimmer
2x 8x2 switches DIP
1x jumper
1x red LED
1x battery 3.6V
ROMs
3x M27C4001 (1, 2, 3) (dumped).
1x M27C1001 (MSG) (dumped).
RAMs
3x CXK581000BM-70LL
PLDs
2x ispLSI1032E-70Lj (not dumped).
Others
1x 28x2 edge connector.
1x 7x2 legs ISP connector.
1x RS232 connector.
2x trimmer.
2x 8 DIP switches banks.
1x jumper.
1x red LED.
1x battery 3.6V.
*/
ROM_START( mnumitg )
@ -841,33 +849,37 @@ ROM_START( mnumitg )
ROM_END
/*
Magic Class (Ver 2.2)
CPUs
1x H8/3337 32-bit Single-Chip Microcomputer - main (internal ROM not dumped)
1x D7759 ADPCM Speech Synthesizer LSIs - sound
1x TDA2003 Audio Amplifier - sound
1x oscillator 14.31818MHz
1x oscillator 16.000
ROMs
3x M27C4001 1,2,3 dumped
1x M27C1001 SND dumped
RAMs
3x MX66C1024MC-70
PLDs
2x ispLSI1032E-70Lj not dumped
Others
CPUs
1x H8/3337 32-bit Single-Chip Microcomputer - main (internal ROM not dumped)
1x D7759 ADPCM Speech Synthesizer LSIs - sound
1x TDA2003 Audio Amplifier - sound
1x 28x2 edge connector
1x 17x2 legs ISP connector
1x 7x2 legs ISP connector
1x 10 legs connector
1x 4 legs connector
1x RS232 connector
2x trimmer (unknown)
2x 8x2 switches DIP
1x jumper
1x battery 3.6V
1x 14.31818 MHz. oscillator.
1x 16.000 MHz. oscillator.
ROMs
3x M27C4001 (1, 2, 3) (dumped).
1x M27C1001 (SND) (dumped).
RAMs
3x MX66C1024MC-70
PLDs
2x ispLSI1032E-70Lj (not dumped).
Others
1x 28x2 edge connector.
1x 17x2 legs ISP connector.
1x 7x2 legs ISP connector.
1x 10 legs connector.
1x 4 legs connector.
1x RS232 connector.
2x trimmer (unknown).
2x 8 DIP switches banks.
1x jumper.
1x battery 3.6V.
*/
ROM_START( mclass )
@ -884,32 +896,36 @@ ROM_START( mclass )
ROM_END
/*
Euro Pass (Ver 1.1)
CPUs
1x H8/3337 32-bit Single-Chip Microcomputer - main (internal ROM not dumped)
1x D7759 ADPCM Speech Synthesizer LSIs - sound
1x TDA2003 Audio Amplifier - sound
1x oscillator 14.31818MHz
1x oscillator 16.000
ROMs
3x M27C4001 1,2,3 dumped
1x M27C1001 SND dumped
RAMs
3x V62C5181024L-35W
PLDs
2x ispLSI1032E-70Lj not dumped
Others
CPUs
1x H8/3337 32-bit Single-Chip Microcomputer - main (internal ROM not dumped)
1x D7759 ADPCM Speech Synthesizer LSIs - sound
1x TDA2003 Audio Amplifier - sound
1x 28x2 edge connector
1x 7x2 legs ISP connector
1x RS232 connector
1x trimmer (unknown)
1x trimmer (volume)
2x 8x2 switches DIP
1x jumper
1x red LED
1x battery 3.6V
1x 14.31818 MHz. oscillator.
1x 16.000 MHz. oscillator.
ROMs
3x M27C4001 (1, 2, 3) (dumped).
1x M27C1001 (SND) (dumped).
RAMs
3x V62C5181024L-35W
PLDs
2x ispLSI1032E-70Lj (not dumped).
Others
1x 28x2 edge connector.
1x 7x2 legs ISP connector.
1x RS232 connector.
1x trimmer (unknown).
1x trimmer (volume).
2x 8 DIP switches banks.
1x jumper.
1x red LED.
1x battery 3.6V.
*/
ROM_START( europass )
@ -974,14 +990,14 @@ ROM_END
2x ispLSI10032E-70LJ (not dumped)
Others
1x 28x2 edge connector
1x 14 legs connector
1x RS232 connector
1x trimmer (volume)
1x trimmer (unknown)
1x red LED
2x 8 DIP switches banks
1x battery 3.6V
1x 28x2 edge connector.
1x 14 legs connector.
1x RS232 connector.
1x trimmer (volume).
1x trimmer (unknown).
1x red LED.
2x 8 DIP switches banks.
1x battery 3.6V.
*/
ROM_START( eurodsr )