Previous 15994 Revisions Next

r15177 Tuesday 15th May, 2012 at 07:03:59 UTC by Miodrag Milanović
Sync with MAME r16288 (no whatsnew)
[src/emu]rendlay.c rendlay.h
[src/emu/machine]intelfsh.h
[src/mame]mame.lst
[src/mame/audio]segag80r.c
[src/mame/drivers]40love.c alpha68k.c arcadia.c argus.c aristmk4.c astinvad.c batman.c bfm_sc2.c bfm_sc4.c bfm_sc5.c cb2001.c clayshoo.c decocass.c dribling.c epos.c eprom.c exidy440.c fortecar.c freekick.c gatron.c gei.c ghosteo.c goldstar.c homerun.c igs009.c igs017.c imolagp.c iqblock.c kingdrby.c klax.c konamim2.c konendev.c ksys573.c kungfur.c lordgun.c lucky74.c marineb.c merit.c meritm.c model3.c offtwall.c pacman.c pcxt.c pipeline.c raiden2.c relief.c rgum.c segag80r.c sfkick.c shuuz.c skullxbo.c skylncr.c slotcarn.c sms.c statriv2.c subsino.c superqix.c taitopjc.c taitotz.c taxidriv.c tcl.c thunderj.c tx1.c viper.c vroulet.c zaccaria.c zaxxon.c
[src/mame/includes]dribling.h pacman.h superqix.h
[src/mame/layout]awpdmd.lay
[src/mame/machine]atarigen.h
[src/mame/video]bfm_dm01.c

src/mame/mame.lst
r15176r15177
9898woodpeca      // (c) 1981 Amenip Nova Games Ltd.
9999mspacmab      // bootleg
100100mspacmbe      // bootleg
101mspacii         // bootleg
101102pacgal         // hack
102103mspacpls      // hack
103104ponpoko         // (c) 1982 Sigma Ent. Inc.
r15176r15177
35683569ddra         // 1999 - Dance Dance Revolution (GN845 VER. AAA)
35693570fbait2bc      // 1998 - Fisherman's Bait 2 - A Bass Challenge (GE865 VER. UAB)
35703571bassang2      // 1998 - Bass Angler 2 (GE865 VER. JAA)
3571hyperbb         // 1998 - Hyper Bishi Bashi (GQ876 VER. EAA)
3572hyperbbc      // 1998 - Hyper Bishi Bashi (GQ876 VER. EAA)
3573hyperbbca      // 1998 - Hyper Bishi Bashi (GQ876 VER. AAA)
35723574drmn         // 1999 - DrumMania (GQ881 VER. JAD)
35733575gtrfrks         // 1999 - Guitar Freaks (GQ886 VER. EAC)
35743576gtrfrksu      // 1999 - Guitar Freaks (GQ886 VER. UAC)
r15176r15177
35953597ddrsbm         // 1999 - Dance Dance Revolution Solo Bass Mix (GQ894 VER. JAA)
35963598ddrs2k         // 1999 - Dance Dance Revolution Solo 2000 (GC905 VER. AAA)
35973599ddrs2kj         // 1999 - Dance Dance Revolution Solo 2000 (GC905 VER. JAA)
3598hyperbbc      // 1999 - Hyper Bishi Bashi Champ (GX908 1999/08/24 VER. JAA)
3599hyperbbck      // 1999 - Hyper Bishi Bashi Champ (GX908 1999/08/24 VER. KAA)
3600hypbbc2p      // 1999 - Hyper Bishi Bashi Champ - 2 Player (GX908 1999/08/24 VER. JAA)
3601hypbbc2pk      // 1999 - Hyper Bishi Bashi Champ - 2 Player (GX908 1999/08/24 VER. KAA)
36003602dsfdct         // 1999 - Dancing Stage featuring Dreams Come True (GC910 VER. JCA)
36013603dsfdcta         // 1999 - Dancing Stage featuring Dreams Come True (GC910 VER. JAA)
36023604drmn2m         // 1999 - DrumMania 2nd Mix (GE912 VER. JAB)
r15176r15177
52225224clocknch      // 11 1981.04 Lock'n'Chase
52235225            // 12 1981.08 Flash Boy/DECO Kid
52245226cprogolf      // 13 1981.08 Tournament Pro Golf
5225            // 14 1981.06 DS Telejan
5227cprogolfj      // 13 1981.08 Tournament Pro Golf (Japan)
5228cdsteljn       // 14 1981.06 DS Telejan
52265229cluckypo      // 15 1981.?? Lucky Poker
52275230ctisland      // 16 1982.02 Treasure Island
52285231ctisland2      // 16
r15176r15177
52385241            // 24 1982.07 Tsumego Kaisyou
52395242            // 25 1982.10 Angler Dangler? (fishing)
52405243cbtime         // 26 1982.08 Hamburger/Burger Time
5244chamburger         // 26 1982.08 Hamburger (Japan)
52415245cburnrub      // 27 1982.11 Burnin' Rubber
52425246cburnrub2      // 27
52435247cbnj         // 27         Bump 'n' Jump
r15176r15177
1004110045taxidriv      // [1984 Graphic Techno]
1004210046xyonix         // [1989 Philko]
1004310047gt507uk         // (c) 1986 Grayhound Electronics
10044gt5            // (c) 1984 Grayhound Electronics
1004510048gtsers8         // (c) 1984 Greyhound Electronics
1004610049gtsers9         // (c) 1984 Greyhound Electronics
1004710050gtsers10      // (c) 1984 Greyhound Electronics
10051gtsers10a      // (c) 1984 Greyhound Electronics
1004810052gtsers11      // (c) 1984 Greyhound Electronics
10053gtsers11a      // (c) 1984 Greyhound Electronics
1004910054gtsers12      // (c) 1984 Greyhound Electronics
10050gtsers14      // (c) 1984 Greyhound Electronics
10055gtsers14      // (c) 1986 Greyhound Electronics
10056gtsers15      // (c) 1986 Greyhound Electronics
1005110057gt103a1         // (c) 1984 Greyhound Electronics
1005210058gt103aa         // (c) 1984 Greyhound Electronics
10059gt103ab         // (c) 1984 Greyhound Electronics
1005310060gt103asx      // (c) 1984 Greyhound Electronics
1005410061reelfun         // (c) 1986 Grayhound Electronics
1005510062reelfun1      // (c) 1986 Grayhound Electronics
r15176r15177
1005810065quiz         // (c) 1986 Italian bootleg
1005910066quiz211         // (c) 1986 Italian bootleg
1006010067jokpoker      // (c) 1982 Greyhound Electronics
10061jokpokera      // (c) 1982 Greyhound Electronics
10062jokpokerb
10063jokpokerc
10068jokpokera      // (c) 1983 Greyhound Electronics
10069jokpokerb      // (c) 1983 Greyhound Electronics
10070jokpokerc      // (c) 1983 Greyhound Electronics
1006410071superbwl      // (c) 1982 Greyhound Electronics
1006510072amuse         // (c) 1982 Greyhound Electronics
1006610073amuse1         // (c) 1982 Greyhound Electronics
r15176r15177
1008210089geimulti      // (c) 1992 Grayhound Electronics
1008310090sprtauth      // (c) 1982 Classic Games
1008410091suprpokr      // (c) 1986 Grayhound Electronics
10085suprpkr1      // (c) 1986 Grayhound Electronics
10092suprpokra      // (c) 1986 Grayhound Electronics
10093suprpokrb      // (c) 1986 Grayhound Electronics
1008610094sshot         // (c) 1979 Model Racing
1008710095dribling      // (c) 1983 Model Racing
1008810096driblingo      // (c) 1983 Olympia
r15176r15177
1021610224crazywar      // (c) 2002 Eolith
1021710225bballoon      // (c) 2003 Eolith
1021810226hapytour      // (c) 2005 GAV Company (on Eolith's Ghost hardware)
10227touryuu         // (c) 200? Yuki Enterprise
1021910228funkball      // (c) 1998 dgPIX Entertainment Inc
1022010229xfiles         // (c) 1999 dgPIX Entertainment Inc
1022110230kdynastg      // (c) 1999 EZ Graphics
src/mame/audio/segag80r.c
r15176r15177
1010#include "emu.h"
1111#include "cpu/mcs48/mcs48.h"
1212#include "includes/segag80r.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255.h"
1414#include "machine/i8243.h"
1515#include "sound/samples.h"
1616#include "sound/tms36xx.h"
r15176r15177
402402};
403403
404404
405static const ppi8255_interface ppi8255_005_intf =
405static I8255A_INTERFACE( ppi8255_005_intf )
406406{
407   DEVCB_NULL,
408   DEVCB_NULL,
409   DEVCB_NULL,
410   DEVCB_HANDLER(sega005_sound_a_w),
411   DEVCB_HANDLER(sega005_sound_b_w),
412   DEVCB_NULL
407   DEVCB_NULL,                     /* Port A read */
408   DEVCB_HANDLER(sega005_sound_a_w),   /* Port A write */
409   DEVCB_NULL,                     /* Port B read */
410   DEVCB_HANDLER(sega005_sound_b_w),   /* Port B write */
411   DEVCB_NULL,                     /* Port C read */
412   DEVCB_NULL                     /* Port C write */
413413};
414414
415415
416416MACHINE_CONFIG_FRAGMENT( 005_sound_board )
417417
418   MCFG_PPI8255_ADD( "ppi8255", ppi8255_005_intf )
418   MCFG_I8255A_ADD( "ppi8255", ppi8255_005_intf )
419419
420420   /* sound hardware */
421421   MCFG_SOUND_START(sega005)
r15176r15177
812812 *
813813 *************************************/
814814
815static const ppi8255_interface monsterb_ppi_intf =
815static I8255A_INTERFACE( monsterb_ppi_intf )
816816{
817   DEVCB_NULL,
818   DEVCB_NULL,
819   DEVCB_HANDLER(n7751_status_r),
820   DEVCB_HANDLER(monsterb_sound_a_w),
821   DEVCB_HANDLER(monsterb_sound_b_w),
822   DEVCB_HANDLER(n7751_command_w)
817   DEVCB_NULL,                     /* Port A read */
818   DEVCB_HANDLER(monsterb_sound_a_w),   /* Port A write */
819   DEVCB_NULL,                     /* Port B read */
820   DEVCB_HANDLER(monsterb_sound_b_w),   /* Port B write */
821   DEVCB_HANDLER(n7751_status_r),      /* Port C read */
822   DEVCB_HANDLER(n7751_command_w)      /* Port C write */
823823};
824824
825825
826826MACHINE_CONFIG_FRAGMENT( monsterb_sound_board )
827827
828   MCFG_PPI8255_ADD( "ppi8255", monsterb_ppi_intf )
828   MCFG_I8255A_ADD( "ppi8255", monsterb_ppi_intf )
829829
830830   /* basic machine hardware */
831831   MCFG_CPU_ADD("audiocpu", N7751, 6000000)
src/mame/machine/atarigen.h
r15176r15177
6666typedef struct _atarivc_state_desc atarivc_state_desc;
6767struct _atarivc_state_desc
6868{
69   UINT32 latch1;                        /* latch #1 value (-1 means disabled) */
70   UINT32 latch2;                        /* latch #2 value (-1 means disabled) */
71   UINT32 rowscroll_enable;               /* true if row-scrolling is enabled */
72   UINT32 palette_bank;                  /* which palette bank is enabled */
69   UINT32 latch1;                     /* latch #1 value (-1 means disabled) */
70   UINT32 latch2;                     /* latch #2 value (-1 means disabled) */
71   UINT32 rowscroll_enable;            /* true if row-scrolling is enabled */
72   UINT32 palette_bank;               /* which palette bank is enabled */
7373   UINT32 pf0_xscroll;                  /* playfield 1 xscroll */
7474   UINT32 pf0_xscroll_raw;               /* playfield 1 xscroll raw value */
7575   UINT32 pf0_yscroll;                  /* playfield 1 yscroll */
7676   UINT32 pf1_xscroll;                  /* playfield 2 xscroll */
7777   UINT32 pf1_xscroll_raw;               /* playfield 2 xscroll raw value */
7878   UINT32 pf1_yscroll;                  /* playfield 2 yscroll */
79   UINT32 mo_xscroll;                     /* sprite xscroll */
80   UINT32 mo_yscroll;                     /* sprite xscroll */
79   UINT32 mo_xscroll;                  /* sprite xscroll */
80   UINT32 mo_yscroll;                  /* sprite xscroll */
8181};
8282
8383
r15176r15177
101101        m_eeprom32(*this, "eeprom"),
102102        m_playfield(*this, "playfield"),
103103        m_playfield2(*this, "playfield2"),
104        m_playfield_upper(*this, "playfield_upper"),
104        m_playfield_upper(*this, "playfield_up"),
105105        m_alpha(*this, "alpha"),
106106        m_alpha2(*this, "alpha2"),
107107        m_xscroll(*this, "xscroll"),
r15176r15177
109109        m_playfield32(*this, "playfield32"),
110110        m_alpha32(*this, "alpha32"),
111111        m_atarivc_data(*this, "atarivc_data"),
112        m_atarivc_eof_data(*this, "atarivc_eof_data") { }
112        m_atarivc_eof_data(*this, "atarivc_eof")
113   { }
113114
114115   // users must call through to these
115116   virtual void machine_start();
src/mame/includes/dribling.h
r15176r15177
44
55*************************************************************************/
66
7#include "machine/i8255.h"
78
89
910class dribling_state : public driver_device
r15176r15177
1112public:
1213   dribling_state(const machine_config &mconfig, device_type type, const char *tag)
1314      : driver_device(mconfig, type, tag) ,
15      m_maincpu(*this, "maincpu"),
16      m_ppi8255_0(*this, "ppi8255_0"),
17      m_ppi8255_1(*this, "ppi8255_1"),
1418      m_videoram(*this, "videoram"),
1519      m_colorram(*this, "colorram"){ }
1620
21   /* devices */
22   required_device<cpu_device> m_maincpu;
23   optional_device<i8255_device>  m_ppi8255_0;
24   optional_device<i8255_device>  m_ppi8255_1;
1725   /* memory pointers */
1826   required_shared_ptr<UINT8> m_videoram;
1927   required_shared_ptr<UINT8> m_colorram;
r15176r15177
2634   UINT8    m_input_mux;
2735   UINT8    m_di;
2836
29   /* devices */
30   device_t *m_maincpu;
31   device_t *m_ppi_0;
32   device_t *m_ppi_1;
3337   DECLARE_READ8_MEMBER(ioread);
3438   DECLARE_WRITE8_MEMBER(iowrite);
3539   DECLARE_WRITE8_MEMBER(dribling_colorram_w);
src/mame/includes/superqix.h
r15176r15177
4343   DECLARE_WRITE8_MEMBER(bootleg_mcu_p1_w);
4444   DECLARE_WRITE8_MEMBER(mcu_p3_w);
4545   DECLARE_READ8_MEMBER(bootleg_mcu_p3_r);
46   DECLARE_READ8_MEMBER(sqixu_mcu_p0_r);
46   DECLARE_READ8_MEMBER(sqix_system_status_r);
4747   DECLARE_WRITE8_MEMBER(sqixu_mcu_p2_w);
4848   DECLARE_READ8_MEMBER(sqixu_mcu_p3_r);
4949   DECLARE_READ8_MEMBER(nmi_ack_r);
src/mame/includes/pacman.h
r15176r15177
8080   DECLARE_READ8_MEMBER(mspacman_enable_decode_r_0x3ff8);
8181   DECLARE_WRITE8_MEMBER(mspacman_enable_decode_w);
8282   DECLARE_WRITE8_MEMBER(irq_mask_w);
83   DECLARE_READ8_MEMBER(mspacii_protection_r);
8384   DECLARE_READ8_MEMBER(cannonbp_protection_r);
8485   DECLARE_WRITE8_MEMBER(pacman_videoram_w);
8586   DECLARE_WRITE8_MEMBER(pacman_colorram_w);
src/mame/video/bfm_dm01.c
r15176r15177
5959{
6060   const bfmdm01_interface *intf;
6161   int       data_avail,
62              control,   /* motor phase */
62              control,
6363           xcounter,
6464              busy;
6565
6666UINT8 scanline[DM_BYTESPERROW],
67      segbuffer[72],
6768      comdata;
6869
6970} bfmdm01;
r15176r15177
148149      dm01.scanline[8] &= 0x80;//filter all other bits
149150      if ( (row >= 0)  && (row < DM_MAXLINES) )
150151      {
151         int p,dots;
152
152         int p,pos; //,dots;
153         pos =0;
153154         p = 0;
154         dots = 0;
155//         dots = 0;
155156
156157         while ( p < (DM_BYTESPERROW) )
157158         {
158159
159160            UINT8 d = dm01.scanline[p];
160            if (d & 0x80) dots |= 0x01;
161            else          dots &=~0x01;
162            if (d & 0x40) dots |= 0x02;
163            else          dots &=~0x02;
164            if (d & 0x20) dots |= 0x04;
165            else          dots &=~0x04;
166            if (d & 0x10) dots |= 0x08;
167            else          dots &=~0x08;
168            if (d & 0x08) dots |= 0x10;
169            else          dots &=~0x10;
170            if (d & 0x04) dots |= 0x20;
171            else          dots &=~0x20;
172            if (d & 0x02) dots |= 0x40;
173            else          dots &=~0x40;
174            if (d & 0x01) dots |= 0x80;
175            else          dots &=~0x80;
176            output_set_indexed_value("dotmatrix", p +(9*row), dots);
161           
162            for (int bitpos=0; bitpos <8; bitpos++)
163            {
164               if (d & 1<<(7-bitpos)) dm01.segbuffer[(p*8)+bitpos]=1;
165               else dm01.segbuffer[(p*8)+bitpos]=0;
166            }
167           
177168            p++;
178169         }
170
171         while ( pos < 13 )
172         {
173            int element =0;
174            for (int dotpos=0; dotpos <5; dotpos++)
175            {
176               if (dm01.segbuffer[(pos*5)+dotpos])
177               {
178                  element |= (1<<(dotpos));
179               }
180               else
181               {
182                  element &= ~(1<<(dotpos));
183               }
184
185            }
186            output_set_indexed_value("dotmatrix", pos +(13*row), element);
187            pos++;
188         }
189     
190
179191      }
180192   }
181193}
src/mame/layout/awpdmd.lay
r15176r15177
1414         <color red="0.0" green="1.0" blue="0.0" />
1515      </rect>
1616   </element>
17   <element name="dotmatrix">
18   <dotmatrix>
17   <element name="dotmatrix5dot">
18   <dotmatrix5dot>
1919      <color red="1" green="0" blue="0" />
20   </dotmatrix>
20   </dotmatrix5dot>
2121   </element>
2222   <element name="Steppers" defstate="0">
2323       <simplecounter maxstate="999" digits="3">
r15176r15177
2727   </element>
2828
2929   <view name="AWP Simulated Video (Reels, Dots and Lamp Matrix)">
30      <backdrop name="dotmatrix0" element="dotmatrix" state="0">
31         <bounds x="0" y="60" width="64" height="8"/>
30      <backdrop name="dotmatrix0" element="dotmatrix5dot" state="0">
31         <bounds x="0" y="60" width="25" height="5"/>
3232      </backdrop>
33      <backdrop name="dotmatrix1" element="dotmatrix" state="0">
34         <bounds x="64" y="60" width="64" height="8"/>
33      <backdrop name="dotmatrix1" element="dotmatrix5dot" state="0">
34         <bounds x="25" y="60" width="25" height="5"/>
3535      </backdrop>
36      <backdrop name="dotmatrix2" element="dotmatrix" state="0">
37         <bounds x="128" y="60" width="64" height="8"/>
36      <backdrop name="dotmatrix2" element="dotmatrix5dot" state="0">
37         <bounds x="50" y="60" width="25" height="5"/>
3838      </backdrop>
39      <backdrop name="dotmatrix3" element="dotmatrix" state="0">
40         <bounds x="192" y="60" width="64" height="8"/>
39      <backdrop name="dotmatrix3" element="dotmatrix5dot" state="0">
40         <bounds x="75" y="60" width="25" height="5"/>
4141      </backdrop>
42      <backdrop name="dotmatrix4" element="dotmatrix" state="0">
43         <bounds x="256" y="60" width="64" height="8"/>
42      <backdrop name="dotmatrix4" element="dotmatrix5dot" state="0">
43         <bounds x="100" y="60" width="25" height="5"/>
4444      </backdrop>
45      <backdrop name="dotmatrix5" element="dotmatrix" state="0">
46         <bounds x="320" y="60" width="64" height="8"/>
45      <backdrop name="dotmatrix5" element="dotmatrix5dot" state="0">
46         <bounds x="125" y="60" width="25" height="5"/>
4747      </backdrop>
48      <backdrop name="dotmatrix6" element="dotmatrix" state="0">
49         <bounds x="384" y="60" width="64" height="8"/>
48      <backdrop name="dotmatrix6" element="dotmatrix5dot" state="0">
49         <bounds x="150" y="60" width="25" height="5"/>
5050      </backdrop>
51      <backdrop name="dotmatrix7" element="dotmatrix" state="0">
52         <bounds x="448" y="60" width="64" height="8"/>
51      <backdrop name="dotmatrix7" element="dotmatrix5dot" state="0">
52         <bounds x="175" y="60" width="25" height="5"/>
5353      </backdrop>
54      <backdrop name="dotmatrix8" element="dotmatrix" state="0">
55         <bounds x="512" y="60" width="64" height="8"/>
54      <backdrop name="dotmatrix8" element="dotmatrix5dot" state="0">
55         <bounds x="200" y="60" width="25" height="5"/>
5656      </backdrop>
57      <backdrop name="dotmatrix9" element="dotmatrix" state="0">
58         <bounds x="0" y="68" width="64" height="8"/>
57      <backdrop name="dotmatrix9" element="dotmatrix5dot" state="0">
58         <bounds x="225" y="60" width="25" height="5"/>
5959      </backdrop>
60      <backdrop name="dotmatrix10" element="dotmatrix" state="0">
61         <bounds x="64" y="68" width="64" height="8"/>
60      <backdrop name="dotmatrix10" element="dotmatrix5dot" state="0">
61         <bounds x="250" y="60" width="25" height="5"/>
6262      </backdrop>
63      <backdrop name="dotmatrix11" element="dotmatrix" state="0">
64         <bounds x="128" y="68" width="64" height="8"/>
63      <backdrop name="dotmatrix11" element="dotmatrix5dot" state="0">
64         <bounds x="275" y="60" width="25" height="5"/>
6565      </backdrop>
66      <backdrop name="dotmatrix12" element="dotmatrix" state="0">
67         <bounds x="192" y="68" width="64" height="8"/>
66      <backdrop name="dotmatrix12" element="dotmatrix5dot" state="0">
67         <bounds x="300" y="60" width="25" height="5"/>
6868      </backdrop>
69      <backdrop name="dotmatrix13" element="dotmatrix" state="0">
70         <bounds x="256" y="68" width="64" height="8"/>
69      <backdrop name="dotmatrix13" element="dotmatrix5dot" state="0">
70         <bounds x="0" y="65" width="25" height="5"/>
7171      </backdrop>
72      <backdrop name="dotmatrix14" element="dotmatrix" state="0">
73         <bounds x="320" y="68" width="64" height="8"/>
72      <backdrop name="dotmatrix14" element="dotmatrix5dot" state="0">
73         <bounds x="25" y="65" width="25" height="5"/>
7474      </backdrop>
75      <backdrop name="dotmatrix15" element="dotmatrix" state="0">
76         <bounds x="384" y="68" width="64" height="8"/>
75      <backdrop name="dotmatrix15" element="dotmatrix5dot" state="0">
76         <bounds x="50" y="65" width="25" height="5"/>
7777      </backdrop>
78      <backdrop name="dotmatrix16" element="dotmatrix" state="0">
79         <bounds x="448" y="68" width="64" height="8"/>
78      <backdrop name="dotmatrix16" element="dotmatrix5dot" state="0">
79         <bounds x="75" y="65" width="25" height="5"/>
8080      </backdrop>
81      <backdrop name="dotmatrix17" element="dotmatrix" state="0">
82         <bounds x="512" y="68" width="64" height="8"/>
81      <backdrop name="dotmatrix17" element="dotmatrix5dot" state="0">
82         <bounds x="100" y="65" width="25" height="5"/>
8383      </backdrop>
84      <backdrop name="dotmatrix18" element="dotmatrix" state="0">
85         <bounds x="0" y="76" width="64" height="8"/>
84      <backdrop name="dotmatrix18" element="dotmatrix5dot" state="0">
85         <bounds x="125" y="65" width="25" height="5"/>
8686      </backdrop>
87      <backdrop name="dotmatrix19" element="dotmatrix" state="0">
88         <bounds x="64" y="76" width="64" height="8"/>
87      <backdrop name="dotmatrix19" element="dotmatrix5dot" state="0">
88         <bounds x="150" y="65" width="25" height="5"/>
8989      </backdrop>
90      <backdrop name="dotmatrix20" element="dotmatrix" state="0">
91         <bounds x="128" y="76" width="64" height="8"/>
90      <backdrop name="dotmatrix20" element="dotmatrix5dot" state="0">
91         <bounds x="175" y="65" width="25" height="5"/>
9292      </backdrop>
93      <backdrop name="dotmatrix21" element="dotmatrix" state="0">
94         <bounds x="192" y="76" width="64" height="8"/>
93      <backdrop name="dotmatrix21" element="dotmatrix5dot" state="0">
94         <bounds x="200" y="65" width="25" height="5"/>
9595      </backdrop>
96      <backdrop name="dotmatrix22" element="dotmatrix" state="0">
97         <bounds x="256" y="76" width="64" height="8"/>
96      <backdrop name="dotmatrix22" element="dotmatrix5dot" state="0">
97         <bounds x="225" y="65" width="25" height="5"/>
9898      </backdrop>
99      <backdrop name="dotmatrix23" element="dotmatrix" state="0">
100         <bounds x="320" y="76" width="64" height="8"/>
99      <backdrop name="dotmatrix23" element="dotmatrix5dot" state="0">
100         <bounds x="250" y="65" width="25" height="5"/>
101101      </backdrop>
102      <backdrop name="dotmatrix24" element="dotmatrix" state="0">
103         <bounds x="384" y="76" width="64" height="8"/>
102      <backdrop name="dotmatrix24" element="dotmatrix5dot" state="0">
103         <bounds x="275" y="65" width="25" height="5"/>
104104      </backdrop>
105      <backdrop name="dotmatrix25" element="dotmatrix" state="0">
106         <bounds x="448" y="76" width="64" height="8"/>
105      <backdrop name="dotmatrix25" element="dotmatrix5dot" state="0">
106         <bounds x="300" y="65" width="25" height="5"/>
107107      </backdrop>
108      <backdrop name="dotmatrix26" element="dotmatrix" state="0">
109         <bounds x="512" y="76" width="64" height="8"/>
108      <backdrop name="dotmatrix26" element="dotmatrix5dot" state="0">
109         <bounds x="0" y="70" width="25" height="5"/>
110110      </backdrop>
111      <backdrop name="dotmatrix27" element="dotmatrix" state="0">
112         <bounds x="0" y="84" width="64" height="8"/>
111      <backdrop name="dotmatrix27" element="dotmatrix5dot" state="0">
112         <bounds x="25" y="70" width="25" height="5"/>
113113      </backdrop>
114      <backdrop name="dotmatrix28" element="dotmatrix" state="0">
115         <bounds x="64" y="84" width="64" height="8"/>
114      <backdrop name="dotmatrix28" element="dotmatrix5dot" state="0">
115         <bounds x="50" y="70" width="25" height="5"/>
116116      </backdrop>
117      <backdrop name="dotmatrix29" element="dotmatrix" state="0">
118         <bounds x="128" y="84" width="64" height="8"/>
117      <backdrop name="dotmatrix29" element="dotmatrix5dot" state="0">
118         <bounds x="75" y="70" width="25" height="5"/>
119119      </backdrop>
120      <backdrop name="dotmatrix30" element="dotmatrix" state="0">
121         <bounds x="192" y="84" width="64" height="8"/>
120      <backdrop name="dotmatrix30" element="dotmatrix5dot" state="0">
121         <bounds x="100" y="70" width="25" height="5"/>
122122      </backdrop>
123      <backdrop name="dotmatrix31" element="dotmatrix" state="0">
124         <bounds x="256" y="84" width="64" height="8"/>
123      <backdrop name="dotmatrix31" element="dotmatrix5dot" state="0">
124         <bounds x="125" y="70" width="25" height="5"/>
125125      </backdrop>
126      <backdrop name="dotmatrix32" element="dotmatrix" state="0">
127         <bounds x="320" y="84" width="64" height="8"/>
126      <backdrop name="dotmatrix32" element="dotmatrix5dot" state="0">
127         <bounds x="150" y="70" width="25" height="5"/>
128128      </backdrop>
129      <backdrop name="dotmatrix33" element="dotmatrix" state="0">
130         <bounds x="384" y="84" width="64" height="8"/>
129      <backdrop name="dotmatrix33" element="dotmatrix5dot" state="0">
130         <bounds x="175" y="70" width="25" height="5"/>
131131      </backdrop>
132      <backdrop name="dotmatrix34" element="dotmatrix" state="0">
133         <bounds x="448" y="84" width="64" height="8"/>
132      <backdrop name="dotmatrix34" element="dotmatrix5dot" state="0">
133         <bounds x="200" y="70" width="25" height="5"/>
134134      </backdrop>
135      <backdrop name="dotmatrix35" element="dotmatrix" state="0">
136         <bounds x="512" y="84" width="64" height="8"/>
135      <backdrop name="dotmatrix35" element="dotmatrix5dot" state="0">
136         <bounds x="225" y="70" width="25" height="5"/>
137137      </backdrop>
138      <backdrop name="dotmatrix36" element="dotmatrix" state="0">
139         <bounds x="0" y="92" width="64" height="8"/>
138      <backdrop name="dotmatrix36" element="dotmatrix5dot" state="0">
139         <bounds x="250" y="70" width="25" height="5"/>
140140      </backdrop>
141      <backdrop name="dotmatrix37" element="dotmatrix" state="0">
142         <bounds x="64" y="92" width="64" height="8"/>
141      <backdrop name="dotmatrix37" element="dotmatrix5dot" state="0">
142         <bounds x="275" y="70" width="25" height="5"/>
143143      </backdrop>
144      <backdrop name="dotmatrix38" element="dotmatrix" state="0">
145         <bounds x="128" y="92" width="64" height="8"/>
144      <backdrop name="dotmatrix38" element="dotmatrix5dot" state="0">
145         <bounds x="300" y="70" width="25" height="5"/>
146146      </backdrop>
147      <backdrop name="dotmatrix39" element="dotmatrix" state="0">
148         <bounds x="192" y="92" width="64" height="8"/>
147      <backdrop name="dotmatrix39" element="dotmatrix5dot" state="0">
148         <bounds x="0" y="75" width="25" height="5"/>
149149      </backdrop>
150      <backdrop name="dotmatrix40" element="dotmatrix" state="0">
151         <bounds x="256" y="92" width="64" height="8"/>
150      <backdrop name="dotmatrix40" element="dotmatrix5dot" state="0">
151         <bounds x="25" y="75" width="25" height="5"/>
152152      </backdrop>
153      <backdrop name="dotmatrix41" element="dotmatrix" state="0">
154         <bounds x="320" y="92" width="64" height="8"/>
153      <backdrop name="dotmatrix41" element="dotmatrix5dot" state="0">
154         <bounds x="50" y="75" width="25" height="5"/>
155155      </backdrop>
156      <backdrop name="dotmatrix42" element="dotmatrix" state="0">
157         <bounds x="384" y="92" width="64" height="8"/>
156      <backdrop name="dotmatrix42" element="dotmatrix5dot" state="0">
157         <bounds x="75" y="75" width="25" height="5"/>
158158      </backdrop>
159      <backdrop name="dotmatrix43" element="dotmatrix" state="0">
160         <bounds x="448" y="92" width="64" height="8"/>
159      <backdrop name="dotmatrix43" element="dotmatrix5dot" state="0">
160         <bounds x="100" y="75" width="25" height="5"/>
161161      </backdrop>
162      <backdrop name="dotmatrix44" element="dotmatrix" state="0">
163         <bounds x="512" y="92" width="64" height="8"/>
162      <backdrop name="dotmatrix44" element="dotmatrix5dot" state="0">
163         <bounds x="125" y="75" width="25" height="5"/>
164164      </backdrop>
165      <backdrop name="dotmatrix45" element="dotmatrix" state="0">
166         <bounds x="0" y="100" width="64" height="8"/>
165      <backdrop name="dotmatrix45" element="dotmatrix5dot" state="0">
166         <bounds x="150" y="75" width="25" height="5"/>
167167      </backdrop>
168      <backdrop name="dotmatrix46" element="dotmatrix" state="0">
169         <bounds x="64" y="100" width="64" height="8"/>
168      <backdrop name="dotmatrix46" element="dotmatrix5dot" state="0">
169         <bounds x="175" y="75" width="25" height="5"/>
170170      </backdrop>
171      <backdrop name="dotmatrix47" element="dotmatrix" state="0">
172         <bounds x="128" y="100" width="64" height="8"/>
171      <backdrop name="dotmatrix47" element="dotmatrix5dot" state="0">
172         <bounds x="200" y="75" width="25" height="5"/>
173173      </backdrop>
174      <backdrop name="dotmatrix48" element="dotmatrix" state="0">
175         <bounds x="192" y="100" width="64" height="8"/>
174      <backdrop name="dotmatrix48" element="dotmatrix5dot" state="0">
175         <bounds x="225" y="75" width="25" height="5"/>
176176      </backdrop>
177      <backdrop name="dotmatrix49" element="dotmatrix" state="0">
178         <bounds x="256" y="100" width="64" height="8"/>
177      <backdrop name="dotmatrix49" element="dotmatrix5dot" state="0">
178         <bounds x="250" y="75" width="25" height="5"/>
179179      </backdrop>
180      <backdrop name="dotmatrix50" element="dotmatrix" state="0">
181         <bounds x="320" y="100" width="64" height="8"/>
180      <backdrop name="dotmatrix50" element="dotmatrix5dot" state="0">
181         <bounds x="275" y="75" width="25" height="5"/>
182182      </backdrop>
183      <backdrop name="dotmatrix51" element="dotmatrix" state="0">
184         <bounds x="384" y="100" width="64" height="8"/>
183      <backdrop name="dotmatrix51" element="dotmatrix5dot" state="0">
184         <bounds x="300" y="75" width="25" height="5"/>
185185      </backdrop>
186      <backdrop name="dotmatrix52" element="dotmatrix" state="0">
187         <bounds x="448" y="100" width="64" height="8"/>
186      <backdrop name="dotmatrix52" element="dotmatrix5dot" state="0">
187         <bounds x="0" y="80" width="25" height="5"/>
188188      </backdrop>
189      <backdrop name="dotmatrix53" element="dotmatrix" state="0">
190         <bounds x="512" y="100" width="64" height="8"/>
189      <backdrop name="dotmatrix53" element="dotmatrix5dot" state="0">
190         <bounds x="25" y="80" width="25" height="5"/>
191191      </backdrop>
192      <backdrop name="dotmatrix54" element="dotmatrix" state="0">
193         <bounds x="0" y="108" width="64" height="8"/>
192      <backdrop name="dotmatrix54" element="dotmatrix5dot" state="0">
193         <bounds x="50" y="80" width="25" height="5"/>
194194      </backdrop>
195      <backdrop name="dotmatrix55" element="dotmatrix" state="0">
196         <bounds x="64" y="108" width="64" height="8"/>
195      <backdrop name="dotmatrix55" element="dotmatrix5dot" state="0">
196         <bounds x="75" y="80" width="25" height="5"/>
197197      </backdrop>
198      <backdrop name="dotmatrix56" element="dotmatrix" state="0">
199         <bounds x="128" y="108" width="64" height="8"/>
198      <backdrop name="dotmatrix56" element="dotmatrix5dot" state="0">
199         <bounds x="100" y="80" width="25" height="5"/>
200200      </backdrop>
201      <backdrop name="dotmatrix57" element="dotmatrix" state="0">
202         <bounds x="192" y="108" width="64" height="8"/>
201      <backdrop name="dotmatrix57" element="dotmatrix5dot" state="0">
202         <bounds x="125" y="80" width="25" height="5"/>
203203      </backdrop>
204      <backdrop name="dotmatrix58" element="dotmatrix" state="0">
205         <bounds x="256" y="108" width="64" height="8"/>
204      <backdrop name="dotmatrix58" element="dotmatrix5dot" state="0">
205         <bounds x="150" y="80" width="25" height="5"/>
206206      </backdrop>
207      <backdrop name="dotmatrix59" element="dotmatrix" state="0">
208         <bounds x="320" y="108" width="64" height="8"/>
207      <backdrop name="dotmatrix59" element="dotmatrix5dot" state="0">
208         <bounds x="175" y="80" width="25" height="5"/>
209209      </backdrop>
210      <backdrop name="dotmatrix60" element="dotmatrix" state="0">
211         <bounds x="384" y="108" width="64" height="8"/>
210      <backdrop name="dotmatrix60" element="dotmatrix5dot" state="0">
211         <bounds x="200" y="80" width="25" height="5"/>
212212      </backdrop>
213      <backdrop name="dotmatrix61" element="dotmatrix" state="0">
214         <bounds x="448" y="108" width="64" height="8"/>
213      <backdrop name="dotmatrix61" element="dotmatrix5dot" state="0">
214         <bounds x="225" y="80" width="25" height="5"/>
215215      </backdrop>
216      <backdrop name="dotmatrix62" element="dotmatrix" state="0">
217         <bounds x="512" y="108" width="64" height="8"/>
216      <backdrop name="dotmatrix62" element="dotmatrix5dot" state="0">
217         <bounds x="250" y="80" width="25" height="5"/>
218218      </backdrop>
219      <backdrop name="dotmatrix63" element="dotmatrix" state="0">
220         <bounds x="0" y="116" width="64" height="8"/>
219      <backdrop name="dotmatrix63" element="dotmatrix5dot" state="0">
220         <bounds x="275" y="80" width="25" height="5"/>
221221      </backdrop>
222      <backdrop name="dotmatrix64" element="dotmatrix" state="0">
223         <bounds x="64" y="116" width="64" height="8"/>
222      <backdrop name="dotmatrix64" element="dotmatrix5dot" state="0">
223         <bounds x="300" y="80" width="25" height="5"/>
224224      </backdrop>
225      <backdrop name="dotmatrix65" element="dotmatrix" state="0">
226         <bounds x="128" y="116" width="64" height="8"/>
225      <backdrop name="dotmatrix65" element="dotmatrix5dot" state="0">
226         <bounds x="0" y="85" width="25" height="5"/>
227227      </backdrop>
228      <backdrop name="dotmatrix66" element="dotmatrix" state="0">
229         <bounds x="192" y="116" width="64" height="8"/>
228      <backdrop name="dotmatrix66" element="dotmatrix5dot" state="0">
229         <bounds x="25" y="85" width="25" height="5"/>
230230      </backdrop>
231      <backdrop name="dotmatrix67" element="dotmatrix" state="0">
232         <bounds x="256" y="116" width="64" height="8"/>
231      <backdrop name="dotmatrix67" element="dotmatrix5dot" state="0">
232         <bounds x="50" y="85" width="25" height="5"/>
233233      </backdrop>
234      <backdrop name="dotmatrix68" element="dotmatrix" state="0">
235         <bounds x="320" y="116" width="64" height="8"/>
234      <backdrop name="dotmatrix68" element="dotmatrix5dot" state="0">
235         <bounds x="75" y="85" width="25" height="5"/>
236236      </backdrop>
237      <backdrop name="dotmatrix69" element="dotmatrix" state="0">
238         <bounds x="384" y="116" width="64" height="8"/>
237      <backdrop name="dotmatrix69" element="dotmatrix5dot" state="0">
238         <bounds x="100" y="85" width="25" height="5"/>
239239      </backdrop>
240      <backdrop name="dotmatrix70" element="dotmatrix" state="0">
241         <bounds x="448" y="116" width="64" height="8"/>
240      <backdrop name="dotmatrix70" element="dotmatrix5dot" state="0">
241         <bounds x="125" y="85" width="25" height="5"/>
242242      </backdrop>
243      <backdrop name="dotmatrix71" element="dotmatrix" state="0">
244         <bounds x="512" y="116" width="64" height="8"/>
243      <backdrop name="dotmatrix71" element="dotmatrix5dot" state="0">
244         <bounds x="150" y="85" width="25" height="5"/>
245245      </backdrop>
246      <backdrop name="dotmatrix72" element="dotmatrix" state="0">
247         <bounds x="0" y="124" width="64" height="8"/>
246      <backdrop name="dotmatrix72" element="dotmatrix5dot" state="0">
247         <bounds x="175" y="85" width="25" height="5"/>
248248      </backdrop>
249      <backdrop name="dotmatrix73" element="dotmatrix" state="0">
250         <bounds x="64" y="124" width="64" height="8"/>
249      <backdrop name="dotmatrix73" element="dotmatrix5dot" state="0">
250         <bounds x="200" y="85" width="25" height="5"/>
251251      </backdrop>
252      <backdrop name="dotmatrix74" element="dotmatrix" state="0">
253         <bounds x="128" y="124" width="64" height="8"/>
252      <backdrop name="dotmatrix74" element="dotmatrix5dot" state="0">
253         <bounds x="225" y="85" width="25" height="5"/>
254254      </backdrop>
255      <backdrop name="dotmatrix75" element="dotmatrix" state="0">
256         <bounds x="192" y="124" width="64" height="8"/>
255      <backdrop name="dotmatrix75" element="dotmatrix5dot" state="0">
256         <bounds x="250" y="85" width="25" height="5"/>
257257      </backdrop>
258      <backdrop name="dotmatrix76" element="dotmatrix" state="0">
259         <bounds x="256" y="124" width="64" height="8"/>
258      <backdrop name="dotmatrix76" element="dotmatrix5dot" state="0">
259         <bounds x="275" y="85" width="25" height="5"/>
260260      </backdrop>
261      <backdrop name="dotmatrix77" element="dotmatrix" state="0">
262         <bounds x="320" y="124" width="64" height="8"/>
261      <backdrop name="dotmatrix77" element="dotmatrix5dot" state="0">
262         <bounds x="300" y="85" width="25" height="5"/>
263263      </backdrop>
264      <backdrop name="dotmatrix78" element="dotmatrix" state="0">
265         <bounds x="384" y="124" width="64" height="8"/>
264      <backdrop name="dotmatrix78" element="dotmatrix5dot" state="0">
265         <bounds x="0" y="90" width="25" height="5"/>
266266      </backdrop>
267      <backdrop name="dotmatrix79" element="dotmatrix" state="0">
268         <bounds x="448" y="124" width="64" height="8"/>
267      <backdrop name="dotmatrix79" element="dotmatrix5dot" state="0">
268         <bounds x="25" y="90" width="25" height="5"/>
269269      </backdrop>
270      <backdrop name="dotmatrix80" element="dotmatrix" state="0">
271         <bounds x="512" y="124" width="64" height="8"/>
270      <backdrop name="dotmatrix80" element="dotmatrix5dot" state="0">
271         <bounds x="50" y="90" width="25" height="5"/>
272272      </backdrop>
273      <backdrop name="dotmatrix81" element="dotmatrix" state="0">
274         <bounds x="0" y="132" width="64" height="8"/>
273      <backdrop name="dotmatrix81" element="dotmatrix5dot" state="0">
274         <bounds x="75" y="90" width="25" height="5"/>
275275      </backdrop>
276      <backdrop name="dotmatrix82" element="dotmatrix" state="0">
277         <bounds x="64" y="132" width="64" height="8"/>
276      <backdrop name="dotmatrix82" element="dotmatrix5dot" state="0">
277         <bounds x="100" y="90" width="25" height="5"/>
278278      </backdrop>
279      <backdrop name="dotmatrix83" element="dotmatrix" state="0">
280         <bounds x="128" y="132" width="64" height="8"/>
279      <backdrop name="dotmatrix83" element="dotmatrix5dot" state="0">
280         <bounds x="125" y="90" width="25" height="5"/>
281281      </backdrop>
282      <backdrop name="dotmatrix84" element="dotmatrix" state="0">
283         <bounds x="192" y="132" width="64" height="8"/>
282      <backdrop name="dotmatrix84" element="dotmatrix5dot" state="0">
283         <bounds x="150" y="90" width="25" height="5"/>
284284      </backdrop>
285      <backdrop name="dotmatrix85" element="dotmatrix" state="0">
286         <bounds x="256" y="132" width="64" height="8"/>
285      <backdrop name="dotmatrix85" element="dotmatrix5dot" state="0">
286         <bounds x="175" y="90" width="25" height="5"/>
287287      </backdrop>
288      <backdrop name="dotmatrix86" element="dotmatrix" state="0">
289         <bounds x="320" y="132" width="64" height="8"/>
288      <backdrop name="dotmatrix86" element="dotmatrix5dot" state="0">
289         <bounds x="200" y="90" width="25" height="5"/>
290290      </backdrop>
291      <backdrop name="dotmatrix87" element="dotmatrix" state="0">
292         <bounds x="384" y="132" width="64" height="8"/>
291      <backdrop name="dotmatrix87" element="dotmatrix5dot" state="0">
292         <bounds x="225" y="90" width="25" height="5"/>
293293      </backdrop>
294      <backdrop name="dotmatrix88" element="dotmatrix" state="0">
295         <bounds x="448" y="132" width="64" height="8"/>
294      <backdrop name="dotmatrix88" element="dotmatrix5dot" state="0">
295         <bounds x="250" y="90" width="25" height="5"/>
296296      </backdrop>
297      <backdrop name="dotmatrix89" element="dotmatrix" state="0">
298         <bounds x="512" y="132" width="64" height="8"/>
297      <backdrop name="dotmatrix89" element="dotmatrix5dot" state="0">
298         <bounds x="275" y="90" width="25" height="5"/>
299299      </backdrop>
300      <backdrop name="dotmatrix90" element="dotmatrix" state="0">
301         <bounds x="0" y="140" width="64" height="8"/>
300      <backdrop name="dotmatrix90" element="dotmatrix5dot" state="0">
301         <bounds x="300" y="90" width="25" height="5"/>
302302      </backdrop>
303      <backdrop name="dotmatrix91" element="dotmatrix" state="0">
304         <bounds x="64" y="140" width="64" height="8"/>
303      <backdrop name="dotmatrix91" element="dotmatrix5dot" state="0">
304         <bounds x="0" y="95" width="25" height="5"/>
305305      </backdrop>
306      <backdrop name="dotmatrix92" element="dotmatrix" state="0">
307         <bounds x="128" y="140" width="64" height="8"/>
306      <backdrop name="dotmatrix92" element="dotmatrix5dot" state="0">
307         <bounds x="25" y="95" width="25" height="5"/>
308308      </backdrop>
309      <backdrop name="dotmatrix93" element="dotmatrix" state="0">
310         <bounds x="192" y="140" width="64" height="8"/>
309      <backdrop name="dotmatrix93" element="dotmatrix5dot" state="0">
310         <bounds x="50" y="95" width="25" height="5"/>
311311      </backdrop>
312      <backdrop name="dotmatrix94" element="dotmatrix" state="0">
313         <bounds x="256" y="140" width="64" height="8"/>
312      <backdrop name="dotmatrix94" element="dotmatrix5dot" state="0">
313         <bounds x="75" y="95" width="25" height="5"/>
314314      </backdrop>
315      <backdrop name="dotmatrix95" element="dotmatrix" state="0">
316         <bounds x="320" y="140" width="64" height="8"/>
315      <backdrop name="dotmatrix95" element="dotmatrix5dot" state="0">
316         <bounds x="100" y="95" width="25" height="5"/>
317317      </backdrop>
318      <backdrop name="dotmatrix96" element="dotmatrix" state="0">
319         <bounds x="384" y="140" width="64" height="8"/>
318      <backdrop name="dotmatrix96" element="dotmatrix5dot" state="0">
319         <bounds x="125" y="95" width="25" height="5"/>
320320      </backdrop>
321      <backdrop name="dotmatrix97" element="dotmatrix" state="0">
322         <bounds x="448" y="140" width="64" height="8"/>
321      <backdrop name="dotmatrix97" element="dotmatrix5dot" state="0">
322         <bounds x="150" y="95" width="25" height="5"/>
323323      </backdrop>
324      <backdrop name="dotmatrix98" element="dotmatrix" state="0">
325         <bounds x="512" y="140" width="64" height="8"/>
324      <backdrop name="dotmatrix98" element="dotmatrix5dot" state="0">
325         <bounds x="175" y="95" width="25" height="5"/>
326326      </backdrop>
327      <backdrop name="dotmatrix99" element="dotmatrix" state="0">
328         <bounds x="0" y="148" width="64" height="8"/>
327      <backdrop name="dotmatrix99" element="dotmatrix5dot" state="0">
328         <bounds x="200" y="95" width="25" height="5"/>
329329      </backdrop>
330      <backdrop name="dotmatrix100" element="dotmatrix" state="0">
331         <bounds x="64" y="148" width="64" height="8"/>
330      <backdrop name="dotmatrix100" element="dotmatrix5dot" state="0">
331         <bounds x="225" y="95" width="25" height="5"/>
332332      </backdrop>
333      <backdrop name="dotmatrix101" element="dotmatrix" state="0">
334         <bounds x="128" y="148" width="64" height="8"/>
333      <backdrop name="dotmatrix101" element="dotmatrix5dot" state="0">
334         <bounds x="250" y="95" width="25" height="5"/>
335335      </backdrop>
336      <backdrop name="dotmatrix102" element="dotmatrix" state="0">
337         <bounds x="192" y="148" width="64" height="8"/>
336      <backdrop name="dotmatrix102" element="dotmatrix5dot" state="0">
337         <bounds x="275" y="95" width="25" height="5"/>
338338      </backdrop>
339      <backdrop name="dotmatrix103" element="dotmatrix" state="0">
340         <bounds x="256" y="148" width="64" height="8"/>
339      <backdrop name="dotmatrix103" element="dotmatrix5dot" state="0">
340         <bounds x="300" y="95" width="25" height="5"/>
341341      </backdrop>
342      <backdrop name="dotmatrix104" element="dotmatrix" state="0">
343         <bounds x="320" y="148" width="64" height="8"/>
342      <backdrop name="dotmatrix104" element="dotmatrix5dot" state="0">
343         <bounds x="0" y="100" width="25" height="5"/>
344344      </backdrop>
345      <backdrop name="dotmatrix105" element="dotmatrix" state="0">
346         <bounds x="384" y="148" width="64" height="8"/>
345      <backdrop name="dotmatrix105" element="dotmatrix5dot" state="0">
346         <bounds x="25" y="100" width="25" height="5"/>
347347      </backdrop>
348      <backdrop name="dotmatrix106" element="dotmatrix" state="0">
349         <bounds x="448" y="148" width="64" height="8"/>
348      <backdrop name="dotmatrix106" element="dotmatrix5dot" state="0">
349         <bounds x="50" y="100" width="25" height="5"/>
350350      </backdrop>
351      <backdrop name="dotmatrix107" element="dotmatrix" state="0">
352         <bounds x="512" y="148" width="64" height="8"/>
351      <backdrop name="dotmatrix107" element="dotmatrix5dot" state="0">
352         <bounds x="75" y="100" width="25" height="5"/>
353353      </backdrop>
354      <backdrop name="dotmatrix108" element="dotmatrix" state="0">
355         <bounds x="0" y="156" width="64" height="8"/>
354      <backdrop name="dotmatrix108" element="dotmatrix5dot" state="0">
355         <bounds x="100" y="100" width="25" height="5"/>
356356      </backdrop>
357      <backdrop name="dotmatrix109" element="dotmatrix" state="0">
358         <bounds x="64" y="156" width="64" height="8"/>
357      <backdrop name="dotmatrix109" element="dotmatrix5dot" state="0">
358         <bounds x="125" y="100" width="25" height="5"/>
359359      </backdrop>
360      <backdrop name="dotmatrix110" element="dotmatrix" state="0">
361         <bounds x="128" y="156" width="64" height="8"/>
360      <backdrop name="dotmatrix110" element="dotmatrix5dot" state="0">
361         <bounds x="150" y="100" width="25" height="5"/>
362362      </backdrop>
363      <backdrop name="dotmatrix111" element="dotmatrix" state="0">
364         <bounds x="192" y="156" width="64" height="8"/>
363      <backdrop name="dotmatrix111" element="dotmatrix5dot" state="0">
364         <bounds x="175" y="100" width="25" height="5"/>
365365      </backdrop>
366      <backdrop name="dotmatrix112" element="dotmatrix" state="0">
367         <bounds x="256" y="156" width="64" height="8"/>
366      <backdrop name="dotmatrix112" element="dotmatrix5dot" state="0">
367         <bounds x="200" y="100" width="25" height="5"/>
368368      </backdrop>
369      <backdrop name="dotmatrix113" element="dotmatrix" state="0">
370         <bounds x="320" y="156" width="64" height="8"/>
369      <backdrop name="dotmatrix113" element="dotmatrix5dot" state="0">
370         <bounds x="225" y="100" width="25" height="5"/>
371371      </backdrop>
372      <backdrop name="dotmatrix114" element="dotmatrix" state="0">
373         <bounds x="384" y="156" width="64" height="8"/>
372      <backdrop name="dotmatrix114" element="dotmatrix5dot" state="0">
373         <bounds x="250" y="100" width="25" height="5"/>
374374      </backdrop>
375      <backdrop name="dotmatrix115" element="dotmatrix" state="0">
376         <bounds x="448" y="156" width="64" height="8"/>
375      <backdrop name="dotmatrix115" element="dotmatrix5dot" state="0">
376         <bounds x="275" y="100" width="25" height="5"/>
377377      </backdrop>
378      <backdrop name="dotmatrix116" element="dotmatrix" state="0">
379         <bounds x="512" y="156" width="64" height="8"/>
378      <backdrop name="dotmatrix116" element="dotmatrix5dot" state="0">
379         <bounds x="300" y="100" width="25" height="5"/>
380380      </backdrop>
381      <backdrop name="dotmatrix117" element="dotmatrix" state="0">
382         <bounds x="0" y="164" width="64" height="8"/>
381      <backdrop name="dotmatrix117" element="dotmatrix5dot" state="0">
382         <bounds x="0" y="105" width="25" height="5"/>
383383      </backdrop>
384      <backdrop name="dotmatrix118" element="dotmatrix" state="0">
385         <bounds x="64" y="164" width="64" height="8"/>
384      <backdrop name="dotmatrix118" element="dotmatrix5dot" state="0">
385         <bounds x="25" y="105" width="25" height="5"/>
386386      </backdrop>
387      <backdrop name="dotmatrix119" element="dotmatrix" state="0">
388         <bounds x="128" y="164" width="64" height="8"/>
387      <backdrop name="dotmatrix119" element="dotmatrix5dot" state="0">
388         <bounds x="50" y="105" width="25" height="5"/>
389389      </backdrop>
390      <backdrop name="dotmatrix120" element="dotmatrix" state="0">
391         <bounds x="192" y="164" width="64" height="8"/>
390      <backdrop name="dotmatrix120" element="dotmatrix5dot" state="0">
391         <bounds x="75" y="105" width="25" height="5"/>
392392      </backdrop>
393      <backdrop name="dotmatrix121" element="dotmatrix" state="0">
394         <bounds x="256" y="164" width="64" height="8"/>
393      <backdrop name="dotmatrix121" element="dotmatrix5dot" state="0">
394         <bounds x="100" y="105" width="25" height="5"/>
395395      </backdrop>
396      <backdrop name="dotmatrix122" element="dotmatrix" state="0">
397         <bounds x="320" y="164" width="64" height="8"/>
396      <backdrop name="dotmatrix122" element="dotmatrix5dot" state="0">
397         <bounds x="125" y="105" width="25" height="5"/>
398398      </backdrop>
399      <backdrop name="dotmatrix123" element="dotmatrix" state="0">
400         <bounds x="384" y="164" width="64" height="8"/>
399      <backdrop name="dotmatrix123" element="dotmatrix5dot" state="0">
400         <bounds x="150" y="105" width="25" height="5"/>
401401      </backdrop>
402      <backdrop name="dotmatrix124" element="dotmatrix" state="0">
403         <bounds x="448" y="164" width="64" height="8"/>
402      <backdrop name="dotmatrix124" element="dotmatrix5dot" state="0">
403         <bounds x="175" y="105" width="25" height="5"/>
404404      </backdrop>
405      <backdrop name="dotmatrix125" element="dotmatrix" state="0">
406         <bounds x="512" y="164" width="64" height="8"/>
405      <backdrop name="dotmatrix125" element="dotmatrix5dot" state="0">
406         <bounds x="200" y="105" width="25" height="5"/>
407407      </backdrop>
408      <backdrop name="dotmatrix126" element="dotmatrix" state="0">
409         <bounds x="0" y="172" width="64" height="8"/>
408      <backdrop name="dotmatrix126" element="dotmatrix5dot" state="0">
409         <bounds x="225" y="105" width="25" height="5"/>
410410      </backdrop>
411      <backdrop name="dotmatrix127" element="dotmatrix" state="0">
412         <bounds x="64" y="172" width="64" height="8"/>
411      <backdrop name="dotmatrix127" element="dotmatrix5dot" state="0">
412         <bounds x="250" y="105" width="25" height="5"/>
413413      </backdrop>
414      <backdrop name="dotmatrix128" element="dotmatrix" state="0">
415         <bounds x="128" y="172" width="64" height="8"/>
414      <backdrop name="dotmatrix128" element="dotmatrix5dot" state="0">
415         <bounds x="275" y="105" width="25" height="5"/>
416416      </backdrop>
417      <backdrop name="dotmatrix129" element="dotmatrix" state="0">
418         <bounds x="192" y="172" width="64" height="8"/>
417      <backdrop name="dotmatrix129" element="dotmatrix5dot" state="0">
418         <bounds x="300" y="105" width="25" height="5"/>
419419      </backdrop>
420      <backdrop name="dotmatrix130" element="dotmatrix" state="0">
421         <bounds x="256" y="172" width="64" height="8"/>
420      <backdrop name="dotmatrix130" element="dotmatrix5dot" state="0">
421         <bounds x="0" y="110" width="25" height="5"/>
422422      </backdrop>
423      <backdrop name="dotmatrix131" element="dotmatrix" state="0">
424         <bounds x="320" y="172" width="64" height="8"/>
423      <backdrop name="dotmatrix131" element="dotmatrix5dot" state="0">
424         <bounds x="25" y="110" width="25" height="5"/>
425425      </backdrop>
426      <backdrop name="dotmatrix132" element="dotmatrix" state="0">
427         <bounds x="384" y="172" width="64" height="8"/>
426      <backdrop name="dotmatrix132" element="dotmatrix5dot" state="0">
427         <bounds x="50" y="110" width="25" height="5"/>
428428      </backdrop>
429      <backdrop name="dotmatrix133" element="dotmatrix" state="0">
430         <bounds x="448" y="172" width="64" height="8"/>
429      <backdrop name="dotmatrix133" element="dotmatrix5dot" state="0">
430         <bounds x="75" y="110" width="25" height="5"/>
431431      </backdrop>
432      <backdrop name="dotmatrix134" element="dotmatrix" state="0">
433         <bounds x="512" y="172" width="64" height="8"/>
432      <backdrop name="dotmatrix134" element="dotmatrix5dot" state="0">
433         <bounds x="100" y="110" width="25" height="5"/>
434434      </backdrop>
435      <backdrop name="dotmatrix135" element="dotmatrix" state="0">
436         <bounds x="0" y="180" width="64" height="8"/>
435      <backdrop name="dotmatrix135" element="dotmatrix5dot" state="0">
436         <bounds x="125" y="110" width="25" height="5"/>
437437      </backdrop>
438      <backdrop name="dotmatrix136" element="dotmatrix" state="0">
439         <bounds x="64" y="180" width="64" height="8"/>
438      <backdrop name="dotmatrix136" element="dotmatrix5dot" state="0">
439         <bounds x="150" y="110" width="25" height="5"/>
440440      </backdrop>
441      <backdrop name="dotmatrix137" element="dotmatrix" state="0">
442         <bounds x="128" y="180" width="64" height="8"/>
441      <backdrop name="dotmatrix137" element="dotmatrix5dot" state="0">
442         <bounds x="175" y="110" width="25" height="5"/>
443443      </backdrop>
444      <backdrop name="dotmatrix138" element="dotmatrix" state="0">
445         <bounds x="192" y="180" width="64" height="8"/>
444      <backdrop name="dotmatrix138" element="dotmatrix5dot" state="0">
445         <bounds x="200" y="110" width="25" height="5"/>
446446      </backdrop>
447      <backdrop name="dotmatrix139" element="dotmatrix" state="0">
448         <bounds x="256" y="180" width="64" height="8"/>
447      <backdrop name="dotmatrix139" element="dotmatrix5dot" state="0">
448         <bounds x="225" y="110" width="25" height="5"/>
449449      </backdrop>
450      <backdrop name="dotmatrix140" element="dotmatrix" state="0">
451         <bounds x="320" y="180" width="64" height="8"/>
450      <backdrop name="dotmatrix140" element="dotmatrix5dot" state="0">
451         <bounds x="250" y="110" width="25" height="5"/>
452452      </backdrop>
453      <backdrop name="dotmatrix141" element="dotmatrix" state="0">
454         <bounds x="384" y="180" width="64" height="8"/>
453      <backdrop name="dotmatrix141" element="dotmatrix5dot" state="0">
454         <bounds x="275" y="110" width="25" height="5"/>
455455      </backdrop>
456      <backdrop name="dotmatrix142" element="dotmatrix" state="0">
457         <bounds x="448" y="180" width="64" height="8"/>
456      <backdrop name="dotmatrix142" element="dotmatrix5dot" state="0">
457         <bounds x="300" y="110" width="25" height="5"/>
458458      </backdrop>
459      <backdrop name="dotmatrix143" element="dotmatrix" state="0">
460         <bounds x="512" y="180" width="64" height="8"/>
459      <backdrop name="dotmatrix143" element="dotmatrix5dot" state="0">
460         <bounds x="0" y="115" width="25" height="5"/>
461461      </backdrop>
462      <backdrop name="dotmatrix144" element="dotmatrix" state="0">
463         <bounds x="0" y="188" width="64" height="8"/>
462      <backdrop name="dotmatrix144" element="dotmatrix5dot" state="0">
463         <bounds x="25" y="115" width="25" height="5"/>
464464      </backdrop>
465      <backdrop name="dotmatrix145" element="dotmatrix" state="0">
466         <bounds x="64" y="188" width="64" height="8"/>
465      <backdrop name="dotmatrix145" element="dotmatrix5dot" state="0">
466         <bounds x="50" y="115" width="25" height="5"/>
467467      </backdrop>
468      <backdrop name="dotmatrix146" element="dotmatrix" state="0">
469         <bounds x="128" y="188" width="64" height="8"/>
468      <backdrop name="dotmatrix146" element="dotmatrix5dot" state="0">
469         <bounds x="75" y="115" width="25" height="5"/>
470470      </backdrop>
471      <backdrop name="dotmatrix147" element="dotmatrix" state="0">
472         <bounds x="192" y="188" width="64" height="8"/>
471      <backdrop name="dotmatrix147" element="dotmatrix5dot" state="0">
472         <bounds x="100" y="115" width="25" height="5"/>
473473      </backdrop>
474      <backdrop name="dotmatrix148" element="dotmatrix" state="0">
475         <bounds x="256" y="188" width="64" height="8"/>
474      <backdrop name="dotmatrix148" element="dotmatrix5dot" state="0">
475         <bounds x="125" y="115" width="25" height="5"/>
476476      </backdrop>
477      <backdrop name="dotmatrix149" element="dotmatrix" state="0">
478         <bounds x="320" y="188" width="64" height="8"/>
477      <backdrop name="dotmatrix149" element="dotmatrix5dot" state="0">
478         <bounds x="150" y="115" width="25" height="5"/>
479479      </backdrop>
480      <backdrop name="dotmatrix150" element="dotmatrix" state="0">
481         <bounds x="384" y="188" width="64" height="8"/>
480      <backdrop name="dotmatrix150" element="dotmatrix5dot" state="0">
481         <bounds x="175" y="115" width="25" height="5"/>
482482      </backdrop>
483      <backdrop name="dotmatrix151" element="dotmatrix" state="0">
484         <bounds x="448" y="188" width="64" height="8"/>
483      <backdrop name="dotmatrix151" element="dotmatrix5dot" state="0">
484         <bounds x="200" y="115" width="25" height="5"/>
485485      </backdrop>
486      <backdrop name="dotmatrix152" element="dotmatrix" state="0">
487         <bounds x="512" y="188" width="64" height="8"/>
486      <backdrop name="dotmatrix152" element="dotmatrix5dot" state="0">
487         <bounds x="225" y="115" width="25" height="5"/>
488488      </backdrop>
489      <backdrop name="dotmatrix153" element="dotmatrix" state="0">
490         <bounds x="0" y="196" width="64" height="8"/>
489      <backdrop name="dotmatrix153" element="dotmatrix5dot" state="0">
490         <bounds x="250" y="115" width="25" height="5"/>
491491      </backdrop>
492      <backdrop name="dotmatrix154" element="dotmatrix" state="0">
493         <bounds x="64" y="196" width="64" height="8"/>
492      <backdrop name="dotmatrix154" element="dotmatrix5dot" state="0">
493         <bounds x="275" y="115" width="25" height="5"/>
494494      </backdrop>
495      <backdrop name="dotmatrix155" element="dotmatrix" state="0">
496         <bounds x="128" y="196" width="64" height="8"/>
495      <backdrop name="dotmatrix155" element="dotmatrix5dot" state="0">
496         <bounds x="300" y="115" width="25" height="5"/>
497497      </backdrop>
498      <backdrop name="dotmatrix156" element="dotmatrix" state="0">
499         <bounds x="192" y="196" width="64" height="8"/>
498      <backdrop name="dotmatrix156" element="dotmatrix5dot" state="0">
499         <bounds x="0" y="120" width="25" height="5"/>
500500      </backdrop>
501      <backdrop name="dotmatrix157" element="dotmatrix" state="0">
502         <bounds x="256" y="196" width="64" height="8"/>
501      <backdrop name="dotmatrix157" element="dotmatrix5dot" state="0">
502         <bounds x="25" y="120" width="25" height="5"/>
503503      </backdrop>
504      <backdrop name="dotmatrix158" element="dotmatrix" state="0">
505         <bounds x="320" y="196" width="64" height="8"/>
504      <backdrop name="dotmatrix158" element="dotmatrix5dot" state="0">
505         <bounds x="50" y="120" width="25" height="5"/>
506506      </backdrop>
507      <backdrop name="dotmatrix159" element="dotmatrix" state="0">
508         <bounds x="384" y="196" width="64" height="8"/>
507      <backdrop name="dotmatrix159" element="dotmatrix5dot" state="0">
508         <bounds x="75" y="120" width="25" height="5"/>
509509      </backdrop>
510      <backdrop name="dotmatrix160" element="dotmatrix" state="0">
511         <bounds x="448" y="196" width="64" height="8"/>
510      <backdrop name="dotmatrix160" element="dotmatrix5dot" state="0">
511         <bounds x="100" y="120" width="25" height="5"/>
512512      </backdrop>
513      <backdrop name="dotmatrix161" element="dotmatrix" state="0">
514         <bounds x="512" y="196" width="64" height="8"/>
513      <backdrop name="dotmatrix161" element="dotmatrix5dot" state="0">
514         <bounds x="125" y="120" width="25" height="5"/>
515515      </backdrop>
516      <backdrop name="dotmatrix162" element="dotmatrix" state="0">
517         <bounds x="0" y="204" width="64" height="8"/>
516      <backdrop name="dotmatrix162" element="dotmatrix5dot" state="0">
517         <bounds x="150" y="120" width="25" height="5"/>
518518      </backdrop>
519      <backdrop name="dotmatrix163" element="dotmatrix" state="0">
520         <bounds x="64" y="204" width="64" height="8"/>
519      <backdrop name="dotmatrix163" element="dotmatrix5dot" state="0">
520         <bounds x="175" y="120" width="25" height="5"/>
521521      </backdrop>
522      <backdrop name="dotmatrix164" element="dotmatrix" state="0">
523         <bounds x="128" y="204" width="64" height="8"/>
522      <backdrop name="dotmatrix164" element="dotmatrix5dot" state="0">
523         <bounds x="200" y="120" width="25" height="5"/>
524524      </backdrop>
525      <backdrop name="dotmatrix165" element="dotmatrix" state="0">
526         <bounds x="192" y="204" width="64" height="8"/>
525      <backdrop name="dotmatrix165" element="dotmatrix5dot" state="0">
526         <bounds x="225" y="120" width="25" height="5"/>
527527      </backdrop>
528      <backdrop name="dotmatrix166" element="dotmatrix" state="0">
529         <bounds x="256" y="204" width="64" height="8"/>
528      <backdrop name="dotmatrix166" element="dotmatrix5dot" state="0">
529         <bounds x="250" y="120" width="25" height="5"/>
530530      </backdrop>
531      <backdrop name="dotmatrix167" element="dotmatrix" state="0">
532         <bounds x="320" y="204" width="64" height="8"/>
531      <backdrop name="dotmatrix167" element="dotmatrix5dot" state="0">
532         <bounds x="275" y="120" width="25" height="5"/>
533533      </backdrop>
534      <backdrop name="dotmatrix168" element="dotmatrix" state="0">
535         <bounds x="384" y="204" width="64" height="8"/>
534      <backdrop name="dotmatrix168" element="dotmatrix5dot" state="0">
535         <bounds x="300" y="120" width="25" height="5"/>
536536      </backdrop>
537      <backdrop name="dotmatrix169" element="dotmatrix" state="0">
538         <bounds x="448" y="204" width="64" height="8"/>
537      <backdrop name="dotmatrix169" element="dotmatrix5dot" state="0">
538         <bounds x="0" y="125" width="25" height="5"/>
539539      </backdrop>
540      <backdrop name="dotmatrix170" element="dotmatrix" state="0">
541         <bounds x="512" y="204" width="64" height="8"/>
540      <backdrop name="dotmatrix170" element="dotmatrix5dot" state="0">
541         <bounds x="25" y="125" width="25" height="5"/>
542542      </backdrop>
543      <backdrop name="dotmatrix171" element="dotmatrix" state="0">
544         <bounds x="0" y="212" width="64" height="8"/>
543      <backdrop name="dotmatrix171" element="dotmatrix5dot" state="0">
544         <bounds x="50" y="125" width="25" height="5"/>
545545      </backdrop>
546      <backdrop name="dotmatrix172" element="dotmatrix" state="0">
547         <bounds x="64" y="212" width="64" height="8"/>
546      <backdrop name="dotmatrix172" element="dotmatrix5dot" state="0">
547         <bounds x="75" y="125" width="25" height="5"/>
548548      </backdrop>
549      <backdrop name="dotmatrix173" element="dotmatrix" state="0">
550         <bounds x="128" y="212" width="64" height="8"/>
549      <backdrop name="dotmatrix173" element="dotmatrix5dot" state="0">
550         <bounds x="100" y="125" width="25" height="5"/>
551551      </backdrop>
552      <backdrop name="dotmatrix174" element="dotmatrix" state="0">
553         <bounds x="192" y="212" width="64" height="8"/>
552      <backdrop name="dotmatrix174" element="dotmatrix5dot" state="0">
553         <bounds x="125" y="125" width="25" height="5"/>
554554      </backdrop>
555      <backdrop name="dotmatrix175" element="dotmatrix" state="0">
556         <bounds x="256" y="212" width="64" height="8"/>
555      <backdrop name="dotmatrix175" element="dotmatrix5dot" state="0">
556         <bounds x="150" y="125" width="25" height="5"/>
557557      </backdrop>
558      <backdrop name="dotmatrix176" element="dotmatrix" state="0">
559         <bounds x="320" y="212" width="64" height="8"/>
558      <backdrop name="dotmatrix176" element="dotmatrix5dot" state="0">
559         <bounds x="175" y="125" width="25" height="5"/>
560560      </backdrop>
561      <backdrop name="dotmatrix177" element="dotmatrix" state="0">
562         <bounds x="384" y="212" width="64" height="8"/>
561      <backdrop name="dotmatrix177" element="dotmatrix5dot" state="0">
562         <bounds x="200" y="125" width="25" height="5"/>
563563      </backdrop>
564      <backdrop name="dotmatrix178" element="dotmatrix" state="0">
565         <bounds x="448" y="212" width="64" height="8"/>
564      <backdrop name="dotmatrix178" element="dotmatrix5dot" state="0">
565         <bounds x="225" y="125" width="25" height="5"/>
566566      </backdrop>
567      <backdrop name="dotmatrix179" element="dotmatrix" state="0">
568         <bounds x="512" y="212" width="64" height="8"/>
567      <backdrop name="dotmatrix179" element="dotmatrix5dot" state="0">
568         <bounds x="250" y="125" width="25" height="5"/>
569569      </backdrop>
570      <backdrop name="dotmatrix180" element="dotmatrix" state="0">
571         <bounds x="0" y="220" width="64" height="8"/>
570      <backdrop name="dotmatrix180" element="dotmatrix5dot" state="0">
571         <bounds x="275" y="125" width="25" height="5"/>
572572      </backdrop>
573      <backdrop name="dotmatrix181" element="dotmatrix" state="0">
574         <bounds x="64" y="220" width="64" height="8"/>
573      <backdrop name="dotmatrix181" element="dotmatrix5dot" state="0">
574         <bounds x="300" y="125" width="25" height="5"/>
575575      </backdrop>
576      <backdrop name="dotmatrix182" element="dotmatrix" state="0">
577         <bounds x="128" y="220" width="64" height="8"/>
576      <backdrop name="dotmatrix182" element="dotmatrix5dot" state="0">
577         <bounds x="0" y="130" width="25" height="5"/>
578578      </backdrop>
579      <backdrop name="dotmatrix183" element="dotmatrix" state="0">
580         <bounds x="192" y="220" width="64" height="8"/>
579      <backdrop name="dotmatrix183" element="dotmatrix5dot" state="0">
580         <bounds x="25" y="130" width="25" height="5"/>
581581      </backdrop>
582      <backdrop name="dotmatrix184" element="dotmatrix" state="0">
583         <bounds x="256" y="220" width="64" height="8"/>
582      <backdrop name="dotmatrix184" element="dotmatrix5dot" state="0">
583         <bounds x="50" y="130" width="25" height="5"/>
584584      </backdrop>
585      <backdrop name="dotmatrix185" element="dotmatrix" state="0">
586         <bounds x="320" y="220" width="64" height="8"/>
585      <backdrop name="dotmatrix185" element="dotmatrix5dot" state="0">
586         <bounds x="75" y="130" width="25" height="5"/>
587587      </backdrop>
588      <backdrop name="dotmatrix186" element="dotmatrix" state="0">
589         <bounds x="384" y="220" width="64" height="8"/>
588      <backdrop name="dotmatrix186" element="dotmatrix5dot" state="0">
589         <bounds x="100" y="130" width="25" height="5"/>
590590      </backdrop>
591      <backdrop name="dotmatrix187" element="dotmatrix" state="0">
592         <bounds x="448" y="220" width="64" height="8"/>
591      <backdrop name="dotmatrix187" element="dotmatrix5dot" state="0">
592         <bounds x="125" y="130" width="25" height="5"/>
593593      </backdrop>
594      <backdrop name="dotmatrix188" element="dotmatrix" state="0">
595         <bounds x="512" y="220" width="64" height="8"/>
594      <backdrop name="dotmatrix188" element="dotmatrix5dot" state="0">
595         <bounds x="150" y="130" width="25" height="5"/>
596596      </backdrop>
597      <backdrop name="dotmatrix189" element="dotmatrix5dot" state="0">
598         <bounds x="175" y="130" width="25" height="5"/>
599      </backdrop>
600      <backdrop name="dotmatrix190" element="dotmatrix5dot" state="0">
601         <bounds x="200" y="130" width="25" height="5"/>
602      </backdrop>
603      <backdrop name="dotmatrix191" element="dotmatrix5dot" state="0">
604         <bounds x="225" y="130" width="25" height="5"/>
605      </backdrop>
606      <backdrop name="dotmatrix192" element="dotmatrix5dot" state="0">
607         <bounds x="250" y="130" width="25" height="5"/>
608      </backdrop>
609      <backdrop name="dotmatrix193" element="dotmatrix5dot" state="0">
610         <bounds x="275" y="130" width="25" height="5"/>
611      </backdrop>
612      <backdrop name="dotmatrix194" element="dotmatrix5dot" state="0">
613         <bounds x="300" y="130" width="25" height="5"/>
614      </backdrop>
615      <backdrop name="dotmatrix195" element="dotmatrix5dot" state="0">
616         <bounds x="0" y="135" width="25" height="5"/>
617      </backdrop>
618      <backdrop name="dotmatrix196" element="dotmatrix5dot" state="0">
619         <bounds x="25" y="135" width="25" height="5"/>
620      </backdrop>
621      <backdrop name="dotmatrix197" element="dotmatrix5dot" state="0">
622         <bounds x="50" y="135" width="25" height="5"/>
623      </backdrop>
624      <backdrop name="dotmatrix198" element="dotmatrix5dot" state="0">
625         <bounds x="75" y="135" width="25" height="5"/>
626      </backdrop>
627      <backdrop name="dotmatrix199" element="dotmatrix5dot" state="0">
628         <bounds x="100" y="135" width="25" height="5"/>
629      </backdrop>
630      <backdrop name="dotmatrix200" element="dotmatrix5dot" state="0">
631         <bounds x="125" y="135" width="25" height="5"/>
632      </backdrop>
633      <backdrop name="dotmatrix201" element="dotmatrix5dot" state="0">
634         <bounds x="150" y="135" width="25" height="5"/>
635      </backdrop>
636      <backdrop name="dotmatrix202" element="dotmatrix5dot" state="0">
637         <bounds x="175" y="135" width="25" height="5"/>
638      </backdrop>
639      <backdrop name="dotmatrix203" element="dotmatrix5dot" state="0">
640         <bounds x="200" y="135" width="25" height="5"/>
641      </backdrop>
642      <backdrop name="dotmatrix204" element="dotmatrix5dot" state="0">
643         <bounds x="225" y="135" width="25" height="5"/>
644      </backdrop>
645      <backdrop name="dotmatrix205" element="dotmatrix5dot" state="0">
646         <bounds x="250" y="135" width="25" height="5"/>
647      </backdrop>
648      <backdrop name="dotmatrix206" element="dotmatrix5dot" state="0">
649         <bounds x="275" y="135" width="25" height="5"/>
650      </backdrop>
651      <backdrop name="dotmatrix207" element="dotmatrix5dot" state="0">
652         <bounds x="300" y="135" width="25" height="5"/>
653      </backdrop>
654      <backdrop name="dotmatrix208" element="dotmatrix5dot" state="0">
655         <bounds x="0" y="140" width="25" height="5"/>
656      </backdrop>
657      <backdrop name="dotmatrix209" element="dotmatrix5dot" state="0">
658         <bounds x="25" y="140" width="25" height="5"/>
659      </backdrop>
660      <backdrop name="dotmatrix210" element="dotmatrix5dot" state="0">
661         <bounds x="50" y="140" width="25" height="5"/>
662      </backdrop>
663      <backdrop name="dotmatrix211" element="dotmatrix5dot" state="0">
664         <bounds x="75" y="140" width="25" height="5"/>
665      </backdrop>
666      <backdrop name="dotmatrix212" element="dotmatrix5dot" state="0">
667         <bounds x="100" y="140" width="25" height="5"/>
668      </backdrop>
669      <backdrop name="dotmatrix213" element="dotmatrix5dot" state="0">
670         <bounds x="125" y="140" width="25" height="5"/>
671      </backdrop>
672      <backdrop name="dotmatrix214" element="dotmatrix5dot" state="0">
673         <bounds x="150" y="140" width="25" height="5"/>
674      </backdrop>
675      <backdrop name="dotmatrix215" element="dotmatrix5dot" state="0">
676         <bounds x="175" y="140" width="25" height="5"/>
677      </backdrop>
678      <backdrop name="dotmatrix216" element="dotmatrix5dot" state="0">
679         <bounds x="200" y="140" width="25" height="5"/>
680      </backdrop>
681      <backdrop name="dotmatrix217" element="dotmatrix5dot" state="0">
682         <bounds x="225" y="140" width="25" height="5"/>
683      </backdrop>
684      <backdrop name="dotmatrix218" element="dotmatrix5dot" state="0">
685         <bounds x="250" y="140" width="25" height="5"/>
686      </backdrop>
687      <backdrop name="dotmatrix219" element="dotmatrix5dot" state="0">
688         <bounds x="275" y="140" width="25" height="5"/>
689      </backdrop>
690      <backdrop name="dotmatrix220" element="dotmatrix5dot" state="0">
691         <bounds x="300" y="140" width="25" height="5"/>
692      </backdrop>
693      <backdrop name="dotmatrix221" element="dotmatrix5dot" state="0">
694         <bounds x="0" y="145" width="25" height="5"/>
695      </backdrop>
696      <backdrop name="dotmatrix222" element="dotmatrix5dot" state="0">
697         <bounds x="25" y="145" width="25" height="5"/>
698      </backdrop>
699      <backdrop name="dotmatrix223" element="dotmatrix5dot" state="0">
700         <bounds x="50" y="145" width="25" height="5"/>
701      </backdrop>
702      <backdrop name="dotmatrix224" element="dotmatrix5dot" state="0">
703         <bounds x="75" y="145" width="25" height="5"/>
704      </backdrop>
705      <backdrop name="dotmatrix225" element="dotmatrix5dot" state="0">
706         <bounds x="100" y="145" width="25" height="5"/>
707      </backdrop>
708      <backdrop name="dotmatrix226" element="dotmatrix5dot" state="0">
709         <bounds x="125" y="145" width="25" height="5"/>
710      </backdrop>
711      <backdrop name="dotmatrix227" element="dotmatrix5dot" state="0">
712         <bounds x="150" y="145" width="25" height="5"/>
713      </backdrop>
714      <backdrop name="dotmatrix228" element="dotmatrix5dot" state="0">
715         <bounds x="175" y="145" width="25" height="5"/>
716      </backdrop>
717      <backdrop name="dotmatrix229" element="dotmatrix5dot" state="0">
718         <bounds x="200" y="145" width="25" height="5"/>
719      </backdrop>
720      <backdrop name="dotmatrix230" element="dotmatrix5dot" state="0">
721         <bounds x="225" y="145" width="25" height="5"/>
722      </backdrop>
723      <backdrop name="dotmatrix231" element="dotmatrix5dot" state="0">
724         <bounds x="250" y="145" width="25" height="5"/>
725      </backdrop>
726      <backdrop name="dotmatrix232" element="dotmatrix5dot" state="0">
727         <bounds x="275" y="145" width="25" height="5"/>
728      </backdrop>
729      <backdrop name="dotmatrix233" element="dotmatrix5dot" state="0">
730         <bounds x="300" y="145" width="25" height="5"/>
731      </backdrop>
732      <backdrop name="dotmatrix234" element="dotmatrix5dot" state="0">
733         <bounds x="0" y="150" width="25" height="5"/>
734      </backdrop>
735      <backdrop name="dotmatrix235" element="dotmatrix5dot" state="0">
736         <bounds x="25" y="150" width="25" height="5"/>
737      </backdrop>
738      <backdrop name="dotmatrix236" element="dotmatrix5dot" state="0">
739         <bounds x="50" y="150" width="25" height="5"/>
740      </backdrop>
741      <backdrop name="dotmatrix237" element="dotmatrix5dot" state="0">
742         <bounds x="75" y="150" width="25" height="5"/>
743      </backdrop>
744      <backdrop name="dotmatrix238" element="dotmatrix5dot" state="0">
745         <bounds x="100" y="150" width="25" height="5"/>
746      </backdrop>
747      <backdrop name="dotmatrix239" element="dotmatrix5dot" state="0">
748         <bounds x="125" y="150" width="25" height="5"/>
749      </backdrop>
750      <backdrop name="dotmatrix240" element="dotmatrix5dot" state="0">
751         <bounds x="150" y="150" width="25" height="5"/>
752      </backdrop>
753      <backdrop name="dotmatrix241" element="dotmatrix5dot" state="0">
754         <bounds x="175" y="150" width="25" height="5"/>
755      </backdrop>
756      <backdrop name="dotmatrix242" element="dotmatrix5dot" state="0">
757         <bounds x="200" y="150" width="25" height="5"/>
758      </backdrop>
759      <backdrop name="dotmatrix243" element="dotmatrix5dot" state="0">
760         <bounds x="225" y="150" width="25" height="5"/>
761      </backdrop>
762      <backdrop name="dotmatrix244" element="dotmatrix5dot" state="0">
763         <bounds x="250" y="150" width="25" height="5"/>
764      </backdrop>
765      <backdrop name="dotmatrix245" element="dotmatrix5dot" state="0">
766         <bounds x="275" y="150" width="25" height="5"/>
767      </backdrop>
768      <backdrop name="dotmatrix246" element="dotmatrix5dot" state="0">
769         <bounds x="300" y="150" width="25" height="5"/>
770      </backdrop>
771      <backdrop name="dotmatrix247" element="dotmatrix5dot" state="0">
772         <bounds x="0" y="155" width="25" height="5"/>
773      </backdrop>
774      <backdrop name="dotmatrix248" element="dotmatrix5dot" state="0">
775         <bounds x="25" y="155" width="25" height="5"/>
776      </backdrop>
777      <backdrop name="dotmatrix249" element="dotmatrix5dot" state="0">
778         <bounds x="50" y="155" width="25" height="5"/>
779      </backdrop>
780      <backdrop name="dotmatrix250" element="dotmatrix5dot" state="0">
781         <bounds x="75" y="155" width="25" height="5"/>
782      </backdrop>
783      <backdrop name="dotmatrix251" element="dotmatrix5dot" state="0">
784         <bounds x="100" y="155" width="25" height="5"/>
785      </backdrop>
786      <backdrop name="dotmatrix252" element="dotmatrix5dot" state="0">
787         <bounds x="125" y="155" width="25" height="5"/>
788      </backdrop>
789      <backdrop name="dotmatrix253" element="dotmatrix5dot" state="0">
790         <bounds x="150" y="155" width="25" height="5"/>
791      </backdrop>
792      <backdrop name="dotmatrix254" element="dotmatrix5dot" state="0">
793         <bounds x="175" y="155" width="25" height="5"/>
794      </backdrop>
795      <backdrop name="dotmatrix255" element="dotmatrix5dot" state="0">
796         <bounds x="200" y="155" width="25" height="5"/>
797      </backdrop>
798      <backdrop name="dotmatrix256" element="dotmatrix5dot" state="0">
799         <bounds x="225" y="155" width="25" height="5"/>
800      </backdrop>
801      <backdrop name="dotmatrix257" element="dotmatrix5dot" state="0">
802         <bounds x="250" y="155" width="25" height="5"/>
803      </backdrop>
804      <backdrop name="dotmatrix258" element="dotmatrix5dot" state="0">
805         <bounds x="275" y="155" width="25" height="5"/>
806      </backdrop>
807      <backdrop name="dotmatrix259" element="dotmatrix5dot" state="0">
808         <bounds x="300" y="155" width="25" height="5"/>
809      </backdrop>
810      <backdrop name="dotmatrix260" element="dotmatrix5dot" state="0">
811         <bounds x="0" y="160" width="25" height="5"/>
812      </backdrop>
813      <backdrop name="dotmatrix261" element="dotmatrix5dot" state="0">
814         <bounds x="25" y="160" width="25" height="5"/>
815      </backdrop>
816      <backdrop name="dotmatrix262" element="dotmatrix5dot" state="0">
817         <bounds x="50" y="160" width="25" height="5"/>
818      </backdrop>
819      <backdrop name="dotmatrix263" element="dotmatrix5dot" state="0">
820         <bounds x="75" y="160" width="25" height="5"/>
821      </backdrop>
822      <backdrop name="dotmatrix264" element="dotmatrix5dot" state="0">
823         <bounds x="100" y="160" width="25" height="5"/>
824      </backdrop>
825      <backdrop name="dotmatrix265" element="dotmatrix5dot" state="0">
826         <bounds x="125" y="160" width="25" height="5"/>
827      </backdrop>
828      <backdrop name="dotmatrix266" element="dotmatrix5dot" state="0">
829         <bounds x="150" y="160" width="25" height="5"/>
830      </backdrop>
831      <backdrop name="dotmatrix267" element="dotmatrix5dot" state="0">
832         <bounds x="175" y="160" width="25" height="5"/>
833      </backdrop>
834      <backdrop name="dotmatrix268" element="dotmatrix5dot" state="0">
835         <bounds x="200" y="160" width="25" height="5"/>
836      </backdrop>
837      <backdrop name="dotmatrix269" element="dotmatrix5dot" state="0">
838         <bounds x="225" y="160" width="25" height="5"/>
839      </backdrop>
840      <backdrop name="dotmatrix270" element="dotmatrix5dot" state="0">
841         <bounds x="250" y="160" width="25" height="5"/>
842      </backdrop>
843      <backdrop name="dotmatrix271" element="dotmatrix5dot" state="0">
844         <bounds x="275" y="160" width="25" height="5"/>
845      </backdrop>
846      <backdrop name="dotmatrix272" element="dotmatrix5dot" state="0">
847         <bounds x="300" y="160" width="25" height="5"/>
848      </backdrop>
597849
598
599850      <backdrop name="reel1" element="Steppers" state="0">
600851         <bounds x="10" y="300" width="50" height="50"/>
601852      </backdrop>
r15176r15177
10951346         <bounds x="512" y="372" width="7" height="7"/>
10961347      </backdrop>
10971348      <backdrop name="lamp160" element="matrixlamp" state="0">
1098         <bounds x="0" y="380" width="7" height="7"/>
1349         <bounds x="392" y="380" width="7" height="7"/>
10991350      </backdrop>
11001351      <backdrop name="lamp161" element="matrixlamp" state="0">
11011352         <bounds x="400" y="380" width="7" height="7"/>
r15176r15177
11431394         <bounds x="512" y="380" width="7" height="7"/>
11441395      </backdrop>
11451396      <backdrop name="lamp176" element="matrixlamp" state="0">
1146         <bounds x="0" y="388" width="7" height="7"/>
1397         <bounds x="392" y="388" width="7" height="7"/>
11471398      </backdrop>
11481399      <backdrop name="lamp177" element="matrixlamp" state="0">
11491400         <bounds x="400" y="388" width="7" height="7"/>
r15176r15177
11911442         <bounds x="512" y="388" width="7" height="7"/>
11921443      </backdrop>
11931444      <backdrop name="lamp192" element="matrixlamp" state="0">
1194         <bounds x="0" y="396" width="7" height="7"/>
1445         <bounds x="392" y="396" width="7" height="7"/>
11951446      </backdrop>
11961447      <backdrop name="lamp193" element="matrixlamp" state="0">
11971448         <bounds x="400" y="396" width="7" height="7"/>
r15176r15177
12391490         <bounds x="512" y="396" width="7" height="7"/>
12401491      </backdrop>
12411492      <backdrop name="lamp208" element="matrixlamp" state="0">
1242         <bounds x="0" y="404" width="7" height="7"/>
1493         <bounds x="392" y="404" width="7" height="7"/>
12431494      </backdrop>
12441495      <backdrop name="lamp209" element="matrixlamp" state="0">
12451496         <bounds x="400" y="404" width="7" height="7"/>
r15176r15177
12871538         <bounds x="512" y="404" width="7" height="7"/>
12881539      </backdrop>
12891540      <backdrop name="lamp224" element="matrixlamp" state="0">
1290         <bounds x="0" y="412" width="7" height="7"/>
1541         <bounds x="392" y="412" width="7" height="7"/>
12911542      </backdrop>
12921543      <backdrop name="lamp225" element="matrixlamp" state="0">
12931544         <bounds x="400" y="412" width="7" height="7"/>
r15176r15177
13351586         <bounds x="512" y="412" width="7" height="7"/>
13361587      </backdrop>
13371588      <backdrop name="lamp240" element="matrixlamp" state="0">
1338         <bounds x="0" y="420" width="7" height="7"/>
1589         <bounds x="392" y="420" width="7" height="7"/>
13391590      </backdrop>
13401591      <backdrop name="lamp241" element="matrixlamp" state="0">
13411592         <bounds x="400" y="420" width="7" height="7"/>
r15176r15177
13851636   </view>
13861637
13871638   <view name="DMD Only">
1388      <backdrop name="dotmatrix0" element="dotmatrix" state="0">
1389         <bounds x="0" y="60" width="64" height="8"/>
1639      <backdrop name="dotmatrix0" element="dotmatrix5dot" state="0">
1640         <bounds x="0" y="60" width="25" height="5"/>
13901641      </backdrop>
1391      <backdrop name="dotmatrix1" element="dotmatrix" state="0">
1392         <bounds x="64" y="60" width="64" height="8"/>
1642      <backdrop name="dotmatrix1" element="dotmatrix5dot" state="0">
1643         <bounds x="25" y="60" width="25" height="5"/>
13931644      </backdrop>
1394      <backdrop name="dotmatrix2" element="dotmatrix" state="0">
1395         <bounds x="128" y="60" width="64" height="8"/>
1645      <backdrop name="dotmatrix2" element="dotmatrix5dot" state="0">
1646         <bounds x="50" y="60" width="25" height="5"/>
13961647      </backdrop>
1397      <backdrop name="dotmatrix3" element="dotmatrix" state="0">
1398         <bounds x="192" y="60" width="64" height="8"/>
1648      <backdrop name="dotmatrix3" element="dotmatrix5dot" state="0">
1649         <bounds x="75" y="60" width="25" height="5"/>
13991650      </backdrop>
1400      <backdrop name="dotmatrix4" element="dotmatrix" state="0">
1401         <bounds x="256" y="60" width="64" height="8"/>
1651      <backdrop name="dotmatrix4" element="dotmatrix5dot" state="0">
1652         <bounds x="100" y="60" width="25" height="5"/>
14021653      </backdrop>
1403      <backdrop name="dotmatrix5" element="dotmatrix" state="0">
1404         <bounds x="320" y="60" width="64" height="8"/>
1654      <backdrop name="dotmatrix5" element="dotmatrix5dot" state="0">
1655         <bounds x="125" y="60" width="25" height="5"/>
14051656      </backdrop>
1406      <backdrop name="dotmatrix6" element="dotmatrix" state="0">
1407         <bounds x="384" y="60" width="64" height="8"/>
1657      <backdrop name="dotmatrix6" element="dotmatrix5dot" state="0">
1658         <bounds x="150" y="60" width="25" height="5"/>
14081659      </backdrop>
1409      <backdrop name="dotmatrix7" element="dotmatrix" state="0">
1410         <bounds x="448" y="60" width="64" height="8"/>
1660      <backdrop name="dotmatrix7" element="dotmatrix5dot" state="0">
1661         <bounds x="175" y="60" width="25" height="5"/>
14111662      </backdrop>
1412      <backdrop name="dotmatrix8" element="dotmatrix" state="0">
1413         <bounds x="512" y="60" width="64" height="8"/>
1663      <backdrop name="dotmatrix8" element="dotmatrix5dot" state="0">
1664         <bounds x="200" y="60" width="25" height="5"/>
14141665      </backdrop>
1415      <backdrop name="dotmatrix9" element="dotmatrix" state="0">
1416         <bounds x="0" y="68" width="64" height="8"/>
1666      <backdrop name="dotmatrix9" element="dotmatrix5dot" state="0">
1667         <bounds x="225" y="60" width="25" height="5"/>
14171668      </backdrop>
1418      <backdrop name="dotmatrix10" element="dotmatrix" state="0">
1419         <bounds x="64" y="68" width="64" height="8"/>
1669      <backdrop name="dotmatrix10" element="dotmatrix5dot" state="0">
1670         <bounds x="250" y="60" width="25" height="5"/>
14201671      </backdrop>
1421      <backdrop name="dotmatrix11" element="dotmatrix" state="0">
1422         <bounds x="128" y="68" width="64" height="8"/>
1672      <backdrop name="dotmatrix11" element="dotmatrix5dot" state="0">
1673         <bounds x="275" y="60" width="25" height="5"/>
14231674      </backdrop>
1424      <backdrop name="dotmatrix12" element="dotmatrix" state="0">
1425         <bounds x="192" y="68" width="64" height="8"/>
1675      <backdrop name="dotmatrix12" element="dotmatrix5dot" state="0">
1676         <bounds x="300" y="60" width="25" height="5"/>
14261677      </backdrop>
1427      <backdrop name="dotmatrix13" element="dotmatrix" state="0">
1428         <bounds x="256" y="68" width="64" height="8"/>
1678      <backdrop name="dotmatrix13" element="dotmatrix5dot" state="0">
1679         <bounds x="0" y="65" width="25" height="5"/>
14291680      </backdrop>
1430      <backdrop name="dotmatrix14" element="dotmatrix" state="0">
1431         <bounds x="320" y="68" width="64" height="8"/>
1681      <backdrop name="dotmatrix14" element="dotmatrix5dot" state="0">
1682         <bounds x="25" y="65" width="25" height="5"/>
14321683      </backdrop>
1433      <backdrop name="dotmatrix15" element="dotmatrix" state="0">
1434         <bounds x="384" y="68" width="64" height="8"/>
1684      <backdrop name="dotmatrix15" element="dotmatrix5dot" state="0">
1685         <bounds x="50" y="65" width="25" height="5"/>
14351686      </backdrop>
1436      <backdrop name="dotmatrix16" element="dotmatrix" state="0">
1437         <bounds x="448" y="68" width="64" height="8"/>
1687      <backdrop name="dotmatrix16" element="dotmatrix5dot" state="0">
1688         <bounds x="75" y="65" width="25" height="5"/>
14381689      </backdrop>
1439      <backdrop name="dotmatrix17" element="dotmatrix" state="0">
1440         <bounds x="512" y="68" width="64" height="8"/>
1690      <backdrop name="dotmatrix17" element="dotmatrix5dot" state="0">
1691         <bounds x="100" y="65" width="25" height="5"/>
14411692      </backdrop>
1442      <backdrop name="dotmatrix18" element="dotmatrix" state="0">
1443         <bounds x="0" y="76" width="64" height="8"/>
1693      <backdrop name="dotmatrix18" element="dotmatrix5dot" state="0">
1694         <bounds x="125" y="65" width="25" height="5"/>
14441695      </backdrop>
1445      <backdrop name="dotmatrix19" element="dotmatrix" state="0">
1446         <bounds x="64" y="76" width="64" height="8"/>
1696      <backdrop name="dotmatrix19" element="dotmatrix5dot" state="0">
1697         <bounds x="150" y="65" width="25" height="5"/>
14471698      </backdrop>
1448      <backdrop name="dotmatrix20" element="dotmatrix" state="0">
1449         <bounds x="128" y="76" width="64" height="8"/>
1699      <backdrop name="dotmatrix20" element="dotmatrix5dot" state="0">
1700         <bounds x="175" y="65" width="25" height="5"/>
14501701      </backdrop>
1451      <backdrop name="dotmatrix21" element="dotmatrix" state="0">
1452         <bounds x="192" y="76" width="64" height="8"/>
1702      <backdrop name="dotmatrix21" element="dotmatrix5dot" state="0">
1703         <bounds x="200" y="65" width="25" height="5"/>
14531704      </backdrop>
1454      <backdrop name="dotmatrix22" element="dotmatrix" state="0">
1455         <bounds x="256" y="76" width="64" height="8"/>
1705      <backdrop name="dotmatrix22" element="dotmatrix5dot" state="0">
1706         <bounds x="225" y="65" width="25" height="5"/>
14561707      </backdrop>
1457      <backdrop name="dotmatrix23" element="dotmatrix" state="0">
1458         <bounds x="320" y="76" width="64" height="8"/>
1708      <backdrop name="dotmatrix23" element="dotmatrix5dot" state="0">
1709         <bounds x="250" y="65" width="25" height="5"/>
14591710      </backdrop>
1460      <backdrop name="dotmatrix24" element="dotmatrix" state="0">
1461         <bounds x="384" y="76" width="64" height="8"/>
1711      <backdrop name="dotmatrix24" element="dotmatrix5dot" state="0">
1712         <bounds x="275" y="65" width="25" height="5"/>
14621713      </backdrop>
1463      <backdrop name="dotmatrix25" element="dotmatrix" state="0">
1464         <bounds x="448" y="76" width="64" height="8"/>
1714      <backdrop name="dotmatrix25" element="dotmatrix5dot" state="0">
1715         <bounds x="300" y="65" width="25" height="5"/>
14651716      </backdrop>
1466      <backdrop name="dotmatrix26" element="dotmatrix" state="0">
1467         <bounds x="512" y="76" width="64" height="8"/>
1717      <backdrop name="dotmatrix26" element="dotmatrix5dot" state="0">
1718         <bounds x="0" y="70" width="25" height="5"/>
14681719      </backdrop>
1469      <backdrop name="dotmatrix27" element="dotmatrix" state="0">
1470         <bounds x="0" y="84" width="64" height="8"/>
1720      <backdrop name="dotmatrix27" element="dotmatrix5dot" state="0">
1721         <bounds x="25" y="70" width="25" height="5"/>
14711722      </backdrop>
1472      <backdrop name="dotmatrix28" element="dotmatrix" state="0">
1473         <bounds x="64" y="84" width="64" height="8"/>
1723      <backdrop name="dotmatrix28" element="dotmatrix5dot" state="0">
1724         <bounds x="50" y="70" width="25" height="5"/>
14741725      </backdrop>
1475      <backdrop name="dotmatrix29" element="dotmatrix" state="0">
1476         <bounds x="128" y="84" width="64" height="8"/>
1726      <backdrop name="dotmatrix29" element="dotmatrix5dot" state="0">
1727         <bounds x="75" y="70" width="25" height="5"/>
14771728      </backdrop>
1478      <backdrop name="dotmatrix30" element="dotmatrix" state="0">
1479         <bounds x="192" y="84" width="64" height="8"/>
1729      <backdrop name="dotmatrix30" element="dotmatrix5dot" state="0">
1730         <bounds x="100" y="70" width="25" height="5"/>
14801731      </backdrop>
1481      <backdrop name="dotmatrix31" element="dotmatrix" state="0">
1482         <bounds x="256" y="84" width="64" height="8"/>
1732      <backdrop name="dotmatrix31" element="dotmatrix5dot" state="0">
1733         <bounds x="125" y="70" width="25" height="5"/>
14831734      </backdrop>
1484      <backdrop name="dotmatrix32" element="dotmatrix" state="0">
1485         <bounds x="320" y="84" width="64" height="8"/>
1735      <backdrop name="dotmatrix32" element="dotmatrix5dot" state="0">
1736         <bounds x="150" y="70" width="25" height="5"/>
14861737      </backdrop>
1487      <backdrop name="dotmatrix33" element="dotmatrix" state="0">
1488         <bounds x="384" y="84" width="64" height="8"/>
1738      <backdrop name="dotmatrix33" element="dotmatrix5dot" state="0">
1739         <bounds x="175" y="70" width="25" height="5"/>
14891740      </backdrop>
1490      <backdrop name="dotmatrix34" element="dotmatrix" state="0">
1491         <bounds x="448" y="84" width="64" height="8"/>
1741      <backdrop name="dotmatrix34" element="dotmatrix5dot" state="0">
1742         <bounds x="200" y="70" width="25" height="5"/>
14921743      </backdrop>
1493      <backdrop name="dotmatrix35" element="dotmatrix" state="0">
1494         <bounds x="512" y="84" width="64" height="8"/>
1744      <backdrop name="dotmatrix35" element="dotmatrix5dot" state="0">
1745         <bounds x="225" y="70" width="25" height="5"/>
14951746      </backdrop>
1496      <backdrop name="dotmatrix36" element="dotmatrix" state="0">
1497         <bounds x="0" y="92" width="64" height="8"/>
1747      <backdrop name="dotmatrix36" element="dotmatrix5dot" state="0">
1748         <bounds x="250" y="70" width="25" height="5"/>
14981749      </backdrop>
1499      <backdrop name="dotmatrix37" element="dotmatrix" state="0">
1500         <bounds x="64" y="92" width="64" height="8"/>
1750      <backdrop name="dotmatrix37" element="dotmatrix5dot" state="0">
1751         <bounds x="275" y="70" width="25" height="5"/>
15011752      </backdrop>
1502      <backdrop name="dotmatrix38" element="dotmatrix" state="0">
1503         <bounds x="128" y="92" width="64" height="8"/>
1753      <backdrop name="dotmatrix38" element="dotmatrix5dot" state="0">
1754         <bounds x="300" y="70" width="25" height="5"/>
15041755      </backdrop>
1505      <backdrop name="dotmatrix39" element="dotmatrix" state="0">
1506         <bounds x="192" y="92" width="64" height="8"/>
1756      <backdrop name="dotmatrix39" element="dotmatrix5dot" state="0">
1757         <bounds x="0" y="75" width="25" height="5"/>
15071758      </backdrop>
1508      <backdrop name="dotmatrix40" element="dotmatrix" state="0">
1509         <bounds x="256" y="92" width="64" height="8"/>
1759      <backdrop name="dotmatrix40" element="dotmatrix5dot" state="0">
1760         <bounds x="25" y="75" width="25" height="5"/>
15101761      </backdrop>
1511      <backdrop name="dotmatrix41" element="dotmatrix" state="0">
1512         <bounds x="320" y="92" width="64" height="8"/>
1762      <backdrop name="dotmatrix41" element="dotmatrix5dot" state="0">
1763         <bounds x="50" y="75" width="25" height="5"/>
15131764      </backdrop>
1514      <backdrop name="dotmatrix42" element="dotmatrix" state="0">
1515         <bounds x="384" y="92" width="64" height="8"/>
1765      <backdrop name="dotmatrix42" element="dotmatrix5dot" state="0">
1766         <bounds x="75" y="75" width="25" height="5"/>
15161767      </backdrop>
1517      <backdrop name="dotmatrix43" element="dotmatrix" state="0">
1518         <bounds x="448" y="92" width="64" height="8"/>
1768      <backdrop name="dotmatrix43" element="dotmatrix5dot" state="0">
1769         <bounds x="100" y="75" width="25" height="5"/>
15191770      </backdrop>
1520      <backdrop name="dotmatrix44" element="dotmatrix" state="0">
1521         <bounds x="512" y="92" width="64" height="8"/>
1771      <backdrop name="dotmatrix44" element="dotmatrix5dot" state="0">
1772         <bounds x="125" y="75" width="25" height="5"/>
15221773      </backdrop>
1523      <backdrop name="dotmatrix45" element="dotmatrix" state="0">
1524         <bounds x="0" y="100" width="64" height="8"/>
1774      <backdrop name="dotmatrix45" element="dotmatrix5dot" state="0">
1775         <bounds x="150" y="75" width="25" height="5"/>
15251776      </backdrop>
1526      <backdrop name="dotmatrix46" element="dotmatrix" state="0">
1527         <bounds x="64" y="100" width="64" height="8"/>
1777      <backdrop name="dotmatrix46" element="dotmatrix5dot" state="0">
1778         <bounds x="175" y="75" width="25" height="5"/>
15281779      </backdrop>
1529      <backdrop name="dotmatrix47" element="dotmatrix" state="0">
1530         <bounds x="128" y="100" width="64" height="8"/>
1780      <backdrop name="dotmatrix47" element="dotmatrix5dot" state="0">
1781         <bounds x="200" y="75" width="25" height="5"/>
15311782      </backdrop>
1532      <backdrop name="dotmatrix48" element="dotmatrix" state="0">
1533         <bounds x="192" y="100" width="64" height="8"/>
1783      <backdrop name="dotmatrix48" element="dotmatrix5dot" state="0">
1784         <bounds x="225" y="75" width="25" height="5"/>
15341785      </backdrop>
1535      <backdrop name="dotmatrix49" element="dotmatrix" state="0">
1536         <bounds x="256" y="100" width="64" height="8"/>
1786      <backdrop name="dotmatrix49" element="dotmatrix5dot" state="0">
1787         <bounds x="250" y="75" width="25" height="5"/>
15371788      </backdrop>
1538      <backdrop name="dotmatrix50" element="dotmatrix" state="0">
1539         <bounds x="320" y="100" width="64" height="8"/>
1789      <backdrop name="dotmatrix50" element="dotmatrix5dot" state="0">
1790         <bounds x="275" y="75" width="25" height="5"/>
15401791      </backdrop>
1541      <backdrop name="dotmatrix51" element="dotmatrix" state="0">
1542         <bounds x="384" y="100" width="64" height="8"/>
1792      <backdrop name="dotmatrix51" element="dotmatrix5dot" state="0">
1793         <bounds x="300" y="75" width="25" height="5"/>
15431794      </backdrop>
1544      <backdrop name="dotmatrix52" element="dotmatrix" state="0">
1545         <bounds x="448" y="100" width="64" height="8"/>
1795      <backdrop name="dotmatrix52" element="dotmatrix5dot" state="0">
1796         <bounds x="0" y="80" width="25" height="5"/>
15461797      </backdrop>
1547      <backdrop name="dotmatrix53" element="dotmatrix" state="0">
1548         <bounds x="512" y="100" width="64" height="8"/>
1798      <backdrop name="dotmatrix53" element="dotmatrix5dot" state="0">
1799         <bounds x="25" y="80" width="25" height="5"/>
15491800      </backdrop>
1550      <backdrop name="dotmatrix54" element="dotmatrix" state="0">
1551         <bounds x="0" y="108" width="64" height="8"/>
1801      <backdrop name="dotmatrix54" element="dotmatrix5dot" state="0">
1802         <bounds x="50" y="80" width="25" height="5"/>
15521803      </backdrop>
1553      <backdrop name="dotmatrix55" element="dotmatrix" state="0">
1554         <bounds x="64" y="108" width="64" height="8"/>
1804      <backdrop name="dotmatrix55" element="dotmatrix5dot" state="0">
1805         <bounds x="75" y="80" width="25" height="5"/>
15551806      </backdrop>
1556      <backdrop name="dotmatrix56" element="dotmatrix" state="0">
1557         <bounds x="128" y="108" width="64" height="8"/>
1807      <backdrop name="dotmatrix56" element="dotmatrix5dot" state="0">
1808         <bounds x="100" y="80" width="25" height="5"/>
15581809      </backdrop>
1559      <backdrop name="dotmatrix57" element="dotmatrix" state="0">
1560         <bounds x="192" y="108" width="64" height="8"/>
1810      <backdrop name="dotmatrix57" element="dotmatrix5dot" state="0">
1811         <bounds x="125" y="80" width="25" height="5"/>
15611812      </backdrop>
1562      <backdrop name="dotmatrix58" element="dotmatrix" state="0">
1563         <bounds x="256" y="108" width="64" height="8"/>
1813      <backdrop name="dotmatrix58" element="dotmatrix5dot" state="0">
1814         <bounds x="150" y="80" width="25" height="5"/>
15641815      </backdrop>
1565      <backdrop name="dotmatrix59" element="dotmatrix" state="0">
1566         <bounds x="320" y="108" width="64" height="8"/>
1816      <backdrop name="dotmatrix59" element="dotmatrix5dot" state="0">
1817         <bounds x="175" y="80" width="25" height="5"/>
15671818      </backdrop>
1568      <backdrop name="dotmatrix60" element="dotmatrix" state="0">
1569         <bounds x="384" y="108" width="64" height="8"/>
1819      <backdrop name="dotmatrix60" element="dotmatrix5dot" state="0">
1820         <bounds x="200" y="80" width="25" height="5"/>
15701821      </backdrop>
1571      <backdrop name="dotmatrix61" element="dotmatrix" state="0">
1572         <bounds x="448" y="108" width="64" height="8"/>
1822      <backdrop name="dotmatrix61" element="dotmatrix5dot" state="0">
1823         <bounds x="225" y="80" width="25" height="5"/>
15731824      </backdrop>
1574      <backdrop name="dotmatrix62" element="dotmatrix" state="0">
1575         <bounds x="512" y="108" width="64" height="8"/>
1825      <backdrop name="dotmatrix62" element="dotmatrix5dot" state="0">
1826         <bounds x="250" y="80" width="25" height="5"/>
15761827      </backdrop>
1577      <backdrop name="dotmatrix63" element="dotmatrix" state="0">
1578         <bounds x="0" y="116" width="64" height="8"/>
1828      <backdrop name="dotmatrix63" element="dotmatrix5dot" state="0">
1829         <bounds x="275" y="80" width="25" height="5"/>
15791830      </backdrop>
1580      <backdrop name="dotmatrix64" element="dotmatrix" state="0">
1581         <bounds x="64" y="116" width="64" height="8"/>
1831      <backdrop name="dotmatrix64" element="dotmatrix5dot" state="0">
1832         <bounds x="300" y="80" width="25" height="5"/>
15821833      </backdrop>
1583      <backdrop name="dotmatrix65" element="dotmatrix" state="0">
1584         <bounds x="128" y="116" width="64" height="8"/>
1834      <backdrop name="dotmatrix65" element="dotmatrix5dot" state="0">
1835         <bounds x="0" y="85" width="25" height="5"/>
15851836      </backdrop>
1586      <backdrop name="dotmatrix66" element="dotmatrix" state="0">
1587         <bounds x="192" y="116" width="64" height="8"/>
1837      <backdrop name="dotmatrix66" element="dotmatrix5dot" state="0">
1838         <bounds x="25" y="85" width="25" height="5"/>
15881839      </backdrop>
1589      <backdrop name="dotmatrix67" element="dotmatrix" state="0">
1590         <bounds x="256" y="116" width="64" height="8"/>
1840      <backdrop name="dotmatrix67" element="dotmatrix5dot" state="0">
1841         <bounds x="50" y="85" width="25" height="5"/>
15911842      </backdrop>
1592      <backdrop name="dotmatrix68" element="dotmatrix" state="0">
1593         <bounds x="320" y="116" width="64" height="8"/>
1843      <backdrop name="dotmatrix68" element="dotmatrix5dot" state="0">
1844         <bounds x="75" y="85" width="25" height="5"/>
15941845      </backdrop>
1595      <backdrop name="dotmatrix69" element="dotmatrix" state="0">
1596         <bounds x="384" y="116" width="64" height="8"/>
1846      <backdrop name="dotmatrix69" element="dotmatrix5dot" state="0">
1847         <bounds x="100" y="85" width="25" height="5"/>
15971848      </backdrop>
1598      <backdrop name="dotmatrix70" element="dotmatrix" state="0">
1599         <bounds x="448" y="116" width="64" height="8"/>
1849      <backdrop name="dotmatrix70" element="dotmatrix5dot" state="0">
1850         <bounds x="125" y="85" width="25" height="5"/>
16001851      </backdrop>
1601      <backdrop name="dotmatrix71" element="dotmatrix" state="0">
1602         <bounds x="512" y="116" width="64" height="8"/>
1852      <backdrop name="dotmatrix71" element="dotmatrix5dot" state="0">
1853         <bounds x="150" y="85" width="25" height="5"/>
16031854      </backdrop>
1604      <backdrop name="dotmatrix72" element="dotmatrix" state="0">
1605         <bounds x="0" y="124" width="64" height="8"/>
1855      <backdrop name="dotmatrix72" element="dotmatrix5dot" state="0">
1856         <bounds x="175" y="85" width="25" height="5"/>
16061857      </backdrop>
1607      <backdrop name="dotmatrix73" element="dotmatrix" state="0">
1608         <bounds x="64" y="124" width="64" height="8"/>
1858      <backdrop name="dotmatrix73" element="dotmatrix5dot" state="0">
1859         <bounds x="200" y="85" width="25" height="5"/>
16091860      </backdrop>
1610      <backdrop name="dotmatrix74" element="dotmatrix" state="0">
1611         <bounds x="128" y="124" width="64" height="8"/>
1861      <backdrop name="dotmatrix74" element="dotmatrix5dot" state="0">
1862         <bounds x="225" y="85" width="25" height="5"/>
16121863      </backdrop>
1613      <backdrop name="dotmatrix75" element="dotmatrix" state="0">
1614         <bounds x="192" y="124" width="64" height="8"/>
1864      <backdrop name="dotmatrix75" element="dotmatrix5dot" state="0">
1865         <bounds x="250" y="85" width="25" height="5"/>
16151866      </backdrop>
1616      <backdrop name="dotmatrix76" element="dotmatrix" state="0">
1617         <bounds x="256" y="124" width="64" height="8"/>
1867      <backdrop name="dotmatrix76" element="dotmatrix5dot" state="0">
1868         <bounds x="275" y="85" width="25" height="5"/>
16181869      </backdrop>
1619      <backdrop name="dotmatrix77" element="dotmatrix" state="0">
1620         <bounds x="320" y="124" width="64" height="8"/>
1870      <backdrop name="dotmatrix77" element="dotmatrix5dot" state="0">
1871         <bounds x="300" y="85" width="25" height="5"/>
16211872      </backdrop>
1622      <backdrop name="dotmatrix78" element="dotmatrix" state="0">
1623         <bounds x="384" y="124" width="64" height="8"/>
1873      <backdrop name="dotmatrix78" element="dotmatrix5dot" state="0">
1874         <bounds x="0" y="90" width="25" height="5"/>
16241875      </backdrop>
1625      <backdrop name="dotmatrix79" element="dotmatrix" state="0">
1626         <bounds x="448" y="124" width="64" height="8"/>
1876      <backdrop name="dotmatrix79" element="dotmatrix5dot" state="0">
1877         <bounds x="25" y="90" width="25" height="5"/>
16271878      </backdrop>
1628      <backdrop name="dotmatrix80" element="dotmatrix" state="0">
1629         <bounds x="512" y="124" width="64" height="8"/>
1879      <backdrop name="dotmatrix80" element="dotmatrix5dot" state="0">
1880         <bounds x="50" y="90" width="25" height="5"/>
16301881      </backdrop>
1631      <backdrop name="dotmatrix81" element="dotmatrix" state="0">
1632         <bounds x="0" y="132" width="64" height="8"/>
1882      <backdrop name="dotmatrix81" element="dotmatrix5dot" state="0">
1883         <bounds x="75" y="90" width="25" height="5"/>
16331884      </backdrop>
1634      <backdrop name="dotmatrix82" element="dotmatrix" state="0">
1635         <bounds x="64" y="132" width="64" height="8"/>
1885      <backdrop name="dotmatrix82" element="dotmatrix5dot" state="0">
1886         <bounds x="100" y="90" width="25" height="5"/>
16361887      </backdrop>
1637      <backdrop name="dotmatrix83" element="dotmatrix" state="0">
1638         <bounds x="128" y="132" width="64" height="8"/>
1888      <backdrop name="dotmatrix83" element="dotmatrix5dot" state="0">
1889         <bounds x="125" y="90" width="25" height="5"/>
16391890      </backdrop>
1640      <backdrop name="dotmatrix84" element="dotmatrix" state="0">
1641         <bounds x="192" y="132" width="64" height="8"/>
1891      <backdrop name="dotmatrix84" element="dotmatrix5dot" state="0">
1892         <bounds x="150" y="90" width="25" height="5"/>
16421893      </backdrop>
1643      <backdrop name="dotmatrix85" element="dotmatrix" state="0">
1644         <bounds x="256" y="132" width="64" height="8"/>
1894      <backdrop name="dotmatrix85" element="dotmatrix5dot" state="0">
1895         <bounds x="175" y="90" width="25" height="5"/>
16451896      </backdrop>
1646      <backdrop name="dotmatrix86" element="dotmatrix" state="0">
1647         <bounds x="320" y="132" width="64" height="8"/>
1897      <backdrop name="dotmatrix86" element="dotmatrix5dot" state="0">
1898         <bounds x="200" y="90" width="25" height="5"/>
16481899      </backdrop>
1649      <backdrop name="dotmatrix87" element="dotmatrix" state="0">
1650         <bounds x="384" y="132" width="64" height="8"/>
1900      <backdrop name="dotmatrix87" element="dotmatrix5dot" state="0">
1901         <bounds x="225" y="90" width="25" height="5"/>
16511902      </backdrop>
1652      <backdrop name="dotmatrix88" element="dotmatrix" state="0">
1653         <bounds x="448" y="132" width="64" height="8"/>
1903      <backdrop name="dotmatrix88" element="dotmatrix5dot" state="0">
1904         <bounds x="250" y="90" width="25" height="5"/>
16541905      </backdrop>
1655      <backdrop name="dotmatrix89" element="dotmatrix" state="0">
1656         <bounds x="512" y="132" width="64" height="8"/>
1906      <backdrop name="dotmatrix89" element="dotmatrix5dot" state="0">
1907         <bounds x="275" y="90" width="25" height="5"/>
16571908      </backdrop>
1658      <backdrop name="dotmatrix90" element="dotmatrix" state="0">
1659         <bounds x="0" y="140" width="64" height="8"/>
1909      <backdrop name="dotmatrix90" element="dotmatrix5dot" state="0">
1910         <bounds x="300" y="90" width="25" height="5"/>
16601911      </backdrop>
1661      <backdrop name="dotmatrix91" element="dotmatrix" state="0">
1662         <bounds x="64" y="140" width="64" height="8"/>
1912      <backdrop name="dotmatrix91" element="dotmatrix5dot" state="0">
1913         <bounds x="0" y="95" width="25" height="5"/>
16631914      </backdrop>
1664      <backdrop name="dotmatrix92" element="dotmatrix" state="0">
1665         <bounds x="128" y="140" width="64" height="8"/>
1915      <backdrop name="dotmatrix92" element="dotmatrix5dot" state="0">
1916         <bounds x="25" y="95" width="25" height="5"/>
16661917      </backdrop>
1667      <backdrop name="dotmatrix93" element="dotmatrix" state="0">
1668         <bounds x="192" y="140" width="64" height="8"/>
1918      <backdrop name="dotmatrix93" element="dotmatrix5dot" state="0">
1919         <bounds x="50" y="95" width="25" height="5"/>
16691920      </backdrop>
1670      <backdrop name="dotmatrix94" element="dotmatrix" state="0">
1671         <bounds x="256" y="140" width="64" height="8"/>
1921      <backdrop name="dotmatrix94" element="dotmatrix5dot" state="0">
1922         <bounds x="75" y="95" width="25" height="5"/>
16721923      </backdrop>
1673      <backdrop name="dotmatrix95" element="dotmatrix" state="0">
1674         <bounds x="320" y="140" width="64" height="8"/>
1924      <backdrop name="dotmatrix95" element="dotmatrix5dot" state="0">
1925         <bounds x="100" y="95" width="25" height="5"/>
16751926      </backdrop>
1676      <backdrop name="dotmatrix96" element="dotmatrix" state="0">
1677         <bounds x="384" y="140" width="64" height="8"/>
1927      <backdrop name="dotmatrix96" element="dotmatrix5dot" state="0">
1928         <bounds x="125" y="95" width="25" height="5"/>
16781929      </backdrop>
1679      <backdrop name="dotmatrix97" element="dotmatrix" state="0">
1680         <bounds x="448" y="140" width="64" height="8"/>
1930      <backdrop name="dotmatrix97" element="dotmatrix5dot" state="0">
1931         <bounds x="150" y="95" width="25" height="5"/>
16811932      </backdrop>
1682      <backdrop name="dotmatrix98" element="dotmatrix" state="0">
1683         <bounds x="512" y="140" width="64" height="8"/>
1933      <backdrop name="dotmatrix98" element="dotmatrix5dot" state="0">
1934         <bounds x="175" y="95" width="25" height="5"/>
16841935      </backdrop>
1685      <backdrop name="dotmatrix99" element="dotmatrix" state="0">
1686         <bounds x="0" y="148" width="64" height="8"/>
1936      <backdrop name="dotmatrix99" element="dotmatrix5dot" state="0">
1937         <bounds x="200" y="95" width="25" height="5"/>
16871938      </backdrop>
1688      <backdrop name="dotmatrix100" element="dotmatrix" state="0">
1689         <bounds x="64" y="148" width="64" height="8"/>
1939      <backdrop name="dotmatrix100" element="dotmatrix5dot" state="0">
1940         <bounds x="225" y="95" width="25" height="5"/>
16901941      </backdrop>
1691      <backdrop name="dotmatrix101" element="dotmatrix" state="0">
1692         <bounds x="128" y="148" width="64" height="8"/>
1942      <backdrop name="dotmatrix101" element="dotmatrix5dot" state="0">
1943         <bounds x="250" y="95" width="25" height="5"/>
16931944      </backdrop>
1694      <backdrop name="dotmatrix102" element="dotmatrix" state="0">
1695         <bounds x="192" y="148" width="64" height="8"/>
1945      <backdrop name="dotmatrix102" element="dotmatrix5dot" state="0">
1946         <bounds x="275" y="95" width="25" height="5"/>
16961947      </backdrop>
1697      <backdrop name="dotmatrix103" element="dotmatrix" state="0">
1698         <bounds x="256" y="148" width="64" height="8"/>
1948      <backdrop name="dotmatrix103" element="dotmatrix5dot" state="0">
1949         <bounds x="300" y="95" width="25" height="5"/>
16991950      </backdrop>
1700      <backdrop name="dotmatrix104" element="dotmatrix" state="0">
1701         <bounds x="320" y="148" width="64" height="8"/>
1951      <backdrop name="dotmatrix104" element="dotmatrix5dot" state="0">
1952         <bounds x="0" y="100" width="25" height="5"/>
17021953      </backdrop>
1703      <backdrop name="dotmatrix105" element="dotmatrix" state="0">
1704         <bounds x="384" y="148" width="64" height="8"/>
1954      <backdrop name="dotmatrix105" element="dotmatrix5dot" state="0">
1955         <bounds x="25" y="100" width="25" height="5"/>
17051956      </backdrop>
1706      <backdrop name="dotmatrix106" element="dotmatrix" state="0">
1707         <bounds x="448" y="148" width="64" height="8"/>
1957      <backdrop name="dotmatrix106" element="dotmatrix5dot" state="0">
1958         <bounds x="50" y="100" width="25" height="5"/>
17081959      </backdrop>
1709      <backdrop name="dotmatrix107" element="dotmatrix" state="0">
1710         <bounds x="512" y="148" width="64" height="8"/>
1960      <backdrop name="dotmatrix107" element="dotmatrix5dot" state="0">
1961         <bounds x="75" y="100" width="25" height="5"/>
17111962      </backdrop>
1712      <backdrop name="dotmatrix108" element="dotmatrix" state="0">
1713         <bounds x="0" y="156" width="64" height="8"/>
1963      <backdrop name="dotmatrix108" element="dotmatrix5dot" state="0">
1964         <bounds x="100" y="100" width="25" height="5"/>
17141965      </backdrop>
1715      <backdrop name="dotmatrix109" element="dotmatrix" state="0">
1716         <bounds x="64" y="156" width="64" height="8"/>
1966      <backdrop name="dotmatrix109" element="dotmatrix5dot" state="0">
1967         <bounds x="125" y="100" width="25" height="5"/>
17171968      </backdrop>
1718      <backdrop name="dotmatrix110" element="dotmatrix" state="0">
1719         <bounds x="128" y="156" width="64" height="8"/>
1969      <backdrop name="dotmatrix110" element="dotmatrix5dot" state="0">
1970         <bounds x="150" y="100" width="25" height="5"/>
17201971      </backdrop>
1721      <backdrop name="dotmatrix111" element="dotmatrix" state="0">
1722         <bounds x="192" y="156" width="64" height="8"/>
1972      <backdrop name="dotmatrix111" element="dotmatrix5dot" state="0">
1973         <bounds x="175" y="100" width="25" height="5"/>
17231974      </backdrop>
1724      <backdrop name="dotmatrix112" element="dotmatrix" state="0">
1725         <bounds x="256" y="156" width="64" height="8"/>
1975      <backdrop name="dotmatrix112" element="dotmatrix5dot" state="0">
1976         <bounds x="200" y="100" width="25" height="5"/>
17261977      </backdrop>
1727      <backdrop name="dotmatrix113" element="dotmatrix" state="0">
1728         <bounds x="320" y="156" width="64" height="8"/>
1978      <backdrop name="dotmatrix113" element="dotmatrix5dot" state="0">
1979         <bounds x="225" y="100" width="25" height="5"/>
17291980      </backdrop>
1730      <backdrop name="dotmatrix114" element="dotmatrix" state="0">
1731         <bounds x="384" y="156" width="64" height="8"/>
1981      <backdrop name="dotmatrix114" element="dotmatrix5dot" state="0">
1982         <bounds x="250" y="100" width="25" height="5"/>
17321983      </backdrop>
1733      <backdrop name="dotmatrix115" element="dotmatrix" state="0">
1734         <bounds x="448" y="156" width="64" height="8"/>
1984      <backdrop name="dotmatrix115" element="dotmatrix5dot" state="0">
1985         <bounds x="275" y="100" width="25" height="5"/>
17351986      </backdrop>
1736      <backdrop name="dotmatrix116" element="dotmatrix" state="0">
1737         <bounds x="512" y="156" width="64" height="8"/>
1987      <backdrop name="dotmatrix116" element="dotmatrix5dot" state="0">
1988         <bounds x="300" y="100" width="25" height="5"/>
17381989      </backdrop>
1739      <backdrop name="dotmatrix117" element="dotmatrix" state="0">
1740         <bounds x="0" y="164" width="64" height="8"/>
1990      <backdrop name="dotmatrix117" element="dotmatrix5dot" state="0">
1991         <bounds x="0" y="105" width="25" height="5"/>
17411992      </backdrop>
1742      <backdrop name="dotmatrix118" element="dotmatrix" state="0">
1743         <bounds x="64" y="164" width="64" height="8"/>
1993      <backdrop name="dotmatrix118" element="dotmatrix5dot" state="0">
1994         <bounds x="25" y="105" width="25" height="5"/>
17441995      </backdrop>
1745      <backdrop name="dotmatrix119" element="dotmatrix" state="0">
1746         <bounds x="128" y="164" width="64" height="8"/>
1996      <backdrop name="dotmatrix119" element="dotmatrix5dot" state="0">
1997         <bounds x="50" y="105" width="25" height="5"/>
17471998      </backdrop>
1748      <backdrop name="dotmatrix120" element="dotmatrix" state="0">
1749         <bounds x="192" y="164" width="64" height="8"/>
1999      <backdrop name="dotmatrix120" element="dotmatrix5dot" state="0">
2000         <bounds x="75" y="105" width="25" height="5"/>
17502001      </backdrop>
1751      <backdrop name="dotmatrix121" element="dotmatrix" state="0">
1752         <bounds x="256" y="164" width="64" height="8"/>
2002      <backdrop name="dotmatrix121" element="dotmatrix5dot" state="0">
2003         <bounds x="100" y="105" width="25" height="5"/>
17532004      </backdrop>
1754      <backdrop name="dotmatrix122" element="dotmatrix" state="0">
1755         <bounds x="320" y="164" width="64" height="8"/>
2005      <backdrop name="dotmatrix122" element="dotmatrix5dot" state="0">
2006         <bounds x="125" y="105" width="25" height="5"/>
17562007      </backdrop>
1757      <backdrop name="dotmatrix123" element="dotmatrix" state="0">
1758         <bounds x="384" y="164" width="64" height="8"/>
2008      <backdrop name="dotmatrix123" element="dotmatrix5dot" state="0">
2009         <bounds x="150" y="105" width="25" height="5"/>
17592010      </backdrop>
1760      <backdrop name="dotmatrix124" element="dotmatrix" state="0">
1761         <bounds x="448" y="164" width="64" height="8"/>
2011      <backdrop name="dotmatrix124" element="dotmatrix5dot" state="0">
2012         <bounds x="175" y="105" width="25" height="5"/>
17622013      </backdrop>
1763      <backdrop name="dotmatrix125" element="dotmatrix" state="0">
1764         <bounds x="512" y="164" width="64" height="8"/>
2014      <backdrop name="dotmatrix125" element="dotmatrix5dot" state="0">
2015         <bounds x="200" y="105" width="25" height="5"/>
17652016      </backdrop>
1766      <backdrop name="dotmatrix126" element="dotmatrix" state="0">
1767         <bounds x="0" y="172" width="64" height="8"/>
2017      <backdrop name="dotmatrix126" element="dotmatrix5dot" state="0">
2018         <bounds x="225" y="105" width="25" height="5"/>
17682019      </backdrop>
1769      <backdrop name="dotmatrix127" element="dotmatrix" state="0">
1770         <bounds x="64" y="172" width="64" height="8"/>
2020      <backdrop name="dotmatrix127" element="dotmatrix5dot" state="0">
2021         <bounds x="250" y="105" width="25" height="5"/>
17712022      </backdrop>
1772      <backdrop name="dotmatrix128" element="dotmatrix" state="0">
1773         <bounds x="128" y="172" width="64" height="8"/>
2023      <backdrop name="dotmatrix128" element="dotmatrix5dot" state="0">
2024         <bounds x="275" y="105" width="25" height="5"/>
17742025      </backdrop>
1775      <backdrop name="dotmatrix129" element="dotmatrix" state="0">
1776         <bounds x="192" y="172" width="64" height="8"/>
2026      <backdrop name="dotmatrix129" element="dotmatrix5dot" state="0">
2027         <bounds x="300" y="105" width="25" height="5"/>
17772028      </backdrop>
1778      <backdrop name="dotmatrix130" element="dotmatrix" state="0">
1779         <bounds x="256" y="172" width="64" height="8"/>
2029      <backdrop name="dotmatrix130" element="dotmatrix5dot" state="0">
2030         <bounds x="0" y="110" width="25" height="5"/>
17802031      </backdrop>
1781      <backdrop name="dotmatrix131" element="dotmatrix" state="0">
1782         <bounds x="320" y="172" width="64" height="8"/>
2032      <backdrop name="dotmatrix131" element="dotmatrix5dot" state="0">
2033         <bounds x="25" y="110" width="25" height="5"/>
17832034      </backdrop>
1784      <backdrop name="dotmatrix132" element="dotmatrix" state="0">
1785         <bounds x="384" y="172" width="64" height="8"/>
2035      <backdrop name="dotmatrix132" element="dotmatrix5dot" state="0">
2036         <bounds x="50" y="110" width="25" height="5"/>
17862037      </backdrop>
1787      <backdrop name="dotmatrix133" element="dotmatrix" state="0">
1788         <bounds x="448" y="172" width="64" height="8"/>
2038      <backdrop name="dotmatrix133" element="dotmatrix5dot" state="0">
2039         <bounds x="75" y="110" width="25" height="5"/>
17892040      </backdrop>
1790      <backdrop name="dotmatrix134" element="dotmatrix" state="0">
1791         <bounds x="512" y="172" width="64" height="8"/>
2041      <backdrop name="dotmatrix134" element="dotmatrix5dot" state="0">
2042         <bounds x="100" y="110" width="25" height="5"/>
17922043      </backdrop>
1793      <backdrop name="dotmatrix135" element="dotmatrix" state="0">
1794         <bounds x="0" y="180" width="64" height="8"/>
2044      <backdrop name="dotmatrix135" element="dotmatrix5dot" state="0">
2045         <bounds x="125" y="110" width="25" height="5"/>
17952046      </backdrop>
1796      <backdrop name="dotmatrix136" element="dotmatrix" state="0">
1797         <bounds x="64" y="180" width="64" height="8"/>
2047      <backdrop name="dotmatrix136" element="dotmatrix5dot" state="0">
2048         <bounds x="150" y="110" width="25" height="5"/>
17982049      </backdrop>
1799      <backdrop name="dotmatrix137" element="dotmatrix" state="0">
1800         <bounds x="128" y="180" width="64" height="8"/>
2050      <backdrop name="dotmatrix137" element="dotmatrix5dot" state="0">
2051         <bounds x="175" y="110" width="25" height="5"/>
18012052      </backdrop>
1802      <backdrop name="dotmatrix138" element="dotmatrix" state="0">
1803         <bounds x="192" y="180" width="64" height="8"/>
2053      <backdrop name="dotmatrix138" element="dotmatrix5dot" state="0">
2054         <bounds x="200" y="110" width="25" height="5"/>
18042055      </backdrop>
1805      <backdrop name="dotmatrix139" element="dotmatrix" state="0">
1806         <bounds x="256" y="180" width="64" height="8"/>
2056      <backdrop name="dotmatrix139" element="dotmatrix5dot" state="0">
2057         <bounds x="225" y="110" width="25" height="5"/>
18072058      </backdrop>
1808      <backdrop name="dotmatrix140" element="dotmatrix" state="0">
1809         <bounds x="320" y="180" width="64" height="8"/>
2059      <backdrop name="dotmatrix140" element="dotmatrix5dot" state="0">
2060         <bounds x="250" y="110" width="25" height="5"/>
18102061      </backdrop>
1811      <backdrop name="dotmatrix141" element="dotmatrix" state="0">
1812         <bounds x="384" y="180" width="64" height="8"/>
2062      <backdrop name="dotmatrix141" element="dotmatrix5dot" state="0">
2063         <bounds x="275" y="110" width="25" height="5"/>
18132064      </backdrop>
1814      <backdrop name="dotmatrix142" element="dotmatrix" state="0">
1815         <bounds x="448" y="180" width="64" height="8"/>
2065      <backdrop name="dotmatrix142" element="dotmatrix5dot" state="0">
2066         <bounds x="300" y="110" width="25" height="5"/>
18162067      </backdrop>
1817      <backdrop name="dotmatrix143" element="dotmatrix" state="0">
1818         <bounds x="512" y="180" width="64" height="8"/>
2068      <backdrop name="dotmatrix143" element="dotmatrix5dot" state="0">
2069         <bounds x="0" y="115" width="25" height="5"/>
18192070      </backdrop>
1820      <backdrop name="dotmatrix144" element="dotmatrix" state="0">
1821         <bounds x="0" y="188" width="64" height="8"/>
2071      <backdrop name="dotmatrix144" element="dotmatrix5dot" state="0">
2072         <bounds x="25" y="115" width="25" height="5"/>
18222073      </backdrop>
1823      <backdrop name="dotmatrix145" element="dotmatrix" state="0">
1824         <bounds x="64" y="188" width="64" height="8"/>
2074      <backdrop name="dotmatrix145" element="dotmatrix5dot" state="0">
2075         <bounds x="50" y="115" width="25" height="5"/>
18252076      </backdrop>
1826      <backdrop name="dotmatrix146" element="dotmatrix" state="0">
1827         <bounds x="128" y="188" width="64" height="8"/>
2077      <backdrop name="dotmatrix146" element="dotmatrix5dot" state="0">
2078         <bounds x="75" y="115" width="25" height="5"/>
18282079      </backdrop>
1829      <backdrop name="dotmatrix147" element="dotmatrix" state="0">
1830         <bounds x="192" y="188" width="64" height="8"/>
2080      <backdrop name="dotmatrix147" element="dotmatrix5dot" state="0">
2081         <bounds x="100" y="115" width="25" height="5"/>
18312082      </backdrop>
1832      <backdrop name="dotmatrix148" element="dotmatrix" state="0">
1833         <bounds x="256" y="188" width="64" height="8"/>
2083      <backdrop name="dotmatrix148" element="dotmatrix5dot" state="0">
2084         <bounds x="125" y="115" width="25" height="5"/>
18342085      </backdrop>
1835      <backdrop name="dotmatrix149" element="dotmatrix" state="0">
1836         <bounds x="320" y="188" width="64" height="8"/>
2086      <backdrop name="dotmatrix149" element="dotmatrix5dot" state="0">
2087         <bounds x="150" y="115" width="25" height="5"/>
18372088      </backdrop>
1838      <backdrop name="dotmatrix150" element="dotmatrix" state="0">
1839         <bounds x="384" y="188" width="64" height="8"/>
2089      <backdrop name="dotmatrix150" element="dotmatrix5dot" state="0">
2090         <bounds x="175" y="115" width="25" height="5"/>
18402091      </backdrop>
1841      <backdrop name="dotmatrix151" element="dotmatrix" state="0">
1842         <bounds x="448" y="188" width="64" height="8"/>
2092      <backdrop name="dotmatrix151" element="dotmatrix5dot" state="0">
2093         <bounds x="200" y="115" width="25" height="5"/>
18432094      </backdrop>
1844      <backdrop name="dotmatrix152" element="dotmatrix" state="0">
1845         <bounds x="512" y="188" width="64" height="8"/>
2095      <backdrop name="dotmatrix152" element="dotmatrix5dot" state="0">
2096         <bounds x="225" y="115" width="25" height="5"/>
18462097      </backdrop>
1847      <backdrop name="dotmatrix153" element="dotmatrix" state="0">
1848         <bounds x="0" y="196" width="64" height="8"/>
2098      <backdrop name="dotmatrix153" element="dotmatrix5dot" state="0">
2099         <bounds x="250" y="115" width="25" height="5"/>
18492100      </backdrop>
1850      <backdrop name="dotmatrix154" element="dotmatrix" state="0">
1851         <bounds x="64" y="196" width="64" height="8"/>
2101      <backdrop name="dotmatrix154" element="dotmatrix5dot" state="0">
2102         <bounds x="275" y="115" width="25" height="5"/>
18522103      </backdrop>
1853      <backdrop name="dotmatrix155" element="dotmatrix" state="0">
1854         <bounds x="128" y="196" width="64" height="8"/>
2104      <backdrop name="dotmatrix155" element="dotmatrix5dot" state="0">
2105         <bounds x="300" y="115" width="25" height="5"/>
18552106      </backdrop>
1856      <backdrop name="dotmatrix156" element="dotmatrix" state="0">
1857         <bounds x="192" y="196" width="64" height="8"/>
2107      <backdrop name="dotmatrix156" element="dotmatrix5dot" state="0">
2108         <bounds x="0" y="120" width="25" height="5"/>
18582109      </backdrop>
1859      <backdrop name="dotmatrix157" element="dotmatrix" state="0">
1860         <bounds x="256" y="196" width="64" height="8"/>
2110      <backdrop name="dotmatrix157" element="dotmatrix5dot" state="0">
2111         <bounds x="25" y="120" width="25" height="5"/>
18612112      </backdrop>
1862      <backdrop name="dotmatrix158" element="dotmatrix" state="0">
1863         <bounds x="320" y="196" width="64" height="8"/>
2113      <backdrop name="dotmatrix158" element="dotmatrix5dot" state="0">
2114         <bounds x="50" y="120" width="25" height="5"/>
18642115      </backdrop>
1865      <backdrop name="dotmatrix159" element="dotmatrix" state="0">
1866         <bounds x="384" y="196" width="64" height="8"/>
2116      <backdrop name="dotmatrix159" element="dotmatrix5dot" state="0">
2117         <bounds x="75" y="120" width="25" height="5"/>
18672118      </backdrop>
1868      <backdrop name="dotmatrix160" element="dotmatrix" state="0">
1869         <bounds x="448" y="196" width="64" height="8"/>
2119      <backdrop name="dotmatrix160" element="dotmatrix5dot" state="0">
2120         <bounds x="100" y="120" width="25" height="5"/>
18702121      </backdrop>
1871      <backdrop name="dotmatrix161" element="dotmatrix" state="0">
1872         <bounds x="512" y="196" width="64" height="8"/>
2122      <backdrop name="dotmatrix161" element="dotmatrix5dot" state="0">
2123         <bounds x="125" y="120" width="25" height="5"/>
18732124      </backdrop>
1874      <backdrop name="dotmatrix162" element="dotmatrix" state="0">
1875         <bounds x="0" y="204" width="64" height="8"/>
2125      <backdrop name="dotmatrix162" element="dotmatrix5dot" state="0">
2126         <bounds x="150" y="120" width="25" height="5"/>
18762127      </backdrop>
1877      <backdrop name="dotmatrix163" element="dotmatrix" state="0">
1878         <bounds x="64" y="204" width="64" height="8"/>
2128      <backdrop name="dotmatrix163" element="dotmatrix5dot" state="0">
2129         <bounds x="175" y="120" width="25" height="5"/>
18792130      </backdrop>
1880      <backdrop name="dotmatrix164" element="dotmatrix" state="0">
1881         <bounds x="128" y="204" width="64" height="8"/>
2131      <backdrop name="dotmatrix164" element="dotmatrix5dot" state="0">
2132         <bounds x="200" y="120" width="25" height="5"/>
18822133      </backdrop>
1883      <backdrop name="dotmatrix165" element="dotmatrix" state="0">
1884         <bounds x="192" y="204" width="64" height="8"/>
2134      <backdrop name="dotmatrix165" element="dotmatrix5dot" state="0">
2135         <bounds x="225" y="120" width="25" height="5"/>
18852136      </backdrop>
1886      <backdrop name="dotmatrix166" element="dotmatrix" state="0">
1887         <bounds x="256" y="204" width="64" height="8"/>
2137      <backdrop name="dotmatrix166" element="dotmatrix5dot" state="0">
2138         <bounds x="250" y="120" width="25" height="5"/>
18882139      </backdrop>
1889      <backdrop name="dotmatrix167" element="dotmatrix" state="0">
1890         <bounds x="320" y="204" width="64" height="8"/>
2140      <backdrop name="dotmatrix167" element="dotmatrix5dot" state="0">
2141         <bounds x="275" y="120" width="25" height="5"/>
18912142      </backdrop>
1892      <backdrop name="dotmatrix168" element="dotmatrix" state="0">
1893         <bounds x="384" y="204" width="64" height="8"/>
2143      <backdrop name="dotmatrix168" element="dotmatrix5dot" state="0">
2144         <bounds x="300" y="120" width="25" height="5"/>
18942145      </backdrop>
1895      <backdrop name="dotmatrix169" element="dotmatrix" state="0">
1896         <bounds x="448" y="204" width="64" height="8"/>
2146      <backdrop name="dotmatrix169" element="dotmatrix5dot" state="0">
2147         <bounds x="0" y="125" width="25" height="5"/>
18972148      </backdrop>
1898      <backdrop name="dotmatrix170" element="dotmatrix" state="0">
1899         <bounds x="512" y="204" width="64" height="8"/>
2149      <backdrop name="dotmatrix170" element="dotmatrix5dot" state="0">
2150         <bounds x="25" y="125" width="25" height="5"/>
19002151      </backdrop>
1901      <backdrop name="dotmatrix171" element="dotmatrix" state="0">
1902         <bounds x="0" y="212" width="64" height="8"/>
2152      <backdrop name="dotmatrix171" element="dotmatrix5dot" state="0">
2153         <bounds x="50" y="125" width="25" height="5"/>
19032154      </backdrop>
1904      <backdrop name="dotmatrix172" element="dotmatrix" state="0">
1905         <bounds x="64" y="212" width="64" height="8"/>
2155      <backdrop name="dotmatrix172" element="dotmatrix5dot" state="0">
2156         <bounds x="75" y="125" width="25" height="5"/>
19062157      </backdrop>
1907      <backdrop name="dotmatrix173" element="dotmatrix" state="0">
1908         <bounds x="128" y="212" width="64" height="8"/>
2158      <backdrop name="dotmatrix173" element="dotmatrix5dot" state="0">
2159         <bounds x="100" y="125" width="25" height="5"/>
19092160      </backdrop>
1910      <backdrop name="dotmatrix174" element="dotmatrix" state="0">
1911         <bounds x="192" y="212" width="64" height="8"/>
2161      <backdrop name="dotmatrix174" element="dotmatrix5dot" state="0">
2162         <bounds x="125" y="125" width="25" height="5"/>
19122163      </backdrop>
1913      <backdrop name="dotmatrix175" element="dotmatrix" state="0">
1914         <bounds x="256" y="212" width="64" height="8"/>
2164      <backdrop name="dotmatrix175" element="dotmatrix5dot" state="0">
2165         <bounds x="150" y="125" width="25" height="5"/>
19152166      </backdrop>
1916      <backdrop name="dotmatrix176" element="dotmatrix" state="0">
1917         <bounds x="320" y="212" width="64" height="8"/>
2167      <backdrop name="dotmatrix176" element="dotmatrix5dot" state="0">
2168         <bounds x="175" y="125" width="25" height="5"/>
19182169      </backdrop>
1919      <backdrop name="dotmatrix177" element="dotmatrix" state="0">
1920         <bounds x="384" y="212" width="64" height="8"/>
2170      <backdrop name="dotmatrix177" element="dotmatrix5dot" state="0">
2171         <bounds x="200" y="125" width="25" height="5"/>
19212172      </backdrop>
1922      <backdrop name="dotmatrix178" element="dotmatrix" state="0">
1923         <bounds x="448" y="212" width="64" height="8"/>
2173      <backdrop name="dotmatrix178" element="dotmatrix5dot" state="0">
2174         <bounds x="225" y="125" width="25" height="5"/>
19242175      </backdrop>
1925      <backdrop name="dotmatrix179" element="dotmatrix" state="0">
1926         <bounds x="512" y="212" width="64" height="8"/>
2176      <backdrop name="dotmatrix179" element="dotmatrix5dot" state="0">
2177         <bounds x="250" y="125" width="25" height="5"/>
19272178      </backdrop>
1928      <backdrop name="dotmatrix180" element="dotmatrix" state="0">
1929         <bounds x="0" y="220" width="64" height="8"/>
2179      <backdrop name="dotmatrix180" element="dotmatrix5dot" state="0">
2180         <bounds x="275" y="125" width="25" height="5"/>
19302181      </backdrop>
1931      <backdrop name="dotmatrix181" element="dotmatrix" state="0">
1932         <bounds x="64" y="220" width="64" height="8"/>
2182      <backdrop name="dotmatrix181" element="dotmatrix5dot" state="0">
2183         <bounds x="300" y="125" width="25" height="5"/>
19332184      </backdrop>
1934      <backdrop name="dotmatrix182" element="dotmatrix" state="0">
1935         <bounds x="128" y="220" width="64" height="8"/>
2185      <backdrop name="dotmatrix182" element="dotmatrix5dot" state="0">
2186         <bounds x="0" y="130" width="25" height="5"/>
19362187      </backdrop>
1937      <backdrop name="dotmatrix183" element="dotmatrix" state="0">
1938         <bounds x="192" y="220" width="64" height="8"/>
2188      <backdrop name="dotmatrix183" element="dotmatrix5dot" state="0">
2189         <bounds x="25" y="130" width="25" height="5"/>
19392190      </backdrop>
1940      <backdrop name="dotmatrix184" element="dotmatrix" state="0">
1941         <bounds x="256" y="220" width="64" height="8"/>
2191      <backdrop name="dotmatrix184" element="dotmatrix5dot" state="0">
2192         <bounds x="50" y="130" width="25" height="5"/>
19422193      </backdrop>
1943      <backdrop name="dotmatrix185" element="dotmatrix" state="0">
1944         <bounds x="320" y="220" width="64" height="8"/>
2194      <backdrop name="dotmatrix185" element="dotmatrix5dot" state="0">
2195         <bounds x="75" y="130" width="25" height="5"/>
19452196      </backdrop>
1946      <backdrop name="dotmatrix186" element="dotmatrix" state="0">
1947         <bounds x="384" y="220" width="64" height="8"/>
2197      <backdrop name="dotmatrix186" element="dotmatrix5dot" state="0">
2198         <bounds x="100" y="130" width="25" height="5"/>
19482199      </backdrop>
1949      <backdrop name="dotmatrix187" element="dotmatrix" state="0">
1950         <bounds x="448" y="220" width="64" height="8"/>
2200      <backdrop name="dotmatrix187" element="dotmatrix5dot" state="0">
2201         <bounds x="125" y="130" width="25" height="5"/>
19512202      </backdrop>
1952      <backdrop name="dotmatrix188" element="dotmatrix" state="0">
1953         <bounds x="512" y="220" width="64" height="8"/>
2203      <backdrop name="dotmatrix188" element="dotmatrix5dot" state="0">
2204         <bounds x="150" y="130" width="25" height="5"/>
19542205      </backdrop>
2206      <backdrop name="dotmatrix189" element="dotmatrix5dot" state="0">
2207         <bounds x="175" y="130" width="25" height="5"/>
2208      </backdrop>
2209      <backdrop name="dotmatrix190" element="dotmatrix5dot" state="0">
2210         <bounds x="200" y="130" width="25" height="5"/>
2211      </backdrop>
2212      <backdrop name="dotmatrix191" element="dotmatrix5dot" state="0">
2213         <bounds x="225" y="130" width="25" height="5"/>
2214      </backdrop>
2215      <backdrop name="dotmatrix192" element="dotmatrix5dot" state="0">
2216         <bounds x="250" y="130" width="25" height="5"/>
2217      </backdrop>
2218      <backdrop name="dotmatrix193" element="dotmatrix5dot" state="0">
2219         <bounds x="275" y="130" width="25" height="5"/>
2220      </backdrop>
2221      <backdrop name="dotmatrix194" element="dotmatrix5dot" state="0">
2222         <bounds x="300" y="130" width="25" height="5"/>
2223      </backdrop>
2224      <backdrop name="dotmatrix195" element="dotmatrix5dot" state="0">
2225         <bounds x="0" y="135" width="25" height="5"/>
2226      </backdrop>
2227      <backdrop name="dotmatrix196" element="dotmatrix5dot" state="0">
2228         <bounds x="25" y="135" width="25" height="5"/>
2229      </backdrop>
2230      <backdrop name="dotmatrix197" element="dotmatrix5dot" state="0">
2231         <bounds x="50" y="135" width="25" height="5"/>
2232      </backdrop>
2233      <backdrop name="dotmatrix198" element="dotmatrix5dot" state="0">
2234         <bounds x="75" y="135" width="25" height="5"/>
2235      </backdrop>
2236      <backdrop name="dotmatrix199" element="dotmatrix5dot" state="0">
2237         <bounds x="100" y="135" width="25" height="5"/>
2238      </backdrop>
2239      <backdrop name="dotmatrix200" element="dotmatrix5dot" state="0">
2240         <bounds x="125" y="135" width="25" height="5"/>
2241      </backdrop>
2242      <backdrop name="dotmatrix201" element="dotmatrix5dot" state="0">
2243         <bounds x="150" y="135" width="25" height="5"/>
2244      </backdrop>
2245      <backdrop name="dotmatrix202" element="dotmatrix5dot" state="0">
2246         <bounds x="175" y="135" width="25" height="5"/>
2247      </backdrop>
2248      <backdrop name="dotmatrix203" element="dotmatrix5dot" state="0">
2249         <bounds x="200" y="135" width="25" height="5"/>
2250      </backdrop>
2251      <backdrop name="dotmatrix204" element="dotmatrix5dot" state="0">
2252         <bounds x="225" y="135" width="25" height="5"/>
2253      </backdrop>
2254      <backdrop name="dotmatrix205" element="dotmatrix5dot" state="0">
2255         <bounds x="250" y="135" width="25" height="5"/>
2256      </backdrop>
2257      <backdrop name="dotmatrix206" element="dotmatrix5dot" state="0">
2258         <bounds x="275" y="135" width="25" height="5"/>
2259      </backdrop>
2260      <backdrop name="dotmatrix207" element="dotmatrix5dot" state="0">
2261         <bounds x="300" y="135" width="25" height="5"/>
2262      </backdrop>
2263      <backdrop name="dotmatrix208" element="dotmatrix5dot" state="0">
2264         <bounds x="0" y="140" width="25" height="5"/>
2265      </backdrop>
2266      <backdrop name="dotmatrix209" element="dotmatrix5dot" state="0">
2267         <bounds x="25" y="140" width="25" height="5"/>
2268      </backdrop>
2269      <backdrop name="dotmatrix210" element="dotmatrix5dot" state="0">
2270         <bounds x="50" y="140" width="25" height="5"/>
2271      </backdrop>
2272      <backdrop name="dotmatrix211" element="dotmatrix5dot" state="0">
2273         <bounds x="75" y="140" width="25" height="5"/>
2274      </backdrop>
2275      <backdrop name="dotmatrix212" element="dotmatrix5dot" state="0">
2276         <bounds x="100" y="140" width="25" height="5"/>
2277      </backdrop>
2278      <backdrop name="dotmatrix213" element="dotmatrix5dot" state="0">
2279         <bounds x="125" y="140" width="25" height="5"/>
2280      </backdrop>
2281      <backdrop name="dotmatrix214" element="dotmatrix5dot" state="0">
2282         <bounds x="150" y="140" width="25" height="5"/>
2283      </backdrop>
2284      <backdrop name="dotmatrix215" element="dotmatrix5dot" state="0">
2285         <bounds x="175" y="140" width="25" height="5"/>
2286      </backdrop>
2287      <backdrop name="dotmatrix216" element="dotmatrix5dot" state="0">
2288         <bounds x="200" y="140" width="25" height="5"/>
2289      </backdrop>
2290      <backdrop name="dotmatrix217" element="dotmatrix5dot" state="0">
2291         <bounds x="225" y="140" width="25" height="5"/>
2292      </backdrop>
2293      <backdrop name="dotmatrix218" element="dotmatrix5dot" state="0">
2294         <bounds x="250" y="140" width="25" height="5"/>
2295      </backdrop>
2296      <backdrop name="dotmatrix219" element="dotmatrix5dot" state="0">
2297         <bounds x="275" y="140" width="25" height="5"/>
2298      </backdrop>
2299      <backdrop name="dotmatrix220" element="dotmatrix5dot" state="0">
2300         <bounds x="300" y="140" width="25" height="5"/>
2301      </backdrop>
2302      <backdrop name="dotmatrix221" element="dotmatrix5dot" state="0">
2303         <bounds x="0" y="145" width="25" height="5"/>
2304      </backdrop>
2305      <backdrop name="dotmatrix222" element="dotmatrix5dot" state="0">
2306         <bounds x="25" y="145" width="25" height="5"/>
2307      </backdrop>
2308      <backdrop name="dotmatrix223" element="dotmatrix5dot" state="0">
2309         <bounds x="50" y="145" width="25" height="5"/>
2310      </backdrop>
2311      <backdrop name="dotmatrix224" element="dotmatrix5dot" state="0">
2312         <bounds x="75" y="145" width="25" height="5"/>
2313      </backdrop>
2314      <backdrop name="dotmatrix225" element="dotmatrix5dot" state="0">
2315         <bounds x="100" y="145" width="25" height="5"/>
2316      </backdrop>
2317      <backdrop name="dotmatrix226" element="dotmatrix5dot" state="0">
2318         <bounds x="125" y="145" width="25" height="5"/>
2319      </backdrop>
2320      <backdrop name="dotmatrix227" element="dotmatrix5dot" state="0">
2321         <bounds x="150" y="145" width="25" height="5"/>
2322      </backdrop>
2323      <backdrop name="dotmatrix228" element="dotmatrix5dot" state="0">
2324         <bounds x="175" y="145" width="25" height="5"/>
2325      </backdrop>
2326      <backdrop name="dotmatrix229" element="dotmatrix5dot" state="0">
2327         <bounds x="200" y="145" width="25" height="5"/>
2328      </backdrop>
2329      <backdrop name="dotmatrix230" element="dotmatrix5dot" state="0">
2330         <bounds x="225" y="145" width="25" height="5"/>
2331      </backdrop>
2332      <backdrop name="dotmatrix231" element="dotmatrix5dot" state="0">
2333         <bounds x="250" y="145" width="25" height="5"/>
2334      </backdrop>
2335      <backdrop name="dotmatrix232" element="dotmatrix5dot" state="0">
2336         <bounds x="275" y="145" width="25" height="5"/>
2337      </backdrop>
2338      <backdrop name="dotmatrix233" element="dotmatrix5dot" state="0">
2339         <bounds x="300" y="145" width="25" height="5"/>
2340      </backdrop>
2341      <backdrop name="dotmatrix234" element="dotmatrix5dot" state="0">
2342         <bounds x="0" y="150" width="25" height="5"/>
2343      </backdrop>
2344      <backdrop name="dotmatrix235" element="dotmatrix5dot" state="0">
2345         <bounds x="25" y="150" width="25" height="5"/>
2346      </backdrop>
2347      <backdrop name="dotmatrix236" element="dotmatrix5dot" state="0">
2348         <bounds x="50" y="150" width="25" height="5"/>
2349      </backdrop>
2350      <backdrop name="dotmatrix237" element="dotmatrix5dot" state="0">
2351         <bounds x="75" y="150" width="25" height="5"/>
2352      </backdrop>
2353      <backdrop name="dotmatrix238" element="dotmatrix5dot" state="0">
2354         <bounds x="100" y="150" width="25" height="5"/>
2355      </backdrop>
2356      <backdrop name="dotmatrix239" element="dotmatrix5dot" state="0">
2357         <bounds x="125" y="150" width="25" height="5"/>
2358      </backdrop>
2359      <backdrop name="dotmatrix240" element="dotmatrix5dot" state="0">
2360         <bounds x="150" y="150" width="25" height="5"/>
2361      </backdrop>
2362      <backdrop name="dotmatrix241" element="dotmatrix5dot" state="0">
2363         <bounds x="175" y="150" width="25" height="5"/>
2364      </backdrop>
2365      <backdrop name="dotmatrix242" element="dotmatrix5dot" state="0">
2366         <bounds x="200" y="150" width="25" height="5"/>
2367      </backdrop>
2368      <backdrop name="dotmatrix243" element="dotmatrix5dot" state="0">
2369         <bounds x="225" y="150" width="25" height="5"/>
2370      </backdrop>
2371      <backdrop name="dotmatrix244" element="dotmatrix5dot" state="0">
2372         <bounds x="250" y="150" width="25" height="5"/>
2373      </backdrop>
2374      <backdrop name="dotmatrix245" element="dotmatrix5dot" state="0">
2375         <bounds x="275" y="150" width="25" height="5"/>
2376      </backdrop>
2377      <backdrop name="dotmatrix246" element="dotmatrix5dot" state="0">
2378         <bounds x="300" y="150" width="25" height="5"/>
2379      </backdrop>
2380      <backdrop name="dotmatrix247" element="dotmatrix5dot" state="0">
2381         <bounds x="0" y="155" width="25" height="5"/>
2382      </backdrop>
2383      <backdrop name="dotmatrix248" element="dotmatrix5dot" state="0">
2384         <bounds x="25" y="155" width="25" height="5"/>
2385      </backdrop>
2386      <backdrop name="dotmatrix249" element="dotmatrix5dot" state="0">
2387         <bounds x="50" y="155" width="25" height="5"/>
2388      </backdrop>
2389      <backdrop name="dotmatrix250" element="dotmatrix5dot" state="0">
2390         <bounds x="75" y="155" width="25" height="5"/>
2391      </backdrop>
2392      <backdrop name="dotmatrix251" element="dotmatrix5dot" state="0">
2393         <bounds x="100" y="155" width="25" height="5"/>
2394      </backdrop>
2395      <backdrop name="dotmatrix252" element="dotmatrix5dot" state="0">
2396         <bounds x="125" y="155" width="25" height="5"/>
2397      </backdrop>
2398      <backdrop name="dotmatrix253" element="dotmatrix5dot" state="0">
2399         <bounds x="150" y="155" width="25" height="5"/>
2400      </backdrop>
2401      <backdrop name="dotmatrix254" element="dotmatrix5dot" state="0">
2402         <bounds x="175" y="155" width="25" height="5"/>
2403      </backdrop>
2404      <backdrop name="dotmatrix255" element="dotmatrix5dot" state="0">
2405         <bounds x="200" y="155" width="25" height="5"/>
2406      </backdrop>
2407      <backdrop name="dotmatrix256" element="dotmatrix5dot" state="0">
2408         <bounds x="225" y="155" width="25" height="5"/>
2409      </backdrop>
2410      <backdrop name="dotmatrix257" element="dotmatrix5dot" state="0">
2411         <bounds x="250" y="155" width="25" height="5"/>
2412      </backdrop>
2413      <backdrop name="dotmatrix258" element="dotmatrix5dot" state="0">
2414         <bounds x="275" y="155" width="25" height="5"/>
2415      </backdrop>
2416      <backdrop name="dotmatrix259" element="dotmatrix5dot" state="0">
2417         <bounds x="300" y="155" width="25" height="5"/>
2418      </backdrop>
2419      <backdrop name="dotmatrix260" element="dotmatrix5dot" state="0">
2420         <bounds x="0" y="160" width="25" height="5"/>
2421      </backdrop>
2422      <backdrop name="dotmatrix261" element="dotmatrix5dot" state="0">
2423         <bounds x="25" y="160" width="25" height="5"/>
2424      </backdrop>
2425      <backdrop name="dotmatrix262" element="dotmatrix5dot" state="0">
2426         <bounds x="50" y="160" width="25" height="5"/>
2427      </backdrop>
2428      <backdrop name="dotmatrix263" element="dotmatrix5dot" state="0">
2429         <bounds x="75" y="160" width="25" height="5"/>
2430      </backdrop>
2431      <backdrop name="dotmatrix264" element="dotmatrix5dot" state="0">
2432         <bounds x="100" y="160" width="25" height="5"/>
2433      </backdrop>
2434      <backdrop name="dotmatrix265" element="dotmatrix5dot" state="0">
2435         <bounds x="125" y="160" width="25" height="5"/>
2436      </backdrop>
2437      <backdrop name="dotmatrix266" element="dotmatrix5dot" state="0">
2438         <bounds x="150" y="160" width="25" height="5"/>
2439      </backdrop>
2440      <backdrop name="dotmatrix267" element="dotmatrix5dot" state="0">
2441         <bounds x="175" y="160" width="25" height="5"/>
2442      </backdrop>
2443      <backdrop name="dotmatrix268" element="dotmatrix5dot" state="0">
2444         <bounds x="200" y="160" width="25" height="5"/>
2445      </backdrop>
2446      <backdrop name="dotmatrix269" element="dotmatrix5dot" state="0">
2447         <bounds x="225" y="160" width="25" height="5"/>
2448      </backdrop>
2449      <backdrop name="dotmatrix270" element="dotmatrix5dot" state="0">
2450         <bounds x="250" y="160" width="25" height="5"/>
2451      </backdrop>
2452      <backdrop name="dotmatrix271" element="dotmatrix5dot" state="0">
2453         <bounds x="275" y="160" width="25" height="5"/>
2454      </backdrop>
2455      <backdrop name="dotmatrix272" element="dotmatrix5dot" state="0">
2456         <bounds x="300" y="160" width="25" height="5"/>
2457      </backdrop>
19552458
19562459   </view>
19572460</mamelayout>
src/mame/drivers/vroulet.c
r15176r15177
3636
3737#include "emu.h"
3838#include "cpu/z80/z80.h"
39#include "machine/8255ppi.h"
39#include "machine/i8255.h"
4040#include "sound/ay8910.h"
4141#include "machine/nvram.h"
4242
r15176r15177
138138   ADDRESS_MAP_GLOBAL_MASK(0xff)
139139   AM_RANGE(0x00, 0x00) AM_DEVREAD_LEGACY("aysnd", ay8910_r)
140140   AM_RANGE(0x00, 0x01) AM_DEVWRITE_LEGACY("aysnd", ay8910_data_address_w)
141   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
142   AM_RANGE(0x80, 0x83) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
141   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
142   AM_RANGE(0x80, 0x83) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
143143ADDRESS_MAP_END
144144
145145/* Input Ports */
r15176r15177
257257static WRITE8_DEVICE_HANDLER( ppi8255_b_w ){}// lamps ?
258258static WRITE8_DEVICE_HANDLER( ppi8255_c_w ){}
259259
260static const ppi8255_interface ppi8255_intf[2] =
260static I8255A_INTERFACE( ppi8255_0_intf )
261261{
262   {
263      DEVCB_INPUT_PORT("IN0"),    // Port A read
264      DEVCB_INPUT_PORT("IN1"),   // Port B read
265      DEVCB_INPUT_PORT("IN2"),   // Port C read
266      DEVCB_NULL,               // Port A write
267      DEVCB_NULL,               // Port B write
268      DEVCB_NULL               // Port C write
269   },
270   {
271      DEVCB_NULL,               // Port A read
272      DEVCB_NULL,               // Port B read
273      DEVCB_NULL,               // Port C read
274      DEVCB_HANDLER(ppi8255_a_w),   // Port A write
275      DEVCB_HANDLER(ppi8255_b_w),   // Port B write
276      DEVCB_HANDLER(ppi8255_c_w)   // Port C write
277   }
262   DEVCB_INPUT_PORT("IN0"),         /* Port A read */
263   DEVCB_NULL,                     /* Port A write */
264   DEVCB_INPUT_PORT("IN1"),         /* Port B read */
265   DEVCB_NULL,                     /* Port B write */
266   DEVCB_INPUT_PORT("IN2"),         /* Port C read */
267   DEVCB_NULL                     /* Port C write */
278268};
279269
270static I8255A_INTERFACE( ppi8255_1_intf )
271{
272   DEVCB_NULL,                     /* Port A read */
273   DEVCB_HANDLER(ppi8255_a_w),         /* Port A write */
274   DEVCB_NULL,                     /* Port B read */
275   DEVCB_HANDLER(ppi8255_b_w),         /* Port B write */
276   DEVCB_NULL,                     /* Port C read */
277   DEVCB_HANDLER(ppi8255_c_w)         /* Port C write */
278};
279
280
280281/* Machine Driver */
281282
282283static MACHINE_CONFIG_START( vroulet, vroulet_state )
r15176r15177
288289
289290   MCFG_NVRAM_ADD_1FILL("nvram")
290291
291   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
292   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
292   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
293   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
293294
294295   // video hardware
295296
src/mame/drivers/argus.c
r15176r15177
739739
740740ROM_START( butasan ) /* English "subtitle" of Butasan for Japanese region.  Original Jaleco PCB */
741741   ROM_REGION( 0x30000, "maincpu", 0 )                /* Main CPU */
742   ROM_LOAD( "4.t2",    0x00000, 0x10000, CRC(937dabed) SHA1(23058b07cc2973b3b7a4b0bcdab43c3db605a54e) ) /* overdump? 1+2 half identical */
742   ROM_LOAD( "4.t2",    0x00000, 0x08000, CRC(1ba1d8e4) SHA1(ab141a1fbaab9f3ef6788b131833effb32c42930) ) /* M5L27256K-2 (32kb) - 4.4.bin */
743743   ROM_LOAD( "3.s2",    0x10000, 0x10000, CRC(a6b3ccc2) SHA1(fcc9db1cd68fd9477d86e63e6906d194d5ee477a) )
744744   ROM_LOAD( "2.p2",    0x20000, 0x10000, CRC(96517fa9) SHA1(03ee1f118f109c85b046098c457a90b40e163f3c) )
745745
src/mame/drivers/zaxxon.c
r15176r15177
256256#include "sound/sn76496.h"
257257#include "sound/samples.h"
258258#include "machine/segacrpt.h"
259#include "machine/8255ppi.h"
259#include "machine/i8255.h"
260260#include "audio/segasnd.h"
261261#include "includes/zaxxon.h"
262262
r15176r15177
436436   AM_RANGE(0xc000, 0xc002) AM_MIRROR(0x18f8) AM_WRITE(zaxxon_coin_enable_w)
437437   AM_RANGE(0xc003, 0xc004) AM_MIRROR(0x18f8) AM_WRITE(zaxxon_coin_counter_w)
438438   AM_RANGE(0xc006, 0xc006) AM_MIRROR(0x18f8) AM_WRITE(zaxxon_flipscreen_w)
439   AM_RANGE(0xe03c, 0xe03f) AM_MIRROR(0x1f00) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
439   AM_RANGE(0xe03c, 0xe03f) AM_MIRROR(0x1f00) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
440440   AM_RANGE(0xe0f0, 0xe0f0) AM_MIRROR(0x1f00) AM_WRITE(int_enable_w)
441441   AM_RANGE(0xe0f1, 0xe0f1) AM_MIRROR(0x1f00) AM_WRITE(zaxxon_fg_color_w)
442442   AM_RANGE(0xe0f8, 0xe0f9) AM_MIRROR(0x1f00) AM_WRITE(zaxxon_bg_position_w)
r15176r15177
476476   AM_RANGE(0x0000, 0x1fff) AM_ROM
477477   AM_RANGE(0x4000, 0x47ff) AM_MIRROR(0x1800) AM_RAM
478478   AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x1fff) AM_DEVWRITE_LEGACY("sn1", sn76496_w)
479   AM_RANGE(0x8000, 0x8003) AM_MIRROR(0x1ffc) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
479   AM_RANGE(0x8000, 0x8003) AM_MIRROR(0x1ffc) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
480480   AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x1fff) AM_DEVWRITE_LEGACY("sn2", sn76496_w)
481481ADDRESS_MAP_END
482482
r15176r15177
860860 *
861861 *************************************/
862862
863static const ppi8255_interface zaxxon_ppi_intf =
863static I8255A_INTERFACE( zaxxon_ppi_intf )
864864{
865   DEVCB_NULL,
866   DEVCB_NULL,
867   DEVCB_NULL,
868   DEVCB_HANDLER(zaxxon_sound_a_w),
869   DEVCB_HANDLER(zaxxon_sound_b_w),
870   DEVCB_HANDLER(zaxxon_sound_c_w)
865   DEVCB_NULL,                     /* Port A read */
866   DEVCB_HANDLER(zaxxon_sound_a_w),   /* Port A write */
867   DEVCB_NULL,                     /* Port B read */
868   DEVCB_HANDLER(zaxxon_sound_b_w),   /* Port B write */
869   DEVCB_NULL,                     /* Port C read */
870   DEVCB_HANDLER(zaxxon_sound_c_w)      /* Port C write */
871871};
872872
873
874static const ppi8255_interface congo_ppi_intf =
873static I8255A_INTERFACE( congo_ppi_intf )
875874{
876   DEVCB_DRIVER_MEMBER(driver_device, soundlatch_byte_r),
877   DEVCB_NULL,
878   DEVCB_NULL,
879   DEVCB_NULL,
880   DEVCB_HANDLER(congo_sound_b_w),
881   DEVCB_HANDLER(congo_sound_c_w)
875   DEVCB_DRIVER_MEMBER(driver_device, soundlatch_byte_r),   /* Port A read */
876   DEVCB_NULL,                  /* Port A write */
877   DEVCB_NULL,                  /* Port B read */
878   DEVCB_HANDLER(congo_sound_b_w),   /* Port B write */
879   DEVCB_NULL,                  /* Port C read */
880   DEVCB_HANDLER(congo_sound_c_w)   /* Port C write */
882881};
883882
884883
r15176r15177
928927
929928   MCFG_MACHINE_START(zaxxon)
930929
931   MCFG_PPI8255_ADD( "ppi8255", zaxxon_ppi_intf )
930   MCFG_I8255A_ADD( "ppi8255", zaxxon_ppi_intf )
932931
933932   /* video hardware */
934933   MCFG_GFXDECODE(zaxxon)
r15176r15177
981980   MCFG_CPU_MODIFY("maincpu")
982981   MCFG_CPU_PROGRAM_MAP(congo_map)
983982
984   MCFG_PPI8255_RECONFIG( "ppi8255", congo_ppi_intf )
983   MCFG_DEVICE_REMOVE("ppi8255")
984   MCFG_I8255A_ADD( "ppi8255", congo_ppi_intf )
985985
986986   MCFG_CPU_ADD("audiocpu", Z80, SOUND_CLOCK)
987987   MCFG_CPU_PROGRAM_MAP(congo_sound_map)
src/mame/drivers/pipeline.c
r15176r15177
6767#include "cpu/z80/z80.h"
6868#include "machine/z80ctc.h"
6969#include "sound/2203intf.h"
70#include "machine/8255ppi.h"
70#include "machine/i8255.h"
7171#include "cpu/z80/z80daisy.h"
7272#include "cpu/m6805/m6805.h"
7373
r15176r15177
193193   AM_RANGE(0x8000, 0x87ff) AM_RAM
194194   AM_RANGE(0x8800, 0x97ff) AM_RAM_WRITE(vram1_w) AM_SHARE("vram1")
195195   AM_RANGE(0x9800, 0xa7ff) AM_RAM_WRITE(vram2_w) AM_SHARE("vram2")
196   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
197   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
196   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
197   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
198198   AM_RANGE(0xb830, 0xb830) AM_NOP
199199   AM_RANGE(0xb840, 0xb840) AM_NOP
200200ADDRESS_MAP_END
r15176r15177
202202static ADDRESS_MAP_START( cpu1_mem, AS_PROGRAM, 8, pipeline_state )
203203   AM_RANGE(0x0000, 0x7fff) AM_ROM
204204   AM_RANGE(0xc000, 0xc7ff) AM_RAM
205   AM_RANGE(0xe000, 0xe003) AM_DEVREADWRITE_LEGACY("ppi8255_2", ppi8255_r, ppi8255_w)
205   AM_RANGE(0xe000, 0xe003) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)
206206ADDRESS_MAP_END
207207
208208static ADDRESS_MAP_START( sound_port, AS_IO, 8, pipeline_state )
r15176r15177
326326   { NULL }
327327};
328328
329static const ppi8255_interface ppi8255_intf[3] =
329static I8255A_INTERFACE( ppi8255_0_intf )
330330{
331   {
332      DEVCB_INPUT_PORT("P1"),         /* Port A read */
333      DEVCB_NULL,                  /* Port B read */
334      DEVCB_NULL,                  /* Port C read */
335      DEVCB_NULL,                  /* Port A write */
336      DEVCB_NULL,                  /* Port B write */  /* related to sound/music : check code at 0x1c0a */
337      DEVCB_HANDLER(vidctrl_w)      /* Port C write */
338   },
339   {
340      DEVCB_INPUT_PORT("DSW1"),      /* Port A read */
341      DEVCB_INPUT_PORT("DSW2"),      /* Port B read */
342      DEVCB_HANDLER(protection_r),   /* Port C read */
343      DEVCB_NULL,                  /* Port A write */
344      DEVCB_NULL,                  /* Port B write */
345      DEVCB_HANDLER(protection_w)      /* Port C write */
346   },
347   {
348      DEVCB_NULL,                  /* Port A read */
349      DEVCB_NULL,                  /* Port B read */
350      DEVCB_NULL,                  /* Port C read */
351      DEVCB_NULL,                  /* Port A write */
352      DEVCB_NULL,                  /* Port B write */
353      DEVCB_NULL                  /* Port C write */
354   }
331   DEVCB_INPUT_PORT("P1"),            /* Port A read */
332   DEVCB_NULL,                     /* Port A write */
333   DEVCB_NULL,                     /* Port B read */
334   DEVCB_NULL,                     /* Port B write */  // related to sound/music : check code at 0x1c0a
335   DEVCB_NULL,                     /* Port C read */
336   DEVCB_HANDLER(vidctrl_w)         /* Port C write */
355337};
356338
339static I8255A_INTERFACE( ppi8255_1_intf )
340{
341   DEVCB_INPUT_PORT("DSW1"),         /* Port A read */
342   DEVCB_NULL,                     /* Port A write */
343   DEVCB_INPUT_PORT("DSW2"),         /* Port B read */
344   DEVCB_NULL,                     /* Port B write */
345   DEVCB_HANDLER(protection_r),      /* Port C read */
346   DEVCB_HANDLER(protection_w)         /* Port C write */
347};
348
349static I8255A_INTERFACE( ppi8255_2_intf )
350{
351   DEVCB_NULL,                     /* Port A read */
352   DEVCB_NULL,                     /* Port A write */
353   DEVCB_NULL,                     /* Port B read */
354   DEVCB_NULL,                     /* Port B write */
355   DEVCB_NULL,                     /* Port C read */
356   DEVCB_NULL                     /* Port C write */
357};
358
357359static const ym2203_interface ym2203_config =
358360{
359361   {
r15176r15177
400402
401403   MCFG_Z80CTC_ADD( "ctc", 7372800/2 /* same as "audiocpu" */, ctc_intf )
402404
403   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
404   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
405   MCFG_PPI8255_ADD( "ppi8255_2", ppi8255_intf[2] )
405   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
406   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
407   MCFG_I8255A_ADD( "ppi8255_2", ppi8255_2_intf )
406408
407409   /* video hardware */
408410   MCFG_SCREEN_ADD("screen", RASTER)
src/mame/drivers/kungfur.c
r15176r15177
5757#include "emu.h"
5858#include "cpu/m6809/m6809.h"
5959#include "sound/msm5205.h"
60#include "machine/8255ppi.h"
60#include "machine/i8255.h"
6161
6262#include "kungfur.lh"
6363
r15176r15177
215215   AM_RANGE(0x0000, 0x07ff) AM_RAM
216216   AM_RANGE(0x4000, 0x4000) AM_DEVWRITE_LEGACY("adpcm1", kungfur_adpcm1_w)
217217   AM_RANGE(0x4004, 0x4004) AM_DEVWRITE_LEGACY("adpcm2", kungfur_adpcm2_w)
218   AM_RANGE(0x4008, 0x400b) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
219   AM_RANGE(0x400c, 0x400f) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
218   AM_RANGE(0x4008, 0x400b) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
219   AM_RANGE(0x400c, 0x400f) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
220220   AM_RANGE(0xc000, 0xffff) AM_ROM
221221ADDRESS_MAP_END
222222
r15176r15177
259259
260260***************************************************************************/
261261
262static const ppi8255_interface ppi8255_intf[2] =
262static I8255A_INTERFACE( ppi8255_0_intf )
263263{
264264   // $4008 - always $83 (PPI mode 0, ports B & lower C as input)
265   {
266      DEVCB_NULL,
267      DEVCB_INPUT_PORT("IN0"),
268      DEVCB_INPUT_PORT("IN1"),
269      DEVCB_HANDLER(kungfur_output_w),
270      DEVCB_NULL,
271      DEVCB_HANDLER(kungfur_control_w)
272   },
265   DEVCB_NULL,                     /* Port A read */
266   DEVCB_HANDLER(kungfur_output_w),   /* Port A write */
267   DEVCB_INPUT_PORT("IN0"),         /* Port B read */
268   DEVCB_NULL,                     /* Port B write */
269   DEVCB_INPUT_PORT("IN1"),         /* Port C read */
270   DEVCB_HANDLER(kungfur_control_w)   /* Port C write */
271};
272
273static I8255A_INTERFACE( ppi8255_1_intf )
274{
273275   // $400c - always $80 (PPI mode 0, all ports as output)
274   {
275      DEVCB_NULL,
276      DEVCB_NULL,
277      DEVCB_NULL,
278      DEVCB_HANDLER(kungfur_latch1_w),
279      DEVCB_HANDLER(kungfur_latch2_w),
280      DEVCB_HANDLER(kungfur_latch3_w)
281   }
276   DEVCB_NULL,                     /* Port A read */
277   DEVCB_HANDLER(kungfur_latch1_w),   /* Port A write */
278   DEVCB_NULL,                     /* Port B read */
279   DEVCB_HANDLER(kungfur_latch2_w),   /* Port B write */
280   DEVCB_NULL,                     /* Port C read */
281   DEVCB_HANDLER(kungfur_latch3_w)      /* Port C write */
282282};
283283
284
284285static const msm5205_interface msm5205_config_1 =
285286{
286287   kfr_adpcm1_int,
r15176r15177
318319   MCFG_CPU_PROGRAM_MAP(kungfur_map)
319320   MCFG_CPU_PERIODIC_INT(kungfur_irq, 975)      // close approximation
320321
321   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
322   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
322   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
323   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
323324
324325   MCFG_MACHINE_START(kungfur)
325326   MCFG_MACHINE_RESET(kungfur)
src/mame/drivers/viper.c
r15176r15177
18991899
19001900static const powerpc_config viper_ppc_cfg =
19011901{
1902   100000000
1902   100000000,
1903   NULL,
1904   NULL
19031905};
19041906
19051907static INTERRUPT_GEN(viper_vblank)
src/mame/drivers/bfm_sc5.c
r15176r15177
1284412844GAME( 200?, sc5frcrza   ,sc5czfr,   sc5, sc5, sc5, ROT0, "Mazooma","Fruit Crazy (Mazooma) (Scorpion 5) (set 2)", GAME_IS_SKELETON_MECHANICAL )
1284512845
1284612846// PR1608 AWP CROWN JEWELS         PR1608 CROWN JEWELS SOUNDS11      CROWN JEWELS  S.SITE
12847GAME( 200?, sc5crnjw   ,0,         sc5, sc5, sc5, ROT0, "BFM","Crown Jewels (PR1608) (Bellfruit) (Scorpion 5) (set 1)", GAME_IS_SKELETON_MECHANICAL )
12848GAME( 200?, sc5crnjwa   ,sc5crnjw,   sc5, sc5, sc5, ROT0, "BFM","Crown Jewels (PR1608) (Bellfruit) (Scorpion 5) (set 2)", GAME_IS_SKELETON_MECHANICAL )
12849GAME( 200?, sc5crnjwb   ,sc5crnjw,   sc5, sc5, sc5, ROT0, "BFM","Crown Jewels (PR1608) (Bellfruit) (Scorpion 5) (set 3)", GAME_IS_SKELETON_MECHANICAL )
12847GAME( 2004, sc5crnjw   ,0,         sc5, sc5, sc5, ROT0, "BFM","Crown Jewels (PR1608) (Bellfruit) (Scorpion 5) (set 1)", GAME_IS_SKELETON_MECHANICAL )
12848GAME( 2004, sc5crnjwa   ,sc5crnjw,   sc5, sc5, sc5, ROT0, "BFM","Crown Jewels (PR1608) (Bellfruit) (Scorpion 5) (set 2)", GAME_IS_SKELETON_MECHANICAL )
12849GAME( 2004, sc5crnjwb   ,sc5crnjw,   sc5, sc5, sc5, ROT0, "BFM","Crown Jewels (PR1608) (Bellfruit) (Scorpion 5) (set 3)", GAME_IS_SKELETON_MECHANICAL )
1285012850
1285112851// Z055 CJEWELS         PR000055 CJEWELS 1         CJEWELS AWP
1285212852GAME( 200?, sc5cjqps   ,sc5crnjw,   sc5, sc5, sc5, ROT0, "QPS","Crown Jewels (Z055) (QPS) (Scorpion 5) (set 1)", GAME_IS_SKELETON_MECHANICAL )
r15176r15177
1325713257GAME( 200?, sc5dndwig   ,sc5dndwi,   sc5, sc5, sc5, ROT0, "BFM","Deal Or No Deal What's In Your Box Casino (Bellfruit) (Scorpion 5) (set 8)", GAME_IS_SKELETON_MECHANICAL )
1325813258
1325913259// PR1307 AWP DIAMOND MINE         PR1307 DIAM MINE SOUNDS11
13260GAME( 200?, sc5dmine   ,0,         sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 1)", GAME_IS_SKELETON_MECHANICAL )
13261GAME( 200?, sc5dminea   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 2)", GAME_IS_SKELETON_MECHANICAL )
13262GAME( 200?, sc5dmineb   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 3)", GAME_IS_SKELETON_MECHANICAL )
13263GAME( 200?, sc5dminec   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 4)", GAME_IS_SKELETON_MECHANICAL )
13264GAME( 200?, sc5dmined   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 5)", GAME_IS_SKELETON_MECHANICAL )
13265GAME( 200?, sc5dminee   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 6)", GAME_IS_SKELETON_MECHANICAL )
13266GAME( 200?, sc5dminef   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 7)", GAME_IS_SKELETON_MECHANICAL )
13267GAME( 200?, sc5dmineg   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 8)", GAME_IS_SKELETON_MECHANICAL )
13268GAME( 200?, sc5dmineh   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 9)", GAME_IS_SKELETON_MECHANICAL )
13269GAME( 200?, sc5dminei   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 10)", GAME_IS_SKELETON_MECHANICAL )
13260GAME( 2002, sc5dmine   ,0,         sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 1)", GAME_IS_SKELETON_MECHANICAL )
13261GAME( 2002, sc5dminea   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 2)", GAME_IS_SKELETON_MECHANICAL )
13262GAME( 2002, sc5dmineb   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 3)", GAME_IS_SKELETON_MECHANICAL )
13263GAME( 2002, sc5dminec   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 4)", GAME_IS_SKELETON_MECHANICAL )
13264GAME( 2002, sc5dmined   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 5)", GAME_IS_SKELETON_MECHANICAL )
13265GAME( 2002, sc5dminee   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 6)", GAME_IS_SKELETON_MECHANICAL )
13266GAME( 2002, sc5dminef   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 7)", GAME_IS_SKELETON_MECHANICAL )
13267GAME( 2002, sc5dmineg   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 8)", GAME_IS_SKELETON_MECHANICAL )
13268GAME( 2002, sc5dmineh   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 9)", GAME_IS_SKELETON_MECHANICAL )
13269GAME( 2002, sc5dminei   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 10)", GAME_IS_SKELETON_MECHANICAL )
1327013270// PR1307 AWP DIAMOND MINE         PR1307 DIAM MINE SOUNDS11         DIAMOND MINE  S.SITE
13271GAME( 200?, sc5dminej   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 11)", GAME_IS_SKELETON_MECHANICAL )
13272GAME( 200?, sc5dminek   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 12)", GAME_IS_SKELETON_MECHANICAL )
13273GAME( 200?, sc5dminel   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 13)", GAME_IS_SKELETON_MECHANICAL )
13271GAME( 2002, sc5dminej   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 11)", GAME_IS_SKELETON_MECHANICAL )
13272GAME( 2002, sc5dminek   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 12)", GAME_IS_SKELETON_MECHANICAL )
13273GAME( 2002, sc5dminel   ,sc5dmine,   sc5, sc5, sc5, ROT0, "BFM","Diamond Mine (Bellfruit) (Scorpion 5) (set 13)", GAME_IS_SKELETON_MECHANICAL )
1327413274
1327513275// PR1394 AWP DOCTOR DOSH SCORP5         PR1309 DOCTOR DOSH SOUNDS11
1327613276GAME( 200?, sc5ddosh   ,0,         sc5, sc5, sc5, ROT0, "BFM","Doctor Dosh (Bellfruit) (Scorpion 5) (set 1)", GAME_IS_SKELETON_MECHANICAL )
src/mame/drivers/igs017.c
r15176r15177
4444#include "emu.h"
4545#include "cpu/m68000/m68000.h"
4646#include "cpu/z180/z180.h"
47#include "machine/8255ppi.h"
47#include "machine/i8255.h"
4848#include "sound/2413intf.h"
4949#include "sound/okim6295.h"
5050
r15176r15177
13021302
13031303//  AM_RANGE(0x200a, 0x200a) AM_WRITENOP
13041304
1305   AM_RANGE( 0x2010, 0x2013 ) AM_DEVREAD_LEGACY("ppi8255", ppi8255_r)
1305   AM_RANGE( 0x2010, 0x2013 ) AM_DEVREAD("ppi8255", i8255_device, read)
13061306   AM_RANGE( 0x2012, 0x2012 ) AM_WRITE(video_disable_w )
13071307
13081308   AM_RANGE( 0x2014, 0x2014 ) AM_WRITE(nmi_enable_w )
r15176r15177
14241424   AM_RANGE( 0x49c002, 0x49c003 ) AM_READ(mgcs_magic_r )
14251425   AM_RANGE( 0xa02000, 0xa02fff ) AM_READWRITE(spriteram_lsb_r, spriteram_lsb_w ) AM_SHARE("spriteram")
14261426   AM_RANGE( 0xa03000, 0xa037ff ) AM_RAM_WRITE(mgcs_paletteram_w ) AM_SHARE("paletteram")
1427   AM_RANGE( 0xa04020, 0xa04027 ) AM_DEVREAD8_LEGACY("ppi8255", ppi8255_r, 0x00ff )
1427   AM_RANGE( 0xa04020, 0xa04027 ) AM_DEVREAD8("ppi8255", i8255_device, read, 0x00ff)
14281428   AM_RANGE( 0xa04024, 0xa04025 ) AM_WRITE(video_disable_lsb_w )
14291429   AM_RANGE( 0xa04028, 0xa04029 ) AM_WRITE(irq2_enable_w )
14301430   AM_RANGE( 0xa0402a, 0xa0402b ) AM_WRITE(irq1_enable_w )
r15176r15177
15211521   AM_RANGE(0x1f0000, 0x1fffff) AM_RAM
15221522   AM_RANGE(0x202000, 0x202fff) AM_READWRITE(spriteram_lsb_r, spriteram_lsb_w ) AM_SHARE("spriteram")
15231523   AM_RANGE(0x203000, 0x2037ff) AM_RAM_WRITE(sdmg2_paletteram_w ) AM_SHARE("paletteram")
1524   AM_RANGE(0x204020, 0x204027) AM_DEVREAD8_LEGACY("ppi8255", ppi8255_r, 0x00ff )
1524   AM_RANGE(0x204020, 0x204027) AM_DEVREAD8("ppi8255", i8255_device, read, 0x00ff)
15251525   AM_RANGE(0x204024, 0x204025) AM_WRITE(video_disable_lsb_w )
15261526   AM_RANGE(0x204028, 0x204029) AM_WRITE(irq2_enable_w )
15271527   AM_RANGE(0x20402a, 0x20402b) AM_WRITE(irq1_enable_w )
r15176r15177
16431643   AM_RANGE(0xa02000, 0xa02fff) AM_READWRITE(spriteram_lsb_r, spriteram_lsb_w ) AM_SHARE("spriteram")
16441644   AM_RANGE(0xa03000, 0xa037ff) AM_RAM_WRITE(sdmg2_paletteram_w ) AM_SHARE("paletteram")
16451645//  AM_RANGE(0xa04014, 0xa04015) // written with FF at boot
1646   AM_RANGE(0xa04020, 0xa04027) AM_DEVREAD8_LEGACY("ppi8255", ppi8255_r, 0x00ff )
1646   AM_RANGE(0xa04020, 0xa04027) AM_DEVREAD8("ppi8255", i8255_device, read, 0x00ff)
16471647   AM_RANGE(0xa04024, 0xa04025) AM_WRITE(video_disable_lsb_w )
16481648   AM_RANGE(0xa04028, 0xa04029) AM_WRITE(irq2_enable_w )
16491649   AM_RANGE(0xa0402a, 0xa0402b) AM_WRITE(irq1_enable_w )
r15176r15177
17351735
17361736//  AM_RANGE(0x200a, 0x200a) AM_WRITENOP
17371737
1738   AM_RANGE( 0x2010, 0x2013 ) AM_DEVREAD_LEGACY("ppi8255", ppi8255_r)
1738   AM_RANGE( 0x2010, 0x2013 ) AM_DEVREAD("ppi8255", i8255_device, read)
17391739   AM_RANGE( 0x2012, 0x2012 ) AM_WRITE(video_disable_w )
17401740
17411741   AM_RANGE( 0x2014, 0x2014 ) AM_WRITE(nmi_enable_w )
r15176r15177
18191819   AM_RANGE(0x910002, 0x910003) AM_READ( lhzb2_magic_r )
18201820   AM_RANGE(0xb02000, 0xb02fff) AM_READWRITE( spriteram_lsb_r, spriteram_lsb_w ) AM_SHARE("spriteram")
18211821   AM_RANGE(0xb03000, 0xb037ff) AM_RAM_WRITE( lhzb2a_paletteram_w ) AM_SHARE("paletteram")
1822   AM_RANGE(0xb04020, 0xb04027) AM_DEVREAD8_LEGACY( "ppi8255", ppi8255_r, 0x00ff )
1822   AM_RANGE(0xb04020, 0xb04027) AM_DEVREAD8("ppi8255", i8255_device, read, 0x00ff)
18231823   AM_RANGE(0xb04024, 0xb04025) AM_WRITE( video_disable_lsb_w )
18241824   AM_RANGE(0xb04028, 0xb04029) AM_WRITE( irq2_enable_w )
18251825   AM_RANGE(0xb0402a, 0xb0402b) AM_WRITE( irq1_enable_w )
r15176r15177
20322032   AM_RANGE(0x602002, 0x602003) AM_READ( slqz2_magic_r )
20332033   AM_RANGE(0x902000, 0x902fff) AM_READWRITE( spriteram_lsb_r, spriteram_lsb_w ) AM_SHARE("spriteram")
20342034   AM_RANGE(0x903000, 0x9037ff) AM_RAM_WRITE( slqz2_paletteram_w ) AM_SHARE("paletteram")
2035   AM_RANGE(0x904020, 0x904027) AM_DEVREAD8_LEGACY( "ppi8255", ppi8255_r, 0x00ff )
2035   AM_RANGE(0x904020, 0x904027) AM_DEVREAD8("ppi8255", i8255_device, read, 0x00ff)
20362036   AM_RANGE(0x904024, 0x904025) AM_WRITE( video_disable_lsb_w )
20372037   AM_RANGE(0x904028, 0x904029) AM_WRITE( irq2_enable_w )
20382038   AM_RANGE(0x90402a, 0x90402b) AM_WRITE( irq1_enable_w )
r15176r15177
30183018
30193019
30203020// Dips are read through the 8255
3021static const ppi8255_interface iqblocka_ppi8255_intf =
3021static I8255A_INTERFACE( iqblocka_ppi8255_intf )
30223022{
3023   DEVCB_INPUT_PORT("DSW1"),   // Port A read
3024   DEVCB_INPUT_PORT("DSW2"),   // Port B read
3025   DEVCB_INPUT_PORT("DSW3"),   // Port C read
3026
3027   DEVCB_NULL,               // Port A write
3028   DEVCB_NULL,               // Port B write
3029   DEVCB_NULL               // Port C write
3023   DEVCB_INPUT_PORT("DSW1"),         /* Port A read */
3024   DEVCB_NULL,                     /* Port A write */
3025   DEVCB_INPUT_PORT("DSW2"),         /* Port B read */
3026   DEVCB_NULL,                     /* Port B write */
3027   DEVCB_INPUT_PORT("DSW3"),         /* Port C read */
3028   DEVCB_NULL                     /* Port C write */
30303029};
30313030
3031
30323032static MACHINE_RESET( iqblocka )
30333033{
30343034   igs017_state *state = machine.driver_data<igs017_state>();
r15176r15177
30433043   MCFG_CPU_IO_MAP(iqblocka_io)
30443044   MCFG_TIMER_ADD_SCANLINE("scantimer", irqblocka_interrupt, "screen", 0, 1)
30453045
3046   MCFG_PPI8255_ADD( "ppi8255", iqblocka_ppi8255_intf )
3046   MCFG_I8255A_ADD( "ppi8255", iqblocka_ppi8255_intf )
30473047
30483048   MCFG_MACHINE_RESET(iqblocka)
30493049
r15176r15177
30963096   memset(state->m_igs_magic, 0, sizeof(state->m_igs_magic));
30973097}
30983098
3099static const ppi8255_interface mgcs_ppi8255_intf =
3099static I8255A_INTERFACE( mgcs_ppi8255_intf )
31003100{
3101   DEVCB_INPUT_PORT("COINS"),   // Port A read
3102   DEVCB_HANDLER(mgcs_keys_r),   // Port B read
3103   DEVCB_NULL,               // Port C read (see code at 1C83A)
3104
3105   DEVCB_NULL,               // Port A write
3106   DEVCB_NULL,               // Port B write
3107   DEVCB_NULL               // Port C write
3101   DEVCB_INPUT_PORT("COINS"),         /* Port A read */
3102   DEVCB_NULL,                     /* Port A write */
3103   DEVCB_HANDLER(mgcs_keys_r),         /* Port B read */
3104   DEVCB_NULL,                     /* Port B write */
3105   DEVCB_NULL,                     /* Port C read */
3106   DEVCB_NULL                     /* Port C write */
31083107};
31093108
31103109static MACHINE_CONFIG_START( mgcs, igs017_state )
r15176r15177
31143113
31153114   MCFG_MACHINE_RESET(mgcs)
31163115
3117   MCFG_PPI8255_ADD( "ppi8255", mgcs_ppi8255_intf )
3116   MCFG_I8255A_ADD( "ppi8255", mgcs_ppi8255_intf )
31183117
31193118   /* video hardware */
31203119   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
31393138
31403139
31413140// lhzb2
3142
3143static const ppi8255_interface lhzb2_ppi8255_intf =
3141static I8255A_INTERFACE( lhzb2_ppi8255_intf )
31443142{
3145   DEVCB_INPUT_PORT("COINS"),   // Port A read
3146   DEVCB_INPUT_PORT("DSW1"),   // Port B read
3147   DEVCB_INPUT_PORT("DSW2"),   // Port C read
3148
3149   DEVCB_NULL,               // Port A write
3150   DEVCB_NULL,               // Port B write
3151   DEVCB_NULL               // Port C write
3143   DEVCB_INPUT_PORT("COINS"),         /* Port A read */
3144   DEVCB_NULL,                     /* Port A write */
3145   DEVCB_INPUT_PORT("DSW1"),         /* Port B read */
3146   DEVCB_NULL,                     /* Port B write */
3147   DEVCB_INPUT_PORT("DSW2"),         /* Port C read */
3148   DEVCB_NULL                     /* Port C write */
31523149};
31533150
31543151static MACHINE_CONFIG_START( lhzb2, igs017_state )
r15176r15177
31583155
31593156   MCFG_MACHINE_RESET(mgcs)
31603157
3161   MCFG_PPI8255_ADD( "ppi8255", lhzb2_ppi8255_intf )
3158   MCFG_I8255A_ADD( "ppi8255", lhzb2_ppi8255_intf )
31623159
31633160   /* video hardware */
31643161   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
31983195
31993196   MCFG_MACHINE_RESET(lhzb2a)
32003197
3201//  MCFG_PPI8255_ADD( "ppi8255", sdmg2_ppi8255_intf )
3198//  MCFG_I8255A_ADD( "ppi8255", sdmg2_ppi8255_intf )
32023199
32033200   /* video hardware */
32043201   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
32313228
32323229   MCFG_MACHINE_RESET(mgcs)
32333230
3234   MCFG_PPI8255_ADD( "ppi8255", lhzb2_ppi8255_intf )
3231   MCFG_I8255A_ADD( "ppi8255", lhzb2_ppi8255_intf )
32353232
32363233   /* video hardware */
32373234   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
32563253
32573254
32583255// sdmg2
3259
3260static const ppi8255_interface sdmg2_ppi8255_intf =
3256static I8255A_INTERFACE( sdmg2_ppi8255_intf )
32613257{
3262   DEVCB_INPUT_PORT("DSW1"),   // Port A read
3263   DEVCB_INPUT_PORT("DSW2"),   // Port B read
3264   DEVCB_NULL,               // Port C read
3265
3266   DEVCB_NULL,               // Port A write
3267   DEVCB_NULL,               // Port B write
3268   DEVCB_NULL               // Port C write
3258   DEVCB_INPUT_PORT("DSW1"),         /* Port A read */
3259   DEVCB_NULL,                     /* Port A write */
3260   DEVCB_INPUT_PORT("DSW2"),         /* Port B read */
3261   DEVCB_NULL,                     /* Port B write */
3262   DEVCB_NULL,                     /* Port C read */
3263   DEVCB_NULL                     /* Port C write */
32693264};
32703265
32713266static MACHINE_CONFIG_START( sdmg2, igs017_state )
r15176r15177
32753270
32763271   MCFG_MACHINE_RESET(mgcs)
32773272
3278   MCFG_PPI8255_ADD( "ppi8255", sdmg2_ppi8255_intf )
3273   MCFG_I8255A_ADD( "ppi8255", sdmg2_ppi8255_intf )
32793274
32803275   /* video hardware */
32813276   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
33123307      device_set_input_line(state->m_maincpu, 3, HOLD_LINE); // lev 3 instead of 2
33133308}
33143309
3315static const ppi8255_interface mgdh_ppi8255_intf =
3310static I8255A_INTERFACE( mgdh_ppi8255_intf )
33163311{
3317   DEVCB_INPUT_PORT("DSW1"),   // Port A read
3318   DEVCB_NULL,               // Port B read
3319   DEVCB_NULL,               // Port C read
3320
3321   DEVCB_NULL,               // Port A write
3322   DEVCB_NULL,               // Port B write
3323   DEVCB_NULL               // Port C write
3312   DEVCB_INPUT_PORT("DSW1"),         /* Port A read */
3313   DEVCB_NULL,                     /* Port A write */
3314   DEVCB_NULL,                     /* Port B read */
3315   DEVCB_NULL,                     /* Port B write */
3316   DEVCB_NULL,                     /* Port C read */
3317   DEVCB_NULL                     /* Port C write */
33243318};
33253319
33263320static MACHINE_CONFIG_START( mgdha, igs017_state )
r15176r15177
33303324
33313325   MCFG_MACHINE_RESET(mgcs)
33323326
3333   MCFG_PPI8255_ADD( "ppi8255", mgdh_ppi8255_intf )
3327   MCFG_I8255A_ADD( "ppi8255", mgdh_ppi8255_intf )
33343328
33353329   /* video hardware */
33363330   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
33613355   MCFG_CPU_IO_MAP(tjsb_io)
33623356   MCFG_TIMER_ADD_SCANLINE("scantimer", irqblocka_interrupt, "screen", 0, 1)
33633357
3364   MCFG_PPI8255_ADD( "ppi8255", iqblocka_ppi8255_intf )
3358   MCFG_I8255A_ADD( "ppi8255", iqblocka_ppi8255_intf )
33653359
33663360   MCFG_MACHINE_RESET(iqblocka)
33673361
src/mame/drivers/taxidriv.c
r15176r15177
1111
1212#include "emu.h"
1313#include "cpu/z80/z80.h"
14#include "machine/8255ppi.h"
14#include "machine/i8255.h"
1515#include "includes/taxidriv.h"
1616#include "sound/ay8910.h"
1717
r15176r15177
105105   state->m_s4 = data & 1;
106106}
107107
108static I8255A_INTERFACE( ppi8255_0_intf )
109{
110   DEVCB_HANDLER(p0a_r),            /* Port A read */
111   DEVCB_NULL,                     /* Port A write */
112   DEVCB_NULL,                     /* Port B read */
113   DEVCB_HANDLER(p0b_w),            /* Port B write */
114   DEVCB_HANDLER(p0c_r),            /* Port C read */
115   DEVCB_HANDLER(p0c_w)            /* Port C write */
116};
108117
109static const ppi8255_interface ppi8255_intf[5] =
118static I8255A_INTERFACE( ppi8255_1_intf )
110119{
111   {
112      DEVCB_HANDLER(p0a_r),      /* Port A read */
113      DEVCB_NULL,               /* Port B read */
114      DEVCB_HANDLER(p0c_r),      /* Port C read */
115      DEVCB_NULL,               /* Port A write */
116      DEVCB_HANDLER(p0b_w),      /* Port B write */
117      DEVCB_HANDLER(p0c_w)      /* Port C write */
118   },
119   {
120      DEVCB_NULL,               /* Port A read */
121      DEVCB_HANDLER(p1b_r),      /* Port B read */
122      DEVCB_HANDLER(p1c_r),      /* Port C read */
123      DEVCB_HANDLER(p1a_w),      /* Port A write */
124      DEVCB_NULL,               /* Port B write */
125      DEVCB_HANDLER(p1c_w)      /* Port C write */
126   },
127   {
128      DEVCB_NULL,               /* Port A read */
129      DEVCB_NULL,               /* Port B read */
130      DEVCB_NULL,               /* Port C read */
131      DEVCB_HANDLER(p2a_w),      /* Port A write */
132      DEVCB_HANDLER(p2b_w),      /* Port B write */
133      DEVCB_HANDLER(p2c_w)      /* Port C write */
134   },
135   {
136      DEVCB_NULL,               /* Port A read */
137      DEVCB_NULL,               /* Port B read */
138      DEVCB_NULL,               /* Port C read */
139      DEVCB_HANDLER(p3a_w),      /* Port A write */
140      DEVCB_HANDLER(p3b_w),      /* Port B write */
141      DEVCB_HANDLER(p3c_w)      /* Port C write */
142   },
143   {
144      DEVCB_NULL,               /* Port A read */
145      DEVCB_NULL,               /* Port B read */
146      DEVCB_NULL,               /* Port C read */
147      DEVCB_HANDLER(p4a_w),      /* Port A write */
148      DEVCB_HANDLER(p4b_w),      /* Port B write */
149      DEVCB_HANDLER(p4c_w)      /* Port C write */
150   }
120   DEVCB_NULL,                     /* Port A read */
121   DEVCB_HANDLER(p1a_w),            /* Port A write */
122   DEVCB_HANDLER(p1b_r),            /* Port B read */
123   DEVCB_NULL,                     /* Port B write */
124   DEVCB_HANDLER(p1c_r),            /* Port C read */
125   DEVCB_HANDLER(p1c_w)            /* Port C write */
151126};
152127
128static I8255A_INTERFACE( ppi8255_2_intf )
129{
130   DEVCB_NULL,                     /* Port A read */
131   DEVCB_HANDLER(p2a_w),            /* Port A write */
132   DEVCB_NULL,                     /* Port B read */
133   DEVCB_HANDLER(p2b_w),            /* Port B write */
134   DEVCB_NULL,                     /* Port C read */
135   DEVCB_HANDLER(p2c_w)            /* Port C write */
136};
153137
138static I8255A_INTERFACE( ppi8255_3_intf )
139{
140   DEVCB_NULL,                     /* Port A read */
141   DEVCB_HANDLER(p3a_w),            /* Port A write */
142   DEVCB_NULL,                     /* Port B read */
143   DEVCB_HANDLER(p3b_w),            /* Port B write */
144   DEVCB_NULL,                     /* Port C read */
145   DEVCB_HANDLER(p3c_w)            /* Port C write */
146};
147
148static I8255A_INTERFACE( ppi8255_4_intf )
149{
150   DEVCB_NULL,                     /* Port A read */
151   DEVCB_HANDLER(p4a_w),            /* Port A write */
152   DEVCB_NULL,                     /* Port B read */
153   DEVCB_HANDLER(p4b_w),            /* Port B write */
154   DEVCB_NULL,                     /* Port C read */
155   DEVCB_HANDLER(p4c_w)            /* Port C write */
156};
157
158
154159static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8, taxidriv_state )
155160   AM_RANGE(0x0000, 0x7fff) AM_ROM
156161   AM_RANGE(0x8000, 0x8fff) AM_RAM   /* ??? */
r15176r15177
166171   AM_RANGE(0xe400, 0xebff) AM_WRITEONLY AM_SHARE("vram2")   /* bg1 tilemap */
167172   AM_RANGE(0xec00, 0xefff) AM_WRITEONLY AM_SHARE("vram0")   /* fg tilemap */
168173   AM_RANGE(0xf000, 0xf3ff) AM_WRITEONLY AM_SHARE("vram3")   /* bg2 tilemap */
169   AM_RANGE(0xf400, 0xf403) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
170   AM_RANGE(0xf480, 0xf483) AM_DEVREADWRITE_LEGACY("ppi8255_2", ppi8255_r, ppi8255_w)   /* "sprite1" placement */
171   AM_RANGE(0xf500, 0xf503) AM_DEVREADWRITE_LEGACY("ppi8255_3", ppi8255_r, ppi8255_w)   /* "sprite2" placement */
172   AM_RANGE(0xf580, 0xf583) AM_DEVREADWRITE_LEGACY("ppi8255_4", ppi8255_r, ppi8255_w)   /* "sprite3" placement */
174   AM_RANGE(0xf400, 0xf403) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
175   AM_RANGE(0xf480, 0xf483) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)   /* "sprite1" placement */
176   AM_RANGE(0xf500, 0xf503) AM_DEVREADWRITE("ppi8255_3", i8255_device, read, write)   /* "sprite2" placement */
177   AM_RANGE(0xf580, 0xf583) AM_DEVREADWRITE("ppi8255_4", i8255_device, read, write)   /* "sprite3" placement */
173178   //AM_RANGE(0xf780, 0xf781) AM_WRITEONLY     /* more scroll registers? */
174179   AM_RANGE(0xf782, 0xf787) AM_WRITEONLY AM_SHARE("scroll")   /* bg scroll (three copies always identical) */
175180   AM_RANGE(0xf800, 0xffff) AM_RAM
r15176r15177
179184   AM_RANGE(0x0000, 0x3fff) AM_ROM
180185   AM_RANGE(0x6000, 0x67ff) AM_RAM
181186   AM_RANGE(0x8000, 0x87ff) AM_RAM
182   AM_RANGE(0xa000, 0xa003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
187   AM_RANGE(0xa000, 0xa003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
183188   AM_RANGE(0xe000, 0xe000) AM_READ_PORT("DSW0")
184189   AM_RANGE(0xe001, 0xe001) AM_READ_PORT("DSW1")
185190   AM_RANGE(0xe002, 0xe002) AM_READ_PORT("DSW2")
r15176r15177
389394   MCFG_QUANTUM_TIME(attotime::from_hz(6000))   /* 100 CPU slices per frame - an high value to ensure proper */
390395                     /* synchronization of the CPUs */
391396
392   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
393   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
394   MCFG_PPI8255_ADD( "ppi8255_2", ppi8255_intf[2] )
395   MCFG_PPI8255_ADD( "ppi8255_3", ppi8255_intf[3] )
396   MCFG_PPI8255_ADD( "ppi8255_4", ppi8255_intf[4] )
397   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
398   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
399   MCFG_I8255A_ADD( "ppi8255_2", ppi8255_2_intf )
400   MCFG_I8255A_ADD( "ppi8255_3", ppi8255_3_intf )
401   MCFG_I8255A_ADD( "ppi8255_4", ppi8255_4_intf )
397402
398403   /* video hardware */
399404   MCFG_SCREEN_ADD("screen", RASTER)
src/mame/drivers/pcxt.c
r15176r15177
5757#include "emu.h"
5858#include "cpu/i86/i86.h"
5959#include "machine/pit8253.h"
60#include "machine/8255ppi.h"
60#include "machine/i8255.h"
6161#include "machine/8237dma.h"
6262#include "machine/pic8259.h"
6363#include "machine/mc146818.h"
r15176r15177
340340   cputag_set_input_line(device->machine(), "maincpu", INPUT_LINE_RESET, PULSE_LINE);
341341}
342342
343static I8255A_INTERFACE( ppi8255_0_intf )
344{
345   DEVCB_HANDLER(port_a_r),         /* Port A read */
346   DEVCB_NULL,                     /* Port A write */
347   DEVCB_HANDLER(port_b_r),         /* Port B read */
348   DEVCB_HANDLER(port_b_w),         /* Port B write */
349   DEVCB_HANDLER(port_c_r),         /* Port C read */
350   DEVCB_NULL                     /* Port C write */
351};
343352
344static const ppi8255_interface filetto_ppi8255_intf[2] =
353static I8255A_INTERFACE( ppi8255_1_intf )
345354{
346   {
347      DEVCB_HANDLER(port_a_r),      /* Port A read */
348      DEVCB_HANDLER(port_b_r),      /* Port B read */
349      DEVCB_HANDLER(port_c_r),      /* Port C read */
350      DEVCB_NULL,                /* Port A write */
351      DEVCB_HANDLER(port_b_w),      /* Port B write */
352      DEVCB_NULL                  /* Port C write */
353   },
354   {
355      DEVCB_NULL,                  /* Port A read */
356      DEVCB_NULL,                  /* Port B read */
357      DEVCB_NULL,                  /* Port C read */
358      DEVCB_HANDLER(wss_1_w),         /* Port A write */
359      DEVCB_HANDLER(wss_2_w),         /* Port B write */
360      DEVCB_HANDLER(sys_reset_w)      /* Port C write */
361   }
355   DEVCB_NULL,                     /* Port A read */
356   DEVCB_HANDLER(wss_1_w),            /* Port A write */
357   DEVCB_NULL,                     /* Port B read */
358   DEVCB_HANDLER(wss_2_w),            /* Port B write */
359   DEVCB_NULL,                     /* Port C read */
360   DEVCB_HANDLER(sys_reset_w)         /* Port C write */
362361};
363362
363
364364/*Floppy Disk Controller 765 device*/
365365/*Currently we only emulate it at a point that the BIOS will pass the checks*/
366366
r15176r15177
547547   AM_RANGE(0x0000, 0x000f) AM_DEVREADWRITE_LEGACY("dma8237_1", i8237_r, i8237_w ) //8237 DMA Controller
548548   AM_RANGE(0x0020, 0x002f) AM_DEVREADWRITE_LEGACY("pic8259_1", pic8259_r, pic8259_w ) //8259 Interrupt control
549549   AM_RANGE(0x0040, 0x0043) AM_DEVREADWRITE_LEGACY("pit8253", pit8253_r, pit8253_w)    //8253 PIT
550   AM_RANGE(0x0060, 0x0063) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)  //PPI 8255
551   AM_RANGE(0x0064, 0x0066) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)  //PPI 8255
550   AM_RANGE(0x0060, 0x0063) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)  //PPI 8255
551   AM_RANGE(0x0064, 0x0066) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)  //PPI 8255
552552   AM_RANGE(0x0070, 0x007f) AM_DEVREADWRITE("rtc", mc146818_device, read, write)
553553   AM_RANGE(0x0080, 0x0087) AM_READWRITE(dma_page_select_r,dma_page_select_w)
554554   AM_RANGE(0x00a0, 0x00af) AM_DEVREADWRITE_LEGACY("pic8259_2", pic8259_r, pic8259_w )
r15176r15177
727727
728728   MCFG_PIT8253_ADD( "pit8253", pc_pit8253_config )
729729
730   MCFG_PPI8255_ADD( "ppi8255_0", filetto_ppi8255_intf[0] )
731   MCFG_PPI8255_ADD( "ppi8255_1", filetto_ppi8255_intf[1] )
730   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
731   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
732732
733733   MCFG_I8237_ADD( "dma8237_1", XTAL_14_31818MHz/3, dma8237_1_config )
734734
src/mame/drivers/freekick.c
r15176r15177
3030
3131#include "emu.h"
3232#include "cpu/z80/z80.h"
33#include "machine/8255ppi.h"
33#include "machine/i8255.h"
3434#include "machine/mc8123.h"
3535#include "sound/sn76496.h"
3636#include "includes/freekick.h"
r15176r15177
180180   AM_RANGE(0xd000, 0xdfff) AM_RAM
181181   AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(freek_videoram_w) AM_SHARE("videoram")   // tilemap
182182   AM_RANGE(0xe800, 0xe8ff) AM_RAM AM_SHARE("spriteram")   // sprites
183   AM_RANGE(0xec00, 0xec03) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
184   AM_RANGE(0xf000, 0xf003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
183   AM_RANGE(0xec00, 0xec03) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
184   AM_RANGE(0xf000, 0xf003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
185185   AM_RANGE(0xf800, 0xf800) AM_READ_PORT("IN0") AM_WRITE(flipscreen_w)
186186   AM_RANGE(0xf801, 0xf801) AM_READ_PORT("IN1")
187187   AM_RANGE(0xf802, 0xf802) AM_READNOP   //MUST return bit 0 = 0, otherwise game resets
r15176r15177
512512   return state->memregion("user1")->base()[state->m_romaddr & 0x7fff];
513513}
514514
515static const ppi8255_interface ppi8255_intf[2] =
515static I8255A_INTERFACE( ppi8255_0_intf )
516516{
517   {
518      DEVCB_NULL,                     /* Port A read */
519      DEVCB_NULL,                     /* Port B read */
520      DEVCB_HANDLER(snd_rom_r),         /* Port C read */
521      DEVCB_HANDLER(snd_rom_addr_l_w),   /* Port A write */
522      DEVCB_HANDLER(snd_rom_addr_h_w),   /* Port B write */
523      DEVCB_NULL                     /* Port C write */
524   },
525   {
526      DEVCB_INPUT_PORT("DSW1"),         /* Port A read */
527      DEVCB_INPUT_PORT("DSW2"),         /* Port B read */
528      DEVCB_INPUT_PORT("DSW3"),         /* Port C read */
529      DEVCB_NULL,                     /* Port A write */
530      DEVCB_NULL,                     /* Port B write */
531      DEVCB_NULL                     /* Port C write */
532   }
517   DEVCB_NULL,                     /* Port A read */
518   DEVCB_HANDLER(snd_rom_addr_l_w),   /* Port A write */
519   DEVCB_NULL,                     /* Port B read */
520   DEVCB_HANDLER(snd_rom_addr_h_w),   /* Port B write */
521   DEVCB_HANDLER(snd_rom_r),         /* Port C read */
522   DEVCB_NULL                     /* Port C write */
533523};
534524
525static I8255A_INTERFACE( ppi8255_1_intf )
526{
527   DEVCB_INPUT_PORT("DSW1"),      /* Port A read */
528   DEVCB_NULL,                  /* Port A write */
529   DEVCB_INPUT_PORT("DSW2"),      /* Port B read */
530   DEVCB_NULL,                  /* Port B write */
531   DEVCB_INPUT_PORT("DSW3"),      /* Port C read */
532   DEVCB_NULL                  /* Port C write */
533};
535534
536535
537536/*************************************
r15176r15177
678677   MCFG_MACHINE_START(freekick)
679678   MCFG_MACHINE_RESET(freekick)
680679
681   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
682   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
680   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
681   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
683682
684683   MCFG_SCREEN_MODIFY("screen")
685684   MCFG_SCREEN_UPDATE_STATIC(freekick)
src/mame/drivers/rgum.c
r15176r15177
1515#include "cpu/z80/z80.h"
1616#include "cpu/m6502/m6502.h"
1717#include "video/mc6845.h"
18#include "machine/8255ppi.h"
18#include "machine/i8255.h"
1919#include "sound/ay8910.h"
2020
2121
r15176r15177
7373   AM_RANGE(0x2801, 0x2801) AM_READNOP //read but value discarded?
7474   AM_RANGE(0x2803, 0x2803) AM_READNOP
7575
76   AM_RANGE(0x3000, 0x3003) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
76   AM_RANGE(0x3000, 0x3003) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
7777
7878   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("vram")
7979   AM_RANGE(0x5000, 0x57ff) AM_RAM AM_SHARE("cram")
r15176r15177
242242   NULL      /* update address callback */
243243};
244244
245static const ppi8255_interface ppi8255_intf =
245static I8255A_INTERFACE( ppi8255_intf )
246246{
247   DEVCB_INPUT_PORT("IN0"),      /* Port A read */
248   DEVCB_INPUT_PORT("IN1"),      /* Port B read */
249   DEVCB_INPUT_PORT("IN2"),      /* Port C read */
250   DEVCB_NULL,      /* Port A write */
251   DEVCB_NULL,      /* Port B write */
252   DEVCB_NULL      /* Port C write */
247   DEVCB_INPUT_PORT("IN0"),         /* Port A read */
248   DEVCB_NULL,                     /* Port A write */
249   DEVCB_INPUT_PORT("IN1"),         /* Port B read */
250   DEVCB_NULL,                     /* Port B write */
251   DEVCB_INPUT_PORT("IN2"),         /* Port C read */
252   DEVCB_NULL                     /* Port C write */
253253};
254254
255
255256static const ay8910_interface ay8910_config =
256257{
257258   AY8910_LEGACY_OUTPUT,
r15176r15177
278279
279280   MCFG_MC6845_ADD("crtc", MC6845, 24000000/16, mc6845_intf)   /* unknown clock & type, hand tuned to get ~50 fps (?) */
280281
281   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf )
282   MCFG_I8255A_ADD( "ppi8255", ppi8255_intf )
282283
283284   MCFG_GFXDECODE(rgum)
284285   MCFG_PALETTE_LENGTH(0x100)
src/mame/drivers/zaccaria.c
r15176r15177
4141#include "cpu/z80/z80.h"
4242#include "cpu/m6800/m6800.h"
4343#include "machine/6821pia.h"
44#include "machine/8255ppi.h"
44#include "machine/i8255.h"
4545#include "sound/ay8910.h"
4646#include "sound/dac.h"
4747#include "sound/tms5220.h"
r15176r15177
272272   AM_RANGE(0x6c00, 0x6c07) AM_READ(zaccaria_prot2_r)
273273   AM_RANGE(0x6e00, 0x6e00) AM_READWRITE(zaccaria_dsw_r, sound_command_w)
274274   AM_RANGE(0x7000, 0x77ff) AM_RAM
275   AM_RANGE(0x7800, 0x7803) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
275   AM_RANGE(0x7800, 0x7803) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
276276   AM_RANGE(0x7c00, 0x7c00) AM_READ(watchdog_reset_r)
277277   AM_RANGE(0x8000, 0xdfff) AM_ROM
278278ADDRESS_MAP_END
r15176r15177
516516GFXDECODE_END
517517
518518
519static const ppi8255_interface ppi8255_config =
519static I8255A_INTERFACE( ppi8255_intf )
520520{
521521   DEVCB_INPUT_PORT("P1"),            /* Port A read */
522   DEVCB_NULL,                     /* Port A write */
522523   DEVCB_INPUT_PORT("P2"),            /* Port B read */
524   DEVCB_NULL,                     /* Port B write */
523525   DEVCB_INPUT_PORT("SYSTEM"),         /* Port C read */
524   DEVCB_NULL,                     /* Port A write */
525   DEVCB_NULL,                     /* Port B write */
526526   DEVCB_HANDLER(zaccaria_dsw_sel_w)   /* Port C write */
527527};
528528
r15176r15177
600600   MCFG_CPU_PROGRAM_MAP(sound_map_2)
601601   MCFG_QUANTUM_TIME(attotime::from_hz(1000000))
602602
603   MCFG_PPI8255_ADD( "ppi8255", ppi8255_config )
603   MCFG_I8255A_ADD( "ppi8255", ppi8255_intf )
604604   MCFG_PIA6821_ADD( "pia0", pia_0_config )
605605   MCFG_PIA6821_ADD( "pia1", pia_1_config )
606606
src/mame/drivers/arcadia.c
r15176r15177
850850
851851
852852GAME( 1988, ar_airh,   ar_bios, arcadia, arcadia, airh,  ROT0, "Arcadia Systems", "SportTime Table Hockey (Arcadia, set 1, V 2.1)", 0 )
853GAME( 1988, ar_airh2,   ar_bios, arcadia, arcadia, airh,  ROT0, "Arcadia Systems", "SportTime Table Hockey (Arcadia, set 2)", 0 )
853GAME( 1988, ar_airh2,   ar_airh, arcadia, arcadia, airh,  ROT0, "Arcadia Systems", "SportTime Table Hockey (Arcadia, set 2)", 0 )
854854
855855GAME( 1988, ar_bowl,   ar_bios, arcadia, arcadia, bowl,  ROT0, "Arcadia Systems", "SportTime Bowling (Arcadia, V 2.1)", 0 )
856856
src/mame/drivers/meritm.c
r15176r15177
104104#include "cpu/z80/z80daisy.h"
105105#include "sound/ay8910.h"
106106#include "video/v9938.h"
107#include "machine/8255ppi.h"
107#include "machine/i8255.h"
108108#include "machine/z80pio.h"
109109#include "machine/pc16552d.h"
110110#include "machine/microtch.h"
r15176r15177
591591   ADDRESS_MAP_GLOBAL_MASK(0xff)
592592   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE("v9938_0", v9938_device, read, write)
593593   AM_RANGE(0x20, 0x23) AM_DEVREADWRITE("v9938_1", v9938_device, read, write)
594   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
594   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
595595   AM_RANGE(0x40, 0x43) AM_DEVREADWRITE_LEGACY("z80pio_0", z80pio_cd_ba_r, z80pio_cd_ba_w)
596596   AM_RANGE(0x50, 0x53) AM_DEVREADWRITE_LEGACY("z80pio_1", z80pio_cd_ba_r, z80pio_cd_ba_w)
597597   AM_RANGE(0x80, 0x80) AM_DEVREAD_LEGACY("aysnd", ay8910_r)
r15176r15177
603603   ADDRESS_MAP_GLOBAL_MASK(0xff)
604604   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE("v9938_0", v9938_device, read, write)
605605   AM_RANGE(0x20, 0x23) AM_DEVREADWRITE("v9938_1", v9938_device, read, write)
606   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
606   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
607607   AM_RANGE(0x40, 0x43) AM_DEVREADWRITE_LEGACY("z80pio_0", z80pio_cd_ba_r, z80pio_cd_ba_w)
608608   AM_RANGE(0x50, 0x53) AM_DEVREADWRITE_LEGACY("z80pio_1", z80pio_cd_ba_r, z80pio_cd_ba_w)
609609   AM_RANGE(0x60, 0x67) AM_READWRITE_LEGACY(pc16552d_0_r,pc16552d_0_w)
r15176r15177
624624   AM_RANGE(0x01, 0x01) AM_WRITE(watchdog_reset_w)
625625   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE("v9938_0", v9938_device, read, write)
626626   AM_RANGE(0x20, 0x23) AM_DEVREADWRITE("v9938_1", v9938_device, read, write)
627   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
627   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
628628   AM_RANGE(0x40, 0x43) AM_DEVREADWRITE_LEGACY("z80pio_0", z80pio_cd_ba_r, z80pio_cd_ba_w)
629629   AM_RANGE(0x50, 0x53) AM_DEVREADWRITE_LEGACY("z80pio_1", z80pio_cd_ba_r, z80pio_cd_ba_w)
630630   AM_RANGE(0x60, 0x67) AM_READWRITE_LEGACY(pc16552d_0_r,pc16552d_0_w)
r15176r15177
772772   output_set_value("P1 CANCEL LAMP", !BIT(data,6));
773773}
774774
775static const ppi8255_interface crt260_ppi8255_intf =
775static I8255A_INTERFACE( crt260_ppi8255_intf )
776776{
777   DEVCB_NULL,                        /* Port A read */
778   DEVCB_NULL,                        /* Port B read */
779   DEVCB_HANDLER(meritm_8255_port_c_r),   /* Port C read */
780   DEVCB_NULL,                        /* Port A write (used) */
781   DEVCB_NULL,                        /* Port B write (used LMP x DRIVE) */
782   DEVCB_NULL                        /* Port C write */
777   DEVCB_NULL,                     /* Port A read */
778   DEVCB_NULL,                     /* Port A write */
779   DEVCB_NULL,                     /* Port B read */
780   DEVCB_NULL,                     /* Port B write */
781   DEVCB_HANDLER(meritm_8255_port_c_r),/* Port C read */
782   DEVCB_NULL                     /* Port C write */
783783};
784784
785static const ppi8255_interface crt250_ppi8255_intf =
785static I8255A_INTERFACE( crt250_ppi8255_intf )
786786{
787   DEVCB_NULL,                        /* Port A read */
788   DEVCB_NULL,                        /* Port B read */
789   DEVCB_HANDLER(meritm_8255_port_c_r),   /* Port C read */
790   DEVCB_NULL,                        /* Port A write (used) */
791   DEVCB_HANDLER(meritm_crt250_port_b_w),   /* Port B write (used LMP x DRIVE) */
792   DEVCB_NULL                        /* Port C write */
787   DEVCB_NULL,                     /* Port A read */
788   DEVCB_NULL,                     /* Port A write */
789   DEVCB_NULL,                     /* Port B read */
790   DEVCB_HANDLER(meritm_crt250_port_b_w),/* Port B write (used LMP x DRIVE) */
791   DEVCB_HANDLER(meritm_8255_port_c_r),/* Port C read */
792   DEVCB_NULL                     /* Port C write */
793793};
794794
795795/*************************************
r15176r15177
10621062
10631063   MCFG_MACHINE_START(meritm_crt250)
10641064
1065   MCFG_PPI8255_ADD( "ppi8255", crt250_ppi8255_intf )
1065   MCFG_I8255A_ADD( "ppi8255", crt250_ppi8255_intf )
10661066
10671067   MCFG_Z80PIO_ADD( "z80pio_0", SYSTEM_CLK/6, meritm_audio_pio_intf )
10681068   MCFG_Z80PIO_ADD( "z80pio_1", SYSTEM_CLK/6, meritm_io_pio_intf )
r15176r15177
11191119   MCFG_CPU_PROGRAM_MAP(meritm_map)
11201120   MCFG_CPU_IO_MAP(meritm_io_map)
11211121
1122   MCFG_PPI8255_RECONFIG( "ppi8255", crt260_ppi8255_intf )
1122   MCFG_DEVICE_REMOVE("ppi8255")
1123   MCFG_I8255A_ADD( "ppi8255", crt260_ppi8255_intf )
11231124
11241125   MCFG_WATCHDOG_TIME_INIT(attotime::from_msec(1200))   // DS1232, TD connected to VCC
11251126   MCFG_MACHINE_START(meritm_crt260)
src/mame/drivers/lucky74.c
r15176r15177
671671#include "sound/ay8910.h"
672672#include "sound/sn76496.h"
673673#include "sound/msm5205.h"
674#include "machine/8255ppi.h"
674#include "machine/i8255.h"
675675#include "machine/nvram.h"
676676#include "lucky74.lh"
677677#include "includes/lucky74.h"
r15176r15177
809809   AM_RANGE(0xd800, 0xdfff) AM_RAM_WRITE(lucky74_fg_colorram_w) AM_SHARE("fg_colorram")            /* VRAM1-2 */
810810   AM_RANGE(0xe000, 0xe7ff) AM_RAM_WRITE(lucky74_bg_videoram_w) AM_SHARE("bg_videoram")            /* VRAM2-1 */
811811   AM_RANGE(0xe800, 0xefff) AM_RAM_WRITE(lucky74_bg_colorram_w) AM_SHARE("bg_colorram")            /* VRAM2-2 */
812   AM_RANGE(0xf000, 0xf003) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports 0 & 1 */
813   AM_RANGE(0xf080, 0xf083) AM_DEVREADWRITE_LEGACY("ppi8255_2", ppi8255_r, ppi8255_w)   /* DSW 1, 2 & 3 */
814   AM_RANGE(0xf0c0, 0xf0c3) AM_DEVREADWRITE_LEGACY("ppi8255_3", ppi8255_r, ppi8255_w)   /* DSW 4 */
812   AM_RANGE(0xf000, 0xf003) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports 0 & 1 */
813   AM_RANGE(0xf080, 0xf083) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)   /* DSW 1, 2 & 3 */
814   AM_RANGE(0xf0c0, 0xf0c3) AM_DEVREADWRITE("ppi8255_3", i8255_device, read, write)   /* DSW 4 */
815815   AM_RANGE(0xf100, 0xf100) AM_DEVWRITE_LEGACY("sn1", sn76496_w)                     /* SN76489 #1 */
816   AM_RANGE(0xf200, 0xf203) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* Input Ports 2 & 4 */
816   AM_RANGE(0xf200, 0xf203) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* Input Ports 2 & 4 */
817817   AM_RANGE(0xf300, 0xf300) AM_DEVWRITE_LEGACY("sn2", sn76496_w)                     /* SN76489 #2 */
818818   AM_RANGE(0xf400, 0xf400) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)                  /* YM2149 control */
819819   AM_RANGE(0xf500, 0xf500) AM_DEVWRITE_LEGACY("sn3", sn76496_w)                     /* SN76489 #3 */
r15176r15177
11621162   Since MAME doesn't support it yet, I replaced both 82C255
11631163   with 4x 8255...
11641164*/
1165static const ppi8255_interface ppi8255_intf[4] =
1165
1166static I8255A_INTERFACE( ppi8255_0_intf )
11661167{
1167   {   /* A & B set as input */
1168      DEVCB_INPUT_PORT("IN0"),   /* Port A read, IN0 */
1169      DEVCB_INPUT_PORT("IN1"),   /* Port B read, IN1 */
1170      DEVCB_NULL,               /* Port C read */
1171      DEVCB_NULL,               /* Port A write */
1172      DEVCB_NULL,               /* Port B write */
1173      DEVCB_NULL               /* Port C writes: 0x00 after reset, 0xff during game, and 0xfd when tap F2 for percentage and run count */
1174   },
1175   {   /* A & C set as input */
1176      DEVCB_INPUT_PORT("IN2"),   /* Port A read, IN2 */
1177      DEVCB_NULL,               /* Port B read */
1178      DEVCB_INPUT_PORT("IN4"),   /* Port C read, IN4 */
1179      DEVCB_NULL,               /* Port A write */
1180      DEVCB_NULL,               /* Port B write */
1181      DEVCB_NULL               /* Port C write */
1182   },
1183   {   /* A, B & C set as input */
1184      DEVCB_INPUT_PORT("DSW1"),   /* Port A read, DSW1 */
1185      DEVCB_INPUT_PORT("DSW2"),   /* Port B read, DSW2 */
1186      DEVCB_INPUT_PORT("DSW3"),   /* Port C read, DSW3 */
1187      DEVCB_NULL,               /* Port A write */
1188      DEVCB_NULL,               /* Port B write */
1189      DEVCB_NULL               /* Port C write */
1190   },
1191   {   /* A set as input */
1192      DEVCB_INPUT_PORT("DSW4"),   /* Port A read, DSW4 */
1193      DEVCB_NULL,               /* Port B read */
1194      DEVCB_NULL,               /* Port C read */
1195      DEVCB_NULL,               /* Port A write */
1196      DEVCB_HANDLER(lamps_a_w),   /* Port B write, LAMPSA */
1197      DEVCB_HANDLER(lamps_b_w)   /* Port C write, LAMPSB */
1198   }
1168   DEVCB_INPUT_PORT("IN0"),         /* Port A read */
1169   DEVCB_NULL,                     /* Port A write */
1170   DEVCB_INPUT_PORT("IN1"),         /* Port B read */
1171   DEVCB_NULL,                     /* Port B write */
1172   DEVCB_NULL,                     /* Port C read */
1173   DEVCB_NULL                     /* Port C write: 0x00 after reset, 0xff during game, and 0xfd when tap F2 for percentage and run count */
11991174};
12001175
1176static I8255A_INTERFACE( ppi8255_1_intf )
1177{
1178   DEVCB_INPUT_PORT("IN2"),         /* Port A read */
1179   DEVCB_NULL,                     /* Port A write */
1180   DEVCB_NULL,                     /* Port B read */
1181   DEVCB_NULL,                     /* Port B write */
1182   DEVCB_INPUT_PORT("IN4"),         /* Port C read */
1183   DEVCB_NULL                     /* Port C write */
1184};
12011185
1186static I8255A_INTERFACE( ppi8255_2_intf )
1187{
1188   DEVCB_INPUT_PORT("DSW1"),         /* Port A read */
1189   DEVCB_NULL,                     /* Port A write */
1190   DEVCB_INPUT_PORT("DSW2"),         /* Port B read */
1191   DEVCB_NULL,                     /* Port B write */
1192   DEVCB_INPUT_PORT("DSW3"),         /* Port C read */
1193   DEVCB_NULL                     /* Port C write */
1194};
1195
1196static I8255A_INTERFACE( ppi8255_3_intf )
1197{
1198   DEVCB_INPUT_PORT("DSW4"),         /* Port A read */
1199   DEVCB_NULL,                     /* Port A write */
1200   DEVCB_NULL,                     /* Port B read */
1201   DEVCB_HANDLER(lamps_a_w),         /* Port B write */
1202   DEVCB_NULL,                     /* Port C read */
1203   DEVCB_HANDLER(lamps_b_w)         /* Port C write */
1204};
1205
1206
12021207/*****************************
12031208*      Sound Interfaces      *
12041209*****************************/
r15176r15177
12371242   MCFG_SOUND_START(lucky74)
12381243
12391244   /* 2x 82c255 (4x 8255) */
1240   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
1241   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
1242   MCFG_PPI8255_ADD( "ppi8255_2", ppi8255_intf[2] )
1243   MCFG_PPI8255_ADD( "ppi8255_3", ppi8255_intf[3] )
1245   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
1246   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
1247   MCFG_I8255A_ADD( "ppi8255_2", ppi8255_2_intf )
1248   MCFG_I8255A_ADD( "ppi8255_3", ppi8255_3_intf )
12441249
12451250   /* video hardware */
12461251   MCFG_SCREEN_ADD("screen", RASTER)
src/mame/drivers/exidy440.c
r15176r15177
255255INPUT_CHANGED_MEMBER(exidy440_state::coin_inserted)
256256{
257257   /* if we got a coin, set the IRQ on the main CPU */
258   if (newval == 0)
258   if (newval)
259259      cputag_set_input_line(machine(), "maincpu", 0, ASSERT_LINE);
260260}
261261
src/mame/drivers/aristmk4.c
r15176r15177
235235#include "sound/ay8910.h"
236236#include "machine/6522via.h"
237237#include "machine/6821pia.h"
238#include "machine/8255ppi.h"
238#include "machine/i8255.h"
239239#include "sound/samples.h"
240240#include "machine/mc146818.h" // DALLAS1287 is functionally compatible.
241241#include "machine/nvram.h"
r15176r15177
897897   AM_RANGE(0x5201, 0x5201) AM_READ_PORT("5201")
898898   AM_RANGE(0x52c0, 0x52c0) AM_READ(bv_p0)
899899   AM_RANGE(0x52c1, 0x52c1) AM_READ(bv_p1)
900   AM_RANGE(0x527f, 0x5281) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
900   AM_RANGE(0x527f, 0x5281) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
901901   AM_RANGE(0x5300, 0x5300) AM_READ_PORT("5300")
902902   AM_RANGE(0x5380, 0x5383) AM_DEVREADWRITE("pia6821_0", pia6821_device, read, write)  // RTC data - PORT A , mechanical meters - PORTB ??
903903   AM_RANGE(0x5440, 0x5440) AM_WRITE(mlamps) // take win and gamble lamps
r15176r15177
940940   AM_RANGE(0x5201, 0x5201) AM_READ_PORT("5201")
941941   AM_RANGE(0x52c0, 0x52c0) AM_READ(bv_p0)
942942   AM_RANGE(0x52c1, 0x52c1) AM_READ(bv_p1)
943   AM_RANGE(0x527f, 0x5281) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
943   AM_RANGE(0x527f, 0x5281) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
944944   AM_RANGE(0x5300, 0x5300) AM_READ_PORT("5300")
945945   AM_RANGE(0x5380, 0x5383) AM_DEVREADWRITE("pia6821_0", pia6821_device, read, write)  // RTC data - PORT A , mechanical meters - PORTB ??
946946   AM_RANGE(0x5440, 0x5440) AM_WRITE(mlamps) // take win and gamble lamps
r15176r15177
15741574   return 0;
15751575}
15761576
1577static const ppi8255_interface ppi8255_intf1 =
1577static I8255A_INTERFACE( ppi8255_intf )
15781578{
1579   DEVCB_HANDLER(pa1_r),
1580   DEVCB_HANDLER(pb1_r),
1581   DEVCB_HANDLER(pc1_r),
1582   DEVCB_NULL,
1583   DEVCB_NULL,
1584   DEVCB_NULL,
1579   DEVCB_HANDLER(pa1_r),            /* Port A read */
1580   DEVCB_NULL,                     /* Port A write */
1581   DEVCB_HANDLER(pb1_r),            /* Port B read */
1582   DEVCB_NULL,                     /* Port B write */
1583   DEVCB_HANDLER(pc1_r),            /* Port C read */
1584   DEVCB_NULL                     /* Port C write */
15851585};
15861586
1587
15871588/* same as Casino Winner HW */
15881589static PALETTE_INIT( aristmk4 )
15891590{
r15176r15177
16901691   MCFG_VIDEO_START(aristmk4)
16911692   MCFG_SCREEN_UPDATE_STATIC(aristmk4)
16921693
1693   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf1 )
1694   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_intf )
16941695   MCFG_VIA6522_ADD("via6522_0", 0, via_interface)   /* 1 MHz.(only 1 or 2 MHz.are valid) */
16951696   MCFG_PIA6821_ADD("pia6821_0", aristmk4_pia1_intf)
16961697   MCFG_MC6845_ADD("crtc", C6545_1, MAIN_CLOCK/8, mc6845_intf) // TODO: type is unknown
src/mame/drivers/taitotz.c
r15176r15177
401401
402402static const powerpc_config ppc603e_config =
403403{
404   XTAL_66_6667MHz      /* Multiplier 1.5, Bus = 66MHz, Core = 100MHz */
404   XTAL_66_6667MHz,      /* Multiplier 1.5, Bus = 66MHz, Core = 100MHz */
405   NULL,
406   NULL
405407};
406408
407409static const tlcs900_interface taitotz_tlcs900_interface =
src/mame/drivers/kingdrby.c
r15176r15177
6666#include "emu.h"
6767#include "cpu/z80/z80.h"
6868#include "video/mc6845.h"
69#include "machine/8255ppi.h"
69#include "machine/i8255.h"
7070#include "sound/ay8910.h"
7171#include "sound/okim6295.h"
7272#include "sound/2203intf.h"
r15176r15177
402402   AM_RANGE(0x0000, 0x2fff) AM_ROM
403403   AM_RANGE(0x3000, 0x3fff) AM_ROM //sound rom, tested for the post check
404404   AM_RANGE(0x4000, 0x43ff) AM_RAM AM_SHARE("nvram") //backup ram
405   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* I/O Ports */
406   AM_RANGE(0x6000, 0x6003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* I/O Ports */
405   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* I/O Ports */
406   AM_RANGE(0x6000, 0x6003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* I/O Ports */
407407   AM_RANGE(0x7000, 0x73ff) AM_RAM AM_SHARE("share1")
408408   AM_RANGE(0x7400, 0x74ff) AM_RAM AM_SHARE("spriteram")
409409   AM_RANGE(0x7600, 0x7600) AM_DEVWRITE("crtc", mc6845_device, address_w)
r15176r15177
422422   AM_RANGE(0x0000, 0x2fff) AM_ROM
423423   AM_RANGE(0x3000, 0x3fff) AM_ROM //sound rom tested for the post check
424424   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("nvram") //backup ram
425   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* I/O Ports */
426//  AM_RANGE(0x6000, 0x6003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w) /* I/O Ports */
425   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* I/O Ports */
426//  AM_RANGE(0x6000, 0x6003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write) /* I/O Ports */
427427   AM_RANGE(0x7000, 0x73ff) AM_RAM AM_SHARE("share1")
428428   AM_RANGE(0x7400, 0x74ff) AM_RAM AM_SHARE("spriteram")
429429   AM_RANGE(0x7600, 0x7600) AM_DEVWRITE("crtc", mc6845_device, address_w)
r15176r15177
473473*
474474*************************************/
475475
476static const ppi8255_interface ppi8255_intf[2] =
476static I8255A_INTERFACE( ppi8255_0_intf )
477477{
478478   /* A & B as input, C (all) as output */
479   {
480      DEVCB_HANDLER(hopper_io_r),   /* Port A read */
481      DEVCB_INPUT_PORT("IN1"),   /* Port B read */
482      DEVCB_NULL,               /* Port C read */
483      DEVCB_NULL,               /* Port A write */
484      DEVCB_NULL,               /* Port B write */
485      DEVCB_HANDLER(hopper_io_w)   /* Port C write */
486   },
479   DEVCB_HANDLER(hopper_io_r),         /* Port A read */
480   DEVCB_NULL,                     /* Port A write */
481   DEVCB_INPUT_PORT("IN1"),         /* Port B read */
482   DEVCB_NULL,                     /* Port B write */
483   DEVCB_NULL,                     /* Port C read */
484   DEVCB_HANDLER(hopper_io_w)         /* Port C write */
485};
487486
487static I8255A_INTERFACE( ppi8255_1_intf )
488{
488489   /* B & C (lower) as input, A & C (upper) as output */
489   {
490      DEVCB_NULL,               /* Port A read */
491      DEVCB_HANDLER(key_matrix_r),/* Port B read */
492      DEVCB_HANDLER(input_mux_r),   /* Port C read */
493      DEVCB_HANDLER(sound_cmd_w),  /* Port A write */
494      DEVCB_NULL,               /* Port B write */
495      DEVCB_HANDLER(outport2_w)   /* Port C write */
496   }
490   DEVCB_NULL,                     /* Port A read */
491   DEVCB_HANDLER(sound_cmd_w),         /* Port A write */
492   DEVCB_HANDLER(key_matrix_r),      /* Port B read */
493   DEVCB_NULL,                     /* Port B write */
494   DEVCB_HANDLER(input_mux_r),         /* Port C read */
495   DEVCB_HANDLER(outport2_w)         /* Port C write */
497496};
498497
499498static WRITE8_DEVICE_HANDLER( outportb_w )
r15176r15177
502501}
503502
504503
505static const ppi8255_interface ppi8255_1986_intf[2] =
504static I8255A_INTERFACE( ppi8255_1986_0_intf )
506505{
507506   /* C as input, (all) as output */
508   {
509      DEVCB_NULL,                           /* Port A read */
510      DEVCB_INPUT_PORT("IN0"),           /* Port B read */
511      DEVCB_INPUT_PORT("IN1"),         /* Port C read */
512      DEVCB_HANDLER(sound_cmd_w),         /* Port A write */
513      DEVCB_HANDLER(outportb_w),         /* Port B write */
514      DEVCB_NULL                      /* Port C write */
515   },
507   DEVCB_NULL,                     /* Port A read */
508   DEVCB_HANDLER(sound_cmd_w),         /* Port A write */
509   DEVCB_INPUT_PORT("IN0"),         /* Port B read */
510   DEVCB_HANDLER(outportb_w),         /* Port B write */
511   DEVCB_INPUT_PORT("IN1"),         /* Port C read */
512   DEVCB_NULL                     /* Port C write */
513};
516514
515static I8255A_INTERFACE( ppi8255_1986_1_intf )
516{
517517   /* actually unused */
518   {
519      DEVCB_NULL,               /* Port A read */
520      DEVCB_NULL,               /* Port B read */
521      DEVCB_NULL,               /* Port C read */
522      DEVCB_NULL,             /* Port A write */
523      DEVCB_NULL,               /* Port B write */
524      DEVCB_NULL               /* Port C write */
525   }
518   DEVCB_NULL,                     /* Port A read */
519   DEVCB_NULL,                     /* Port A write */
520   DEVCB_NULL,                     /* Port B read */
521   DEVCB_NULL,                     /* Port B write */
522   DEVCB_NULL,                     /* Port C read */
523   DEVCB_NULL,                     /* Port C write */
526524};
527525
526
528527/*************************************
529528 *
530529 *  Input Port Definitions
r15176r15177
10301029
10311030   MCFG_NVRAM_ADD_0FILL("nvram")
10321031
1033   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
1034   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
1032   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
1033   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
10351034
10361035   MCFG_GFXDECODE(kingdrby)
10371036   MCFG_PALETTE_LENGTH(0x200)
r15176r15177
10621061
10631062   MCFG_PALETTE_INIT(kingdrbb)
10641063
1065   MCFG_PPI8255_RECONFIG( "ppi8255_0", ppi8255_1986_intf[0] )
1066   MCFG_PPI8255_RECONFIG( "ppi8255_1", ppi8255_1986_intf[1] )
1064   MCFG_DEVICE_REMOVE("ppi8255_0")
1065   MCFG_DEVICE_REMOVE("ppi8255_1")
1066   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_1986_0_intf )
1067   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1986_1_intf )
10671068MACHINE_CONFIG_END
10681069
10691070static MACHINE_CONFIG_DERIVED( cowrace, kingdrbb )
src/mame/drivers/superqix.c
r15176r15177
259259   }
260260   else if ((m_port1 & 0x20) == 0)
261261   {
262      return ioport("SYSTEM")->read() | (m_from_mcu_pending << 6) | (m_from_z80_pending << 7);
262      return sqix_system_status_r(space, 0);
263263   }
264264   else if ((m_port1 & 0x40) == 0)
265265   {
r15176r15177
270270   return 0;
271271}
272272
273READ8_MEMBER(superqix_state::sqixu_mcu_p0_r)
273READ8_MEMBER(superqix_state::sqix_system_status_r)
274274{
275275   return ioport("SYSTEM")->read() | (m_from_mcu_pending << 6) | (m_from_z80_pending << 7);
276276}
r15176r15177
320320READ8_MEMBER(superqix_state::nmi_ack_r)
321321{
322322   cputag_set_input_line(machine(), "maincpu", INPUT_LINE_NMI, CLEAR_LINE);
323   return 0;
323   return sqix_system_status_r(space, 0);
324324}
325325
326326static READ8_DEVICE_HANDLER( bootleg_in0_r )
r15176r15177
478478{
479479   superqix_state *state = device->machine().driver_data<superqix_state>();
480480//  logerror("%04x: ay_port_a_r and mcu_pending is %d\n",cpu_get_pc(&space->device()),state->m_from_mcu_pending);
481   return state->ioport("SYSTEM")->read() | ((state->m_from_mcu_pending^1) << 7);
481   return state->ioport("SYSTEM")->read() | 0x40 | ((state->m_from_mcu_pending^1) << 7);
482482}
483483
484484/**************************************************************************
r15176r15177
610610   AM_RANGE(0x8800, 0xf7ff) AM_RAM_WRITE(superqix_bitmapram2_w) AM_SHARE("bitmapram2")
611611ADDRESS_MAP_END
612612
613static ADDRESS_MAP_START( bootleg_port_map, AS_IO, 8, superqix_state )
614   AM_RANGE(0x0000, 0x00ff) AM_RAM_WRITE(paletteram_BBGGRRII_byte_w) AM_SHARE("paletteram")
615   AM_RANGE(0x0401, 0x0401) AM_DEVREAD_LEGACY("ay1", ay8910_r)
616   AM_RANGE(0x0402, 0x0403) AM_DEVWRITE_LEGACY("ay1", ay8910_data_address_w)
617   AM_RANGE(0x0405, 0x0405) AM_DEVREAD_LEGACY("ay2", ay8910_r)
618   AM_RANGE(0x0406, 0x0407) AM_DEVWRITE_LEGACY("ay2", ay8910_data_address_w)
619   AM_RANGE(0x0408, 0x0408) AM_WRITE(bootleg_flipscreen_w)
620   AM_RANGE(0x0410, 0x0410) AM_WRITE(superqix_0410_w)   /* ROM bank, NMI enable, tile bank */
621   AM_RANGE(0x0418, 0x0418) AM_READ_PORT("SYSTEM")
622   AM_RANGE(0x0800, 0x77ff) AM_RAM_WRITE(superqix_bitmapram_w) AM_SHARE("bitmapram")
623   AM_RANGE(0x8800, 0xf7ff) AM_RAM_WRITE(superqix_bitmapram2_w) AM_SHARE("bitmapram2")
624ADDRESS_MAP_END
625613
626
627614static ADDRESS_MAP_START( m68705_map, AS_PROGRAM, 8, superqix_state )
628615   ADDRESS_MAP_GLOBAL_MASK(0x7ff)
629616   AM_RANGE(0x0000, 0x0000) AM_READ(hotsmash_68705_portA_r)
r15176r15177
642629ADDRESS_MAP_END
643630
644631static ADDRESS_MAP_START( sqixu_mcu_io_map, AS_IO, 8, superqix_state )
645   AM_RANGE(MCS51_PORT_P0, MCS51_PORT_P0) AM_READ(sqixu_mcu_p0_r)
632   AM_RANGE(MCS51_PORT_P0, MCS51_PORT_P0) AM_READ(sqix_system_status_r)
646633   AM_RANGE(MCS51_PORT_P1, MCS51_PORT_P1) AM_READ_PORT("DSW1")
647634   AM_RANGE(MCS51_PORT_P2, MCS51_PORT_P2) AM_WRITE(sqixu_mcu_p2_w)
648635   AM_RANGE(MCS51_PORT_P3, MCS51_PORT_P3) AM_READWRITE(sqixu_mcu_p3_r, mcu_p3_w)
r15176r15177
707694   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
708695   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 )
709696   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 )
710   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
697   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL )
711698   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )
712699
713700   PORT_START("BUTTONS")
r15176r15177
791778   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START1 )
792779   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN2 )//$49c
793780   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 )//$42d
794   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
781   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL )   // ?
795782   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )   // mcu status (0 = pending mcu->z80)
796783
797784   PORT_START("DIAL1")
r15176r15177
857844   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START2 )
858845   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE1 )   // doesn't work in bootleg
859846   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
860   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
847   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL )   // Z80 status (pending mcu->z80)
861848   PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL )   // Z80 status (pending z80->mcu)
862849
863850   PORT_START("P1")
r15176r15177
1007994      device_set_input_line(device, INPUT_LINE_NMI, PULSE_LINE);
1008995}
1009996
1010static TIMER_DEVICE_CALLBACK( sqix_timer_irq )
997static INTERRUPT_GEN( sqix_timer_irq )
1011998{
1012   superqix_state *state = timer.machine().driver_data<superqix_state>();
1013   int scanline = param;
999   superqix_state *state = device->machine().driver_data<superqix_state>();
10141000
1015   /* highly suspicious... */
1016   if (((scanline % 64) == 0) && state->m_nmi_mask)
1017      device_set_input_line(state->m_maincpu, INPUT_LINE_NMI, ASSERT_LINE);
1001   if (state->m_nmi_mask)
1002      device_set_input_line(device, INPUT_LINE_NMI, ASSERT_LINE);
10181003}
10191004
1020static TIMER_DEVICE_CALLBACK( sqixbl_timer_irq )
1021{
1022   superqix_state *state = timer.machine().driver_data<superqix_state>();
1023   int scanline = param;
10241005
1025   /* highly suspicious... */
1026   if (((scanline % 64) == 0) && state->m_nmi_mask)
1027      device_set_input_line(state->m_maincpu, INPUT_LINE_NMI, PULSE_LINE);
1028}
10291006
1030
1031
10321007static MACHINE_CONFIG_START( pbillian, superqix_state )
10331008   MCFG_CPU_ADD("maincpu", Z80,12000000/2)       /* 6 MHz */
10341009   MCFG_CPU_PROGRAM_MAP(main_map)
r15176r15177
11001075   MCFG_CPU_ADD("maincpu", Z80, 12000000/2)   /* 6 MHz */
11011076   MCFG_CPU_PROGRAM_MAP(main_map)
11021077   MCFG_CPU_IO_MAP(sqix_port_map)
1103   MCFG_TIMER_ADD_SCANLINE("scantimer", sqix_timer_irq, "screen", 0, 1) /* ??? */
1078   MCFG_CPU_PERIODIC_INT(sqix_timer_irq, 4*60) /* ??? */
11041079
11051080   MCFG_CPU_ADD("mcu", I8751, 12000000/3)   /* ??? */
11061081   MCFG_CPU_IO_MAP(bootleg_mcu_io_map)
11071082
1108   MCFG_QUANTUM_TIME(attotime::from_hz(30000))
1083   MCFG_QUANTUM_PERFECT_CPU("maincpu")
11091084
11101085   MCFG_MACHINE_START(superqix)
11111086
r15176r15177
11471122   /* basic machine hardware */
11481123   MCFG_CPU_ADD("maincpu", Z80, 12000000/2)   /* 6 MHz */
11491124   MCFG_CPU_PROGRAM_MAP(main_map)
1150   MCFG_CPU_IO_MAP(bootleg_port_map)
1151   MCFG_TIMER_ADD_SCANLINE("scantimer", sqixbl_timer_irq, "screen", 0, 1) /* ??? */
1125   MCFG_CPU_IO_MAP(sqix_port_map)
1126   MCFG_CPU_PERIODIC_INT(sqix_timer_irq, 4*60) /* ??? */
11521127
11531128   MCFG_MACHINE_START(superqix)
11541129
src/mame/drivers/gei.c
r15176r15177
6363U.S.A. Trivia              New Sports                 General Facts
6464 or alt: Adult Sex 2        or alt: Adult Sex 3        or alt: Gay Times
6565
66NOTE: Trivia Question rom names are the internal names used. IE: read from the file with
67      a Hex Editor. Any "_alt" extention is used to seperate different roms with the same
68      label or internal name.
69
6670*/
6771
6872#include "emu.h"
6973#include "cpu/z80/z80.h"
70#include "machine/8255ppi.h"
74#include "machine/i8255.h"
7175#include "machine/ticket.h"
7276#include "machine/nvram.h"
7377#include "sound/dac.h"
r15176r15177
428432   AM_RANGE(0x0000, 0x1fff) AM_ROM
429433   AM_RANGE(0x2000, 0x3fff) AM_ROMBANK("bank1")
430434   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("nvram")
431   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
432   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
435   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
436   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
433437   AM_RANGE(0x600f, 0x600f) AM_WRITE(banksel_5_1_w)
434438   AM_RANGE(0x6017, 0x6017) AM_WRITE(banksel_4_1_w)
435439   AM_RANGE(0x601b, 0x601b) AM_WRITE(banksel_3_1_w)
r15176r15177
454458   AM_RANGE(0x4401, 0x4401) AM_WRITE(banksel_1_2_w)
455459   AM_RANGE(0x4402, 0x4402) AM_WRITE(banksel_2_1_w)
456460   AM_RANGE(0x4403, 0x4403) AM_WRITE(banksel_2_2_w)
457   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
458   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
461   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
462   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
459463   AM_RANGE(0x8000, 0x8002) AM_WRITE(gei_drawctrl_w)
460464   AM_RANGE(0xc000, 0xffff) AM_RAM_WRITE(gei_bitmap_w)
461465ADDRESS_MAP_END
r15176r15177
465469   AM_RANGE(0x0000, 0x1fff) AM_ROM
466470   AM_RANGE(0x2000, 0x3fff) AM_ROMBANK("bank1")
467471   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("nvram")
468   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
469   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
472   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
473   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
470474   AM_RANGE(0x606f, 0x606f) AM_WRITE(banksel_5_1_w)
471475   AM_RANGE(0x6077, 0x6077) AM_WRITE(banksel_4_1_w)
472476   AM_RANGE(0x607b, 0x607b) AM_WRITE(banksel_3_1_w)
r15176r15177
481485   AM_RANGE(0x0000, 0x1fff) AM_ROM
482486   AM_RANGE(0x2000, 0x3fff) AM_ROMBANK("bank1")
483487   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("nvram")
484   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
485   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
488   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
489   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
486490   AM_RANGE(0x60ef, 0x60ef) AM_WRITE(banksel_3_1_w)
487491   AM_RANGE(0x60f7, 0x60f7) AM_WRITE(banksel_2_2_w)
488492   AM_RANGE(0x60fb, 0x60fb) AM_WRITE(banksel_2_1_w)
r15176r15177
502506   AM_RANGE(0x4401, 0x4401) AM_WRITE(banksel_2_1_w)
503507   AM_RANGE(0x4402, 0x4402) AM_WRITE(banksel_3_1_w)
504508   AM_RANGE(0x4403, 0x4403) AM_WRITE(banksel_4_1_w)
505   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
506   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
509   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
510   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
507511   AM_RANGE(0x5800, 0x5fff) AM_ROM
508512   AM_RANGE(0x8000, 0x8002) AM_WRITE(gei_drawctrl_w)
509513   AM_RANGE(0x8000, 0xbfff) AM_ROM /* space for diagnostic ROM? */
r15176r15177
514518static ADDRESS_MAP_START( findout_map, AS_PROGRAM, 8, gei_state )
515519   AM_RANGE(0x0000, 0x3fff) AM_ROM
516520   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("nvram")
517   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r,ppi8255_w)
518   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r,ppi8255_w)
521   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
522   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
519523   /* banked ROMs are enabled by low 6 bits of the address */
520524   AM_RANGE(0x601f, 0x601f) AM_WRITE(banksel_main_w)
521525   AM_RANGE(0x602f, 0x602f) AM_WRITE(banksel_5_w)
r15176r15177
535539static ADDRESS_MAP_START( quizvid_map, AS_PROGRAM, 8, gei_state )
536540   AM_RANGE(0x0000, 0x3fff) AM_ROM
537541   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("nvram")
538   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r,ppi8255_w)
539   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r,ppi8255_w)
542   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
543   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
540544   /* banked ROMs are enabled by low 6 bits of the address */
541545   AM_RANGE(0x602f, 0x602f) AM_READ(banksel_5_r)
542546   AM_RANGE(0x6037, 0x6037) AM_READ(banksel_4_r)
r15176r15177
553557static ADDRESS_MAP_START( suprpokr_map, AS_PROGRAM, 8, gei_state )
554558   AM_RANGE(0x0000, 0x3fff) AM_ROM
555559   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("nvram")
556   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
557   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
560   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
561   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
558562   AM_RANGE(0x6200, 0x6200) AM_WRITE(signature2_w)
559563   AM_RANGE(0x6400, 0x6400) AM_READ(signature_r)
560564   AM_RANGE(0x8000, 0x8002) AM_WRITE(gei_drawctrl_w)
r15176r15177
565569static ADDRESS_MAP_START( geimulti_map, AS_PROGRAM, 8, gei_state )
566570   AM_RANGE(0x0000, 0x3fff) AM_ROM
567571   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("nvram")
568   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
569   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
572   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
573   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
570574   AM_RANGE(0x5800, 0x5fff) AM_ROM
571575   AM_RANGE(0x5a00, 0x5cff) AM_WRITE(geimulti_bank_w)
572576   AM_RANGE(0x6000, 0x7fff) AM_ROM
r15176r15177
578582static ADDRESS_MAP_START( sprtauth_map, AS_PROGRAM, 8, gei_state )
579583   AM_RANGE(0x0000, 0x3fff) AM_ROM
580584   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("nvram")
581   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
582   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
585   AM_RANGE(0x4800, 0x4803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
586   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
583587   AM_RANGE(0x5600, 0x5600) AM_READ(signature_r)
584588   AM_RANGE(0x5800, 0x5800) AM_WRITE(signature_w)
585589   AM_RANGE(0x5a00, 0x5cff) AM_WRITE(geimulti_bank_w)
r15176r15177
635639
636640static INPUT_PORTS_START( gselect )
637641   PORT_START("DSWA")
638   PORT_DIPNAME( 0x01, 0x01, "Poker: Discard Cards" )
642   PORT_DIPNAME( 0x01, 0x01, "Poker: Discard Cards" )   PORT_DIPLOCATION("SW1:1")
639643   PORT_DIPSETTING(    0x01, "5" )
640644   PORT_DIPSETTING(    0x00, "3" )
641   PORT_DIPNAME( 0x06, 0x06, "Poker: Pay on" )
645   PORT_DIPNAME( 0x06, 0x06, "Poker: Pay on" )      PORT_DIPLOCATION("SW1:2,3")
642646   PORT_DIPSETTING(    0x06, "any Pair" )
643647   PORT_DIPSETTING(    0x04, "Pair of Eights or better" )
644648   PORT_DIPSETTING(    0x02, "Pair of Jacks or better" )
645649   PORT_DIPSETTING(    0x00, "Pair of Aces only" )
646   PORT_DIPNAME( 0x08, 0x00, "Maximum Bet" )
650   PORT_DIPNAME( 0x08, 0x00, "Maximum Bet" )      PORT_DIPLOCATION("SW1:4")
647651   PORT_DIPSETTING(    0x08, "30" )
648652   PORT_DIPSETTING(    0x00, "10" )
649   PORT_DIPNAME( 0x10, 0x10, "Poker: Credits needed for 2 Jokers" )
653   PORT_DIPNAME( 0x10, 0x10, "Poker: Credits needed for 2 Jokers" )   PORT_DIPLOCATION("SW1:5")
650654   PORT_DIPSETTING(    0x10, "8" )
651655   PORT_DIPSETTING(    0x00, "4" )
652   PORT_DIPNAME( 0xe0, 0x80, "Payout Percentage" )
656   PORT_DIPNAME( 0xe0, 0x80, "Payout Percentage" )      PORT_DIPLOCATION("SW1:6,7,8")
653657   PORT_DIPSETTING(    0xe0, "35" )
654658   PORT_DIPSETTING(    0xc0, "40" )
655659   PORT_DIPSETTING(    0xa0, "45" )
r15176r15177
694698
695699static INPUT_PORTS_START( getrivia )
696700   PORT_START("DSWA")
697   PORT_DIPNAME( 0x03, 0x01, "Questions" )
701   PORT_DIPNAME( 0x03, 0x01, "Questions" )      PORT_DIPLOCATION("SW1:1,2")
698702   PORT_DIPSETTING(    0x00, "4" )
699703   PORT_DIPSETTING(    0x01, "5" )
700704/*  PORT_DIPSETTING(    0x02, "5" )*/
701705   PORT_DIPSETTING(    0x03, "6" )
702   PORT_DIPNAME( 0x04, 0x00, "Show Answer" )
706   PORT_DIPNAME( 0x04, 0x00, "Show Answer" )   PORT_DIPLOCATION("SW1:3")
703707   PORT_DIPSETTING(    0x04, DEF_STR( No ) )
704708   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
705   PORT_DIPNAME( 0x08, 0x00, "Max Coins" )
709   PORT_DIPNAME( 0x08, 0x00, "Max Coins" )      PORT_DIPLOCATION("SW1:4")
706710   PORT_DIPSETTING(    0x00, "10" )
707711   PORT_DIPSETTING(    0x08, "30" )
708   PORT_DIPNAME( 0x10, 0x00, "Timeout" )
712   PORT_DIPNAME( 0x10, 0x00, "Timeout" )      PORT_DIPLOCATION("SW1:5")
709713   PORT_DIPSETTING(    0x10, DEF_STR( No ) )
710714   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
711   PORT_DIPNAME( 0x20, 0x00, "Tickets" )
715   PORT_DIPNAME( 0x20, 0x00, "Tickets" )      PORT_DIPLOCATION("SW1:6")
712716   PORT_DIPSETTING(    0x20, DEF_STR( No ) )
713717   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
714   PORT_DIPNAME( 0x40, 0x40, "No Coins" )
718   PORT_DIPNAME( 0x40, 0x40, "No Coins" )      PORT_DIPLOCATION("SW1:7")
715719   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
716720   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
717   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
721   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:8")
718722   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
719723   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
720724
r15176r15177
753757   PORT_INCLUDE(gepoker)
754758
755759   PORT_MODIFY("DSWA")
756   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) )
760   PORT_DIPNAME( 0x07, 0x07, DEF_STR( Coinage ) )   PORT_DIPLOCATION("SW1:1,2,3")
757761   PORT_DIPSETTING(    0x00, DEF_STR( 8C_1C ) )
758762   PORT_DIPSETTING(    0x01, DEF_STR( 7C_1C ) )
759763   PORT_DIPSETTING(    0x02, DEF_STR( 6C_1C ) )
r15176r15177
762766   PORT_DIPSETTING(    0x05, DEF_STR( 3C_1C ) )
763767   PORT_DIPSETTING(    0x06, DEF_STR( 2C_1C ) )
764768   PORT_DIPSETTING(    0x07, DEF_STR( 1C_1C ) )
765   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) )
769   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unused ) )   PORT_DIPLOCATION("SW1:4")
766770   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
767771   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
768   PORT_DIPNAME( 0x10, 0x10, "Screen" )
772   PORT_DIPNAME( 0x10, 0x10, "Screen" )      PORT_DIPLOCATION("SW1:5")
769773   PORT_DIPSETTING(    0x10, "Horizontal" )
770774   PORT_DIPSETTING(    0x00, "Vertical" )
771   PORT_DIPNAME( 0x20, 0x20, "Percentage" )
775   PORT_DIPNAME( 0x20, 0x20, "Percentage" )   PORT_DIPLOCATION("SW1:6")
772776   PORT_DIPSETTING(    0x20, "Dynamic" )
773777   PORT_DIPSETTING(    0x00, "Actual" )
774   PORT_DIPNAME( 0x40, 0x40, "Hopper" )
778   PORT_DIPNAME( 0x40, 0x40, "Hopper" )      PORT_DIPLOCATION("SW1:7")
775779   PORT_DIPSETTING(    0x40, "Disabled" )
776780   PORT_DIPSETTING(    0x00, "Enabled" )
777   PORT_DIPNAME( 0x80, 0x80, "If RAM Error" )
781   PORT_DIPNAME( 0x80, 0x80, "If RAM Error" )   PORT_DIPLOCATION("SW1:8")
778782   PORT_DIPSETTING(    0x80, "Play" )
779783   PORT_DIPSETTING(    0x00, "Freeze" )
780784INPUT_PORTS_END
781785
782786static INPUT_PORTS_START( reelfun )
783787   PORT_START("DSWA")
784   PORT_DIPNAME( 0x07, 0x01, "Coinage Multiplier" )
788   PORT_DIPNAME( 0x07, 0x01, "Coinage Multiplier" )   PORT_DIPLOCATION("SW1:1,2,3")
785789   PORT_DIPSETTING(    0x07, "7" )
786790   PORT_DIPSETTING(    0x06, "6" )
787791   PORT_DIPSETTING(    0x05, "5" )
r15176r15177
790794   PORT_DIPSETTING(    0x02, "2" )
791795   PORT_DIPSETTING(    0x01, "1" )
792796   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
793   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Coinage ) )
794   PORT_DIPSETTING( 0x08, "Credits per Coin" )
795   PORT_DIPSETTING( 0x00, "Coins per Credit" )
796   PORT_DIPNAME( 0x10, 0x10, "Screen" )
797   PORT_DIPSETTING( 0x10, "Horizontal" )
798   PORT_DIPSETTING( 0x00, "Vertical" )
799   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) )
800   PORT_DIPSETTING( 0x20, DEF_STR( Upright ) )
801   PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) )
802   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
803   PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
804   PORT_DIPSETTING( 0x00, DEF_STR( On ) )
805   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
806   PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
807   PORT_DIPSETTING( 0x00, DEF_STR( On ) )
797   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Coinage ) )   PORT_DIPLOCATION("SW1:4")
798   PORT_DIPSETTING(    0x08, "Credits per Coin" )
799   PORT_DIPSETTING(    0x00, "Coins per Credit" )
800   PORT_DIPNAME( 0x10, 0x10, "Screen" )      PORT_DIPLOCATION("SW1:5")
801   PORT_DIPSETTING(    0x10, "Horizontal" )
802   PORT_DIPSETTING(    0x00, "Vertical" )
803   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) )   PORT_DIPLOCATION("SW1:6")
804   PORT_DIPSETTING(    0x20, DEF_STR( Upright ) )
805   PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )
806   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:7")
807   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
808   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
809   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:8")
810   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
811   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
808812
809813   PORT_INCLUDE(reelfun_standard)
810814INPUT_PORTS_END
811815
812816static INPUT_PORTS_START( findout )
813817   PORT_START("DSWA")      /* DSW A */
814   PORT_DIPNAME( 0x07, 0x01, DEF_STR( Coinage ) )
818   PORT_DIPNAME( 0x07, 0x01, DEF_STR( Coinage ) )   PORT_DIPLOCATION("SW1:1,2,3")
815819   PORT_DIPSETTING(    0x07, DEF_STR( 7C_1C ) )
816820   PORT_DIPSETTING(    0x06, DEF_STR( 6C_1C ) )
817821   PORT_DIPSETTING(    0x05, DEF_STR( 5C_1C ) )
r15176r15177
820824   PORT_DIPSETTING(    0x02, DEF_STR( 2C_1C ) )
821825   PORT_DIPSETTING(    0x01, DEF_STR( 1C_1C ) )
822826   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
823   PORT_DIPNAME( 0x08, 0x00, "Game Repetition" )
824   PORT_DIPSETTING( 0x08, DEF_STR( No ) )
825   PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
826   PORT_DIPNAME( 0x10, 0x10, "Orientation" )
827   PORT_DIPSETTING( 0x10, "Horizontal" )
828   PORT_DIPSETTING( 0x00, "Vertical" )
829   PORT_DIPNAME( 0x20, 0x20, "Buy Letter" )
830   PORT_DIPSETTING( 0x20, DEF_STR( No ) )
831   PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
832   PORT_DIPNAME( 0x40, 0x40, "Starting Letter" )
833   PORT_DIPSETTING( 0x40, DEF_STR( No ) )
834   PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
835   PORT_DIPNAME( 0x80, 0x80, "Bonus Letter" )
836   PORT_DIPSETTING( 0x80, DEF_STR( No ) )
837   PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
827   PORT_DIPNAME( 0x08, 0x00, "Game Repetition" )   PORT_DIPLOCATION("SW1:4")
828   PORT_DIPSETTING(    0x08, DEF_STR( No ) )
829   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
830   PORT_DIPNAME( 0x10, 0x10, "Orientation" )   PORT_DIPLOCATION("SW1:5")
831   PORT_DIPSETTING(    0x10, "Horizontal" )
832   PORT_DIPSETTING(    0x00, "Vertical" )
833   PORT_DIPNAME( 0x20, 0x20, "Buy Letter" )   PORT_DIPLOCATION("SW1:6")
834   PORT_DIPSETTING(    0x20, DEF_STR( No ) )
835   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
836   PORT_DIPNAME( 0x40, 0x40, "Starting Letter" )   PORT_DIPLOCATION("SW1:7")
837   PORT_DIPSETTING(    0x40, DEF_STR( No ) )
838   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
839   PORT_DIPNAME( 0x80, 0x80, "Bonus Letter" )   PORT_DIPLOCATION("SW1:8")
840   PORT_DIPSETTING(    0x80, DEF_STR( No ) )
841   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
838842
839843   PORT_INCLUDE(reelfun_standard)
840844INPUT_PORTS_END
841845
842846static INPUT_PORTS_START( gt103 )
843847   PORT_START("DSWA")      /* DSW A */
844   PORT_DIPNAME( 0x07, 0x01, "Coinage Multiplier" )
848   PORT_DIPNAME( 0x07, 0x01, "Coinage Multiplier" )   PORT_DIPLOCATION("SW1:1,2,3")
845849   PORT_DIPSETTING(    0x07, "7" )
846850   PORT_DIPSETTING(    0x06, "6" )
847851   PORT_DIPSETTING(    0x05, "5" )
r15176r15177
850854   PORT_DIPSETTING(    0x02, "2" )
851855   PORT_DIPSETTING(    0x01, "1" )
852856   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
853   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Coinage ) )
854   PORT_DIPSETTING( 0x08, "Credits per Coin" )
855   PORT_DIPSETTING( 0x00, "Coins per Credit" )
856   PORT_DIPNAME( 0x10, 0x10, "Screen" )
857   PORT_DIPSETTING( 0x10, "Horizontal" )
858   PORT_DIPSETTING( 0x00, "Vertical" )
859   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) )
860   PORT_DIPSETTING( 0x20, DEF_STR( Upright ) )
861   PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) )
862   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
863   PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
864   PORT_DIPSETTING( 0x00, DEF_STR( On ) )
865   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
866   PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
867   PORT_DIPSETTING( 0x00, DEF_STR( On ) )
857   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Coinage ) )   PORT_DIPLOCATION("SW1:4")
858   PORT_DIPSETTING(    0x08, "Credits per Coin" )
859   PORT_DIPSETTING(    0x00, "Coins per Credit" )
860   PORT_DIPNAME( 0x10, 0x10, "Screen" )      PORT_DIPLOCATION("SW1:5")
861   PORT_DIPSETTING(    0x10, "Horizontal" )
862   PORT_DIPSETTING(    0x00, "Vertical" )
863   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) )   PORT_DIPLOCATION("SW1:6")
864   PORT_DIPSETTING(    0x20, DEF_STR( Upright ) )
865   PORT_DIPSETTING(    0x00, DEF_STR( Cocktail ) )
866   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:7")
867   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
868   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
869   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:8")
870   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
871   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
868872
869873   PORT_INCLUDE(trivia_standard)
870874INPUT_PORTS_END
871875
872876static INPUT_PORTS_START( gt103a )
873877   PORT_START("DSWA")
874   PORT_DIPNAME( 0x03, 0x01, "Questions" )
878   PORT_DIPNAME( 0x03, 0x01, "Questions" )      PORT_DIPLOCATION("SW1:1,22")
875879   PORT_DIPSETTING(    0x00, "4" )
876880   PORT_DIPSETTING(    0x01, "5" )
877881//  PORT_DIPSETTING(    0x02, "5" )
878882   PORT_DIPSETTING(    0x03, "6" )
879   PORT_DIPNAME( 0x04, 0x00, "Show Answer" )
883   PORT_DIPNAME( 0x04, 0x00, "Show Answer" )   PORT_DIPLOCATION("SW1:3")
880884   PORT_DIPSETTING(    0x04, DEF_STR( No ) )
881885   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
882   PORT_DIPNAME( 0x08, 0x00, "Max Coins" )
886   PORT_DIPNAME( 0x08, 0x00, "Max Coins" )      PORT_DIPLOCATION("SW1:4")
883887   PORT_DIPSETTING(    0x08, "30" )
884888   PORT_DIPSETTING(    0x00, "10" )
885   PORT_DIPNAME( 0x10, 0x00, "Timeout" )
889   PORT_DIPNAME( 0x10, 0x00, "Timeout" )      PORT_DIPLOCATION("SW1:5")
886890   PORT_DIPSETTING(    0x10, DEF_STR( No ) )
887891   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
888   PORT_DIPNAME( 0x20, 0x00, "Tickets" )
892   PORT_DIPNAME( 0x20, 0x00, "Tickets" )      PORT_DIPLOCATION("SW1:6")
889893   PORT_DIPSETTING(    0x20, DEF_STR( No ) )
890894   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
891   PORT_DIPNAME( 0x40, 0x40, "No Coins" )
895   PORT_DIPNAME( 0x40, 0x40, "No Coins" )      PORT_DIPLOCATION("SW1:7")
892896   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
893897   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
894   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
898   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:8")
895899   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
896900   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
897901
r15176r15177
934938static INPUT_PORTS_START( gt507uk )
935939   PORT_START("DSWA")      /* DSW A */
936940   PORT_DIPNAME( 0x01, 0x00, "If Ram Error" )
937   PORT_DIPSETTING( 0x01, "Freeze" )
938   PORT_DIPSETTING( 0x00, "Play" )
941   PORT_DIPSETTING(    0x01, "Freeze" )
942   PORT_DIPSETTING(    0x00, "Play" )
939943   PORT_DIPNAME( 0x0a, 0x08, "Payout" )
940   PORT_DIPSETTING( 0x0a, "Bank" )
941   PORT_DIPSETTING( 0x08, "N/A" )
942   PORT_DIPSETTING( 0x02, "Credit" )
943   PORT_DIPSETTING( 0x00, "Direct" )
944   PORT_DIPSETTING(    0x0a, "Bank" )
945   PORT_DIPSETTING(    0x08, "N/A" )
946   PORT_DIPSETTING(    0x02, "Credit" )
947   PORT_DIPSETTING(    0x00, "Direct" )
944948   PORT_DIPNAME( 0x04, 0x04, "Payout Hardware" )
945   PORT_DIPSETTING( 0x04, "Hopper" )
946   PORT_DIPSETTING( 0x00, "Solenoid" )
949   PORT_DIPSETTING(    0x04, "Hopper" )
950   PORT_DIPSETTING(    0x00, "Solenoid" )
947951   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
948   PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
949   PORT_DIPSETTING( 0x00, DEF_STR( On ) )
952   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
953   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
950954   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
951   PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
952   PORT_DIPSETTING( 0x00, DEF_STR( On ) )
955   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
956   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
953957   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
954   PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
955   PORT_DIPSETTING( 0x00, DEF_STR( On ) )
958   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
959   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
956960   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
957   PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
958   PORT_DIPSETTING( 0x00, DEF_STR( On ) )
961   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
962   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
959963
960964   PORT_INCLUDE(trivia_standard)
961965
r15176r15177
969973   PORT_INCLUDE(gselect)
970974
971975   PORT_MODIFY("DSWA")
972   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) )
976   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) )   PORT_DIPLOCATION("SW1:1,2,3,4")
973977   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
974978   PORT_DIPSETTING(    0x07, DEF_STR( 7C_1C ) )
975979   PORT_DIPSETTING(    0x06, DEF_STR( 6C_1C ) )
r15176r15177
980984   PORT_DIPSETTING(    0x01, DEF_STR( 1C_1C ) )
981985   PORT_DIPSETTING(    0x08, DEF_STR( Free_Play ) )
982986   PORT_DIPSETTING(    0x09, DEF_STR( 1C_1C ) )
983   PORT_DIPSETTING(   0x0a, DEF_STR( 1C_2C ) )
987   PORT_DIPSETTING(    0x0a, DEF_STR( 1C_2C ) )
984988   PORT_DIPSETTING(    0x0b, DEF_STR( 1C_3C ) )
985989   PORT_DIPSETTING(    0x0c, DEF_STR( 1C_4C ) )
986990   PORT_DIPSETTING(    0x0d, DEF_STR( 1C_5C ) )
987991   PORT_DIPSETTING(    0x0e, DEF_STR( 1C_6C ) )
988992   PORT_DIPSETTING(    0x0f, DEF_STR( 1C_7C ) )
989   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
993   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:5")
990994   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
991995   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
992   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
996   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:6")
993997   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
994998   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
995   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
999   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:7")
9961000   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
9971001   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
998   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
1002   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:8")
9991003   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
10001004   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
10011005INPUT_PORTS_END
r15176r15177
10141018   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
10151019
10161020   PORT_MODIFY("DSWA")
1017   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) )
1021   PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) )   PORT_DIPLOCATION("SW1:1,2,3,4")
10181022   PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
10191023   PORT_DIPSETTING(    0x07, DEF_STR( 7C_1C ) )
10201024   PORT_DIPSETTING(    0x06, DEF_STR( 6C_1C ) )
r15176r15177
10251029   PORT_DIPSETTING(    0x01, DEF_STR( 1C_1C ) )
10261030   PORT_DIPSETTING(    0x08, DEF_STR( Free_Play ) )
10271031   PORT_DIPSETTING(    0x09, DEF_STR( 1C_1C ) )
1028   PORT_DIPSETTING(   0x0a, DEF_STR( 1C_2C ) )
1032   PORT_DIPSETTING(    0x0a, DEF_STR( 1C_2C ) )
10291033   PORT_DIPSETTING(    0x0b, DEF_STR( 1C_3C ) )
10301034   PORT_DIPSETTING(    0x0c, DEF_STR( 1C_4C ) )
10311035   PORT_DIPSETTING(    0x0d, DEF_STR( 1C_5C ) )
10321036   PORT_DIPSETTING(    0x0e, DEF_STR( 1C_6C ) )
10331037   PORT_DIPSETTING(    0x0f, DEF_STR( 1C_7C ) )
1034   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
1038   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:5")
10351039   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
10361040   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1037   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
1041   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:6")
10381042   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
10391043   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1040   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
1044   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:7")
10411045   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
10421046   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1043   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
1047   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )   PORT_DIPLOCATION("SW1:8")
10441048   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
10451049   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
10461050
10471051INPUT_PORTS_END
10481052
1049static const ppi8255_interface getrivia_ppi8255_intf[2] =
1053static I8255A_INTERFACE( getrivia_ppi8255_0_intf )
10501054{
1051   {
1052      DEVCB_INPUT_PORT("DSWA"),   /* Port A read */
1053      DEVCB_INPUT_PORT("IN0"),   /* Port B read */
1054      DEVCB_NULL,               /* Port C read */
1055      DEVCB_NULL,               /* Port A write */
1056      DEVCB_NULL,               /* Port B write */
1057      DEVCB_HANDLER(sound_w)      /* Port C write */
1058   },
1059   {
1060      DEVCB_INPUT_PORT("IN1"),   /* Port A read */
1061      DEVCB_NULL,               /* Port B read */
1062      DEVCB_NULL,               /* Port C read */
1063      DEVCB_NULL,               /* Port A write */
1064      DEVCB_HANDLER(lamps_w),      /* Port B write */
1065      DEVCB_HANDLER(lamps2_w)      /* Port C write */
1066   }
1055   DEVCB_INPUT_PORT("DSWA"),      /* Port A read */
1056   DEVCB_NULL,                  /* Port A write */
1057   DEVCB_INPUT_PORT("IN0"),      /* Port B read */
1058   DEVCB_NULL,                  /* Port B write */
1059   DEVCB_NULL,                  /* Port C read */
1060   DEVCB_HANDLER(sound_w)         /* Port C write */
10671061};
1068
1069static const ppi8255_interface gselect_ppi8255_intf[2] =
1062                                 
1063static I8255A_INTERFACE( getrivia_ppi8255_1_intf )
10701064{
1071   {
1072      DEVCB_INPUT_PORT("DSWA"),   /* Port A read */
1073      DEVCB_INPUT_PORT("IN0"),   /* Port B read */
1074      DEVCB_NULL,               /* Port C read */
1075      DEVCB_NULL,               /* Port A write */
1076      DEVCB_NULL,               /* Port B write */
1077      DEVCB_HANDLER(sound2_w)            /* Port C write */
1078   },
1079   {
1080      DEVCB_INPUT_PORT("IN1"),   /* Port A read */
1081      DEVCB_NULL,               /* Port B read */
1082      DEVCB_INPUT_PORT("IN2"),   /* Port C read */
1083      DEVCB_NULL,               /* Port A write */
1084      DEVCB_HANDLER(lamps_w),      /* Port B write */
1085      DEVCB_HANDLER(nmi_w)      /* Port C write */
1086   }
1065   DEVCB_INPUT_PORT("IN1"),      /* Port A read */
1066   DEVCB_NULL,                  /* Port A write */
1067   DEVCB_NULL,                  /* Port B read */
1068   DEVCB_HANDLER(lamps_w),         /* Port B write */
1069   DEVCB_NULL,                  /* Port C read */
1070   DEVCB_HANDLER(lamps2_w)         /* Port C write */
10871071};
1088
1089static const ppi8255_interface findout_ppi8255_intf[2] =
1072                                 
1073static I8255A_INTERFACE( gselect_ppi8255_0_intf )
10901074{
1091   {
1092      DEVCB_INPUT_PORT("DSWA"),      /* Port A read */
1093      DEVCB_INPUT_PORT("IN0"),      /* Port B read */
1094      DEVCB_NULL,                  /* Port C read */
1095      DEVCB_NULL,                  /* Port A write */
1096      DEVCB_NULL,                  /* Port B write */
1097      DEVCB_HANDLER(sound_w),         /* Port C write */
1098   },
1099   {
1100      DEVCB_INPUT_PORT("IN1"),      /* Port A read */
1101      DEVCB_NULL,                  /* Port B read */
1102      DEVCB_HANDLER(portC_r),         /* Port C read */
1103      DEVCB_NULL,                  /* Port A write */
1104      DEVCB_HANDLER(lamps_w),         /* Port B write */
1105      DEVCB_NULL                  /* Port C write */
1106   }
1075   DEVCB_INPUT_PORT("DSWA"),      /* Port A read */
1076   DEVCB_NULL,                  /* Port A write */
1077   DEVCB_INPUT_PORT("IN0"),      /* Port B read */
1078   DEVCB_NULL,                  /* Port B write */
1079   DEVCB_NULL,                  /* Port C read */
1080   DEVCB_HANDLER(sound2_w)         /* Port C write */
11071081};
1082                                 
1083static I8255A_INTERFACE( gselect_ppi8255_1_intf )
1084{
1085   DEVCB_INPUT_PORT("IN1"),      /* Port A read */
1086   DEVCB_NULL,                  /* Port A write */
1087   DEVCB_NULL,                  /* Port B read */
1088   DEVCB_HANDLER(lamps_w),         /* Port B write */
1089   DEVCB_INPUT_PORT("IN2"),      /* Port C read */
1090   DEVCB_HANDLER(nmi_w)         /* Port C write */
1091};
1092                                 
1093static I8255A_INTERFACE( findout_ppi8255_1_intf )
1094{
1095   DEVCB_INPUT_PORT("IN1"),      /* Port A read */
1096   DEVCB_NULL,                  /* Port A write */
1097   DEVCB_NULL,                  /* Port B read */
1098   DEVCB_HANDLER(lamps_w),         /* Port B write */
1099   DEVCB_HANDLER(portC_r),         /* Port C read */
1100   DEVCB_NULL                  /* Port C write */
1101};
1102                                                                   
11081103
11091104static INTERRUPT_GEN( vblank_irq )
11101105{
r15176r15177
11331128
11341129   MCFG_NVRAM_ADD_0FILL("nvram")
11351130
1136   MCFG_PPI8255_ADD( "ppi8255_0", getrivia_ppi8255_intf[0] )
1137   MCFG_PPI8255_ADD( "ppi8255_1", getrivia_ppi8255_intf[1] )
1131   MCFG_I8255A_ADD( "ppi8255_0", getrivia_ppi8255_0_intf )
1132   MCFG_I8255A_ADD( "ppi8255_1", getrivia_ppi8255_1_intf )
11381133   MCFG_TICKET_DISPENSER_ADD("ticket", attotime::from_msec(100), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH)
11391134
11401135   /* sound hardware */
r15176r15177
11491144   MCFG_CPU_MODIFY("maincpu")
11501145   MCFG_CPU_PROGRAM_MAP(findout_map)
11511146
1152   MCFG_PPI8255_RECONFIG( "ppi8255_0", findout_ppi8255_intf[0] )
1153   MCFG_PPI8255_RECONFIG( "ppi8255_1", findout_ppi8255_intf[1] )
1147   MCFG_DEVICE_REMOVE("ppi8255_1")
1148   MCFG_I8255A_ADD( "ppi8255_1", findout_ppi8255_1_intf )
11541149MACHINE_CONFIG_END
11551150
11561151static MACHINE_CONFIG_DERIVED( quizvid, findout )
r15176r15177
11701165   MCFG_CPU_MODIFY("maincpu")
11711166   MCFG_CPU_PROGRAM_MAP(gselect_map)
11721167
1173   MCFG_PPI8255_RECONFIG( "ppi8255_0", gselect_ppi8255_intf[0] )
1174   MCFG_PPI8255_RECONFIG( "ppi8255_1", gselect_ppi8255_intf[1] )
1168   MCFG_DEVICE_REMOVE("ppi8255_0")
1169   MCFG_DEVICE_REMOVE("ppi8255_1")
1170   MCFG_I8255A_ADD( "ppi8255_0", gselect_ppi8255_0_intf )
1171   MCFG_I8255A_ADD( "ppi8255_1", gselect_ppi8255_1_intf )
11751172MACHINE_CONFIG_END
11761173
11771174static MACHINE_CONFIG_DERIVED( jokpokera, getrivia )
r15176r15177
11831180   MCFG_CPU_MODIFY("maincpu")
11841181   MCFG_CPU_PROGRAM_MAP(gselect_map)
11851182
1186   MCFG_PPI8255_RECONFIG( "ppi8255_0", gselect_ppi8255_intf[0] )
1183   MCFG_DEVICE_REMOVE("ppi8255_0")
1184   MCFG_I8255A_ADD( "ppi8255_0", gselect_ppi8255_0_intf )
11871185MACHINE_CONFIG_END
11881186
11891187static MACHINE_CONFIG_DERIVED( amuse, getrivia )
r15176r15177
12451243   ROM_LOAD( "m075.3", 0x02000, 0x1000, CRC(45725bc9) SHA1(9e6dcbec955ef8190f2307ddb367b24b7f34338d) )
12461244ROM_END
12471245
1248ROM_START( jokpokera )
1246
1247ROM_START( jokpokera )  /* UMV-7C rom board  */
12491248   ROM_REGION( 0x24000, "maincpu", 0 )
1250   ROM_LOAD( "jpbiwr930-1.bin", 0x00000, 0x2000, CRC(d0f4fec5) SHA1(5fcc72522df66464759d5ba3d5209bc7a3a80002) )  /* rom board UMV-7C */
1251   ROM_LOAD( "jpbiwr930-2.bin", 0x02000, 0x2000, CRC(824d1aee) SHA1(6eebde351c3b5bbed3796846d8d651b41ed6f84a) )
1249   ROM_LOAD( "jpbiwr930-1.bin", 0x00000, 0x2000, CRC(d0f4fec5) SHA1(5fcc72522df66464759d5ba3d5209bc7a3a80002) )  /* 16.03BI 5-10-85 */
1250   ROM_LOAD( "jpbiwr930-2.bin", 0x02000, 0x2000, CRC(824d1aee) SHA1(6eebde351c3b5bbed3796846d8d651b41ed6f84a) )  /* Joker Poker ICB 9-30-86 */
12521251ROM_END
12531252
1254/*
1255Joker Poker BI Version 16.04BI 10-19-88
1256
1257Standard GEI mainboard
1258
1259UVM 7S REV A romboard
1260*/
1261
1262ROM_START( jokpokerb )
1253ROM_START( jokpokerb ) /* UVM 7S REV A rom board */
12631254   ROM_REGION( 0x24000, "maincpu", 0 )
1264   ROM_LOAD( "jp_bi_10-19-88.e1", 0x00000, 0x2000, CRC(d59a78e2) SHA1(d8463675f30a52e0f93c5ea5c2ee663095d3d5ea) )
1265   ROM_LOAD( "jp_bi_10-19-88.e2", 0x02000, 0x2000, CRC(1a34dc80) SHA1(27dff743e661ae7421fef0b046e3ae205b842603) )
1255   ROM_LOAD( "jp_bi_10-19-88.e1", 0x00000, 0x2000, CRC(d59a78e2) SHA1(d8463675f30a52e0f93c5ea5c2ee663095d3d5ea) )  /* 16.04BI 10-19-88 */
1256   ROM_LOAD( "jp_bi_10-19-88.e2", 0x02000, 0x2000, CRC(1a34dc80) SHA1(27dff743e661ae7421fef0b046e3ae205b842603) )  /* Joker Poker ICB 9-30-86 */
12661257ROM_END
12671258
1268/*
1269Joker Poker BI Version 16.03BI 5-10-85
1270
1271Standard GEI mainboard
1272
1273UVM7-C romboard
1274*/
1275
1276ROM_START( jokpokerc )
1259ROM_START( jokpokerc )  /* UMV-7C rom board */
12771260   ROM_REGION( 0x24000, "maincpu", 0 )
1278   ROM_LOAD( "jp_bi_5-10-85.1", 0x00000, 0x2000, CRC(d0f4fec5) SHA1(5fcc72522df66464759d5ba3d5209bc7a3a80002) )
1279   ROM_LOAD( "jp_bi_5-10-85.2", 0x02000, 0x2000, CRC(9f8bee22) SHA1(8d894d2a07bd18d731b7a54a16bb9b9230c79306) )
1261   ROM_LOAD( "jp_bi_5-10-85.1", 0x00000, 0x2000, CRC(d0f4fec5) SHA1(5fcc72522df66464759d5ba3d5209bc7a3a80002) )  /* 16.03BI 5-10-85 */
1262   ROM_LOAD( "jp_bi_5-10-85.2", 0x02000, 0x2000, CRC(9f8bee22) SHA1(8d894d2a07bd18d731b7a54a16bb9b9230c79306) )  /* Poker No Raise ICB 9-30-86 */
12801263ROM_END
12811264
12821265/***************************************************
r15176r15177
15631546   ROM_LOAD( "horserace_iam_3-19-84",     0x20000, 0x4000, CRC(7b9e75cb) SHA1(0db8da6f5f59f57886766bec96102d43796567ef) )
15641547ROM_END
15651548
1566/*
1567
1568UVM-8B romboard
1569
1570*/
1571
1572ROM_START( amuse1 ) /* v30.08 */
1549ROM_START( amuse1 ) /* V30.08  Rom board UMV8-B */
15731550   ROM_REGION( 0x20000, "maincpu", ROMREGION_ERASEFF )
15741551   ROM_LOAD( "m108_control_5-16-84",  0x00000, 0x4000, CRC(9dda922f) SHA1(ded42adda8376452e0ac4f771ebb42fd86811dc5) )
15751552   ROM_LOAD( "m108_hcon_5-16-84",     0x05800, 0x1000, CRC(ade5c42d) SHA1(d3e32ecaeb21a4e5eedd243c42d5914b03f572bd) )
r15176r15177
15801557ROM_END
15811558
15821559
1583ROM_START( suprpokr )
1560ROM_START( suprpokr )  /* Super Poker Version 10.19S BOBC. Rom board UMV-7C */
15841561   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
1585   ROM_LOAD( "10-19s-1.e1",  0x00000, 0x4000, CRC(50662b4d) SHA1(967161a755db43d2cfd5ce92e14c5284f1f1f8ad) )
1586   ROM_LOAD( "10-19s-1.e2",  0x08000, 0x4000, CRC(22b45aeb) SHA1(006c3072cc44c6fde9b4d15163dc70707bbd5a9c) )
1587   ROM_RELOAD( 0xc000, 0x4000 )
1562   ROM_LOAD( "supr_pokr_10.19s_#1", 0x00000, 0x4000, CRC(50662b4d) SHA1(967161a755db43d2cfd5ce92e14c5284f1f1f8ad) )
1563   ROM_LOAD( "supr_pokr_10.19s_#2", 0x08000, 0x4000, CRC(22b45aeb) SHA1(006c3072cc44c6fde9b4d15163dc70707bbd5a9c) )
1564   ROM_RELOAD(                      0x0c000, 0x4000 )
15881565ROM_END
15891566
1590ROM_START( suprpkr1 )
1567ROM_START( suprpokra )  /* Super Poker Version 10.15S BOBC. Rom board UMV-7C */
15911568   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
1592   ROM_LOAD( "e1.bin",  0x00000, 0x4000, CRC(5cc7c1e0) SHA1(1cdca32c4df7227dab77574abe344b291741139e) )
1593   ROM_LOAD( "e2.bin",  0x08000, 0x4000, CRC(e47d6e2a) SHA1(9cabc42275dad8be6cd5b167e381ddb5bf08276d) )
1594   ROM_RELOAD( 0xc000, 0x4000 )
1569   ROM_LOAD( "supr_pokr_10.15s_#1", 0x00000, 0x4000, CRC(5cc7c1e0) SHA1(1cdca32c4df7227dab77574abe344b291741139e) )
1570   ROM_LOAD( "supr_pokr_10.15s_#2", 0x08000, 0x4000, CRC(e47d6e2a) SHA1(9cabc42275dad8be6cd5b167e381ddb5bf08276d) )
1571   ROM_RELOAD(                      0x0c000, 0x4000 )
15951572ROM_END
15961573
1574ROM_START( suprpokrb )  /* Super Poker Version 10.10 BOBC. Rom board UMV-7C */
1575   ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
1576   ROM_LOAD( "supr_pokr_10.10_#1", 0x00000, 0x4000, CRC(8324471f) SHA1(c38b7a735ef06feea3e8d4ba6dd963e24d38c792) )
1577   ROM_LOAD( "supr_pokr_10.10_#2", 0x08000, 0x4000, CRC(a82ca9c5) SHA1(3b0f4ad7d53370dc1f00dec696e993359147a496) )
1578   ROM_RELOAD(                     0x0c000, 0x4000 )
1579ROM_END
1580
1581
15971582ROM_START( reelfun ) /* v7.03 */
15981583   ROM_REGION( 0x38000, "maincpu", 0 )
15991584   ROM_LOAD( "reelfun.cnt",          0x00000, 0x4000, CRC(ce42e0ea) SHA1(87f703b14aa819c54e54b42e639448521c01f76b) )
r15176r15177
16341619   ROM_REGION( 0x38000, "maincpu", 0 )
16351620   ROM_LOAD( "triv_3_2.bin",    0x00000, 0x4000, CRC(2d72a081) SHA1(8aa32acf335d027466799b097e0de66bcf13247f) )
16361621   ROM_LOAD( "rom_ad.bin",      0x08000, 0x2000, CRC(c81cc847) SHA1(057b7b75a2fe1abf88b23e7b2de230d9f96139f5) )
1637   ROM_LOAD( "aerospace",       0x10000, 0x8000, CRC(cb555d46) SHA1(559ae05160d7893ff96311a2177eba039a4cf186) )
1622   ROM_LOAD( "aerospace",       0x10000, 0x8000, CRC(cb555d46) SHA1(559ae05160d7893ff96311a2177eba039a4cf186) ) /* Also found in Series #11 set */
16381623   ROM_LOAD( "english_sport_4", 0x18000, 0x8000, CRC(6ae8a63d) SHA1(c6018141d8bbe0ed7619980bf7da89dd91d7fcc2) )
1639   ROM_LOAD( "general_facts",   0x20000, 0x8000, CRC(f921f108) SHA1(fd72282df5cee0e6ab55268b40785b3dc8e3d65b) )
1640   ROM_LOAD( "horrors",         0x28000, 0x8000, CRC(5f7b262a) SHA1(047480d6bf5c6d0603d538b84c996bd226f07f77) )
1624   ROM_LOAD( "general_facts",   0x20000, 0x8000, CRC(f921f108) SHA1(fd72282df5cee0e6ab55268b40785b3dc8e3d65b) ) /* Also found in Series #11 set */
1625   ROM_LOAD( "horrors",         0x28000, 0x8000, CRC(5f7b262a) SHA1(047480d6bf5c6d0603d538b84c996bd226f07f77) ) /* Possiblely Series #13 rom */
16411626   ROM_LOAD( "pop_music",       0x30000, 0x8000, CRC(884fec7c) SHA1(b389216c17f516df4e15eee46246719dd4acb587) )
16421627ROM_END
16431628
1644ROM_START( gt5 ) /* v5.06, From a TRIV3D romboard */
1645   ROM_REGION( 0x38000, "maincpu", 0 )
1646   ROM_LOAD( "program",         0x00000, 0x4000, CRC(e9d6226c) SHA1(42e62c5cafa3f051bf48c18c8c549ffcd4c766c5) )
1647   ROM_LOAD( "entertainment_2", 0x10000, 0x8000, CRC(c75c2331) SHA1(9c5947616a4cba2623c599def6cf3b2b1981b681) ) /* rom / question set #15 */
1648   ROM_LOAD( "facts_2",         0x18000, 0x8000, CRC(7836ef31) SHA1(6a84cfa39de392eed46a4b37752e00b6d094bbd6) )
1649   ROM_LOAD( "new_science_3",   0x20000, 0x8000, CRC(fcbc3bc3) SHA1(2dbdd39dce9dbf53c0954dec44a4f5109243dc60) )
1650   ROM_LOAD( "nfl_football",    0x28000, 0x8000, CRC(42eb2849) SHA1(c24e681a508ef8350f7e5d50aea2c31cf70ce5c9) )
1651   ROM_LOAD( "adult_sex_6",     0x30000, 0x8000, CRC(d66f35f7) SHA1(81b56756230b27b0903d0c5df30439726526afe2) )
1652ROM_END
1653
16541629ROM_START( gtsers8 )
16551630   ROM_REGION( 0x38000, "maincpu", 0 )
16561631   ROM_LOAD( "prog1_versionc",  0x00000, 0x4000, CRC(340246a4) SHA1(d655e1cf2b1e87a05e87ff6af4b794e6d54a2a52) )
r15176r15177
16731648   /* Missing "Artists-Athletes" */
16741649ROM_END
16751650
1676ROM_START( gtsers10 )
1651ROM_START( gtsers10 ) /* TRIV-3 PCB, stickered 256 TRIV #10 8/85 */
16771652   ROM_REGION( 0x38000, "maincpu", 0 )
16781653   ROM_LOAD( "prog1_versionc", 0x00000, 0x4000, CRC(340246a4) SHA1(d655e1cf2b1e87a05e87ff6af4b794e6d54a2a52) )
16791654   ROM_LOAD( "new_general",    0x10000, 0x8000, CRC(ba1f5b92) SHA1(7e94be0ef6904331d3a6b266e5887e9a15c5e7f9) )
16801655   ROM_LOAD( "new_tv_mash",    0x18000, 0x8000, CRC(f73240c6) SHA1(78020644074da719414133a86a91c1328e5d8929) )
16811656   ROM_LOAD( "new_entrtnmnt",  0x20000, 0x8000, CRC(0f54340c) SHA1(1ca4c23b542339791a2d8f4a9a857f755feca8a1) )
16821657   ROM_LOAD( "new_sports",     0x28000, 0x8000, CRC(19eff1a3) SHA1(8e024ae6cc572176c90d819a438ace7b2512dbf2) )
1658   ROM_LOAD( "new_science",    0x30000, 0x8000, CRC(2c46e355) SHA1(387ab389abaaea8e870b00039dd884237f7dd9c6) )
1659ROM_END
1660
1661ROM_START( gtsers10a ) /* TRIV-3 PCB, stickered 256 TRIV #10 8/85 */
1662   ROM_REGION( 0x38000, "maincpu", 0 )
1663   ROM_LOAD( "prog1_versionc", 0x00000, 0x4000, CRC(340246a4) SHA1(d655e1cf2b1e87a05e87ff6af4b794e6d54a2a52) )
1664   ROM_LOAD( "new_general",    0x10000, 0x8000, CRC(ba1f5b92) SHA1(7e94be0ef6904331d3a6b266e5887e9a15c5e7f9) )
1665   ROM_LOAD( "new_tv_mash",    0x18000, 0x8000, CRC(f73240c6) SHA1(78020644074da719414133a86a91c1328e5d8929) )
1666   ROM_LOAD( "new_entrtnmnt",  0x20000, 0x8000, CRC(0f54340c) SHA1(1ca4c23b542339791a2d8f4a9a857f755feca8a1) )
1667   ROM_LOAD( "new_sports",     0x28000, 0x8000, CRC(19eff1a3) SHA1(8e024ae6cc572176c90d819a438ace7b2512dbf2) )
16831668   ROM_LOAD( "adult_sex_3",    0x30000, 0x8000, CRC(2c46e355) SHA1(387ab389abaaea8e870b00039dd884237f7dd9c6) ) /* Listed as an alternate question set */
1684   /* Missing "New Science" */
16851669ROM_END
16861670
16871671ROM_START( gtsers11 )
r15176r15177
16911675   ROM_LOAD( "cars-women",     0x18000, 0x8000, CRC(4c5dd1df) SHA1(f3e2146eeab07ec71617c7614c6e8f6bc844e6e3) )
16921676   ROM_LOAD( "aerospace",      0x20000, 0x8000, CRC(cb555d46) SHA1(559ae05160d7893ff96311a2177eba039a4cf186) )
16931677   ROM_LOAD( "tv_music",       0x28000, 0x8000, CRC(5138e0fb) SHA1(102146d63752258c2fda95df49289c42b392c838) )
1678   ROM_LOAD( "general_facts",  0x30000, 0x8000, CRC(f921f108) SHA1(fd72282df5cee0e6ab55268b40785b3dc8e3d65b) )
1679ROM_END
1680
1681ROM_START( gtsers11a )
1682   ROM_REGION( 0x38000, "maincpu", 0 )
1683   ROM_LOAD( "prog1_versionc", 0x00000, 0x4000, CRC(340246a4) SHA1(d655e1cf2b1e87a05e87ff6af4b794e6d54a2a52) )
1684   ROM_LOAD( "rich-famous",    0x10000, 0x8000, CRC(39e07e4a) SHA1(6e5a0bcefaa1169f313e8818cf50919108b3e121) )
1685   ROM_LOAD( "cars-women",     0x18000, 0x8000, CRC(4c5dd1df) SHA1(f3e2146eeab07ec71617c7614c6e8f6bc844e6e3) )
1686   ROM_LOAD( "aerospace",      0x20000, 0x8000, CRC(cb555d46) SHA1(559ae05160d7893ff96311a2177eba039a4cf186) )
1687   ROM_LOAD( "tv_music",       0x28000, 0x8000, CRC(5138e0fb) SHA1(102146d63752258c2fda95df49289c42b392c838) )
16941688   ROM_LOAD( "gay_times",      0x30000, 0x8000, CRC(c4f9a8cf) SHA1(9247ecc5708aba263e0365fc43a1a7d0c2b7c391) ) /* Listed as an alternate question set */
1695   /* Missing "General Facts" */
16961689ROM_END
16971690
16981691ROM_START( gtsers12 )
16991692   ROM_REGION( 0x38000, "maincpu", 0 )
17001693   ROM_LOAD( "prog1_versionc",  0x00000, 0x4000, CRC(340246a4) SHA1(d655e1cf2b1e87a05e87ff6af4b794e6d54a2a52) )
1701   ROM_LOAD( "new_science_2",   0x10000, 0x8000, CRC(3bd80fb8) SHA1(9a196595bc5dc6ed5ee5853786839ed4847fa436) )
1702   ROM_LOAD( "adult_sex_4",     0x18000, 0x8000, CRC(36a75071) SHA1(f08d31f241e1dc9b94b940cd2872a692f6f8475b) )
1694   ROM_LOAD( "new_science_2",   0x10000, 0x8000, CRC(3bd80fb8) SHA1(9a196595bc5dc6ed5ee5853786839ed4847fa436) ) /* Labeled as NEW SCNE 2* */
1695   ROM_LOAD( "adult_sex_4",     0x18000, 0x8000, CRC(9c32730e) SHA1(9d060e49a4c1dd8d978619b1c357c9e8238e5c96) ) /* Labeled as ADULT SEX 4* */
17031696   ROM_LOAD( "cops_&_robbers",  0x20000, 0x8000, CRC(8b367c33) SHA1(013468157bf469c9cf138809fdc45b3ba60a423b) )
17041697   ROM_LOAD( "famous_quotes",   0x28000, 0x8000, CRC(0a27d8ae) SHA1(427e6ae25e47da7f7f7c3e92a37e330d711da90c) )
17051698   ROM_LOAD( "vices",           0x30000, 0x8000, CRC(e6069955) SHA1(68f7453f21a4ce1be912141bbe947fbd81d918a3) )
1699   /* Missing unknown alternate question? */
17061700ROM_END
17071701
1708ROM_START( gtsers14 )
1702ROM_START( gtsers14 ) /* TRIV-3 PCB, stickered 256 TRIV #14 11/85 */
17091703   ROM_REGION( 0x38000, "maincpu", 0 )
1710   ROM_LOAD( "prog1_versionc",  0x00000, 0x4000, CRC(340246a4) SHA1(d655e1cf2b1e87a05e87ff6af4b794e6d54a2a52) )
1704   ROM_LOAD( "program5",        0x00000, 0x4000, CRC(99ddaaa7) SHA1(c929d7b67367f303dadf07d508bc72af19e9c2ef) ) /* Unknown version, but earlier then the 5.06 for Series #15 */
17111705   ROM_LOAD( "famous_couples",  0x10000, 0x8000, CRC(e0618218) SHA1(ff64fcd6dec83a2271b63c3ae64dc932a3954ec5) )
17121706   ROM_LOAD( "war_and_peace",   0x18000, 0x8000, CRC(bc709383) SHA1(2fba4c80773abea7bbd826c39378b821cddaa255) )
17131707   ROM_LOAD( "tv_comedies",     0x20000, 0x8000, CRC(992ae38e) SHA1(312780d651a85a1c433f587ff2ede579456d3fd9) )
17141708   ROM_LOAD( "the_sixties",     0x28000, 0x8000, CRC(8cfa854e) SHA1(81428c12f99841db1c61b471ac8d00f0c411883b) )
1715   /* Missing "New Sports" */
1709   /* Missing unknown question rom (and alternate question?) */
17161710ROM_END
17171711
1718ROM_START( gt103a1 ) /* Need to verify these are actually Series 13 */
1712ROM_START( gtsers15 ) /* v5.06, From a TRIV3D romboard */
17191713   ROM_REGION( 0x38000, "maincpu", 0 )
1720   ROM_LOAD( "prog1_versiona",  0x00000, 0x4000, CRC(537d6566) SHA1(282a33e4a9fc54d34094393c00026bf31ccd6ab5) ) /* Currently unverified Series 13 */
1714   ROM_LOAD( "program_v5.06",   0x00000, 0x4000, CRC(e9d6226c) SHA1(42e62c5cafa3f051bf48c18c8c549ffcd4c766c5) )
1715   ROM_LOAD( "entertainment_2", 0x10000, 0x8000, CRC(c75c2331) SHA1(9c5947616a4cba2623c599def6cf3b2b1981b681) )
1716   ROM_LOAD( "facts_2",         0x18000, 0x8000, CRC(7836ef31) SHA1(6a84cfa39de392eed46a4b37752e00b6d094bbd6) )
1717   ROM_LOAD( "new_science_3",   0x20000, 0x8000, CRC(fcbc3bc3) SHA1(2dbdd39dce9dbf53c0954dec44a4f5109243dc60) )
1718   ROM_LOAD( "nfl_football",    0x28000, 0x8000, CRC(42eb2849) SHA1(c24e681a508ef8350f7e5d50aea2c31cf70ce5c9) )
1719   ROM_LOAD( "adult_sex_6",     0x30000, 0x8000, CRC(d66f35f7) SHA1(81b56756230b27b0903d0c5df30439726526afe2) )
1720   /* Missing unknown question rom (and alternate question?) */
1721ROM_END
1722
1723ROM_START( gt103a1 ) /* Need to verify which series these belong to */
1724   ROM_REGION( 0x38000, "maincpu", 0 )
1725   ROM_LOAD( "prog1_versiona",  0x00000, 0x4000, CRC(537d6566) SHA1(282a33e4a9fc54d34094393c00026bf31ccd6ab5) ) /* Currently unverified Series 13 and or alt ? roms */
17211726   ROM_LOAD( "history-geog",    0x10000, 0x8000, CRC(c9a70fc3) SHA1(4021e5d702844416e8c798ed0a57c9ecd20b1d4b) )
17221727   ROM_LOAD( "nfl_football",    0x18000, 0x8000, CRC(d676b7cd) SHA1(d652d2441adb500f7af526d110d0335ea453d75b) )
17231728   ROM_LOAD( "rock_music",      0x20000, 0x8000, CRC(7f11733a) SHA1(d4d0dee75518edf986cb1241ade45ccb4840f088) )
1724   ROM_LOAD( "rock-n-roll_alt", 0x28000, 0x8000, CRC(8eb83052) SHA1(93e3c1ae6c2048fb44ecafe1013b6a96da38fa84) )
1725   ROM_LOAD( "entertainment",   0x30000, 0x8000, CRC(07068c9f) SHA1(1aedc78d071281ec8b08488cd82655d41a77cf6b) )
1729   ROM_LOAD( "entertainment",   0x28000, 0x8000, CRC(07068c9f) SHA1(1aedc78d071281ec8b08488cd82655d41a77cf6b) )
1730   ROM_LOAD( "horrors",         0x30000, 0x8000, CRC(5f7b262a) SHA1(047480d6bf5c6d0603d538b84c996bd226f07f77) )
17261731ROM_END
17271732
17281733ROM_START( gt103aa )
17291734   ROM_REGION( 0x38000, "maincpu", 0 )
1730   ROM_LOAD( "t_3a-8_1.bin",      0x00000, 0x4000, CRC(02aef306) SHA1(1ffc10c79a55d41ea36bcaab13cb3f02cb3f9712) )
1735   ROM_LOAD( "t_3a-8_1.bin",      0x00000, 0x4000, CRC(02aef306) SHA1(1ffc10c79a55d41ea36bcaab13cb3f02cb3f9712) ) /* "Park" alternate version sets here */
17311736   ROM_LOAD( "entertainment_alt", 0x10000, 0x8000, CRC(9a6628b9) SHA1(c0cb7e974329d4d5b91f107296d21a674e35a51b) )
17321737   ROM_LOAD( "general_alt",       0x18000, 0x8000, CRC(df34f7f9) SHA1(329d123eea711d5135dc02dd7b89b220ce8ddd28) )
17331738   ROM_LOAD( "science_alt",       0x20000, 0x8000, CRC(9eaebd18) SHA1(3a4d787cb006dbb23ce346577cb1bb5e543ba52c) )
r15176r15177
17351740   ROM_LOAD( "sports_alt2",       0x30000, 0x8000, CRC(40207845) SHA1(2dddb9685dcefabfde07057a639aa9d08da2329e) )
17361741ROM_END
17371742
1738ROM_START( gt103asx )
1743ROM_START( gt103ab )
17391744   ROM_REGION( 0x38000, "maincpu", 0 )
1740   ROM_LOAD( "t_3a-8_1.bin",    0x00000, 0x4000, CRC(02aef306) SHA1(1ffc10c79a55d41ea36bcaab13cb3f02cb3f9712) ) /* Not sure there was ever a specific Adult set  */
1741   ROM_LOAD( "adult_sex_2",     0x10000, 0x8000, CRC(0d683f21) SHA1(f47ce3c31c4c5ed02247fa280303e6ae760315df) ) /* These are likely just the collection of adult */
1742   ROM_LOAD( "adult_sex_2_alt", 0x18000, 0x8000, CRC(8c0eacc8) SHA1(ddaa25548d161394b41c65a2db57a9fcf793062b) ) /* from all the series combined here. */
1743   ROM_LOAD( "adult_sex_3_alt", 0x20000, 0x8000, CRC(63cbd1d6) SHA1(8dcd5546dc8688d6b8404d5cf63d8a59acc9bf4c) )
1744   ROM_LOAD( "adult_sex_4",     0x28000, 0x8000, CRC(36a75071) SHA1(f08d31f241e1dc9b94b940cd2872a692f6f8475b) )
1745   ROM_LOAD( "adult_sex_5",     0x30000, 0x8000, CRC(fdbc3729) SHA1(7cb7cec4439ddc39de2f7f62c25623cfb869f493) )
1745   ROM_LOAD( "t_3a-8_1.rom",      0x00000, 0x4000, CRC(02aef306) SHA1(1ffc10c79a55d41ea36bcaab13cb3f02cb3f9712) ) /* "Park" alternate version sets here */
1746   ROM_LOAD( "new_science_2_alt", 0x10000, 0x8000, CRC(3bd80fb8) SHA1(9a196595bc5dc6ed5ee5853786839ed4847fa436) )
1747   ROM_LOAD( "adult_sex_2_alt",   0x18000, 0x8000, CRC(8c0eacc8) SHA1(ddaa25548d161394b41c65a2db57a9fcf793062b) )
1748   ROM_LOAD( "adult_sex_3_alt",   0x20000, 0x8000, CRC(63cbd1d6) SHA1(8dcd5546dc8688d6b8404d5cf63d8a59acc9bf4c) )
1749   ROM_LOAD( "adult_sex_4_alt",   0x28000, 0x8000, CRC(36a75071) SHA1(f08d31f241e1dc9b94b940cd2872a692f6f8475b) )
1750   ROM_LOAD( "rock-n-roll_alt",   0x30000, 0x8000, CRC(8eb83052) SHA1(93e3c1ae6c2048fb44ecafe1013b6a96da38fa84) )
17461751ROM_END
17471752
1753ROM_START( gt103asx ) /* Not sure there was ever an all Adult Trivia version. These are just the collection from all the series combined here */
1754   ROM_REGION( 0x38000, "maincpu", 0 )
1755   ROM_LOAD( "t_3a-8_1.bin", 0x00000, 0x4000, CRC(02aef306) SHA1(1ffc10c79a55d41ea36bcaab13cb3f02cb3f9712) )
1756   ROM_LOAD( "adult_sex_2",  0x10000, 0x8000, CRC(0d683f21) SHA1(f47ce3c31c4c5ed02247fa280303e6ae760315df) ) /* From series 9 */
1757   ROM_LOAD( "adult_sex_3",  0x18000, 0x8000, CRC(2c46e355) SHA1(387ab389abaaea8e870b00039dd884237f7dd9c6) ) /* From series 10 as alt ? rom */
1758   ROM_LOAD( "adult_sex_4",  0x20000, 0x8000, CRC(36a75071) SHA1(f08d31f241e1dc9b94b940cd2872a692f6f8475b) ) /* From series 12 */
1759   ROM_LOAD( "adult_sex_5",  0x28000, 0x8000, CRC(fdbc3729) SHA1(7cb7cec4439ddc39de2f7f62c25623cfb869f493) ) /* Likely from series 13 or 14 as alt ? rom */
1760   ROM_LOAD( "adult_sex_6",  0x30000, 0x8000, CRC(d66f35f7) SHA1(81b56756230b27b0903d0c5df30439726526afe2) ) /* From series 15 */
1761ROM_END
1762
17481763ROM_START( quiz )
17491764   ROM_REGION( 0x38000, "maincpu", 0 )
17501765   ROM_LOAD( "1.bin",        0x00000, 0x4000, CRC(4e3204da) SHA1(291f1c9b8c4c07881621c3ecbba7af80f86b9520) )
r15176r15177
18841899}
18851900
18861901GAME( 1982, jokpoker, 0,        gselect,  gselect,  setbank, ROT0, "Greyhound Electronics", "Joker Poker (Version 16.03B)",            GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1887GAME( 1983, jokpokera,jokpoker, jokpokera,gselect,  setbank, ROT0, "Greyhound Electronics", "Joker Poker (Version 16.03BI)",        GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1902GAME( 1983, jokpokera,jokpoker, jokpokera,gselect,  setbank, ROT0, "Greyhound Electronics", "Joker Poker (Version 16.03BI 5-10-85, Joker Poker ICB 9-30-86)",     GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
18881903GAME( 1983, jokpokerb,jokpoker, jokpokera,gselect,  setbank, ROT0, "Greyhound Electronics", "Joker Poker (Version 16.04BI 10-19-88, Joker Poker ICB 9-30-86)",    GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
18891904GAME( 1983, jokpokerc,jokpoker, jokpokera,gselect,  setbank, ROT0, "Greyhound Electronics", "Joker Poker (Version 16.03BI 5-10-85, Poker No Raise ICB 9-30-86)",  GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
18901905GAME( 1982, superbwl, 0,        gselect,  gselect,  setbank, ROT0, "Greyhound Electronics", "Super Bowl (Version 16.03B)",             GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
r15176r15177
19101925GAME( 1984, gtsers8,  0,        findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Questions Series 8)",             GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19111926GAME( 1984, gtsers9,  gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Questions Series 9)",             GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19121927GAME( 1984, gtsers10, gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Questions Series 10)",            GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1928GAME( 1984, gtsers10a,gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Questions Series 10 Alt Question Rom)",GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19131929GAME( 1984, gtsers11, gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Questions Series 11)",            GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1930GAME( 1984, gtsers11a,gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Questions Series 11 Alt Question Rom)",GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19141931GAME( 1984, gtsers12, gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Questions Series 12)",            GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1915GAME( 1984, gtsers14, gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Questions Series 14)",            GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1916GAME( 1984, gt103a1,  gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Version 1.03a) (alt 1)",          GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1917GAME( 1984, gt103aa,  gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Version 1.03a Alt questions)",    GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1932GAME( 1986, gtsers14, gtsers8,  findout,  gt103,    0,       ROT0, "Greyhound Electronics", "Trivia (Questions Series 14)",            GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1933GAME( 1986, gtsers15, gtsers8,  findout,  gt103,    0,       ROT0, "Greyhound Electronics", "Trivia (Questions Series 15)",            GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1934GAME( 1984, gt103a1,  gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Unsorted question roms)",         GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1935GAME( 1984, gt103aa,  gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Version 1.03a Alt questions 1)",  GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1936GAME( 1984, gt103ab,  gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Version 1.03a Alt questions 2)",  GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19181937GAME( 1984, gt103asx, gtsers8,  findout,  gt103a,   0,       ROT0, "Greyhound Electronics", "Trivia (Version 1.03a Sex questions)",    GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19191938
19201939GAME( 1985, sextriv1, 0,        getrivia, sextriv1, 0,       ROT0, "Kinky Kit and Game Co.", "Sexual Trivia (Version 1.02SB, set 1)",  GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19211940GAME( 1985, sextriv2, sextriv1, getrivia, sextriv1, 0,       ROT0, "Kinky Kit and Game Co.", "Sexual Trivia (Version 1.02SB, set 2)",  GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19221941
19231942GAME( 1986, gt507uk,  0,        findout,  gt507uk,  0,       ROT0, "Grayhound Electronics", "Trivia (UK Version 5.07)",                GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1924GAME( 1986, gt5,      0,        findout,  gt103,    0,       ROT0, "Grayhound Electronics", "Trivia (Version 5.06)",                   GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19251943
19261944GAME( 1986, quiz,     0,        findout,  quiz,     0,       ROT0, "bootleg",               "Quiz (Revision 2)",                       GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19271945
r15176r15177
19321950GAME( 1987, findout,  0,        findout,  findout,  0,       ROT0, "Elettronolo",           "Find Out (Version 4.04)",                 GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19331951
19341952GAME( 1986, suprpokr, 0,        suprpokr, suprpokr, 0,       ROT0, "Grayhound Electronics", "Super Poker (Version 10.19S)",            GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1935GAME( 1986, suprpkr1, suprpokr, suprpokr, suprpokr, 0,       ROT0, "Grayhound Electronics", "Super Poker (Version 10.15S)",            GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1953GAME( 1986, suprpokra,suprpokr, suprpokr, suprpokr, 0,       ROT0, "Grayhound Electronics", "Super Poker (Version 10.15S)",            GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
1954GAME( 1986, suprpokrb,suprpokr, suprpokr, suprpokr, 0,       ROT0, "Grayhound Electronics", "Super Poker (Version 10.10)",             GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19361955
19371956GAME( 1991, quiz211,  0,        findout,  quiz,     0,       ROT0, "Elettronolo",           "Quiz (Revision 2.11)",                    GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
19381957
src/mame/drivers/astinvad.c
r15176r15177
1818
1919#include "emu.h"
2020#include "cpu/z80/z80.h"
21#include "machine/8255ppi.h"
21#include "machine/i8255.h"
2222#include "sound/samples.h"
2323
2424
r15176r15177
4545{
4646public:
4747   astinvad_state(const machine_config &mconfig, device_type type, const char *tag)
48      : driver_device(mconfig, type, tag) ,
48      : driver_device(mconfig, type, tag),
49      m_maincpu(*this, "maincpu"),
50      m_ppi8255_0(*this, "ppi8255_0"),
51      m_ppi8255_1(*this, "ppi8255_1"),
4952      m_videoram(*this, "videoram"){ }
5053
51   UINT8 *    m_colorram;
54   required_device<cpu_device> m_maincpu;
55   optional_device<i8255_device>  m_ppi8255_0;
56   optional_device<i8255_device>  m_ppi8255_1;
5257   required_shared_ptr<UINT8> m_videoram;
5358
59   UINT8 *    m_colorram;
5460   emu_timer  *m_int_timer;
5561   UINT8      m_sound_state[2];
5662   UINT8      m_screen_flip;
r15176r15177
5864   UINT8      m_flip_yoffs;
5965   UINT8      m_color_latch;
6066
61   device_t *m_maincpu;
62   device_t *m_ppi8255_0;
63   device_t *m_ppi8255_1;
6467   samples_device *m_samples;
6568   DECLARE_WRITE8_MEMBER(color_latch_w);
6669   DECLARE_WRITE8_MEMBER(spaceint_videoram_w);
r15176r15177
8184static WRITE8_DEVICE_HANDLER( astinvad_sound1_w );
8285static WRITE8_DEVICE_HANDLER( astinvad_sound2_w );
8386
84static const ppi8255_interface ppi8255_intf[2] =
87
88static I8255A_INTERFACE( ppi8255_0_intf )
8589{
86   {
87      DEVCB_INPUT_PORT("IN0"),
88      DEVCB_INPUT_PORT("IN1"),
89      DEVCB_INPUT_PORT("IN2"),
90      DEVCB_NULL,
91      DEVCB_NULL,
92      DEVCB_NULL
93   },
94   {
95      DEVCB_NULL,
96      DEVCB_INPUT_PORT("CABINET"),
97      DEVCB_NULL,
98      DEVCB_HANDLER(astinvad_sound1_w),
99      DEVCB_HANDLER(astinvad_sound2_w),
100      DEVCB_NULL
101   }
90   DEVCB_INPUT_PORT("IN0"),         /* Port A read */
91   DEVCB_NULL,                     /* Port A write */
92   DEVCB_INPUT_PORT("IN1"),         /* Port B read */
93   DEVCB_NULL,                     /* Port B write */
94   DEVCB_INPUT_PORT("IN2"),         /* Port C read */
95   DEVCB_NULL                     /* Port C write */
10296};
10397
98static I8255A_INTERFACE( ppi8255_1_intf )
99{
100   DEVCB_NULL,                     /* Port A read */
101   DEVCB_HANDLER(astinvad_sound1_w),   /* Port A write */
102   DEVCB_INPUT_PORT("CABINET"),      /* Port B read */
103   DEVCB_HANDLER(astinvad_sound2_w),   /* Port B write */
104   DEVCB_NULL,                     /* Port C read */
105   DEVCB_NULL                     /* Port C write */
106};
104107
105108
106109/*************************************
r15176r15177
232235{
233236   astinvad_state *state = machine.driver_data<astinvad_state>();
234237
235   state->m_maincpu = machine.device("maincpu");
236   state->m_ppi8255_0 = machine.device("ppi8255_0");
237   state->m_ppi8255_1 = machine.device("ppi8255_1");
238238   state->m_samples = machine.device<samples_device>("samples");
239239
240240   state->m_int_timer = machine.scheduler().timer_alloc(FUNC(kamizake_int_gen));
r15176r15177
260260{
261261   astinvad_state *state = machine.driver_data<astinvad_state>();
262262
263   state->m_maincpu = machine.device("maincpu");
264263   state->m_samples = machine.device<samples_device>("samples");
265264
266265   state->save_item(NAME(state->m_screen_flip));
r15176r15177
298297
299298   /* the address lines are used for /CS; yes, they can overlap! */
300299   if (!(offset & 4))
301      result &= ppi8255_r(m_ppi8255_0, offset);
300      result &= m_ppi8255_0->read(space, offset);
302301   if (!(offset & 8))
303      result &= ppi8255_r(m_ppi8255_1, offset);
302      result &= m_ppi8255_1->read(space, offset);
304303   return result;
305304}
306305
r15176r15177
310309
311310   /* the address lines are used for /CS; yes, they can overlap! */
312311   if (!(offset & 4))
313      ppi8255_w(m_ppi8255_0, offset, data);
312      m_ppi8255_0->write(space, offset, data);
314313   if (!(offset & 8))
315      ppi8255_w(m_ppi8255_1, offset, data);
314      m_ppi8255_1->write(space, offset, data);
316315}
317316
318317
r15176r15177
594593   MCFG_MACHINE_START(kamikaze)
595594   MCFG_MACHINE_RESET(kamikaze)
596595
597   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
598   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
596   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
597   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
599598
600599   /* video hardware */
601600   MCFG_SCREEN_ADD("screen", RASTER)
src/mame/drivers/offtwall.c
r15176r15177
292292   AM_RANGE(0x3f4000, 0x3f5eff) AM_RAM_WRITE_LEGACY(atarigen_playfield_latched_msb_w) AM_SHARE("playfield")
293293   AM_RANGE(0x3f5f00, 0x3f5f7f) AM_RAM AM_SHARE("atarivc_eof")
294294   AM_RANGE(0x3f5f80, 0x3f5fff) AM_READWRITE_LEGACY(atarimo_0_slipram_r, atarimo_0_slipram_w)
295   AM_RANGE(0x3f6000, 0x3f7fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_upper")
295   AM_RANGE(0x3f6000, 0x3f7fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_up")
296296   AM_RANGE(0x3f8000, 0x3fcfff) AM_RAM
297297   AM_RANGE(0x3fd000, 0x3fd7ff) AM_READWRITE_LEGACY(atarimo_0_spriteram_r, atarimo_0_spriteram_w)
298298   AM_RANGE(0x3fd800, 0x3fffff) AM_RAM
src/mame/drivers/statriv2.c
r15176r15177
7171#include "emu.h"
7272#include "cpu/i8085/i8085.h"
7373#include "sound/ay8910.h"
74#include "machine/8255ppi.h"
74#include "machine/i8255.h"
7575#include "video/tms9927.h"
7676#include "machine/nvram.h"
7777
r15176r15177
270270 *
271271 *************************************/
272272
273static const ppi8255_interface ppi8255_intf =
273static I8255A_INTERFACE( ppi8255_intf )
274274{
275/* PPI 8255 group A & B set to Mode 0.
276   Port A, B and lower 4 bits of C set as Input.
277   High 4 bits of C set as Output
278*/
279   DEVCB_INPUT_PORT("IN0"),      /* Port A read */
280   DEVCB_INPUT_PORT("IN1"),      /* Port B read */
281   DEVCB_INPUT_PORT("IN2"),      /* Port C read (Lower Nibble as Input) */
282   DEVCB_NULL,                /* Port A write */
283   DEVCB_NULL,                /* Port B write */
284   DEVCB_HANDLER(ppi_portc_hi_w)   /* Port C write (High nibble as Output) */
275   /* PPI 8255 group A & B set to Mode 0.
276    Port A, B and lower 4 bits of C set as Input.
277    High 4 bits of C set as Output */
278   DEVCB_INPUT_PORT("IN0"),         /* Port A read */
279   DEVCB_NULL,                     /* Port A write */
280   DEVCB_INPUT_PORT("IN1"),         /* Port B read */
281   DEVCB_NULL,                     /* Port B write */
282   DEVCB_INPUT_PORT("IN2"),         /* Port C read */
283   DEVCB_HANDLER(ppi_portc_hi_w)      /* Port C write */
285284};
286285
287286
288
289287/*************************************
290288 *
291289 *  Address maps
r15176r15177
300298ADDRESS_MAP_END
301299
302300static ADDRESS_MAP_START( statriv2_io_map, AS_IO, 8, statriv2_state )
303   AM_RANGE(0x20, 0x23) AM_DEVREADWRITE_LEGACY("ppi", ppi8255_r, ppi8255_w)
301   AM_RANGE(0x20, 0x23) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
304302   AM_RANGE(0x28, 0x2b) AM_READ(question_data_r) AM_WRITEONLY AM_SHARE("question_offset")
305303   AM_RANGE(0xb0, 0xb1) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_data_w)
306304   AM_RANGE(0xb1, 0xb1) AM_DEVREAD_LEGACY("aysnd", ay8910_r)
r15176r15177
310308#ifdef UNUSED_CODE
311309static ADDRESS_MAP_START( statusbj_io, AS_IO, 8, statriv2_state )
312310   ADDRESS_MAP_GLOBAL_MASK(0xff)
313   AM_RANGE(0x20, 0x23) AM_DEVREADWRITE_LEGACY("ppi", ppi8255_r, ppi8255_w)
311   AM_RANGE(0x20, 0x23) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
314312   AM_RANGE(0xb0, 0xb1) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_data_w)
315313   AM_RANGE(0xb1, 0xb1) AM_DEVREAD_LEGACY("aysnd", ay8910_r)
316314   AM_RANGE(0xc0, 0xcf) AM_DEVREADWRITE_LEGACY("tms", tms9927_r, tms9927_w)
r15176r15177
602600   MCFG_NVRAM_ADD_0FILL("nvram")
603601
604602   /* 1x 8255 */
605   MCFG_PPI8255_ADD("ppi", ppi8255_intf)
603   MCFG_I8255A_ADD( "ppi8255", ppi8255_intf )
606604
607605   /* video hardware */
608606   MCFG_SCREEN_ADD("screen", RASTER)
src/mame/drivers/fortecar.c
r15176r15177
316316#include "cpu/z80/z80.h"
317317#include "machine/eeprom.h"
318318#include "sound/ay8910.h"
319#include "machine/8255ppi.h"
319#include "machine/i8255.h"
320320#include "machine/v3021.h"
321321#include "video/mc6845.h"
322322#include "machine/nvram.h"
r15176r15177
445445   return ((eeprom->read_bit()<<4) & 0x10);
446446}
447447
448static const ppi8255_interface ppi0intf =
448static I8255A_INTERFACE( ppi8255_intf )
449449{
450/*  Init with 0x9a... A, B and high C as input
451    Serial Eprom connected to Port C
452*/
453
454   DEVCB_INPUT_PORT("SYSTEM"),   /* Port A read */
455   DEVCB_INPUT_PORT("INPUT"),   /* Port B read */
450   /*  Init with 0x9a... A, B and high C as input
451    Serial Eprom connected to Port C */
452   DEVCB_INPUT_PORT("SYSTEM"),                  /* Port A read */
453   DEVCB_NULL,                              /* Port A write */
454   DEVCB_INPUT_PORT("INPUT"),                  /* Port B read */
455   DEVCB_NULL,                              /* Port B write */
456456   DEVCB_DEVICE_HANDLER("eeprom", ppi0_portc_r),   /* Port C read */
457   DEVCB_NULL,               /* Port A write */
458   DEVCB_NULL,               /* Port B write */
459457   DEVCB_DEVICE_HANDLER("eeprom", ppi0_portc_w)   /* Port C write */
460458};
461459
r15176r15177
570568   AM_RANGE(0x21, 0x21) AM_DEVWRITE("crtc", mc6845_device, register_w)
571569   AM_RANGE(0x40, 0x40) AM_DEVREAD_LEGACY("aysnd", ay8910_r)
572570   AM_RANGE(0x40, 0x41) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_data_w)
573   AM_RANGE(0x60, 0x63) AM_DEVREADWRITE_LEGACY("fcppi0", ppi8255_r, ppi8255_w)//M5L8255AP
571   AM_RANGE(0x60, 0x63) AM_DEVREADWRITE("fcppi0", i8255_device, read, write)//M5L8255AP
574572//  AM_RANGE(0x80, 0x81) //8251A UART
575573   AM_RANGE(0xa0, 0xa0) AM_DEVREADWRITE("rtc", v3021_device, read, write)
576574   AM_RANGE(0xa1, 0xa1) AM_READ_PORT("DSW")
r15176r15177
701699   MCFG_EEPROM_ADD("eeprom", forte_eeprom_intf)
702700   MCFG_EEPROM_DEFAULT_VALUE(0)
703701
704   MCFG_PPI8255_ADD("fcppi0", ppi0intf)
702   MCFG_I8255A_ADD( "fcppi0", ppi8255_intf )
705703   MCFG_V3021_ADD("rtc")
706704
707705   MCFG_GFXDECODE(fortecar)
src/mame/drivers/eprom.c
r15176r15177
175175   AM_RANGE(0x3f2000, 0x3f3fff) AM_READWRITE_LEGACY(atarimo_0_spriteram_r, atarimo_0_spriteram_w)
176176   AM_RANGE(0x3f4000, 0x3f4f7f) AM_WRITE_LEGACY(atarigen_alpha_w) AM_SHARE("alpha")
177177   AM_RANGE(0x3f4f80, 0x3f4fff) AM_READWRITE_LEGACY(atarimo_0_slipram_r, atarimo_0_slipram_w)
178   AM_RANGE(0x3f8000, 0x3f9fff) AM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_upper")
178   AM_RANGE(0x3f8000, 0x3f9fff) AM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_up")
179179   AM_RANGE(0x3f0000, 0x3f9fff) AM_RAM
180180ADDRESS_MAP_END
181181
r15176r15177
196196   AM_RANGE(0x360020, 0x360021) AM_WRITE_LEGACY(atarigen_sound_reset_w)
197197   AM_RANGE(0x360030, 0x360031) AM_WRITE_LEGACY(atarigen_sound_w)
198198   AM_RANGE(0x3e0000, 0x3e0fff) AM_RAM AM_SHARE("paletteram")
199   AM_RANGE(0xff0000, 0xff1fff) AM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_upper")
199   AM_RANGE(0xff0000, 0xff1fff) AM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_up")
200200   AM_RANGE(0xff8000, 0xff9fff) AM_WRITE_LEGACY(atarigen_playfield_w) AM_SHARE("playfield")
201201   AM_RANGE(0xffa000, 0xffbfff) AM_READWRITE_LEGACY(atarimo_0_spriteram_r, atarimo_0_spriteram_w)
202202   AM_RANGE(0xffc000, 0xffcf7f) AM_WRITE_LEGACY(atarigen_alpha_w) AM_SHARE("alpha")
src/mame/drivers/bfm_sc2.c
r15176r15177
79737973GAME( 1996, sc2cpe4      , sc2cpe   ,  scorpion2_dm01   , cpeno1   , cpeno1   , 0,       "BFM",      "Club Public Enemy No.1 (set 6, UK) (Scorpion 2/3)", GAME_NOT_WORKING|GAME_REQUIRES_ARTWORK|GAME_MECHANICAL)
79747974GAME( 1996, sc2cpe5p   , sc2cpe   ,  scorpion2_dm01   , cpeno1   , cpeno1   , 0,       "BFM",      "Club Public Enemy No.1 (set 7, UK, Protocol) (Scorpion 2/3)", GAME_NOT_WORKING|GAME_REQUIRES_ARTWORK|GAME_MECHANICAL)
79757975
7976GAME( 199?, sc2town      , 0         ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Round The Town (Bellfruit) (set 1) (Scorpion 2/3)", GAME_FLAGS)
7977GAME( 199?, sc2townp   , sc2town   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Round The Town (Bellfruit) (set 1, Protocol) (Scorpion 2/3)", GAME_FLAGS)
7978GAME( 199?, sc2town1   , sc2town   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Round The Town (Bellfruit) (set 2) (Scorpion 2/3)", GAME_FLAGS)
7979GAME( 199?, sc2town1p   , sc2town   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Round The Town (Bellfruit) (set 2, Protocol) (Scorpion 2/3)", GAME_FLAGS)
7980GAME( 199?, sc2town2   , sc2town   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Round The Town (Bellfruit) (set 3) (Scorpion 2/3)", GAME_FLAGS)
7981GAME( 199?, sc2town3   , sc2town   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Round The Town (Bellfruit) (set 4) (Scorpion 2/3)", GAME_FLAGS)
7982GAME( 199?, sc2town3p   , sc2town   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Round The Town (Bellfruit) (set 4, Protocol) (Scorpion 2/3)", GAME_FLAGS)
7983GAME( 199?, sc2town4   , sc2town   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Round The Town (Bellfruit) (set 5) (Scorpion 2/3)", GAME_FLAGS)
7984GAME( 199?, sc2town5   , sc2town   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Round The Town (Bellfruit) (set 6) (Scorpion 2/3)", GAME_FLAGS)
7976GAME( 199?, sc2town      , 0         ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Round The Town (Bellfruit) (set 1) (Scorpion 2/3)", GAME_FLAGS)
7977GAME( 199?, sc2townp   , sc2town   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Round The Town (Bellfruit) (set 1, Protocol) (Scorpion 2/3)", GAME_FLAGS)
7978GAME( 199?, sc2town1   , sc2town   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Round The Town (Bellfruit) (set 2) (Scorpion 2/3)", GAME_FLAGS)
7979GAME( 199?, sc2town1p   , sc2town   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Round The Town (Bellfruit) (set 2, Protocol) (Scorpion 2/3)", GAME_FLAGS)
7980GAME( 199?, sc2town2   , sc2town   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Round The Town (Bellfruit) (set 3) (Scorpion 2/3)", GAME_FLAGS)
7981GAME( 199?, sc2town3   , sc2town   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Round The Town (Bellfruit) (set 4) (Scorpion 2/3)", GAME_FLAGS)
7982GAME( 199?, sc2town3p   , sc2town   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Round The Town (Bellfruit) (set 4, Protocol) (Scorpion 2/3)", GAME_FLAGS)
7983GAME( 199?, sc2town4   , sc2town   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Round The Town (Bellfruit) (set 5) (Scorpion 2/3)", GAME_FLAGS)
7984GAME( 199?, sc2town5   , sc2town   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Round The Town (Bellfruit) (set 6) (Scorpion 2/3)", GAME_FLAGS)
79857985
79867986GAME( 199?, sc2ofool   , 0         ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Only Fools & Horses (Bellfruit) (set 1) (Scorpion 2/3)", GAME_FLAGS)
79877987GAME( 199?, sc2ofool1   , sc2ofool   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Only Fools & Horses (Bellfruit) (set 2) (Scorpion 2/3)", GAME_FLAGS)
r15176r15177
80118011GAME( 199?, sc2copsc2   , sc2cops   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Casino Cops 'n' Robbers (Bellfruit) (set 3) (Scorpion 2/3)", GAME_FLAGS)
80128012
80138013GAME( 199?, sc2copdc   , 0         ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 1, UK, 250GBP Jackpot) (Scorpion 2/3)", GAME_FLAGS)
8014GAME( 199?, sc2copdcp   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 1, UK, 250GBP Jackpot, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8015GAME( 199?, sc2copdc1   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 2, UK, 250GBP Jackpot) (Scorpion 2/3)", GAME_FLAGS)
8016GAME( 199?, sc2copdc1p   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 2, UK, 250GBP Jackpot, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8017GAME( 199?, sc2copdc2   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 3, UK, 250GBP Jackpot) (Scorpion 2/3)", GAME_FLAGS)
8018GAME( 199?, sc2copdc2p   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 3, UK, 250GBP Jackpot, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8019GAME( 199?, sc2copdc3   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 4, UK, 250GBP Jackpot) (Scorpion 2/3)", GAME_FLAGS)
8020GAME( 199?, sc2copdc3p   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 4, UK, 250GBP Jackpot, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8021GAME( 199?, sc2copdc4   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 5, UK, 200GBP Jackpot?) (Scorpion 2/3)", GAME_FLAGS)
8022GAME( 199?, sc2copdc4p   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 5, UK, 200GBP Jackpot?, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8023GAME( 199?, sc2copdc5   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 6, UK, 200GBP Jackpot) (Scorpion 2/3)", GAME_FLAGS)
8024GAME( 199?, sc2copdc5p   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 6, UK, 200GBP Jackpot, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8025GAME( 199?, sc2copdc6   , sc2copdc   ,  scorpion2_dm01   , drwho      , drwho      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 7, UK) (Scorpion 2/3)", GAME_FLAGS)
8014GAME( 199?, sc2copdcp   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 1, UK, 250GBP Jackpot, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8015GAME( 199?, sc2copdc1   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 2, UK, 250GBP Jackpot) (Scorpion 2/3)", GAME_FLAGS)
8016GAME( 199?, sc2copdc1p   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 2, UK, 250GBP Jackpot, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8017GAME( 199?, sc2copdc2   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 3, UK, 250GBP Jackpot) (Scorpion 2/3)", GAME_FLAGS)
8018GAME( 199?, sc2copdc2p   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 3, UK, 250GBP Jackpot, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8019GAME( 199?, sc2copdc3   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 4, UK, 250GBP Jackpot) (Scorpion 2/3)", GAME_FLAGS)
8020GAME( 199?, sc2copdc3p   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 4, UK, 250GBP Jackpot, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8021GAME( 199?, sc2copdc4   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 5, UK, 200GBP Jackpot?) (Scorpion 2/3)", GAME_FLAGS)
8022GAME( 199?, sc2copdc4p   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 5, UK, 200GBP Jackpot?, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8023GAME( 199?, sc2copdc5   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 6, UK, 200GBP Jackpot) (Scorpion 2/3)", GAME_FLAGS)
8024GAME( 199?, sc2copdc5p   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 6, UK, 200GBP Jackpot, Protocol) (Scorpion 2/3)", GAME_FLAGS)
8025GAME( 199?, sc2copdc6   , sc2copdc   ,  scorpion2_dm01   , drwho      , ofah      , 0,       "BFM",      "Cops 'n' Robbers Club Deluxe (Bellfruit) (set 7, UK) (Scorpion 2/3)", GAME_FLAGS)
80268026
80278027GAME( 199?, sc2prom      , 0         ,  scorpion2_dm01   , drwho      , prom      , 0,       "BFM",      "Along The Prom (Bellfruit) (Scorpion 2/3)", GAME_FLAGS)
80288028GAME( 199?, sc2prem      , 0         ,  scorpion2_dm01   , drwho      , prom      , 0,       "BFM",      "Premier Club Manager (Bellfruit) (set 1, UK, 250GBP Jackpot) (Scorpion 2/3)", GAME_FLAGS)
src/mame/drivers/dribling.c
r15176r15177
2727
2828#include "emu.h"
2929#include "cpu/z80/z80.h"
30#include "machine/8255ppi.h"
30#include "machine/i8255.h"
3131#include "includes/dribling.h"
3232
3333
r15176r15177
154154{
155155
156156   if (offset & 0x08)
157      return ppi8255_r(m_ppi_0, offset & 3);
157      return m_ppi8255_0->read(space, offset & 3);
158158   else if (offset & 0x10)
159      return ppi8255_r(m_ppi_1, offset & 3);
159      return m_ppi8255_1->read(space, offset & 3);
160160   return 0xff;
161161}
162162
r15176r15177
165165{
166166
167167   if (offset & 0x08)
168      ppi8255_w(m_ppi_0, offset & 3, data);
168      m_ppi8255_0->write(space, offset & 3, data);
169169   else if (offset & 0x10)
170      ppi8255_w(m_ppi_1, offset & 3, data);
170      m_ppi8255_1->write(space, offset & 3, data);
171171   else if (offset & 0x40)
172172   {
173173      m_dr = m_ds;
r15176r15177
183183 *
184184 *************************************/
185185
186static const ppi8255_interface ppi8255_intf[2] =
186static I8255A_INTERFACE( ppi8255_0_intf )
187187{
188   {
189      DEVCB_HANDLER(dsr_r),
190      DEVCB_HANDLER(input_mux0_r),
191      DEVCB_NULL,
192      DEVCB_NULL,
193      DEVCB_NULL,
194      DEVCB_HANDLER(misc_w)
195   },
196   {
197      DEVCB_NULL,
198      DEVCB_NULL,
199      DEVCB_INPUT_PORT("IN0"),
200      DEVCB_HANDLER(sound_w),
201      DEVCB_HANDLER(pb_w),
202      DEVCB_HANDLER(shr_w)
203   }
188   DEVCB_HANDLER(dsr_r),            /* Port A read */
189   DEVCB_NULL,                     /* Port A write */
190   DEVCB_HANDLER(input_mux0_r),      /* Port B read */
191   DEVCB_NULL,                     /* Port B write */
192   DEVCB_NULL,                     /* Port C read */
193   DEVCB_HANDLER(misc_w)            /* Port C write */
204194};
205195
196static I8255A_INTERFACE( ppi8255_1_intf )
197{
198   DEVCB_NULL,                     /* Port A read */
199   DEVCB_HANDLER(sound_w),            /* Port A write */
200   DEVCB_NULL,                     /* Port B read */
201   DEVCB_HANDLER(pb_w),            /* Port B write */
202   DEVCB_INPUT_PORT("IN0"),         /* Port C read */
203   DEVCB_HANDLER(shr_w)            /* Port C write */
204};
206205
207206
208207/*************************************
r15176r15177
285284{
286285   dribling_state *state = machine.driver_data<dribling_state>();
287286
288   state->m_maincpu = machine.device("maincpu");
289   state->m_ppi_0 = machine.device("ppi8255_0");
290   state->m_ppi_1 = machine.device("ppi8255_1");
291
292287   state->save_item(NAME(state->m_abca));
293288   state->save_item(NAME(state->m_di));
294289   state->save_item(NAME(state->m_dr));
r15176r15177
318313   MCFG_CPU_IO_MAP(io_map)
319314   MCFG_CPU_VBLANK_INT("screen", dribling_irq_gen)
320315
321   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
322   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
316   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
317   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
323318
324319   MCFG_MACHINE_START(dribling)
325320   MCFG_MACHINE_RESET(dribling)
r15176r15177
411406 *
412407 *************************************/
413408
414GAME( 1983, dribling, 0,        dribling, dribling, 0, ROT0, "Model Racing", "Dribbling", GAME_NO_SOUND | GAME_SUPPORTS_SAVE )
415GAME( 1983, driblingo,dribling, dribling, dribling, 0, ROT0, "Model Racing (Olympia license)", "Dribbling (Olympia)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE )
416GAME( 1983, driblingbr,dribling, dribling, dribling, 0, ROT0, "bootleg (Videomac)", "Dribbling (bootleg, Brazil)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE )
409GAME( 1983, dribling,   0,        dribling, dribling, 0, ROT0, "Model Racing", "Dribbling", GAME_NO_SOUND | GAME_SUPPORTS_SAVE )
410GAME( 1983, driblingo,  dribling, dribling, dribling, 0, ROT0, "Model Racing (Olympia license)", "Dribbling (Olympia)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE )
411GAME( 1983, driblingbr, dribling, dribling, dribling, 0, ROT0, "bootleg (Videomac)", "Dribbling (bootleg, Brazil)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE )
src/mame/drivers/shuuz.c
r15176r15177
152152   AM_RANGE(0x3f4000, 0x3f5eff) AM_RAM_WRITE_LEGACY(atarigen_playfield_latched_msb_w) AM_SHARE("playfield")
153153   AM_RANGE(0x3f5f00, 0x3f5f7f) AM_RAM AM_SHARE("atarivc_eof")
154154   AM_RANGE(0x3f5f80, 0x3f5fff) AM_READWRITE_LEGACY(atarimo_0_slipram_r, atarimo_0_slipram_w)
155   AM_RANGE(0x3f6000, 0x3f7fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_upper")
155   AM_RANGE(0x3f6000, 0x3f7fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_up")
156156   AM_RANGE(0x3f8000, 0x3fcfff) AM_RAM
157157   AM_RANGE(0x3fd000, 0x3fd3ff) AM_READWRITE_LEGACY(atarimo_0_spriteram_r, atarimo_0_spriteram_w)
158158   AM_RANGE(0x3fd400, 0x3fffff) AM_RAM
src/mame/drivers/goldstar.c
r15176r15177
113113#include "sound/ay8910.h"
114114#include "sound/okim6295.h"
115115#include "sound/sn76496.h"
116#include "machine/8255ppi.h"
116#include "machine/i8255.h"
117117#include "machine/nvram.h"
118118#include "includes/goldstar.h"
119119
r15176r15177
192192   AM_RANGE(0xf080, 0xf0bf) AM_RAM AM_SHARE("reel2_scroll")
193193   AM_RANGE(0xf100, 0xf17f) AM_RAM AM_SHARE("reel3_scroll") // moved compared to goldstar
194194
195   AM_RANGE(0xf800, 0xf803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
196   AM_RANGE(0xf810, 0xf813) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* Input Ports */
195   AM_RANGE(0xf800, 0xf803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
196   AM_RANGE(0xf810, 0xf813) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* Input Ports */
197197   AM_RANGE(0xf822, 0xf822) AM_WRITE(goldstar_fa00_w) // hack (connected to ppi output port?, needed for colour banking)
198   AM_RANGE(0xf820, 0xf823) AM_DEVREADWRITE_LEGACY("ppi8255_2", ppi8255_r, ppi8255_w)   /* Input/Output Ports */
198   AM_RANGE(0xf820, 0xf823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)   /* Input/Output Ports */
199199
200200   AM_RANGE(0xf830, 0xf830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w)
201201   AM_RANGE(0xf840, 0xf840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)
r15176r15177
301301   ADDRESS_MAP_GLOBAL_MASK(0xff)
302302   AM_RANGE(0x01, 0x01) AM_DEVREAD_LEGACY("aysnd", ay8910_r)
303303   AM_RANGE(0x02, 0x03) AM_DEVWRITE_LEGACY("aysnd", ay8910_data_address_w)
304   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Inputs */
305   AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* DIP switches */
304   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Inputs */
305   AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* DIP switches */
306306   AM_RANGE(0x10, 0x10) AM_WRITE(cm_outport0_w)   /* output port */
307307   AM_RANGE(0x11, 0x11) AM_WRITENOP
308308   AM_RANGE(0x12, 0x12) AM_WRITE(cm_outport1_w)   /* output port */
r15176r15177
313313
314314static ADDRESS_MAP_START( cmast91_portmap, AS_IO, 8, goldstar_state )
315315   ADDRESS_MAP_GLOBAL_MASK(0xff)
316   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
317   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* DIP switches */
316   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
317   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* DIP switches */
318318   AM_RANGE(0x21, 0x21) AM_DEVREAD_LEGACY("aysnd", ay8910_r)
319319   AM_RANGE(0x22, 0x23) AM_DEVWRITE_LEGACY("aysnd", ay8910_data_address_w)
320320ADDRESS_MAP_END
r15176r15177
324324   ADDRESS_MAP_GLOBAL_MASK(0xff)
325325   AM_RANGE(0x01, 0x01) AM_DEVREAD_LEGACY("aysnd", ay8910_r)
326326   AM_RANGE(0x02, 0x03) AM_DEVWRITE_LEGACY("aysnd", ay8910_data_address_w)
327   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
328   AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* DIP switches */
327   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
328   AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* DIP switches */
329329   AM_RANGE(0x10, 0x10) AM_WRITE(cm_outport0_w)   /* output port */
330330   AM_RANGE(0x11, 0x11) AM_WRITENOP
331331   AM_RANGE(0x12, 0x12) AM_WRITE(cm_outport1_w)   /* output port */
r15176r15177
337337   ADDRESS_MAP_GLOBAL_MASK(0xff)
338338   AM_RANGE(0x01, 0x01) AM_DEVREAD_LEGACY("aysnd", ay8910_r)
339339   AM_RANGE(0x02, 0x03) AM_DEVWRITE_LEGACY("aysnd", ay8910_data_address_w)
340   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
341   AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* DIP switches */
340   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
341   AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* DIP switches */
342342   AM_RANGE(0x10, 0x10) AM_WRITE(cm_outport0_w)   /* output port */
343343   AM_RANGE(0x11, 0x11) AM_WRITENOP
344344   AM_RANGE(0x12, 0x12) AM_WRITE(cm_outport1_w)   /* output port */
r15176r15177
371371   AM_RANGE(0xb080, 0xb0bf) AM_RAM AM_SHARE("reel2_scroll")
372372   AM_RANGE(0xb100, 0xb17f) AM_RAM AM_SHARE("reel3_scroll")
373373
374   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
375   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* Input Ports */
376   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE_LEGACY("ppi8255_2", ppi8255_r, ppi8255_w)   /* Input/Output Ports */
374   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
375   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* Input Ports */
376   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)   /* Input/Output Ports */
377377   AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w)
378378   AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)   /* no sound... only use both ports for DSWs */
379379   AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w)
r15176r15177
415415   AM_RANGE(0xb080, 0xb0bf) AM_RAM AM_SHARE("reel2_scroll")
416416   AM_RANGE(0xb100, 0xb17f) AM_RAM AM_SHARE("reel3_scroll")
417417
418   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
419   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* Input Ports */
420   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE_LEGACY("ppi8255_2", ppi8255_r, ppi8255_w)   /* Input/Output Ports */
418   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
419   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* Input Ports */
420   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)   /* Input/Output Ports */
421421   AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w)
422422   AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)   /* no sound... only use both ports for DSWs */
423423   AM_RANGE(0xb850, 0xb850) AM_WRITE(magodds_outb850_w) //lamps
r15176r15177
438438   AM_RANGE(0xb080, 0xb0bf) AM_RAM AM_SHARE("reel2_scroll")
439439   AM_RANGE(0xb100, 0xb17f) AM_RAM AM_SHARE("reel3_scroll")
440440
441   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
442   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* Input Ports */
443   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE_LEGACY("ppi8255_2", ppi8255_r, ppi8255_w)   /* Input Port */
441   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
442   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* Input Ports */
443   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)   /* Input Port */
444444   AM_RANGE(0xb830, 0xb830) AM_WRITENOP      /* no ay8910 */
445445   AM_RANGE(0xb840, 0xb840) AM_WRITENOP      /* no ay8910 */
446446   AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w)
r15176r15177
477477   AM_RANGE(0xb080, 0xb0bf) AM_RAM AM_SHARE("reel2_scroll")
478478   AM_RANGE(0xb100, 0xb17f) AM_RAM AM_SHARE("reel3_scroll")
479479
480   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
481   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* DSW bank */
480   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
481   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* DSW bank */
482482   AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w)
483483   AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)   /* no sound... only use ports */
484484   AM_RANGE(0xb850, 0xb850) AM_WRITENOP   /* just turn off the lamps, if exist */
r15176r15177
498498   AM_RANGE(0xb080, 0xb0bf) AM_RAM AM_SHARE("reel2_scroll")
499499   AM_RANGE(0xb100, 0xb17f) AM_RAM AM_SHARE("reel3_scroll")
500500
501   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
502   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* Input Ports */
503   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE_LEGACY("ppi8255_2", ppi8255_r, ppi8255_w)   /* Input/Output Ports */
501   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
502   AM_RANGE(0xb810, 0xb813) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* Input Ports */
503   AM_RANGE(0xb820, 0xb823) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)   /* Input/Output Ports */
504504   AM_RANGE(0xb830, 0xb830) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w)
505505   AM_RANGE(0xb840, 0xb840) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)   /* no sound... only use both ports for DSWs */
506506   AM_RANGE(0xb850, 0xb850) AM_WRITE(lucky8_outport_w)
507507   AM_RANGE(0xb870, 0xb870) AM_DEVWRITE_LEGACY("snsnd", sn76496_w)   /* sound */
508//  AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE_LEGACY("ppi8255_3", ppi8255_r, ppi8255_w) /* Other PPI initialized? */
508//  AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE("ppi8255_3", i8255_device, read, write) /* Other PPI initialized? */
509509   AM_RANGE(0xd000, 0xefff) AM_ROM
510510   AM_RANGE(0xf000, 0xffff) AM_RAM
511511ADDRESS_MAP_END
r15176r15177
579579   AM_RANGE(0x11, 0x11) AM_WRITE(unkcm_0x11_w)
580580   AM_RANGE(0x12, 0x12) AM_WRITE(unkcm_0x12_w)
581581
582//  AM_RANGE(0x04, 0x07) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w) /* Input Ports */
583//  AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w) /* DIP switches */
582//  AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write) /* Input Ports */
583//  AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write) /* DIP switches */
584584//  AM_RANGE(0x10, 0x10) AM_WRITE (cm_outport0_w)   /* output port */
585585//  AM_RANGE(0x11, 0x11) AM_WRITENOP
586586//  AM_RANGE(0x12, 0x12) AM_WRITE (cm_outport1_w)   /* output port */
r15176r15177
56345634*      PPI 8255 (x3) Interfaces      *
56355635*************************************/
56365636
5637static const ppi8255_interface ncb3_ppi8255_intf[3] =
5637static I8255A_INTERFACE( ncb3_ppi8255_0_intf )
56385638{
5639   {   /* A, B & C set as input */
5640      DEVCB_INPUT_PORT("IN0"),   /* Port A read */
5641      DEVCB_INPUT_PORT("IN3"),   /* Port B read */ //Player2 controls, confirmed.
5642      DEVCB_NULL,               /* Port C read */
5643      DEVCB_NULL,               /* Port A write */
5644      DEVCB_NULL,               /* Port B write */
5645      DEVCB_NULL               /* Port C write */
5646   },
5647   {   /* A, B & C set as input */
5648      DEVCB_INPUT_PORT("IN1"),   /* Port A read */
5649      DEVCB_INPUT_PORT("IN2"),   /* Port B read */
5650      DEVCB_INPUT_PORT("DSW1"),   /* Port C read */
5651      DEVCB_NULL,               /* Port A write */
5652      DEVCB_NULL,               /* Port B write */
5653      DEVCB_NULL               /* Port C write */
5654   },
5655   {   /* A set as input */
5656      DEVCB_INPUT_PORT("DSW2"),   /* Port A read */
5657      DEVCB_NULL,               /* Port B read */
5658      DEVCB_NULL,               /* Port C read */
5659      DEVCB_NULL,               /* Port A write */
5660      DEVCB_NULL,               /* Port B write */
5661      DEVCB_NULL               /* Port C write */
5662   }
5639   DEVCB_INPUT_PORT("IN0"),      /* Port A read */
5640   DEVCB_NULL,                  /* Port A write */
5641   DEVCB_INPUT_PORT("IN3"),      /* Port B read */ //Player2 controls, confirmed.
5642   DEVCB_NULL,                  /* Port B write */
5643   DEVCB_NULL,                  /* Port C read */
5644   DEVCB_NULL                  /* Port C write */
56635645};
56645646
5665static const ppi8255_interface cm_ppi8255_intf[2] =
5647static I8255A_INTERFACE( ncb3_ppi8255_1_intf )
56665648{
5667   {   /* A, B & C set as input */
5668      DEVCB_INPUT_PORT("IN0"),   /* Port A read */
5669      DEVCB_INPUT_PORT("IN1"),   /* Port B read */
5670      DEVCB_INPUT_PORT("IN2"),   /* Port C read */
5671      DEVCB_NULL,               /* Port A write */
5672      DEVCB_NULL,               /* Port B write */
5673      DEVCB_NULL               /* Port C write */
5674   },
5675   {   /* A, B & C set as input */
5676      DEVCB_INPUT_PORT("DSW1"),   /* Port A read */
5677      DEVCB_INPUT_PORT("DSW2"),   /* Port B read */
5678      DEVCB_INPUT_PORT("DSW3"),   /* Port C read */
5679      DEVCB_NULL,               /* Port A write */
5680      DEVCB_NULL,               /* Port B write */
5681      DEVCB_NULL               /* Port C write */
5682   }
5649   DEVCB_INPUT_PORT("IN1"),      /* Port A read */
5650   DEVCB_NULL,                  /* Port A write */
5651   DEVCB_INPUT_PORT("IN2"),      /* Port B read */
5652   DEVCB_NULL,                  /* Port B write */
5653   DEVCB_INPUT_PORT("DSW1"),      /* Port C read */
5654   DEVCB_NULL                  /* Port C write */
56835655};
56845656
5657static I8255A_INTERFACE( ncb3_ppi8255_2_intf )
5658{
5659   DEVCB_INPUT_PORT("DSW2"),      /* Port A read */
5660   DEVCB_NULL,                  /* Port A write */
5661   DEVCB_NULL,                  /* Port B read */
5662   DEVCB_NULL,                  /* Port B write */
5663   DEVCB_NULL,                  /* Port C read */
5664   DEVCB_NULL                  /* Port C write */
5665};
56855666
56865667
5668static I8255A_INTERFACE( cm_ppi8255_0_intf )
5669{
5670   DEVCB_INPUT_PORT("IN0"),      /* Port A read */
5671   DEVCB_NULL,                  /* Port A write */
5672   DEVCB_INPUT_PORT("IN1"),      /* Port B read */
5673   DEVCB_NULL,                  /* Port B write */
5674   DEVCB_INPUT_PORT("IN2"),      /* Port C read */
5675   DEVCB_NULL                  /* Port C write */
5676};
56875677
5678static I8255A_INTERFACE( cm_ppi8255_1_intf )
5679{
5680   DEVCB_INPUT_PORT("DSW1"),      /* Port A read */
5681   DEVCB_NULL,                  /* Port A write */
5682   DEVCB_INPUT_PORT("DSW2"),      /* Port B read */
5683   DEVCB_NULL,                  /* Port B write */
5684   DEVCB_INPUT_PORT("DSW3"),      /* Port C read */
5685   DEVCB_NULL                  /* Port C write */
5686};
5687
5688
5689
5690
56885691static WRITE8_DEVICE_HANDLER( system_outputa_w )
56895692{
56905693   //goldstar_state *state = device->machine().driver_data<goldstar_state>();
r15176r15177
57095712}
57105713
57115714
5712static const ppi8255_interface lucky8_ppi8255_intf[3] =
5715static I8255A_INTERFACE( lucky8_ppi8255_0_intf )
57135716{
5714   {   /* A, B & C set as input */
5715      DEVCB_INPUT_PORT("IN0"),   /* Port A read */
5716      DEVCB_INPUT_PORT("IN1"),   /* Port B read */
5717      DEVCB_INPUT_PORT("IN2"),   /* Port C read */
5718      DEVCB_NULL,               /* Port A write */
5719      DEVCB_NULL,               /* Port B write */
5720      DEVCB_NULL               /* Port C write */
5721   },
5722   {   /* A, B & C set as input */
5723      DEVCB_INPUT_PORT("IN3"),   /* Port A read */
5724      DEVCB_INPUT_PORT("IN4"),   /* Port B read */
5725      DEVCB_INPUT_PORT("DSW1"),   /* Port C read */
5726      DEVCB_NULL,               /* Port A write */
5727      DEVCB_NULL,               /* Port B write */
5728      DEVCB_NULL               /* Port C write */
5729   },
5730   {   /* A set as input */
5731      DEVCB_INPUT_PORT("DSW2"),   /* Port A read */
5732      DEVCB_NULL,               /* Port B read */
5733      DEVCB_NULL,               /* Port C read */
5734      DEVCB_HANDLER(system_outputa_w),               /* Port A write */
5735      DEVCB_HANDLER(system_outputb_w),               /* Port B write */
5736      DEVCB_HANDLER(system_outputc_w)         /* Port C write */
5737   }
5717   DEVCB_INPUT_PORT("IN0"),      /* Port A read */
5718   DEVCB_NULL,                  /* Port A write */
5719   DEVCB_INPUT_PORT("IN1"),      /* Port B read */
5720   DEVCB_NULL,                  /* Port B write */
5721   DEVCB_INPUT_PORT("IN2"),      /* Port C read */
5722   DEVCB_NULL                  /* Port C write */
57385723};
57395724
5740static const ppi8255_interface kkotnoli_ppi8255_intf[3] =
5725static I8255A_INTERFACE( lucky8_ppi8255_1_intf )
57415726{
5742   {   /* A, B & C set as input */
5743      DEVCB_INPUT_PORT("IN0"),   /* Port A read */
5744      DEVCB_INPUT_PORT("IN1"),   /* Port B read */
5745      DEVCB_INPUT_PORT("IN2"),   /* Port C read */
5746      DEVCB_NULL,               /* Port A write */
5747      DEVCB_NULL,               /* Port B write */
5748      DEVCB_NULL               /* Port C write */
5749   },
5750   {   /* A, B & C set as input */
5751      DEVCB_INPUT_PORT("IN3"),   /* Port A read */
5752      DEVCB_INPUT_PORT("IN4"),   /* Port B read */
5753      DEVCB_NULL,               /* Port C read */
5754      DEVCB_NULL,               /* Port A write */
5755      DEVCB_NULL,               /* Port B write */
5756      DEVCB_NULL               /* Port C write */
5757   },
5758   {   /* A set as input */
5759      DEVCB_INPUT_PORT("DSW1"),   /* Port A read */
5760      DEVCB_NULL,               /* Port B read */
5761      DEVCB_NULL,               /* Port C read */
5762      DEVCB_NULL,               /* Port A write */
5763      DEVCB_NULL,               /* Port B write */
5764      DEVCB_NULL               /* Port C write */
5765   }
5727   DEVCB_INPUT_PORT("IN3"),      /* Port A read */
5728   DEVCB_NULL,                  /* Port A write */
5729   DEVCB_INPUT_PORT("IN4"),      /* Port B read */
5730   DEVCB_NULL,                  /* Port B write */
5731   DEVCB_INPUT_PORT("DSW1"),      /* Port C read */
5732   DEVCB_NULL                  /* Port C write */
57665733};
57675734
5768static const ppi8255_interface ladylinr_ppi8255_intf[2] =
5735static I8255A_INTERFACE( lucky8_ppi8255_2_intf )
57695736{
5770   {   /* A, B & C set as input */
5771      DEVCB_INPUT_PORT("IN0"),   /* Port A read */
5772      DEVCB_INPUT_PORT("IN1"),   /* Port B read */
5773      DEVCB_INPUT_PORT("IN2"),   /* Port C read */
5774      DEVCB_NULL,               /* Port A write */
5775      DEVCB_NULL,               /* Port B write */
5776      DEVCB_NULL               /* Port C write */
5777   },
5778   {   /* A set as input */
5779      DEVCB_INPUT_PORT("DSW1"),   /* Port A read */
5780      DEVCB_NULL,               /* Port B read */
5781      DEVCB_NULL,               /* Port C read */
5782      DEVCB_NULL,               /* Port A write */
5783      DEVCB_NULL,               /* Port B write */
5784      DEVCB_NULL               /* Port C write */
5785   }
5737   DEVCB_INPUT_PORT("DSW2"),         /* Port A read */
5738   DEVCB_HANDLER(system_outputa_w),   /* Port A write */
5739   DEVCB_NULL,                     /* Port B read */
5740   DEVCB_HANDLER(system_outputb_w),   /* Port B write */
5741   DEVCB_NULL,                     /* Port C read */
5742   DEVCB_HANDLER(system_outputc_w)      /* Port C write */
57865743};
57875744
5745static I8255A_INTERFACE( kkotnoli_ppi8255_0_intf )
5746{
5747   DEVCB_INPUT_PORT("IN0"),      /* Port A read */
5748   DEVCB_NULL,                  /* Port A write */
5749   DEVCB_INPUT_PORT("IN1"),      /* Port B read */
5750   DEVCB_NULL,                  /* Port B write */
5751   DEVCB_INPUT_PORT("IN2"),      /* Port C read */
5752   DEVCB_NULL                  /* Port C write */
5753};
5754
5755static I8255A_INTERFACE( kkotnoli_ppi8255_1_intf )
5756{
5757   DEVCB_INPUT_PORT("IN3"),      /* Port A read */
5758   DEVCB_NULL,                  /* Port A write */
5759   DEVCB_INPUT_PORT("IN4"),      /* Port B read */
5760   DEVCB_NULL,                  /* Port B write */
5761   DEVCB_NULL,                  /* Port C read */
5762   DEVCB_NULL                  /* Port C write */
5763};
5764
5765static I8255A_INTERFACE( kkotnoli_ppi8255_2_intf )
5766{
5767   DEVCB_INPUT_PORT("DSW1"),      /* Port A read */
5768   DEVCB_NULL,                  /* Port A write */
5769   DEVCB_NULL,                  /* Port B read */
5770   DEVCB_NULL,                  /* Port B write */
5771   DEVCB_NULL,                  /* Port C read */
5772   DEVCB_NULL                  /* Port C write */
5773};
5774
5775static I8255A_INTERFACE( ladylinr_ppi8255_0_intf )
5776{
5777   DEVCB_INPUT_PORT("IN0"),      /* Port A read */
5778   DEVCB_NULL,                  /* Port A write */
5779   DEVCB_INPUT_PORT("IN1"),      /* Port B read */
5780   DEVCB_NULL,                  /* Port B write */
5781   DEVCB_INPUT_PORT("IN2"),      /* Port C read */
5782   DEVCB_NULL                  /* Port C write */
5783};
5784
5785static I8255A_INTERFACE( ladylinr_ppi8255_1_intf )
5786{
5787   DEVCB_INPUT_PORT("DSW1"),      /* Port A read */
5788   DEVCB_NULL,                  /* Port A write */
5789   DEVCB_NULL,                  /* Port B read */
5790   DEVCB_NULL,                  /* Port B write */
5791   DEVCB_NULL,                  /* Port C read */
5792   DEVCB_NULL                  /* Port C write */
5793};
5794
5795
57885796static const ay8910_interface ay8910_config =
57895797{
57905798   AY8910_LEGACY_OUTPUT,
r15176r15177
60076015   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
60086016
60096017   /* 3x 8255 */
6010   MCFG_PPI8255_ADD( "ppi8255_0", ncb3_ppi8255_intf[0] )
6011   MCFG_PPI8255_ADD( "ppi8255_1", ncb3_ppi8255_intf[1] )
6012   MCFG_PPI8255_ADD( "ppi8255_2", ncb3_ppi8255_intf[2] )
6018   MCFG_I8255A_ADD( "ppi8255_0", ncb3_ppi8255_0_intf )
6019   MCFG_I8255A_ADD( "ppi8255_1", ncb3_ppi8255_1_intf )
6020   MCFG_I8255A_ADD( "ppi8255_2", ncb3_ppi8255_2_intf )
60136021
60146022   /* video hardware */
60156023   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
60486056   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
60496057
60506058   /* 3x 8255 */
6051   MCFG_PPI8255_ADD( "ppi8255_0", ncb3_ppi8255_intf[0] )
6052   MCFG_PPI8255_ADD( "ppi8255_1", ncb3_ppi8255_intf[1] )
6053   MCFG_PPI8255_ADD( "ppi8255_2", ncb3_ppi8255_intf[2] )
6059   MCFG_I8255A_ADD( "ppi8255_0", ncb3_ppi8255_0_intf )
6060   MCFG_I8255A_ADD( "ppi8255_1", ncb3_ppi8255_1_intf )
6061   MCFG_I8255A_ADD( "ppi8255_2", ncb3_ppi8255_2_intf )
60546062
60556063   /* video hardware */
60566064   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
60886096   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
60896097
60906098   /* 3x 8255 */
6091   MCFG_PPI8255_ADD( "ppi8255_0", ncb3_ppi8255_intf[0] )
6092   MCFG_PPI8255_ADD( "ppi8255_1", ncb3_ppi8255_intf[1] )
6093   MCFG_PPI8255_ADD( "ppi8255_2", ncb3_ppi8255_intf[2] )
6099   MCFG_I8255A_ADD( "ppi8255_0", ncb3_ppi8255_0_intf )
6100   MCFG_I8255A_ADD( "ppi8255_1", ncb3_ppi8255_1_intf )
6101   MCFG_I8255A_ADD( "ppi8255_2", ncb3_ppi8255_2_intf )
60946102
60956103   /* video hardware */
60966104   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
61296137   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
61306138
61316139   /* 2x 8255 */
6132   MCFG_PPI8255_ADD( "ppi8255_0", cm_ppi8255_intf[0] )
6133   MCFG_PPI8255_ADD( "ppi8255_1", cm_ppi8255_intf[1] )
6140   MCFG_I8255A_ADD( "ppi8255_0", cm_ppi8255_0_intf )
6141   MCFG_I8255A_ADD( "ppi8255_1", cm_ppi8255_1_intf )
61346142
61356143   /* video hardware */
61366144   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
61696177   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
61706178
61716179   /* 2x 8255 */
6172   MCFG_PPI8255_ADD( "ppi8255_0", cm_ppi8255_intf[0] )
6173   MCFG_PPI8255_ADD( "ppi8255_1", cm_ppi8255_intf[1] )
6180   MCFG_I8255A_ADD( "ppi8255_0", cm_ppi8255_0_intf )
6181   MCFG_I8255A_ADD( "ppi8255_1", cm_ppi8255_1_intf )
61746182
61756183   /* video hardware */
61766184   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
62046212   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
62056213
62066214   /* 2x 8255 */
6207   MCFG_PPI8255_ADD( "ppi8255_0", cm_ppi8255_intf[0] )
6208   MCFG_PPI8255_ADD( "ppi8255_1", cm_ppi8255_intf[1] )
6215   MCFG_I8255A_ADD( "ppi8255_0", cm_ppi8255_0_intf )
6216   MCFG_I8255A_ADD( "ppi8255_1", cm_ppi8255_1_intf )
62096217
62106218   /* video hardware */
62116219   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
62466254   MCFG_CPU_VBLANK_INT("screen", lucky8_irq)
62476255
62486256   /* 3x 8255 */
6249   MCFG_PPI8255_ADD( "ppi8255_0", lucky8_ppi8255_intf[0] )
6250   MCFG_PPI8255_ADD( "ppi8255_1", lucky8_ppi8255_intf[1] )
6251   MCFG_PPI8255_ADD( "ppi8255_2", lucky8_ppi8255_intf[2] )
6257   MCFG_I8255A_ADD( "ppi8255_0", lucky8_ppi8255_0_intf )
6258   MCFG_I8255A_ADD( "ppi8255_1", lucky8_ppi8255_1_intf )
6259   MCFG_I8255A_ADD( "ppi8255_2", lucky8_ppi8255_2_intf )
62526260
62536261   /* video hardware */
62546262   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
62856293   MCFG_CPU_VBLANK_INT("screen", lucky8_irq)
62866294
62876295   /* 3x 8255 */
6288   MCFG_PPI8255_ADD( "ppi8255_0", lucky8_ppi8255_intf[0] )
6289   MCFG_PPI8255_ADD( "ppi8255_1", lucky8_ppi8255_intf[1] )
6290   MCFG_PPI8255_ADD( "ppi8255_2", lucky8_ppi8255_intf[2] )
6296   MCFG_I8255A_ADD( "ppi8255_0", lucky8_ppi8255_0_intf )
6297   MCFG_I8255A_ADD( "ppi8255_1", lucky8_ppi8255_1_intf )
6298   MCFG_I8255A_ADD( "ppi8255_2", lucky8_ppi8255_2_intf )
62916299
62926300   /* video hardware */
62936301   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
63246332   MCFG_CPU_VBLANK_INT("screen", lucky8_irq)
63256333
63266334   /* 3x 8255 */
6327   MCFG_PPI8255_ADD( "ppi8255_0", lucky8_ppi8255_intf[0] )
6328   MCFG_PPI8255_ADD( "ppi8255_1", lucky8_ppi8255_intf[1] )
6329   MCFG_PPI8255_ADD( "ppi8255_2", lucky8_ppi8255_intf[2] )
6335   MCFG_I8255A_ADD( "ppi8255_0", lucky8_ppi8255_0_intf )
6336   MCFG_I8255A_ADD( "ppi8255_1", lucky8_ppi8255_1_intf )
6337   MCFG_I8255A_ADD( "ppi8255_2", lucky8_ppi8255_2_intf )
63306338
63316339   /* video hardware */
63326340   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
63806388   MCFG_CPU_VBLANK_INT("screen", lucky8_irq)
63816389
63826390   /* 3x 8255 */
6383   MCFG_PPI8255_ADD( "ppi8255_0", lucky8_ppi8255_intf[0] )
6384   MCFG_PPI8255_ADD( "ppi8255_1", lucky8_ppi8255_intf[1] )
6385   MCFG_PPI8255_ADD( "ppi8255_2", lucky8_ppi8255_intf[2] )
6391   MCFG_I8255A_ADD( "ppi8255_0", lucky8_ppi8255_0_intf )
6392   MCFG_I8255A_ADD( "ppi8255_1", lucky8_ppi8255_1_intf )
6393   MCFG_I8255A_ADD( "ppi8255_2", lucky8_ppi8255_2_intf )
63866394
63876395   /* video hardware */
63886396   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
64216429
64226430
64236431   /* 3x 8255 */
6424   MCFG_PPI8255_ADD( "ppi8255_0", kkotnoli_ppi8255_intf[0] )
6425   MCFG_PPI8255_ADD( "ppi8255_1", kkotnoli_ppi8255_intf[1] )
6426   MCFG_PPI8255_ADD( "ppi8255_2", kkotnoli_ppi8255_intf[2] )
6432   MCFG_I8255A_ADD( "ppi8255_0", kkotnoli_ppi8255_0_intf )
6433   MCFG_I8255A_ADD( "ppi8255_1", kkotnoli_ppi8255_1_intf )
6434   MCFG_I8255A_ADD( "ppi8255_2", kkotnoli_ppi8255_2_intf )
64276435
64286436   /* video hardware */
64296437   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
64576465   MCFG_CPU_VBLANK_INT("screen", nmi_line_pulse)
64586466
64596467   /* 2x 8255 */
6460   MCFG_PPI8255_ADD( "ppi8255_0", ladylinr_ppi8255_intf[0] )
6461   MCFG_PPI8255_ADD( "ppi8255_1", ladylinr_ppi8255_intf[1] )
6468   MCFG_I8255A_ADD( "ppi8255_0", ladylinr_ppi8255_0_intf )
6469   MCFG_I8255A_ADD( "ppi8255_1", ladylinr_ppi8255_1_intf )
64626470
64636471   /* video hardware */
64646472   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
64966504   MCFG_CPU_VBLANK_INT("screen", nmi_line_pulse)
64976505
64986506   /* 3x 8255 */
6499   MCFG_PPI8255_ADD( "ppi8255_0", lucky8_ppi8255_intf[0] )
6500   MCFG_PPI8255_ADD( "ppi8255_1", lucky8_ppi8255_intf[1] )
6501   MCFG_PPI8255_ADD( "ppi8255_2", lucky8_ppi8255_intf[2] )
6507   MCFG_I8255A_ADD( "ppi8255_0", lucky8_ppi8255_0_intf )
6508   MCFG_I8255A_ADD( "ppi8255_1", lucky8_ppi8255_1_intf )
6509   MCFG_I8255A_ADD( "ppi8255_2", lucky8_ppi8255_2_intf )
65026510
65036511   /* video hardware */
65046512   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
65386546   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
65396547
65406548   /* 2x 8255 */
6541   MCFG_PPI8255_ADD( "ppi8255_0", cm_ppi8255_intf[0] )
6542   MCFG_PPI8255_ADD( "ppi8255_1", cm_ppi8255_intf[1] )
6549   MCFG_I8255A_ADD( "ppi8255_0", cm_ppi8255_0_intf )
6550   MCFG_I8255A_ADD( "ppi8255_1", cm_ppi8255_1_intf )
65436551
65446552   /* video hardware */
65456553   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
65776585   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
65786586
65796587   /* 2x 8255 */
6580   MCFG_PPI8255_ADD( "ppi8255_0", cm_ppi8255_intf[0] )
6581   MCFG_PPI8255_ADD( "ppi8255_1", cm_ppi8255_intf[1] )
6588   MCFG_I8255A_ADD( "ppi8255_0", cm_ppi8255_0_intf )
6589   MCFG_I8255A_ADD( "ppi8255_1", cm_ppi8255_1_intf )
65826590
65836591   /* video hardware */
65846592   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
66166624   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
66176625
66186626   /* 2x 8255 */
6619   MCFG_PPI8255_ADD( "ppi8255_0", cm_ppi8255_intf[0] )
6620   MCFG_PPI8255_ADD( "ppi8255_1", cm_ppi8255_intf[1] )
6627   MCFG_I8255A_ADD( "ppi8255_0", cm_ppi8255_0_intf )
6628   MCFG_I8255A_ADD( "ppi8255_1", cm_ppi8255_1_intf )
66216629
66226630   /* video hardware */
66236631   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
66506658   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
66516659
66526660   /* 2x 8255 */
6653   MCFG_PPI8255_ADD( "ppi8255_0", cm_ppi8255_intf[0] )
6654   MCFG_PPI8255_ADD( "ppi8255_1", cm_ppi8255_intf[1] )
6661   MCFG_I8255A_ADD( "ppi8255_0", cm_ppi8255_0_intf )
6662   MCFG_I8255A_ADD( "ppi8255_1", cm_ppi8255_1_intf )
66556663
66566664   /* video hardware */
66576665   MCFG_SCREEN_ADD("screen", RASTER)
r15176r15177
67296737   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
67306738
67316739   /* 2x 8255 */
6732   MCFG_PPI8255_ADD( "ppi8255_0", cm_ppi8255_intf[0] )
6733   MCFG_PPI8255_ADD( "ppi8255_1", cm_ppi8255_intf[1] )
6740   MCFG_I8255A_ADD( "ppi8255_0", cm_ppi8255_0_intf )
6741   MCFG_I8255A_ADD( "ppi8255_1", cm_ppi8255_1_intf )
67346742
67356743   /* video hardware */
67366744   MCFG_SCREEN_ADD("screen", RASTER)
src/mame/drivers/skylncr.c
r15176r15177
3535#include "emu.h"
3636#include "cpu/z80/z80.h"
3737#include "sound/ay8910.h"
38#include "machine/8255ppi.h"
38#include "machine/i8255.h"
3939#include "machine/nvram.h"
4040
4141
r15176r15177
420420static ADDRESS_MAP_START( io_map_skylncr, AS_IO, 8, skylncr_state )
421421   ADDRESS_MAP_GLOBAL_MASK(0xff)
422422
423   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
424   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* Input Ports */
423   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
424   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* Input Ports */
425425
426426   AM_RANGE(0x20, 0x20) AM_WRITE(skylncr_coin_w )
427427
r15176r15177
657657*       PPI 8255 (x2) Interface       *
658658**************************************/
659659
660static const ppi8255_interface ppi8255_intf[2] =
660static I8255A_INTERFACE( ppi8255_0_intf )
661661{
662   {   /* A, B & C set as input */
663      DEVCB_INPUT_PORT("IN1"),   /* Port A read */
664      DEVCB_INPUT_PORT("IN2"),   /* Port B read */
665      DEVCB_INPUT_PORT("DSW1"),   /* Port C read */
666      DEVCB_NULL,               /* Port A write */
667      DEVCB_NULL,               /* Port B write */
668      DEVCB_NULL               /* Port C write */
669   },
670   {   /* A, B & C set as input */
671      DEVCB_INPUT_PORT("DSW2"),   /* Port A read */
672      DEVCB_INPUT_PORT("IN3"),   /* Port B read */
673      DEVCB_INPUT_PORT("IN4"),   /* Port C read */
674      DEVCB_NULL,               /* Port A write */
675      DEVCB_NULL,               /* Port B write */
676      DEVCB_NULL               /* Port C write */
677   }
662   DEVCB_INPUT_PORT("IN1"),         /* Port A read */
663   DEVCB_NULL,                     /* Port A write */
664   DEVCB_INPUT_PORT("IN2"),         /* Port B read */
665   DEVCB_NULL,                     /* Port B write */
666   DEVCB_INPUT_PORT("DSW1"),         /* Port C read */
667   DEVCB_NULL                     /* Port C write */
678668};
679669
670static I8255A_INTERFACE( ppi8255_1_intf )
671{
672   DEVCB_INPUT_PORT("DSW2"),         /* Port A read */
673   DEVCB_NULL,                     /* Port A write */
674   DEVCB_INPUT_PORT("IN3"),         /* Port B read */
675   DEVCB_NULL,                     /* Port B write */
676   DEVCB_INPUT_PORT("IN4"),         /* Port C read */
677   DEVCB_NULL                     /* Port C write */
678};
680679
680
681681/**********************************
682682*       AY-3-8910 Interface       *
683683**********************************/
r15176r15177
716716   MCFG_NVRAM_ADD_0FILL("nvram")
717717
718718   /* 1x M5M82C255, or 2x PPI8255 */
719   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
720   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
719   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
720   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
721721
722722   /* video hardware */
723723   MCFG_SCREEN_ADD("screen", RASTER)
src/mame/drivers/bfm_sc4.c
r15176r15177
2859828598GAME( 200?, sc4crcpj   ,sc4crcp,   sc4, sc4, sc4mbus, ROT0, "BFM","Cops 'n' Robbers Club Platinum (Bellfruit) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL )
2859928599
2860028600// PR1348 CLUB COPS AND ROBBERS GOLD         PR1348 CCRG SOUNDS11         COPS AND ROBBERS
28601GAME( 200?, sc4crgc      ,0,         sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
28602GAME( 200?, sc4crgca   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
28603GAME( 200?, sc4crgcb   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL )
28604GAME( 200?, sc4crgcc   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )
28605GAME( 200?, sc4crgcd   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL )
28606GAME( 200?, sc4crgce   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 6)", GAME_IS_SKELETON_MECHANICAL )
28607GAME( 200?, sc4crgcf   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL )
28608GAME( 200?, sc4crgcg   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )
28609GAME( 200?, sc4crgch   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 9)", GAME_IS_SKELETON_MECHANICAL )
28610GAME( 200?, sc4crgci   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL )
28611GAME( 200?, sc4crgcj   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 11)", GAME_IS_SKELETON_MECHANICAL )
28612GAME( 200?, sc4crgck   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 12)", GAME_IS_SKELETON_MECHANICAL )
28613GAME( 200?, sc4crgcl   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 13)", GAME_IS_SKELETON_MECHANICAL )
28614GAME( 200?, sc4crgcm   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 14)", GAME_IS_SKELETON_MECHANICAL )
28615GAME( 200?, sc4crgco   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 15)", GAME_IS_SKELETON_MECHANICAL )
28616GAME( 200?, sc4crgcq   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 16)", GAME_IS_SKELETON_MECHANICAL )
28617GAME( 200?, sc4crgct   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 17)", GAME_IS_SKELETON_MECHANICAL )
28618GAME( 200?, sc4crgcw   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 18)", GAME_IS_SKELETON_MECHANICAL )
28601GAME( 2003, sc4crgc      ,0,         sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
28602GAME( 2003, sc4crgca   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 2)", GAME_IS_SKELETON_MECHANICAL )
28603GAME( 2003, sc4crgcb   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 3)", GAME_IS_SKELETON_MECHANICAL )
28604GAME( 2003, sc4crgcc   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 4)", GAME_IS_SKELETON_MECHANICAL )
28605GAME( 2003, sc4crgcd   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL )
28606GAME( 2003, sc4crgce   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 6)", GAME_IS_SKELETON_MECHANICAL )
28607GAME( 2003, sc4crgcf   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 7)", GAME_IS_SKELETON_MECHANICAL )
28608GAME( 2003, sc4crgcg   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 8)", GAME_IS_SKELETON_MECHANICAL )
28609GAME( 2003, sc4crgch   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 9)", GAME_IS_SKELETON_MECHANICAL )
28610GAME( 2003, sc4crgci   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 10)", GAME_IS_SKELETON_MECHANICAL )
28611GAME( 2003, sc4crgcj   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 11)", GAME_IS_SKELETON_MECHANICAL )
28612GAME( 2003, sc4crgck   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 12)", GAME_IS_SKELETON_MECHANICAL )
28613GAME( 2003, sc4crgcl   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 13)", GAME_IS_SKELETON_MECHANICAL )
28614GAME( 2003, sc4crgcm   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 14)", GAME_IS_SKELETON_MECHANICAL )
28615GAME( 2003, sc4crgco   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 15)", GAME_IS_SKELETON_MECHANICAL )
28616GAME( 2003, sc4crgcq   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 16)", GAME_IS_SKELETON_MECHANICAL )
28617GAME( 2003, sc4crgct   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 17)", GAME_IS_SKELETON_MECHANICAL )
28618GAME( 2003, sc4crgcw   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 18)", GAME_IS_SKELETON_MECHANICAL )
2861928619// PR1348 CLUB COPS AND ROBBERS GOLD         COPS & ROBRS GLD  CLUB  PR1348 CCRG SOUNDS11         COPS AND ROBBERS
28620GAME( 200?, sc4crgcn   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 19)", GAME_IS_SKELETON_MECHANICAL )
28621GAME( 200?, sc4crgcp   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 20)", GAME_IS_SKELETON_MECHANICAL )
28622GAME( 200?, sc4crgcr   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 21)", GAME_IS_SKELETON_MECHANICAL )
28623GAME( 200?, sc4crgcu   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 22)", GAME_IS_SKELETON_MECHANICAL )
28620GAME( 2003, sc4crgcn   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 19)", GAME_IS_SKELETON_MECHANICAL )
28621GAME( 2003, sc4crgcp   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 20)", GAME_IS_SKELETON_MECHANICAL )
28622GAME( 2003, sc4crgcr   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 21)", GAME_IS_SKELETON_MECHANICAL )
28623GAME( 2003, sc4crgcu   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 22)", GAME_IS_SKELETON_MECHANICAL )
2862428624// PR1348 !500 CLUB COPS AND ROBBERS GOLD         COPS & ROBRS GLD  CLUB  PR1348 CCRG SOUNDS11         COPS AND ROBBERS
28625GAME( 200?, sc4crgcs   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 23)", GAME_IS_SKELETON_MECHANICAL )
28626GAME( 200?, sc4crgcv   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 24)", GAME_IS_SKELETON_MECHANICAL )
28625GAME( 2003, sc4crgcs   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 23)", GAME_IS_SKELETON_MECHANICAL )
28626GAME( 2003, sc4crgcv   ,sc4crgc,   sc4, sc4, sc4, ROT0, "BFM","Cops 'n' Robbers Gold Club (Bellfruit) (Scorpion 4) (set 24)", GAME_IS_SKELETON_MECHANICAL )
2862728627
2862828628// PR2383 CLUBCORONATIONSTREET         CLUBCORONATIONST  CLUB  CCORO SOUNDS         CLUB CORO ST
2862928629GAME( 200?, sc4corcl   ,0,         sc4, sc4, sc4, ROT0, "Mazooma","Coronation Street Club (Mazooma) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )
src/mame/drivers/sfkick.c
r15176r15177
5454#include "emu.h"
5555#include "cpu/z80/z80.h"
5656#include "video/v9938.h"
57#include "machine/8255ppi.h"
57#include "machine/i8255.h"
5858#include "sound/2203intf.h"
5959
6060
r15176r15177
334334   ADDRESS_MAP_GLOBAL_MASK(0xff)
335335   AM_RANGE( 0xa0, 0xa7) AM_WRITE(soundlatch_byte_w )
336336   AM_RANGE( 0x98, 0x9b) AM_DEVREADWRITE( "v9938", v9938_device, read, write)
337   AM_RANGE( 0xa8, 0xab) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
337   AM_RANGE( 0xa8, 0xab) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
338338   AM_RANGE( 0xb4, 0xb5) AM_RAM /* loopback ? req by sfkicka (MSX Bios leftover)*/
339339ADDRESS_MAP_END
340340
r15176r15177
355355   state->m_input_mux=data;
356356}
357357
358static const ppi8255_interface ppi8255_intf =
358static I8255A_INTERFACE( ppi8255_intf )
359359{
360   DEVCB_NULL,
361   DEVCB_HANDLER(ppi_port_b_r),
362   DEVCB_NULL,
363   DEVCB_HANDLER(ppi_port_a_w),
364   DEVCB_NULL,
365   DEVCB_HANDLER(ppi_port_c_w)
366
360   DEVCB_NULL,                     /* Port A read */
361   DEVCB_HANDLER(ppi_port_a_w),      /* Port A write */
362   DEVCB_HANDLER(ppi_port_b_r),      /* Port B read */
363   DEVCB_NULL,                     /* Port B write */
364   DEVCB_NULL,                     /* Port C read */
365   DEVCB_HANDLER(ppi_port_c_w)         /* Port C write */
367366};
368367
368
369369static INPUT_PORTS_START( sfkick )
370370    PORT_START("IN0")
371371   PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) /* unused ? */
r15176r15177
494494
495495   MCFG_PALETTE_LENGTH(512)
496496
497   MCFG_PPI8255_ADD( "ppi8255", ppi8255_intf )
497   MCFG_I8255A_ADD( "ppi8255", ppi8255_intf )
498498
499499   MCFG_MACHINE_RESET(sfkick)
500500
src/mame/drivers/lordgun.c
r15176r15177
4141#include "emu.h"
4242#include "cpu/m68000/m68000.h"
4343#include "cpu/z80/z80.h"
44#include "machine/8255ppi.h"
44#include "machine/i8255.h"
4545#include "machine/eeprom.h"
4646#include "sound/3812intf.h"
4747#include "sound/okim6295.h"
r15176r15177
288288   AM_RANGE(0x503c00, 0x503c01) AM_READ(lordgun_gun_0_y_r)
289289   AM_RANGE(0x503e00, 0x503e01) AM_READ(lordgun_gun_1_y_r)
290290   AM_RANGE(0x504000, 0x504001) AM_WRITE(lordgun_soundlatch_w)
291   AM_RANGE(0x506000, 0x506007) AM_DEVREADWRITE8_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w, 0x00ff)
292   AM_RANGE(0x508000, 0x508007) AM_DEVREADWRITE8_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w, 0x00ff)
291   AM_RANGE(0x506000, 0x506007) AM_DEVREADWRITE8("ppi8255_0", i8255_device, read, write, 0x00ff)
292   AM_RANGE(0x508000, 0x508007) AM_DEVREADWRITE8("ppi8255_1", i8255_device, read, write, 0x00ff)
293293   AM_RANGE(0x50a900, 0x50a9ff) AM_RAM   // protection
294294ADDRESS_MAP_END
295295
r15176r15177
316316   AM_RANGE(0x502e00, 0x502e01) AM_WRITEONLY AM_SHARE("scroll_y.3")
317317   AM_RANGE(0x503000, 0x503001) AM_WRITE(lordgun_priority_w)
318318   AM_RANGE(0x504000, 0x504001) AM_WRITE(lordgun_soundlatch_w)
319   AM_RANGE(0x506000, 0x506007) AM_DEVREADWRITE8_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w, 0x00ff)
320   AM_RANGE(0x508000, 0x508007) AM_DEVREADWRITE8_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w, 0x00ff)
319   AM_RANGE(0x506000, 0x506007) AM_DEVREADWRITE8("ppi8255_0", i8255_device, read, write, 0x00ff)
320   AM_RANGE(0x508000, 0x508007) AM_DEVREADWRITE8("ppi8255_1", i8255_device, read, write, 0x00ff)
321321   AM_RANGE(0x50b900, 0x50b9ff) AM_RAM   // protection
322322ADDRESS_MAP_END
323323
r15176r15177
606606
607607***************************************************************************/
608608
609static const ppi8255_interface lordgun_ppi8255_intf[2] =
609static I8255A_INTERFACE( lordgun_ppi8255_0_intf )
610610{
611   {
612      DEVCB_INPUT_PORT("DIP"),      // Port A read
613      DEVCB_NULL,                  // Port B read
614      DEVCB_INPUT_PORT("SERVICE"),   // Port C read
615      DEVCB_HANDLER(fake_w),         // Port A write
616      DEVCB_HANDLER(lordgun_eeprom_w),// Port B write
617      DEVCB_HANDLER(fake2_w)         // Port C write
618   },
619   {
620      DEVCB_INPUT_PORT("START1"),      // Port A read
621      DEVCB_INPUT_PORT("START2"),      // Port B read
622      DEVCB_INPUT_PORT("COIN"),      // Port C read
623      DEVCB_HANDLER(fake_w),         // Port A write
624      DEVCB_HANDLER(fake_w),         // Port B write
625      DEVCB_HANDLER(fake_w)         // Port C write
626   }
611   DEVCB_INPUT_PORT("DIP"),         /* Port A read */
612   DEVCB_HANDLER(fake_w),            /* Port A write */
613   DEVCB_NULL,                     /* Port B read */
614   DEVCB_HANDLER(lordgun_eeprom_w),   /* Port B write */
615   DEVCB_INPUT_PORT("SERVICE"),      /* Port C read */
616   DEVCB_HANDLER(fake2_w)            /* Port C write */
627617};
628618
619static I8255A_INTERFACE( lordgun_ppi8255_1_intf )
620{
621   DEVCB_INPUT_PORT("START1"),         /* Port A read */
622   DEVCB_HANDLER(fake_w),            /* Port A write */
623   DEVCB_INPUT_PORT("START2"),         /* Port B read */
624   DEVCB_HANDLER(fake_w),            /* Port B write */
625   DEVCB_INPUT_PORT("COIN"),         /* Port C read */
626   DEVCB_HANDLER(fake_w)            /* Port C write */
627};
629628
630static const ppi8255_interface aliencha_ppi8255_intf[2] =
629static I8255A_INTERFACE( aliencha_ppi8255_0_intf )
631630{
632   {
633      DEVCB_HANDLER(aliencha_dip_r),      // Port A read
634      DEVCB_NULL,                     // Port B read
635      DEVCB_INPUT_PORT("SERVICE"),      // Port C read
636      DEVCB_HANDLER(fake2_w),            // Port A write
637      DEVCB_HANDLER(aliencha_eeprom_w),   // Port B write
638      DEVCB_HANDLER(aliencha_dip_w)      // Port C write
639   },
640   {
641      DEVCB_INPUT_PORT("P1"),            // Port A read
642      DEVCB_INPUT_PORT("P2"),            // Port B read
643      DEVCB_INPUT_PORT("COIN"),         // Port C read
644      DEVCB_HANDLER(fake_w),            // Port A write
645      DEVCB_HANDLER(fake_w),            // Port B write
646      DEVCB_HANDLER(fake_w)            // Port C write
647   }
631   DEVCB_HANDLER(aliencha_dip_r),      /* Port A read */
632   DEVCB_HANDLER(fake2_w),            /* Port A write */
633   DEVCB_NULL,                     /* Port B read */
634   DEVCB_HANDLER(aliencha_eeprom_w),   /* Port B write */
635   DEVCB_INPUT_PORT("SERVICE"),      /* Port C read */
636   DEVCB_HANDLER(aliencha_dip_w)      /* Port C write */
648637};
649638
639static I8255A_INTERFACE( aliencha_ppi8255_1_intf )
640{
641   DEVCB_INPUT_PORT("P1"),            /* Port A read */
642   DEVCB_HANDLER(fake_w),            /* Port A write */
643   DEVCB_INPUT_PORT("P2"),            /* Port B read */
644   DEVCB_HANDLER(fake_w),            /* Port B write */
645   DEVCB_INPUT_PORT("COIN"),         /* Port C read */
646   DEVCB_HANDLER(fake_w)            /* Port C write */
647};
648
649
650650static void soundirq(device_t *device, int state)
651651{
652652   cputag_set_input_line(device->machine(), "soundcpu", INPUT_LINE_IRQ0, state);
r15176r15177
666666   MCFG_CPU_PROGRAM_MAP(lordgun_soundmem_map)
667667   MCFG_CPU_IO_MAP(lordgun_soundio_map)
668668
669   MCFG_PPI8255_ADD( "ppi8255_0", lordgun_ppi8255_intf[0] )
670   MCFG_PPI8255_ADD( "ppi8255_1", lordgun_ppi8255_intf[1] )
669   MCFG_I8255A_ADD( "ppi8255_0", lordgun_ppi8255_0_intf )
670   MCFG_I8255A_ADD( "ppi8255_1", lordgun_ppi8255_1_intf )
671671
672672   MCFG_EEPROM_93C46_ADD("eeprom")
673673
r15176r15177
709709   MCFG_CPU_PROGRAM_MAP(lordgun_soundmem_map)
710710   MCFG_CPU_IO_MAP(aliencha_soundio_map)
711711
712   MCFG_PPI8255_ADD( "ppi8255_0", aliencha_ppi8255_intf[0] )
713   MCFG_PPI8255_ADD( "ppi8255_1", aliencha_ppi8255_intf[1] )
712   MCFG_I8255A_ADD( "ppi8255_0", aliencha_ppi8255_0_intf )
713   MCFG_I8255A_ADD( "ppi8255_1", aliencha_ppi8255_1_intf )
714714
715715   MCFG_EEPROM_93C46_ADD("eeprom")
716716
src/mame/drivers/segag80r.c
r15176r15177
111111#include "sound/samples.h"
112112#include "sound/sp0250.h"
113113#include "audio/segasnd.h"
114#include "machine/8255ppi.h"
114#include "machine/i8255.h"
115115#include "machine/segacrpt.h"
116116#include "machine/segag80.h"
117117#include "includes/segag80r.h"
r15176r15177
314314 *
315315 *************************************/
316316
317static const ppi8255_interface sindbadm_ppi_intf =
317static I8255A_INTERFACE( sindbadm_ppi_intf )
318318{
319   DEVCB_NULL,
320   DEVCB_INPUT_PORT("FC"),
321   DEVCB_NULL,
322   DEVCB_HANDLER(sindbadm_soundport_w),
323   DEVCB_NULL,
324   DEVCB_HANDLER(sindbadm_misc_w)
319   DEVCB_NULL,                        /* Port A read */
320   DEVCB_HANDLER(sindbadm_soundport_w),   /* Port A write */
321   DEVCB_INPUT_PORT("FC"),               /* Port B read */
322   DEVCB_NULL,                        /* Port B write */
323   DEVCB_NULL,                        /* Port C read */
324   DEVCB_HANDLER(sindbadm_misc_w)         /* Port C write */
325325};
326326
327327
328
329328/*************************************
330329 *
331330 *  Main CPU memory handlers
r15176r15177
354353
355354static ADDRESS_MAP_START( main_ppi8255_portmap, AS_IO, 8, segag80r_state )
356355   ADDRESS_MAP_GLOBAL_MASK(0xff)
357   AM_RANGE(0x0c, 0x0f) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
356   AM_RANGE(0x0c, 0x0f) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
358357   AM_RANGE(0xbe, 0xbf) AM_READWRITE(segag80r_video_port_r, segag80r_video_port_w)
359358   AM_RANGE(0xf9, 0xf9) AM_MIRROR(0x04) AM_WRITE(coin_count_w)
360359   AM_RANGE(0xf8, 0xfb) AM_READ(mangled_ports_r)
r15176r15177
365364static ADDRESS_MAP_START( sindbadm_portmap, AS_IO, 8, segag80r_state )
366365   ADDRESS_MAP_GLOBAL_MASK(0xff)
367366   AM_RANGE(0x42, 0x43) AM_READWRITE(segag80r_video_port_r, segag80r_video_port_w)
368   AM_RANGE(0x80, 0x83) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
367   AM_RANGE(0x80, 0x83) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
369368   AM_RANGE(0xf8, 0xfb) AM_READ(mangled_ports_r)
370369ADDRESS_MAP_END
371370
r15176r15177
918917   MCFG_CPU_IO_MAP(sindbadm_portmap)
919918   MCFG_CPU_VBLANK_INT("screen", sindbadm_vblank_start)
920919
921   MCFG_PPI8255_ADD( "ppi8255", sindbadm_ppi_intf )
920   MCFG_I8255A_ADD( "ppi8255", sindbadm_ppi_intf )
922921
923922   /* video hardware */
924923   MCFG_GFXDECODE(monsterb)
src/mame/drivers/raiden2.c
r15176r15177
11041104   sprcpt_init();
11051105   MACHINE_RESET_CALL(seibu_sound);
11061106
1107   state->membank("mainbank")->set_entry(1);
1107   //state->membank("mainbank")->set_entry(1);
11081108
11091109   //cop_init();
11101110}
src/mame/drivers/igs009.c
r15176r15177
1717
1818#include "emu.h"
1919#include "cpu/z180/z180.h"
20#include "machine/8255ppi.h"
20#include "machine/i8255.h"
2121#include "sound/2413intf.h"
2222#include "sound/okim6295.h"
2323#include "machine/nvram.h"
src/mame/drivers/model3.c
r15176r15177
51235123static const powerpc_config model3_10 =
51245124{
51255125   /* 603e, Stretch, 1.3 */
5126   66000000      /* Multiplier 1, Bus = 66MHz, Core = 66MHz */
5126   66000000,      /* Multiplier 1, Bus = 66MHz, Core = 66MHz */
5127   NULL,
5128   NULL
51275129};
51285130
51295131static const powerpc_config model3_15 =
51305132{
51315133   /* 603e, Stretch, 1.3 */
5132   66000000      /* Multiplier 1.5, Bus = 66MHz, Core = 100MHz */
5134   66000000,      /* Multiplier 1.5, Bus = 66MHz, Core = 100MHz */
5135   NULL,
5136   NULL
51335137};
51345138
51355139static const powerpc_config model3_2x =
51365140{
51375141   /* 603e-PID7t, Goldeneye, 2.1 */
5138   66000000      /* Multiplier 2.5, Bus = 66MHz, Core = 166MHz */
5142   66000000,      /* Multiplier 2.5, Bus = 66MHz, Core = 166MHz */
5143   NULL,
5144   NULL
51395145};
51405146
51415147static MACHINE_CONFIG_START( model3_10, model3_state )
src/mame/drivers/iqblock.c
r15176r15177
5252#include "emu.h"
5353#include "cpu/z80/z80.h"
5454#include "cpu/z180/z180.h"
55#include "machine/8255ppi.h"
55#include "machine/i8255.h"
5656#include "includes/iqblock.h"
5757#include "sound/2413intf.h"
5858
r15176r15177
113113   /* bit 7 could be a second coin counter, but coin 2 doesn't seem to work... */
114114}
115115
116static const ppi8255_interface ppi8255_intf =
116static I8255A_INTERFACE( ppi8255_intf )
117117{
118   DEVCB_INPUT_PORT("P1"),      /* Port A read */
119   DEVCB_INPUT_PORT("P2"),      /* Port B read */
120   DEVCB_INPUT_PORT("EXTRA"),   /* Port C read */
121   DEVCB_NULL,               /* Port A write */
122   DEVCB_NULL,               /* Port B write */
123   DEVCB_HANDLER(port_C_w)      /* Port C write */
118   DEVCB_INPUT_PORT("P1"),            /* Port A read */
119   DEVCB_NULL,                     /* Port A write */
120   DEVCB_INPUT_PORT("P2"),            /* Port B read */
121   DEVCB_NULL,                     /* Port B write */
122   DEVCB_INPUT_PORT("EXTRA"),         /* Port C read */
123   DEVCB_HANDLER(port_C_w)            /* Port C write */
124124};
125125
126126
r15176r15177
136136   AM_RANGE(0x6000, 0x603f) AM_WRITE(iqblock_fgscroll_w)
137137   AM_RANGE(0x6800, 0x69ff) AM_WRITE(iqblock_fgvideoram_w)   /* initialized up to 6fff... bug or larger tilemap? */
138138   AM_RANGE(0x7000, 0x7fff) AM_WRITE(iqblock_bgvideoram_w)
139   AM_RANGE(0x5080, 0x5083) AM_DEVWRITE_LEGACY("ppi8255", ppi8255_w)
140   AM_RANGE(0x5080, 0x5083) AM_DEVREAD_LEGACY("ppi8255", ppi8255_r)
139   AM_RANGE(0x5080, 0x5083) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
141140   AM_RANGE(0x5090, 0x5090) AM_READ_PORT("SW0")
142141   AM_RANGE(0x50a0, 0x50a0) AM_READ_PORT("SW1")
143142   AM_RANGE(0x50b0, 0x50b1) AM_DEVWRITE_LEGACY("ymsnd", ym2413_w) // UM3567_data_port_0_w
r15176r15177
279278   MCFG_CPU_IO_MAP(main_portmap)
280279   MCFG_TIMER_ADD_SCANLINE("scantimer", iqblock_irq, "screen", 0, 1)
281280
282   MCFG_PPI8255_ADD( "ppi8255", ppi8255_intf )
281   MCFG_I8255A_ADD( "ppi8255", ppi8255_intf )
283282
284283   /* video hardware */
285284   MCFG_SCREEN_ADD("screen", RASTER)
src/mame/drivers/cb2001.c
r15176r15177
4343#include "emu.h"
4444#include "cpu/nec/nec.h"
4545#include "sound/ay8910.h"
46#include "machine/8255ppi.h"
46#include "machine/i8255.h"
4747
4848
4949class cb2001_state : public driver_device
r15176r15177
564564ADDRESS_MAP_END
565565
566566static ADDRESS_MAP_START( cb2001_io, AS_IO, 16, cb2001_state )
567   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE8_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w, 0xffff)   /* Input Ports */
568   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE8_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w, 0xffff)   /* DIP switches */
567   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE8("ppi8255_0", i8255_device, read, write, 0xffff)   /* Input Ports */
568   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE8("ppi8255_1", i8255_device, read, write, 0xffff)   /* DIP switches */
569569   AM_RANGE(0x20, 0x21) AM_DEVREAD8_LEGACY("aysnd", ay8910_r, 0xff00)
570570   AM_RANGE(0x22, 0x23) AM_DEVWRITE8_LEGACY("aysnd", ay8910_data_address_w, 0xffff)
571571
r15176r15177
798798   }
799799}
800800
801static const ppi8255_interface cb2001_ppi8255_intf[2] =
801static I8255A_INTERFACE( ppi8255_0_intf )
802802{
803   {   /* A, B & C set as input */
804      DEVCB_INPUT_PORT("IN0"),   /* Port A read */
805      DEVCB_INPUT_PORT("IN1"),   /* Port B read */
806      DEVCB_INPUT_PORT("IN2"),   /* Port C read */
807      DEVCB_NULL,               /* Port A write */
808      DEVCB_NULL,               /* Port B write */
809      DEVCB_NULL               /* Port C write */
810   },
811   {   /* A, B & C set as input */
812      DEVCB_INPUT_PORT("DSW1"),   /* Port A read */
813      DEVCB_INPUT_PORT("DSW2"),   /* Port B read */
814      DEVCB_INPUT_PORT("DSW3"),   /* Port C read */
815      DEVCB_NULL,               /* Port A write */
816      DEVCB_NULL,               /* Port B write */
817      DEVCB_NULL               /* Port C write */
818   }
803   DEVCB_INPUT_PORT("IN0"),         /* Port A read */
804   DEVCB_NULL,                     /* Port A write */
805   DEVCB_INPUT_PORT("IN1"),         /* Port B read */
806   DEVCB_NULL,                     /* Port B write */
807   DEVCB_INPUT_PORT("IN2"),         /* Port C read */
808   DEVCB_NULL                     /* Port C write */
819809};
820810
811static I8255A_INTERFACE( ppi8255_1_intf )
812{
813   DEVCB_INPUT_PORT("DSW1"),         /* Port A read */
814   DEVCB_NULL,                     /* Port A write */
815   DEVCB_INPUT_PORT("DSW2"),         /* Port B read */
816   DEVCB_NULL,                     /* Port B write */
817   DEVCB_INPUT_PORT("DSW3"),         /* Port C read */
818   DEVCB_NULL                     /* Port C write */
819};
820
821821static const ay8910_interface cb2001_ay8910_config =
822822{
823823   AY8910_LEGACY_OUTPUT,
r15176r15177
829829};
830830
831831static const nec_config cb2001_config = { cb2001_decryption_table, };
832
832833static MACHINE_CONFIG_START( cb2001, cb2001_state )
833834   MCFG_CPU_ADD("maincpu", V35, 20000000) // CPU91A-011-0016JK004; encrypted cpu like nec v25/35 used in some irem game
834835   MCFG_CPU_CONFIG(cb2001_config)
r15176r15177
836837   MCFG_CPU_IO_MAP(cb2001_io)
837838   MCFG_CPU_VBLANK_INT("screen", vblank_irq)
838839
839   MCFG_PPI8255_ADD( "ppi8255_0", cb2001_ppi8255_intf[0] )
840   MCFG_PPI8255_ADD( "ppi8255_1", cb2001_ppi8255_intf[1] )
840   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
841   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
841842
842843   MCFG_GFXDECODE(cb2001)
843844
src/mame/drivers/skullxbo.c
r15176r15177
149149   AM_RANGE(0xff5802, 0xff5803) AM_READ(special_port1_r)
150150   AM_RANGE(0xff6000, 0xff6fff) AM_READ_LEGACY(atarigen_eeprom_r)
151151   AM_RANGE(0xff8000, 0xff9fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_latched_lsb_w) AM_SHARE("playfield")
152   AM_RANGE(0xffa000, 0xffbfff) AM_RAM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_upper")
152   AM_RANGE(0xffa000, 0xffbfff) AM_RAM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_up")
153153   AM_RANGE(0xffc000, 0xffcf7f) AM_RAM_WRITE_LEGACY(atarigen_alpha_w) AM_SHARE("alpha")
154154   AM_RANGE(0xffcf80, 0xffcfff) AM_READWRITE_LEGACY(atarimo_0_slipram_r, atarimo_0_slipram_w)
155155   AM_RANGE(0xffd000, 0xffdfff) AM_READWRITE_LEGACY(atarimo_0_spriteram_r, atarimo_0_spriteram_w)
src/mame/drivers/epos.c
r15176r15177
3030
3131#include "emu.h"
3232#include "cpu/z80/z80.h"
33#include "machine/8255ppi.h"
33#include "machine/i8255.h"
3434#include "sound/ay8910.h"
3535#include "includes/epos.h"
3636
r15176r15177
8787
8888static ADDRESS_MAP_START( dealer_io_map, AS_IO, 8, epos_state )
8989   ADDRESS_MAP_GLOBAL_MASK(0xff)
90   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
90   AM_RANGE(0x10, 0x13) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
9191   AM_RANGE(0x20, 0x24) AM_WRITE(dealer_decrypt_rom)
9292   AM_RANGE(0x34, 0x34) AM_DEVWRITE_LEGACY("aysnd", ay8910_data_w)
9393   AM_RANGE(0x38, 0x38) AM_READ_PORT("DSW")
r15176r15177
106106   device->machine().root_device().membank("bank2")->set_entry(data & 0x01);
107107}
108108
109static const ppi8255_interface ppi8255_intf =
109static I8255A_INTERFACE( ppi8255_intf )
110110{
111111   DEVCB_INPUT_PORT("INPUTS"),      /* Port A read */
112   DEVCB_NULL,                  /* Port A write */
112113   DEVCB_NULL,                  /* Port B read */
114   DEVCB_NULL,                  /* Port B write */
113115   DEVCB_NULL,                  /* Port C read */
114   DEVCB_NULL,                  /* Port A write */
115   DEVCB_NULL,                  /* Port B write */
116   DEVCB_HANDLER(write_prtc),      /* Port C write */
116   DEVCB_HANDLER(write_prtc)      /* Port C write */
117117};
118118
119
119120/*************************************
120121 *
121122 *  Port definitions
r15176r15177
427428   MCFG_CPU_IO_MAP(dealer_io_map)
428429   MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
429430
430   MCFG_PPI8255_ADD( "ppi8255", ppi8255_intf )
431   MCFG_I8255A_ADD( "ppi8255", ppi8255_intf )
431432
432433   MCFG_MACHINE_START(dealer)
433434   MCFG_MACHINE_RESET(epos)
src/mame/drivers/subsino.c
r15176r15177
212212
213213#include "emu.h"
214214#include "cpu/z180/z180.h"
215#include "machine/8255ppi.h"
215#include "machine/i8255.h"
216216#include "machine/subsino.h"
217217#include "sound/okim6295.h"
218218#include "sound/2413intf.h"
src/mame/drivers/alpha68k.c
r15176r15177
238238
239239READ16_MEMBER(alpha68k_state::control_1_r)
240240{
241
242241   if (m_invert_controls)
243242      return ~(ioport("IN0")->read() + (ioport("IN1")->read() << 8));
244243
245   return (ioport("IN1")->read() << 8);
244   return ioport("IN0")->read() + (ioport("IN1")->read() << 8);
246245}
247246
248247READ16_MEMBER(alpha68k_state::control_2_r)
249248{
250
251249   if (m_invert_controls)
252250      return ~(ioport("IN3")->read() + ((~(1 << ioport("IN5")->read())) << 8));
253251
r15176r15177
262260
263261READ16_MEMBER(alpha68k_state::control_3_r)
264262{
265
266263   if (m_invert_controls)
267264      return ~(((~(1 << ioport("IN6")->read())) << 8) & 0xff00);
268265
r15176r15177
272269/* High 4 bits of CN1 & CN2 */
273270READ16_MEMBER(alpha68k_state::control_4_r)
274271{
275
276272   if (m_invert_controls)
277273      return ~((((~(1 << ioport("IN6")->read())) << 4) & 0xf000)
278274       + (((~(1 << ioport("IN5")->read()))) & 0x0f00));
r15176r15177
316312//AT
317313WRITE16_MEMBER(alpha68k_state::paddlema_soundlatch_w)
318314{
319
320315   if (ACCESSING_BITS_0_7)
321316   {
322317      soundlatch_byte_w(space, 0, data);
r15176r15177
326321
327322WRITE16_MEMBER(alpha68k_state::tnextspc_soundlatch_w)
328323{
329
330324   if (ACCESSING_BITS_0_7)
331325   {
332326      soundlatch_byte_w(space, 0, data);
r15176r15177
18281822
18291823WRITE8_MEMBER(alpha68k_state::porta_w)
18301824{
1831
18321825   if(data == 0xff)
18331826      return; // skip
18341827
src/mame/drivers/tcl.c
r15176r15177
4242
4343#include "emu.h"
4444#include "cpu/z80/z80.h"
45#include "machine/8255ppi.h"
45#include "machine/i8255.h"
4646#include "sound/ay8910.h"
4747
4848
r15176r15177
100100   GFXDECODE_ENTRY( "gfx2", 0, charlayout2,     0, 16 ) /* wrong */
101101GFXDECODE_END
102102
103static const ppi8255_interface ppi8255_intf[2] =
103static I8255A_INTERFACE( ppi8255_0_intf )
104104{
105   {
106      DEVCB_NULL,
107      DEVCB_NULL,
108      DEVCB_NULL,
109      DEVCB_NULL,
110      DEVCB_NULL,
111      DEVCB_NULL
112   },
113   {
114      DEVCB_NULL,
115      DEVCB_NULL,
116      DEVCB_NULL,
117      DEVCB_NULL,
118      DEVCB_NULL,
119      DEVCB_NULL
120   }
105   DEVCB_NULL,                     /* Port A read */
106   DEVCB_NULL,                     /* Port A write */
107   DEVCB_NULL,                     /* Port B read */
108   DEVCB_NULL,                     /* Port B write */
109   DEVCB_NULL,                     /* Port C read */
110   DEVCB_NULL,                     /* Port C write */
121111};
122112
113static I8255A_INTERFACE( ppi8255_1_intf )
114{
115   DEVCB_NULL,                     /* Port A read */
116   DEVCB_NULL,                     /* Port A write */
117   DEVCB_NULL,                     /* Port B read */
118   DEVCB_NULL,                     /* Port B write */
119   DEVCB_NULL,                     /* Port C read */
120   DEVCB_NULL,                     /* Port C write */
121};
123122
123
124124static MACHINE_CONFIG_START( tcl, tcl_state )
125125
126126   /* basic machine hardware */
r15176r15177
140140
141141   MCFG_VIDEO_START(tcl)
142142
143   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
144   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
143   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
144   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
145145
146146   /* sound hardware */
147147   MCFG_SPEAKER_STANDARD_MONO("mono")
src/mame/drivers/taitopjc.c
r15176r15177
398398
399399static const powerpc_config ppc603e_config =
400400{
401   XTAL_66_6667MHz      /* Multiplier 1.5, Bus = 66MHz, Core = 100MHz */
401   XTAL_66_6667MHz,      /* Multiplier 1.5, Bus = 66MHz, Core = 100MHz */
402   NULL,
403   NULL
402404};
403405
404406static const tlcs900_interface taitopjc_tlcs900_interface =
src/mame/drivers/clayshoo.c
r15176r15177
1414
1515#include "emu.h"
1616#include "cpu/z80/z80.h"
17#include "machine/8255ppi.h"
17#include "machine/i8255.h"
1818
1919
2020class clayshoo_state : public driver_device
r15176r15177
144144 *
145145 *************************************/
146146
147static const ppi8255_interface ppi8255_intf[2] =
147static I8255A_INTERFACE( ppi8255_0_intf )
148148{
149   {
150      DEVCB_NULL,               /* Port A read */
151      DEVCB_NULL,               /* Port B read */
152      DEVCB_NULL,               /* Port C read */
153      DEVCB_NULL,               /* Port A write */
154      DEVCB_NULL,               /* Port B write */
155      DEVCB_NULL               /* Port C write */
156   },
157   {
158      DEVCB_NULL,               /* Port A read */
159      DEVCB_HANDLER(input_port_r),/* Port B read */
160      DEVCB_NULL,               /* Port C read */
161      DEVCB_HANDLER(input_port_select_w),   /* Port A write */
162      DEVCB_NULL,               /* Port B write */
163      DEVCB_NULL               /* sound effects, Port C write */
164   }
149   DEVCB_NULL,                     /* Port A read */
150   DEVCB_NULL,                     /* Port A write */
151   DEVCB_NULL,                     /* Port B read */
152   DEVCB_NULL,                     /* Port B write */
153   DEVCB_NULL,                     /* Port C read */
154   DEVCB_NULL                     /* Port C write */
165155};
166156
157static I8255A_INTERFACE( ppi8255_1_intf )
158{
159   DEVCB_NULL,                     /* Port A read */
160   DEVCB_HANDLER(input_port_select_w),   /* Port A write */
161   DEVCB_HANDLER(input_port_r),      /* Port B read */
162   DEVCB_NULL,                     /* Port B write */
163   DEVCB_NULL,                     /* Port C read */
164   DEVCB_NULL                     /* Port C write */
165};
167166
168167static MACHINE_START( clayshoo )
169168{
r15176r15177
236235static ADDRESS_MAP_START( main_io_map, AS_IO, 8, clayshoo_state )
237236   ADDRESS_MAP_GLOBAL_MASK(0xff)
238237   AM_RANGE(0x00, 0x00) AM_WRITE(watchdog_reset_w)
239   AM_RANGE(0x20, 0x23) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
240   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
238   AM_RANGE(0x20, 0x23) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
239   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
241240ADDRESS_MAP_END
242241
243242
r15176r15177
340339   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
341340   MCFG_SCREEN_UPDATE_STATIC(clayshoo)
342341
343   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
344   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
342   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
343   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
345344MACHINE_CONFIG_END
346345
347346
src/mame/drivers/ghosteo.c
r15176r15177
5858//#include "machine/smartmed.h"
5959#include "machine/i2cmem.h"
6060
61#define NAND_LOG 0
6162
6263enum nand_mode_t
6364{
r15176r15177
8788   struct nand_t m_nand;
8889   DECLARE_WRITE32_MEMBER(sound_w);
8990   DECLARE_READ32_MEMBER(bballoon_speedup_r);
91
92   int m_rom_pagesize;
9093};
9194
9295
r15176r15177
159162         // 0 -> 1
160163         if (((data & 0x10) != 0) && ((old_value & 0x10) == 0))
161164         {
165            #if NAND_LOG
162166            logerror( "security_count %d -> %d\n", state->m_security_count, state->m_security_count + 1);
167            #endif
163168            state->m_security_count++;
164169            if (state->m_security_count > 7) state->m_security_count = 0;
165170         }
r15176r15177
201206   ghosteo_state *state = device->machine().driver_data<ghosteo_state>();
202207   struct nand_t &nand = state->m_nand;
203208//  device_t *nand = device->machine().device( "nand");
209   #if NAND_LOG
204210   logerror( "s3c2410_nand_command_w %02X\n", data);
211   #endif
205212   switch (data)
206213   {
207214      case 0xFF :
r15176r15177
225232   ghosteo_state *state = device->machine().driver_data<ghosteo_state>();
226233   struct nand_t &nand = state->m_nand;
227234//  device_t *nand = device->machine().device( "nand");
235   #if NAND_LOG
228236   logerror( "s3c2410_nand_address_w %02X\n", data);
237   #endif
229238   switch (nand.mode)
230239   {
231240      case NAND_M_INIT :
r15176r15177
270279      case NAND_M_READ :
271280      {
272281         UINT8 *flash = (UINT8 *)device->machine().root_device().memregion( "user1")->base();
273         if (nand.byte_addr < 0x200)
282         if (nand.byte_addr < state->m_rom_pagesize)
274283         {
275            data = *(flash + nand.page_addr * 0x200 + nand.byte_addr);
284            data = *(flash + nand.page_addr * state->m_rom_pagesize + nand.byte_addr);
276285         }
277286         else
278287         {
r15176r15177
297306      }
298307      break;
299308   }
309   #if NAND_LOG
300310   logerror( "s3c2410_nand_data_r %02X\n", data);
311   #endif
301312   return data;
302313}
303314
304315static WRITE8_DEVICE_HANDLER( s3c2410_nand_data_w )
305316{
306317//  device_t *nand = device->machine().device( "nand");
318   #if NAND_LOG
307319   logerror( "s3c2410_nand_data_w %02X\n", data);
320   #endif
308321}
309322
310323// I2C
r15176r15177
574587   ROM_LOAD( "qs1001a.u17",  0x000000, 0x80000, CRC(d13c6407) SHA1(57b14f97c7d4f9b5d9745d3571a0b7115fbe3176) )
575588ROM_END
576589
590
591ROM_START( touryuu )
592   ROM_REGION( 0x4200000, "user1", 0 ) /* ARM 32 bit code */
593   ROM_LOAD( "u1.bin",     0x000000, 0x4200000, CRC(49b6856e) SHA1(639123d2fabac4e79c9315fb87f72b13f9ae8761) )
594
595   // banked every 0x10000 bytes ?
596   ROM_REGION( 0x080000, "user2", 0 )
597   ROM_LOAD( "4m.eeprom_c.s(bad1h).u20",       0x000000, 0x080000, CRC(f81a6530) SHA1(c7fa412102328d06823e73d7d07cadfc25db6d28) )
598
599   ROM_REGION( 0x100000, "sfx", 0 ) /* QDSP samples (SFX) */
600   ROM_LOAD( "8m.eprom_c.s(f8b1h).u16",       0x000000, 0x100000, CRC(238a85ab) SHA1(ddd79429c0c1e67fcbca1e4ebded97ea46229f0b) )
601
602   ROM_REGION( 0x080000, "wavetable", 0 ) /* QDSP wavetable rom */
603   ROM_LOAD( "qs1001a.u17",  0x000000, 0x80000, CRC(d13c6407) SHA1(57b14f97c7d4f9b5d9745d3571a0b7115fbe3176) )
604ROM_END
605
577606static DRIVER_INIT( bballoon )
578607{
608   ghosteo_state *state = machine.driver_data<ghosteo_state>();
609   state->m_rom_pagesize = 0x200; // extra data is missing from the FLASH dumps and needs to be simulated
579610}
580611
612static DRIVER_INIT( touryuu )
613{
614   ghosteo_state *state = machine.driver_data<ghosteo_state>();
615   state->m_rom_pagesize = 0x210;
616}
617
581618GAME( 2003, bballoon, 0, bballoon, bballoon, bballoon, ROT0, "Eolith", "BnB Arcade", GAME_NO_SOUND )
582619GAME( 2005, hapytour, 0, bballoon, bballoon, bballoon, ROT0, "GAV Company", "Happy Tour", GAME_NO_SOUND )
620GAME( 200?, touryuu,  0, bballoon, bballoon, touryuu, ROT0, "Yuki Enterprise", "Touryuumon (V1.1)?", GAME_NOT_WORKING | GAME_NO_SOUND ) // no inputs, boots to test mode first time, endless reboot loop after that
src/mame/drivers/batman.c
r15176r15177
145145   AM_RANGE(0x3effc0, 0x3effff) AM_MIRROR(0x100000) AM_READWRITE(batman_atarivc_r, batman_atarivc_w) AM_SHARE("atarivc_data")
146146   AM_RANGE(0x3f0000, 0x3f1fff) AM_MIRROR(0x100000) AM_WRITE_LEGACY(atarigen_playfield2_latched_msb_w) AM_SHARE("playfield2")
147147   AM_RANGE(0x3f2000, 0x3f3fff) AM_MIRROR(0x100000) AM_WRITE_LEGACY(atarigen_playfield_latched_lsb_w) AM_SHARE("playfield")
148   AM_RANGE(0x3f4000, 0x3f5fff) AM_MIRROR(0x100000) AM_WRITE_LEGACY(atarigen_playfield_dual_upper_w) AM_SHARE("playfield_upper")
148   AM_RANGE(0x3f4000, 0x3f5fff) AM_MIRROR(0x100000) AM_WRITE_LEGACY(atarigen_playfield_dual_upper_w) AM_SHARE("playfield_up")
149149   AM_RANGE(0x3f6000, 0x3f7fff) AM_MIRROR(0x100000) AM_READWRITE_LEGACY(atarimo_0_spriteram_r, atarimo_0_spriteram_w)
150150   AM_RANGE(0x3f8000, 0x3f8eff) AM_MIRROR(0x100000) AM_WRITE_LEGACY(atarigen_alpha_w) AM_SHARE("alpha")
151151   AM_RANGE(0x3f8f00, 0x3f8f7f) AM_MIRROR(0x100000) AM_SHARE("atarivc_eof")
src/mame/drivers/gatron.c
r15176r15177
229229#include "emu.h"
230230#include "cpu/z80/z80.h"
231231#include "sound/sn76496.h"
232#include "machine/8255ppi.h"
232#include "machine/i8255.h"
233233#include "machine/nvram.h"
234234#include "poker41.lh"
235235#include "pulltabs.lh"
r15176r15177
322322*      Machine Init      *
323323*************************/
324324
325static const ppi8255_interface ppi8255_intf =
325static I8255A_INTERFACE( ppi8255_intf )
326326{
327327   DEVCB_INPUT_PORT("IN0"),      /* Port A read */
328   DEVCB_NULL,                  /* Port A write */
328329   DEVCB_INPUT_PORT("IN1"),      /* Port B read */
330   DEVCB_NULL,                  /* Port B write */
329331   DEVCB_NULL,                  /* Port C read */
330   DEVCB_NULL,                  /* Port A write */
331   DEVCB_NULL,                  /* Port B write */
332   DEVCB_HANDLER(output_port_1_w),   /* Port C write */
332   DEVCB_HANDLER(output_port_1_w)   /* Port C write */
333333};
334334
335335
r15176r15177
347347
348348static ADDRESS_MAP_START( gat_portmap, AS_IO, 8, gatron_state )
349349   ADDRESS_MAP_GLOBAL_MASK(0xff)
350   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
350   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
351351ADDRESS_MAP_END
352352
353353
r15176r15177
442442
443443   MCFG_NVRAM_ADD_0FILL("nvram")
444444
445   MCFG_PPI8255_ADD( "ppi8255", ppi8255_intf )
445   MCFG_I8255A_ADD( "ppi8255", ppi8255_intf )
446446
447447   /* video hardware */
448448   MCFG_SCREEN_ADD("screen", RASTER)
src/mame/drivers/40love.c
r15176r15177
3131I dont have the wiring harness for this board, so dont know if it works.
3232One GFX ROM is bad though.
3333See A30-26.u23\A30-26.txt for details about the bad ROM.
34To summarise:
35  Dumps from GFX ROM A30-26.u23 were inconsistent. Reads with checksums
36  41A3 and 415F occured a couple of times, and the difference is one byte
37  at offset $0004 (data $CC or $88). Maybe one of these reads is correct
38  or closest to the real ROM. We are using the one with checksum 415F,
39  the other one makes one sprite looks worse.
3440
3541This is a four board system - Main, Video, ROM, and Sound boards.
3642
r15176r15177
11961202
11971203   ROM_REGION( 0x8000, "gfx1", 0 )
11981204   ROM_LOAD( "a30-25.u22", 0x0000, 0x2000, CRC(15e594cf) SHA1(d2d506a55f6ac2c191e5d5b3127021cde366c71c) )
1199   ROM_LOAD( "415f.26", 0x2000, 0x2000, BAD_DUMP CRC(3a45a205) SHA1(0939ecaabbb9be2a0719ef252e3f244299734ba6)  )   /* this actually seems good, but we need to find another one to verify */
1205   ROM_LOAD( "a30-26.u23", 0x2000, 0x2000, BAD_DUMP CRC(3a45a205) SHA1(0939ecaabbb9be2a0719ef252e3f244299734ba6)  )   /* this actually seems good, but we need to find another one to verify */
12001206   ROM_LOAD( "a30-27.u24", 0x4000, 0x2000, CRC(57c67f6f) SHA1(293e5bfa7c859886abd70f78fe2e4b13a3fce3f5) )
12011207   ROM_LOAD( "a30-28.u25", 0x6000, 0x2000, CRC(d581d067) SHA1(ce132cf2503917f0846b838c6ce4ad4183181bf9) )
12021208
src/mame/drivers/tx1.c
r15176r15177
4141#include "emu.h"
4242#include "cpu/z80/z80.h"
4343#include "cpu/i86/i86.h"
44#include "machine/8255ppi.h"
44#include "machine/i8255.h"
4545#include "sound/ay8910.h"
4646#include "rendlay.h"
4747#include "includes/tx1.h"
r15176r15177
467467 *************************************/
468468
469469/* Buggy Boy uses an 8255 PPI instead of YM2149 ports for inputs! */
470static const ppi8255_interface buggyboy_ppi8255_intf =
470static I8255A_INTERFACE( buggyboy_ppi8255_intf )
471471{
472   DEVCB_INPUT_PORT("PPI_PORTA"),
473   DEVCB_NULL,
474   DEVCB_INPUT_PORT("PPI_PORTC"),
475   DEVCB_NULL,
476   DEVCB_HANDLER(bb_coin_cnt_w),
477   DEVCB_NULL,
472   DEVCB_INPUT_PORT("PPI_PORTA"),      /* Port A read */
473   DEVCB_NULL,                     /* Port A write */
474   DEVCB_NULL,                     /* Port B read */
475   DEVCB_HANDLER(bb_coin_cnt_w),      /* Port B write */
476   DEVCB_INPUT_PORT("PPI_PORTC"),      /* Port C read */
477   DEVCB_NULL                     /* Port C write */
478478};
479479
480
481static const ppi8255_interface tx1_ppi8255_intf =
480static I8255A_INTERFACE( tx1_ppi8255_intf )
482481{
483   DEVCB_HANDLER(tx1_ppi_porta_r),
484   DEVCB_HANDLER(tx1_ppi_portb_r),
485   DEVCB_INPUT_PORT("PPI_PORTC"),
486   DEVCB_NULL,
487   DEVCB_NULL,
488   DEVCB_HANDLER(tx1_coin_cnt_w)
482   DEVCB_HANDLER(tx1_ppi_porta_r),      /* Port A read */
483   DEVCB_NULL,                     /* Port A write */
484   DEVCB_HANDLER(tx1_ppi_portb_r),      /* Port B read */
485   DEVCB_NULL,                     /* Port B write */
486   DEVCB_INPUT_PORT("PPI_PORTC"),      /* Port C read */
487   DEVCB_HANDLER(tx1_coin_cnt_w)      /* Port C write */
489488};
490489
491490
r15176r15177
530529   AM_RANGE(0x0000, 0x1fff) AM_ROM
531530   AM_RANGE(0x3000, 0x37ff) AM_RAM AM_MIRROR(0x800) AM_SHARE("z80_ram")
532531   AM_RANGE(0x4000, 0x4000) AM_WRITE(z80_intreq_w)
533   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
532   AM_RANGE(0x5000, 0x5003) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
534533   AM_RANGE(0x6000, 0x6003) AM_DEVREADWRITE_LEGACY("tx1", tx1_pit8253_r, tx1_pit8253_w)
535534   AM_RANGE(0x7000, 0x7fff) AM_WRITE(tx1_ppi_latch_w)
536535   AM_RANGE(0xb000, 0xbfff) AM_READWRITE(ts_r, ts_w)
r15176r15177
597596   AM_RANGE(0x0000, 0x3fff) AM_ROM
598597   AM_RANGE(0x4000, 0x47ff) AM_RAM AM_SHARE("z80_ram")
599598   AM_RANGE(0x6000, 0x6001) AM_READ(bb_analog_r)
600   AM_RANGE(0x6800, 0x6803) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
599   AM_RANGE(0x6800, 0x6803) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
601600   AM_RANGE(0x7000, 0x7003) AM_DEVREADWRITE_LEGACY("buggyboy", tx1_pit8253_r, tx1_pit8253_w)
602601   AM_RANGE(0x7800, 0x7800) AM_WRITE(z80_intreq_w)
603602   AM_RANGE(0xc000, 0xc7ff) AM_READWRITE(ts_r, ts_w)
r15176r15177
706705   MCFG_MACHINE_RESET(tx1)
707706   MCFG_NVRAM_ADD_0FILL("nvram")
708707
709   MCFG_PPI8255_ADD("ppi8255", tx1_ppi8255_intf)
708   MCFG_I8255A_ADD("ppi8255", tx1_ppi8255_intf)
710709
711710   MCFG_PALETTE_LENGTH(256)
712711   MCFG_PALETTE_INIT(tx1)
r15176r15177
758757   MCFG_MACHINE_RESET(buggyboy)
759758   MCFG_NVRAM_ADD_0FILL("nvram")
760759
761   MCFG_PPI8255_ADD("ppi8255", buggyboy_ppi8255_intf)
760   MCFG_I8255A_ADD("ppi8255", buggyboy_ppi8255_intf)
762761
763762   MCFG_DEFAULT_LAYOUT(layout_triphsxs)
764763
src/mame/drivers/merit.c
r15176r15177
4040
4141#include "emu.h"
4242#include "cpu/z80/z80.h"
43#include "machine/8255ppi.h"
43#include "machine/i8255.h"
4444#include "sound/ay8910.h"
4545#include "video/mc6845.h"
4646#include "machine/nvram.h"
r15176r15177
357357static ADDRESS_MAP_START( pitboss_map, AS_PROGRAM, 8, merit_state )
358358   AM_RANGE(0x0000, 0x5fff) AM_ROM
359359   AM_RANGE(0x6000, 0x67ff) AM_RAM
360   AM_RANGE(0xa000, 0xa003) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
361   AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
360   AM_RANGE(0xa000, 0xa003) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
361   AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
362362   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("crtc", mc6845_device, address_w)
363363   AM_RANGE(0xe001, 0xe001) AM_DEVWRITE("crtc", mc6845_device, register_w)
364364   AM_RANGE(0xe800, 0xefff) AM_RAM AM_SHARE("raattr")
r15176r15177
373373   AM_RANGE(0x6000, 0x6fff) AM_RAM AM_SHARE("nvram")
374374   AM_RANGE(0x7000, 0x7000) AM_WRITE(casino5_bank_w)
375375   AM_RANGE(0x7001, 0x7fff) AM_RAM
376   AM_RANGE(0xa000, 0xa003) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
377   AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
376   AM_RANGE(0xa000, 0xa003) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
377   AM_RANGE(0xc000, 0xc003) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
378378   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("crtc", mc6845_device, address_w)
379379   AM_RANGE(0xe001, 0xe001) AM_DEVWRITE("crtc", mc6845_device, register_w)
380380   AM_RANGE(0xe800, 0xefff) AM_RAM AM_SHARE("raattr")
r15176r15177
385385static ADDRESS_MAP_START( bigappg_map, AS_PROGRAM, 8, merit_state )
386386   AM_RANGE(0x0000, 0x7fff) AM_ROM
387387   AM_RANGE(0xa000, 0xbfff) AM_RAM AM_SHARE("nvram")
388   AM_RANGE(0xc004, 0xc007) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
389   AM_RANGE(0xc008, 0xc00b) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
388   AM_RANGE(0xc004, 0xc007) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
389   AM_RANGE(0xc008, 0xc00b) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
390390   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("crtc", mc6845_device, address_w)
391391   AM_RANGE(0xe001, 0xe001) AM_DEVWRITE("crtc", mc6845_device, register_w)
392392   AM_RANGE(0xe800, 0xefff) AM_RAM AM_SHARE("raattr")
r15176r15177
397397static ADDRESS_MAP_START( dodge_map, AS_PROGRAM, 8, merit_state )
398398   AM_RANGE(0x0000, 0x7fff) AM_ROM
399399   AM_RANGE(0xa000, 0xbfff) AM_RAM AM_SHARE("nvram")
400   AM_RANGE(0xc004, 0xc007) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
401   AM_RANGE(0xc008, 0xc00b) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
400   AM_RANGE(0xc004, 0xc007) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
401   AM_RANGE(0xc008, 0xc00b) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
402402   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("crtc", mc6845_device, address_w)
403403   AM_RANGE(0xe001, 0xe001) AM_DEVWRITE("crtc", mc6845_device, register_w)
404404   AM_RANGE(0xe800, 0xefff) AM_RAM AM_SHARE("raattr")
r15176r15177
417417   AM_RANGE(0x5400, 0x54ff) AM_WRITE(low_offset_w)
418418   AM_RANGE(0x5800, 0x58ff) AM_WRITE(med_offset_w)
419419   AM_RANGE(0x6000, 0x67ff) AM_RAM
420   AM_RANGE(0xa000, 0xa003) AM_MIRROR(0x1df0) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
421   AM_RANGE(0xc000, 0xc003) AM_MIRROR(0x1df0) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
420   AM_RANGE(0xa000, 0xa003) AM_MIRROR(0x1df0) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
421   AM_RANGE(0xc000, 0xc003) AM_MIRROR(0x1df0) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
422422   AM_RANGE(0xe000, 0xe000) AM_MIRROR(0x05f0) AM_DEVWRITE("crtc", mc6845_device, address_w)
423423   AM_RANGE(0xe001, 0xe001) AM_MIRROR(0x05f0) AM_DEVWRITE("crtc", mc6845_device, register_w)
424424   AM_RANGE(0xe800, 0xefff) AM_RAM AM_SHARE("raattr")
r15176r15177
435435static ADDRESS_MAP_START( phrcraze_map, AS_PROGRAM, 8, merit_state )
436436   AM_RANGE(0x0000, 0x7fff) AM_ROM
437437   AM_RANGE(0xa000, 0xbfff) AM_RAM
438   AM_RANGE(0xc008, 0xc00b) AM_MIRROR(0x1df0) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
439   AM_RANGE(0xc00c, 0xc00f) AM_MIRROR(0x1df0) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
438   AM_RANGE(0xc008, 0xc00b) AM_MIRROR(0x1df0) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
439   AM_RANGE(0xc00c, 0xc00f) AM_MIRROR(0x1df0) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
440440   AM_RANGE(0xce00, 0xceff) AM_READWRITE(questions_r, high_offset_w)
441441   AM_RANGE(0xd600, 0xd6ff) AM_WRITE(low_offset_w)
442442   AM_RANGE(0xda00, 0xdaff) AM_WRITE(med_offset_w)
r15176r15177
456456static ADDRESS_MAP_START( tictac_map, AS_PROGRAM, 8, merit_state )
457457   AM_RANGE(0x0000, 0x7fff) AM_ROM
458458   AM_RANGE(0x8000, 0x9fff) AM_RAM
459   AM_RANGE(0xc004, 0xc007) AM_MIRROR(0x1df0) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
460   AM_RANGE(0xc008, 0xc00b) AM_MIRROR(0x1df0) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
459   AM_RANGE(0xc004, 0xc007) AM_MIRROR(0x1df0) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
460   AM_RANGE(0xc008, 0xc00b) AM_MIRROR(0x1df0) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
461461   AM_RANGE(0xce00, 0xceff) AM_READWRITE(questions_r, high_offset_w)
462462   AM_RANGE(0xd600, 0xd6ff) AM_WRITE(low_offset_w)
463463   AM_RANGE(0xda00, 0xdaff) AM_WRITE(med_offset_w)
r15176r15177
477477static ADDRESS_MAP_START( trvwhziv_map, AS_PROGRAM, 8, merit_state )
478478   AM_RANGE(0x0000, 0x7fff) AM_ROM
479479   AM_RANGE(0xa000, 0xbfff) AM_RAM
480   AM_RANGE(0xc004, 0xc007) AM_MIRROR(0x1df0) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
481   AM_RANGE(0xc008, 0xc00b) AM_MIRROR(0x1df0) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
480   AM_RANGE(0xc004, 0xc007) AM_MIRROR(0x1df0) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
481   AM_RANGE(0xc008, 0xc00b) AM_MIRROR(0x1df0) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
482482   AM_RANGE(0xce00, 0xceff) AM_READWRITE(questions_r, high_offset_w)
483483   AM_RANGE(0xd600, 0xd6ff) AM_WRITE(low_offset_w)
484484   AM_RANGE(0xda00, 0xdaff) AM_WRITE(med_offset_w)
r15176r15177
493493   AM_RANGE(0x0000, 0x7fff) AM_ROM
494494   AM_RANGE(0x8000, 0x9fff) AM_RAM AM_SHARE("nvram")
495495   AM_RANGE(0xb000, 0xb0ff) AM_ROM /* protection? code jumps here */
496   AM_RANGE(0xc004, 0xc007) AM_MIRROR(0x1df0) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
497   AM_RANGE(0xc008, 0xc00b) AM_MIRROR(0x1df0) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
496   AM_RANGE(0xc004, 0xc007) AM_MIRROR(0x1df0) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
497   AM_RANGE(0xc008, 0xc00b) AM_MIRROR(0x1df0) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
498498   AM_RANGE(0xce00, 0xceff) AM_READWRITE(questions_r, high_offset_w)
499499   AM_RANGE(0xd600, 0xd6ff) AM_WRITE(low_offset_w)
500500   AM_RANGE(0xda00, 0xdaff) AM_WRITE(med_offset_w)
r15176r15177
509509   AM_RANGE(0x0000, 0x7fff) AM_ROM
510510   AM_RANGE(0x8000, 0x9fff) AM_ROMBANK("bank1")
511511   AM_RANGE(0xa000, 0xbfff) AM_RAM AM_SHARE("backup_ram")
512   AM_RANGE(0xc004, 0xc007) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
513   AM_RANGE(0xc008, 0xc00b) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
512   AM_RANGE(0xc004, 0xc007) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
513   AM_RANGE(0xc008, 0xc00b) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
514514   AM_RANGE(0xe000, 0xe000) AM_DEVWRITE("crtc", mc6845_device, address_w)
515515   AM_RANGE(0xe001, 0xe001) AM_DEVWRITE("crtc", mc6845_device, register_w)
516516   AM_RANGE(0xe800, 0xefff) AM_RAM AM_SHARE("raattr")
r15176r15177
11581158INPUT_PORTS_END
11591159
11601160
1161static const ppi8255_interface ppi8255_intf[2] =
1161static I8255A_INTERFACE( ppi8255_0_intf )
11621162{
1163   {
1164      DEVCB_INPUT_PORT("IN0"),      /* Port A read */
1165      DEVCB_INPUT_PORT("IN1"),      /* Port B read */
1166      DEVCB_INPUT_PORT("IN2"),      /* Port C read */
1167      DEVCB_NULL,                  /* Port A write */
1168      DEVCB_NULL,                  /* Port B write */
1169      DEVCB_NULL                  /* Port C write */
1170   },
1171   {
1172      DEVCB_INPUT_PORT("DSW"),      /* Port A read */
1173      DEVCB_NULL,                  /* Port B read */
1174      DEVCB_NULL,                  /* Port C read */
1175      DEVCB_NULL,                  /* Port A write */
1176      DEVCB_HANDLER(led1_w),         /* Port B write */
1177      DEVCB_HANDLER(misc_w)         /* Port C write */
1178   }
1163   DEVCB_INPUT_PORT("IN0"),   /* Port A read */
1164   DEVCB_NULL,               /* Port A write */
1165   DEVCB_INPUT_PORT("IN1"),   /* Port B read */
1166   DEVCB_NULL,               /* Port B write */
1167   DEVCB_INPUT_PORT("IN2"),   /* Port C read */
1168   DEVCB_NULL               /* Port C write */
11791169};
11801170
1181static const ppi8255_interface ppi8255_couple_intf[2] =
1171static I8255A_INTERFACE( ppi8255_1_intf )
11821172{
1183   {
1184      DEVCB_INPUT_PORT("IN0"),      /* Port A read */
1185      DEVCB_INPUT_PORT("IN1"),      /* Port B read */
1186      DEVCB_INPUT_PORT("IN2"),      /* Port C read */
1187      DEVCB_NULL,                  /* Port A write */
1188      DEVCB_NULL,                  /* Port B write */
1189      DEVCB_NULL                  /* Port C write */
1190   },
1191   {
1192      DEVCB_INPUT_PORT("DSW"),      /* Port A read */
1193      DEVCB_NULL,                  /* Port B read */
1194      DEVCB_NULL,                  /* Port C read */
1195      DEVCB_NULL,                  /* Port A write */
1196      DEVCB_HANDLER(led1_w),         /* Port B write */
1197      DEVCB_HANDLER(misc_couple_w)   /* Port C write */
1198   }
1173   DEVCB_INPUT_PORT("DSW"),   /* Port A read */
1174   DEVCB_NULL,               /* Port A write */
1175   DEVCB_NULL,               /* Port B read */
1176   DEVCB_HANDLER(led1_w),      /* Port B write */
1177   DEVCB_NULL,               /* Port C read */
1178   DEVCB_HANDLER(misc_w)      /* Port C write */
11991179};
12001180
1181static I8255A_INTERFACE( couple_ppi8255_1_intf )
1182{
1183   DEVCB_INPUT_PORT("DSW"),   /* Port A read */
1184   DEVCB_NULL,               /* Port A write */
1185   DEVCB_NULL,               /* Port B read */
1186   DEVCB_HANDLER(led1_w),      /* Port B write */
1187   DEVCB_NULL,               /* Port C read */
1188   DEVCB_HANDLER(misc_couple_w)/* Port C write */
1189};
1190
1191
12011192static const ay8910_interface merit_ay8912_interface =
12021193{
12031194   AY8910_LEGACY_OUTPUT,
r15176r15177
12261217   MCFG_CPU_PROGRAM_MAP(pitboss_map)
12271218   MCFG_CPU_IO_MAP(trvwhiz_io_map)
12281219
1229   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
1230   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
1220   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
1221   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
12311222
12321223   MCFG_MACHINE_START(merit)
12331224   /* video hardware */
r15176r15177
13151306   MCFG_CPU_PROGRAM_MAP(couple_map)
13161307   MCFG_CPU_IO_MAP(tictac_io_map)
13171308
1318   MCFG_DEVICE_MODIFY("ppi8255_0")
1319   MCFG_DEVICE_CONFIG( ppi8255_couple_intf[0])
1320   MCFG_DEVICE_MODIFY("ppi8255_1")
1321   MCFG_DEVICE_CONFIG( ppi8255_couple_intf[1])
1309   MCFG_DEVICE_REMOVE("ppi8255_1")
1310   MCFG_I8255A_ADD( "ppi8255_1", couple_ppi8255_1_intf )
13221311MACHINE_CONFIG_END
13231312
13241313
src/mame/drivers/sms.c
r15176r15177
216216#include "cpu/i86/i86.h"
217217#include "cpu/z80/z80.h"
218218#include "sound/ay8910.h"
219#include "machine/8255ppi.h"
219#include "machine/i8255.h"
220220#include "machine/nvram.h"
221221
222222
r15176r15177
408408   coin_lockout_w(device->machine(), 1, BIT(data,4));
409409}
410410
411static const ppi8255_interface ppi8255_intf[2] =
411static I8255A_INTERFACE( ppi8255_0_intf )
412412{
413   {
414      DEVCB_NULL,               /* Port A read */
415      DEVCB_NULL,               /* Port B read */
416      DEVCB_HANDLER(ppi0_c_r),   /* Port C read */
417      DEVCB_HANDLER(ppi0_a_w),   /* Port A write */
418      DEVCB_HANDLER(ppi0_b_w),   /* Port B write */
419      DEVCB_NULL               /* Port C write */
420   },
421   {
422      DEVCB_INPUT_PORT("IN0"),   /* Port A read */
423      DEVCB_INPUT_PORT("IN1"),   /* Port B read */
424      DEVCB_INPUT_PORT("IN2"),   /* Port C read */
425      DEVCB_NULL,               /* Port A write */
426      DEVCB_NULL,               /* Port B write */
427      DEVCB_NULL               /* Port C write */
428   }
413   DEVCB_NULL,                     /* Port A read */
414   DEVCB_HANDLER(ppi0_a_w),         /* Port A write */
415   DEVCB_NULL,                     /* Port B read */
416   DEVCB_HANDLER(ppi0_b_w),         /* Port B write */
417   DEVCB_HANDLER(ppi0_c_r),         /* Port C read */
418   DEVCB_NULL                     /* Port C write */
429419};
430420
421static I8255A_INTERFACE( ppi8255_1_intf )
422{
423   DEVCB_INPUT_PORT("IN0"),         /* Port A read */
424   DEVCB_NULL,                     /* Port A write */
425   DEVCB_INPUT_PORT("IN1"),         /* Port B read */
426   DEVCB_NULL,                     /* Port B write */
427   DEVCB_INPUT_PORT("IN2"),         /* Port C read */
428   DEVCB_NULL                     /* Port C write */
429};
430
431
431432/*************************************
432433 *
433434 *  Video
r15176r15177
497498
498499static ADDRESS_MAP_START( sms_map, AS_PROGRAM, 8, smsmfg_state )
499500   AM_RANGE(0x00000, 0x007ff) AM_RAM AM_SHARE("nvram")
500   AM_RANGE(0x00800, 0x00803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
501   AM_RANGE(0x00800, 0x00803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
501502   AM_RANGE(0x01000, 0x01007) AM_WRITE(video_w)
502503   AM_RANGE(0x01800, 0x01803) AM_READWRITE(link_r, link_w)
503504   AM_RANGE(0x04000, 0x07fff) AM_ROMBANK("bank1")
r15176r15177
509510static ADDRESS_MAP_START( sureshot_map, AS_PROGRAM, 8, smsmfg_state )
510511   AM_RANGE(0x00000, 0x007ff) AM_RAM AM_SHARE("nvram")
511512   AM_RANGE(0x02000, 0x02007) AM_WRITE(video_w)
512   AM_RANGE(0x03000, 0x03003) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)
513   AM_RANGE(0x03000, 0x03003) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
513514   AM_RANGE(0x03800, 0x03803) AM_READWRITE(link_r, link_w)
514515   AM_RANGE(0x08000, 0x0ffff) AM_ROM
515516   AM_RANGE(0xf8000, 0xfffff) AM_ROM // mirror for vectors
r15176r15177
518519static ADDRESS_MAP_START( sub_map, AS_PROGRAM, 8, smsmfg_state )
519520   AM_RANGE(0x0000, 0x1fff) AM_ROM
520521   AM_RANGE(0x2000, 0x27ff) AM_RAM
521   AM_RANGE(0x3100, 0x3103) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)
522   AM_RANGE(0x3100, 0x3103) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
522523   AM_RANGE(0x3381, 0x3382) AM_DEVWRITE_LEGACY("aysnd", ay8910_data_address_w)
523524   AM_RANGE(0x3400, 0x3400) AM_READ(z80_8088_r)
524525   AM_RANGE(0x3500, 0x3501) AM_READWRITE(p03_r, p03_w)
r15176r15177
564565   MCFG_MACHINE_START(sms)
565566   MCFG_MACHINE_RESET(sms)
566567
567   MCFG_PPI8255_ADD( "ppi8255_0", ppi8255_intf[0] )
568   MCFG_PPI8255_ADD( "ppi8255_1", ppi8255_intf[1] )
568   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
569   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
569570
570571   MCFG_NVRAM_ADD_0FILL("nvram")
571572
src/mame/drivers/ksys573.c
r15176r15177
108108N *GUITARFREAKS 11thMIX                         2004.04
109109G *Gun Mania                                    2000.07    G?906 JA          (no CD)
110110? *Gun Mania Zone Plus                          2000.10
111P Hyper Bishi Bashi                             1998.07    GC876 EA
112P Hyper Bishi Bashi Champ                       1999       GC908 JA          908    A02
111P Hyper Bishi Bashi Champ                       1998.07    GC876 EA          (no CD)
112P Hyper Bishi Bashi Champ - 2 Player            1999.08    GC908 JA          908    A02
113113P Jikkyou Powerful Pro Yakyuu EX                1998.04    GX802 JA          802 JA B02
114114P *Jikkyou Powerful Pro Yakyuu EX 98            1998.08
115115? *Kick & Kick                                  2001
r15176r15177
36163616   PORT_INCLUDE( konami573 )
36173617
36183618   PORT_MODIFY("IN2")
3619
3620   PORT_BIT( 0x00000100, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) /* P1 LEFT */
3621   PORT_BIT( 0x00000200, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) /* P1 RIGHT */
3622   PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_START3 ) /* P1 UP */
3623   PORT_BIT( 0x00000800, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3) /* P1 DOWN */
3624INPUT_PORTS_END
3625
3626static INPUT_PORTS_START( hypbbc2p )
3627   PORT_INCLUDE( konami573 )
3628
3629   PORT_MODIFY("IN2")
36193630   PORT_BIT( 0x00000400, IP_ACTIVE_LOW, IPT_START2 ) /* P1 UP */
36203631   PORT_BIT( 0x00000080, IP_ACTIVE_LOW, IPT_UNUSED ) /* P2 START */
36213632INPUT_PORTS_END
r15176r15177
51565167   ROM_LOAD( "gl906jaa.a",   0x0000000, 0x200000, BAD_DUMP CRC(e62d18e6) SHA1(b32b884fbd9b5a65efcdd1b50dd3b7a99fdceeb9) )
51575168ROM_END
51585169
5159ROM_START( hyperbb )
5170ROM_START( hyperbbc )
51605171   SYS573_BIOS_A
51615172
51625173   ROM_REGION( 0x200000, "onboard.0", 0 ) /* onboard flash */
51635174   ROM_LOAD( "876ea.31m",    0x000000, 0x200000, CRC(a76043cb) SHA1(1c37034298abf3219d0bba29f4fcea8d83782926) )
51645175   ROM_REGION( 0x200000, "onboard.1", 0 ) /* onboard flash */
5165   ROM_LOAD( "876ea.27m",    0x000000, 0x200000, BAD_DUMP CRC(95a2a257) SHA1(3a8ecaabdf3d993c844bbc424c9fa15be7668462) )
5176   ROM_LOAD( "876ea.27m",    0x000000, 0x200000, CRC(689ddd94) SHA1(512ca1529695f4f79ca8c1b8f64bb0067137e430) )
51665177   ROM_REGION( 0x200000, "onboard.2", 0 ) /* onboard flash */
51675178   ROM_LOAD( "876ea.31l",    0x000000, 0x200000, CRC(d011c7a5) SHA1(8861b62c8b654b8e719600a37337ae44e6438899) )
51685179   ROM_REGION( 0x200000, "onboard.3", 0 ) /* onboard flash */
r15176r15177
51705181   ROM_REGION( 0x200000, "onboard.4", 0 ) /* onboard flash */
51715182   ROM_LOAD( "876ea.31j",    0x000000, 0x200000, CRC(ae497ebc) SHA1(ef131e60726db94f0d9ceab70bce02c0de080ede) )
51725183   ROM_REGION( 0x200000, "onboard.5", 0 ) /* onboard flash */
5173   ROM_LOAD( "876ea.27j",    0x000000, 0x200000, BAD_DUMP CRC(0c4d8435) SHA1(cda642ccd5463edacfec582c120d65cf15452fc9) )
5184   ROM_LOAD( "876ea.27j",    0x000000, 0x200000, CRC(9c156b1b) SHA1(bf07d71cc1f7e9e14beb9f9dfb71667ef2b54f8d) )
51745185   ROM_REGION( 0x200000, "onboard.6", 0 ) /* onboard flash */
5175   ROM_LOAD( "876ea.31h",    0x000000, 0x200000, BAD_DUMP CRC(90545167) SHA1(fb58b52a9d94f92afefead7be291301019e263ee) )
5186   ROM_LOAD( "876ea.31h",    0x000000, 0x200000, CRC(368372fb) SHA1(5cc4cb72e182c9e4d0737352e029fd703ba2f516) )
51765187   ROM_REGION( 0x200000, "onboard.7", 0 ) /* onboard flash */
51775188   ROM_LOAD( "876ea.27h",    0x000000, 0x200000, CRC(49175f99) SHA1(0154f6332ed210b6f0af20ba622133cde0994b7f) )
51785189
r15176r15177
51805191   ROM_LOAD( "876ea.22h",    0x000000, 0x002000, CRC(8e11d196) SHA1(e7442fdd611f4290d531b1ebdc9f487e323fd531) )
51815192ROM_END
51825193
5183ROM_START( hyperbbc )
5194ROM_START( hyperbbca )
51845195   SYS573_BIOS_A
51855196
5197   ROM_REGION( 0x200000, "onboard.0", 0 ) /* onboard flash */
5198   ROM_LOAD( "876aa.31m",    0x000000, 0x200000, CRC(677f8b0a) SHA1(a4c1029a70f5733f64a4f4dde4a568d2cb4dd11d) )
5199   ROM_REGION( 0x200000, "onboard.1", 0 ) /* onboard flash */
5200   ROM_LOAD( "876aa.27m",    0x000000, 0x200000, CRC(0af35a7d) SHA1(086ad70c8bf4bbe5d9748e4d47c639b4250270fc) )
5201   ROM_REGION( 0x200000, "onboard.2", 0 ) /* onboard flash */
5202   ROM_LOAD( "876ea.31l",    0x000000, 0x200000, CRC(d011c7a5) SHA1(8861b62c8b654b8e719600a37337ae44e6438899) )
5203   ROM_REGION( 0x200000, "onboard.3", 0 ) /* onboard flash */
5204   ROM_LOAD( "876ea.27l",    0x000000, 0x200000, CRC(950a5267) SHA1(373a7305a090d1e347bfeb62cc2db55cde2a106e) )
5205   ROM_REGION( 0x200000, "onboard.4", 0 ) /* onboard flash */
5206   ROM_LOAD( "876ea.31j",    0x000000, 0x200000, CRC(ae497ebc) SHA1(ef131e60726db94f0d9ceab70bce02c0de080ede) )
5207   ROM_REGION( 0x200000, "onboard.5", 0 ) /* onboard flash */
5208   ROM_LOAD( "876ea.27j",    0x000000, 0x200000, CRC(9c156b1b) SHA1(bf07d71cc1f7e9e14beb9f9dfb71667ef2b54f8d) )
5209   ROM_REGION( 0x200000, "onboard.6", 0 ) /* onboard flash */
5210   ROM_LOAD( "876ea.31h",    0x000000, 0x200000, CRC(368372fb) SHA1(5cc4cb72e182c9e4d0737352e029fd703ba2f516) )
5211   ROM_REGION( 0x200000, "onboard.7", 0 ) /* onboard flash */
5212   ROM_LOAD( "876ea.27h",    0x000000, 0x200000, CRC(49175f99) SHA1(0154f6332ed210b6f0af20ba622133cde0994b7f) )
5213
5214   ROM_REGION( 0x002000, "m48t58", 0 ) /* timekeeper */
5215   ROM_LOAD( "876aa.22h",    0x000000, 0x002000, CRC(3c17f026) SHA1(8ed33aca99f5d09d5792e136e700e3ac628018e8) )
5216ROM_END
5217
5218ROM_START( hypbbc2p )
5219   SYS573_BIOS_A
5220
51865221   ROM_REGION( 0x0000084, "install_eeprom", 0 ) /* security cart eeprom */
51875222   ROM_LOAD( "gx908ja.u1",  0x000000, 0x000084, BAD_DUMP CRC(fb6c0635) SHA1(0d974462a0a244ffb1a651adb316242cde427756) )
51885223
r15176r15177
51905225   DISK_IMAGE_READONLY( "908a02", 0, SHA1(573194ca9938c30415fc88dcc0c0152dd3024d71) )
51915226ROM_END
51925227
5193ROM_START( hyperbbck )
5228ROM_START( hypbbc2pk )
51945229   SYS573_BIOS_A
51955230
51965231   ROM_REGION( 0x0000084, "install_eeprom", 0 ) /* security cart eeprom */
r15176r15177
53945429GAME( 1999, ddra,     dstage,   konami573x,   ddr,       ddr,        ROT0, "Konami", "Dance Dance Revolution (GN845 VER. AAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
53955430GAME( 1998, fbait2bc, sys573,   k573baitx,    fbaitbc,   ge765pwbba, ROT0, "Konami", "Fisherman's Bait 2 - A Bass Challenge (GE865 VER. UAB)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
53965431GAME( 1998, bassang2, fbait2bc, k573baitx,    fbaitbc,   ge765pwbba, ROT0, "Konami", "Bass Angler 2 (GE865 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5397GAME( 1998, hyperbb,  sys573,   konami573,    konami573, konami573,  ROT0, "Konami", "Hyper Bishi Bashi (GQ876 VER. EAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
5432GAME( 1998, hyperbbc, sys573,   konami573,    hyperbbc,  konami573,  ROT0, "Konami", "Hyper Bishi Bashi Champ (GQ876 VER. EAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5433GAME( 1998, hyperbbca,hyperbbc, konami573,    hyperbbc,  konami573,  ROT0, "Konami", "Hyper Bishi Bashi Champ (GQ876 VER. AAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
53985434GAME( 1999, drmn,     sys573,   konami573x,   drmn,      drmn,       ROT0, "Konami", "DrumMania (GQ881 VER. JAD)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
53995435GAME( 1999, gtrfrks,  sys573,   konami573x,   gtrfrks,   gtrfrks,    ROT0, "Konami", "Guitar Freaks (GQ886 VER. EAC)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
54005436GAME( 1999, gtrfrksu, gtrfrks,  konami573x,   gtrfrks,   gtrfrks,    ROT0, "Konami", "Guitar Freaks (GQ886 VER. UAC)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
r15176r15177
54215457GAME( 1999, ddrsbm,   sys573,   k573dyi,      ddrsolo,   ddrsolo,    ROT0, "Konami", "Dance Dance Revolution Solo Bass Mix (GQ894 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
54225458GAME( 1999, ddrs2k,   sys573,   k573dyyi,     ddrsolo,   ddrsolo,    ROT0, "Konami", "Dance Dance Revolution Solo 2000 (GC905 VER. AAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.3 */
54235459GAME( 1999, ddrs2kj,  ddrs2k,   k573dyyi,     ddrsolo,   ddrsolo,    ROT0, "Konami", "Dance Dance Revolution Solo 2000 (GC905 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.2 */
5424GAME( 1999, hyperbbc, sys573,   konami573y,   hyperbbc,  hyperbbc,   ROT0, "Konami", "Hyper Bishi Bashi Champ (GX908 1999/08/24 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5425GAME( 1999, hyperbbck,hyperbbc, konami573y,   hyperbbc,  hyperbbc,   ROT0, "Konami", "Hyper Bishi Bashi Champ (GX908 1999/08/24 VER. KAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5460GAME( 1999, hypbbc2p, sys573,   konami573y,   hypbbc2p,  hyperbbc,   ROT0, "Konami", "Hyper Bishi Bashi Champ - 2 Player (GX908 1999/08/24 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5461GAME( 1999, hypbbc2pk,hypbbc2p, konami573y,   hypbbc2p,  hyperbbc,   ROT0, "Konami", "Hyper Bishi Bashi Champ - 2 Player (GX908 1999/08/24 VER. KAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
54265462GAME( 1999, dsfdct,   sys573,   pccard2dyyi,  ddr,       ddrdigital, ROT0, "Konami", "Dancing Stage featuring Dreams Come True (GC910 VER. JCA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING )
54275463GAME( 1999, dsfdcta,  dsfdct,   pccard2yyi,   ddr,       ddr,        ROT0, "Konami", "Dancing Stage featuring Dreams Come True (GC910 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
54285464GAME( 1999, drmn2m,   sys573,   k573dxzi,     drmn,      drmndigital,ROT0, "Konami", "DrumMania 2nd Mix (GE912 VER. JAB)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.5 */
r15176r15177
54415477GAME( 2000, gtfrk3ma, gtrfrk3m, pccard1dxzi,  gtrfrks,   gtrfrkdigital,ROT0, "Konami", "Guitar Freaks 3rd Mix (GE949 VER. JAB)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.4 */
54425478GAME( 2000, gtfrk3mb, gtrfrk3m, pccard1dzi,   gtrfrks,   gtrfrkdigital,ROT0, "Konami", "Guitar Freaks 3rd Mix - security cassette versionup (949JAZ02)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.4 */
54435479GAME( 2000, pnchmn2,  sys573,   punchmania2,  punchmania,punchmania, ROT0, "Konami", "Punch Mania 2: Hokuto No Ken (GQA09 JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* motor/artwork/network */
5444GAME( 2000, salarymc, sys573,   konami573yi,  hyperbbc,  salarymc,   ROT0, "Konami", "Salary Man Champ (GCA18 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
5480GAME( 2000, salarymc, sys573,   konami573yi,  hypbbc2p,  salarymc,   ROT0, "Konami", "Salary Man Champ (GCA18 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND )
54455481GAME( 2000, ddr3mp,   sys573,   pccard2dxzi,  ddr,       ddrdigital, ROT0, "Konami", "Dance Dance Revolution 3rd Mix Plus (G*A22 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.6 */
54465482GAME( 2000, pcnfrk3m, sys573,   k573dxzi,     drmn,      drmndigital,ROT0, "Konami", "Percussion Freaks 3rd Mix (G*A23 VER. KAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.8 */
54475483GAME( 2000, drmn3m,   pcnfrk3m, k573dxzi,     drmn,      drmndigital,ROT0, "Konami", "DrumMania 3rd Mix (G*A23 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.8 */
src/mame/drivers/konendev.c
r15176r15177
4141
4242static const powerpc_config ppc603e_config =
4343{
44   XTAL_66_6667MHz      /* Multiplier 1.5, Bus = 66MHz, Core = 100MHz */
44   XTAL_66_6667MHz,      /* Multiplier 1.5, Bus = 66MHz, Core = 100MHz */
45   NULL,
46   NULL
4547};
4648
4749
src/mame/drivers/decocass.c
r15176r15177
2828
2929    The actual cassettes use a custom player hooked to the BIO board, and are roughly microcassette form factor, but are larger and will not fit in a conventional microcassette player.
3030    Each cassette has two tracks on it: a clock track and a data track, for a form of synchronous serial. The data is stored in blocks with headers and checksums.
31 
32    -------------------------------------------------------------
33 
34    Hamburger doesn't work; no protection details were supplied.
35 
36    Here is the protection data for DS Telejan and Pro Golf (set 2).
37    This information maps onto the various handlers in machine/decocass.c but it's
38    not at all clear how to create a new one that fits these specs.
39 
40    DS Telejan:
3141
42    Bits $84 are latched
43    Bit $08 is passed through unmodified
44    Bits $73 are the five PROM address inputs
3245
46    Pro Golf (set 2):
3347
48    Bits $44 are latched
49    Bit $08 is passed through unmodified
50    Bits $B3 are the five PROM address inputs
51
52
3453 ***********************************************************************/
3554
3655#include "emu.h"
r15176r15177
10501069   ROM_LOAD( "cprogolf.cas", 0x0000, 0x8000, CRC(02123cd1) SHA1(e4c630ed293725f23d539cb43beb97953558dabd) )
10511070ROM_END
10521071
1072ROM_START( cprogolfj )
1073   DECOCASS_BIOS_A_ROMS
1074
1075   ROM_REGION( 0x00020, "dongle", 0 )     /* dongle data */
1076   ROM_LOAD( "dp-113_a.dgl",   0x0000, 0x0020, CRC(d8587be5) SHA1(c118033a4973994a0dcd245c22c53871dc0e98c2) )
1077
1078   ROM_REGION( 0x10000, "cassette", 0 )     /* (max) 64k for cassette image */
1079   ROM_LOAD( "dt-113_a.cas",   0x0000, 0x8000, CRC(8408248f) SHA1(8b78c379bf6879916bc9b284d7a0956edfac78be) )
1080ROM_END
1081
1082/* 14 */
1083ROM_START( cdsteljn )
1084   DECOCASS_BIOS_A_ROMS
1085
1086   ROM_REGION( 0x00020, "dongle", 0 )     /* dongle data */
1087   ROM_LOAD( "dp-114_a.dgl",   0x0000, 0x0020, CRC(7a728c15) SHA1(13d9a9e916e483ed89d61a35c47c9d51a2bf8f0d) )
1088
1089   ROM_REGION( 0x10000, "cassette", 0 )     /* (max) 64k for cassette image */
1090    ROM_LOAD( "dt-1144-a3.cas", 0x000000, 0x007300, CRC(1336a912) SHA1(0c64e069713b411da38b43f14306953621726d35) )
1091ROM_END
1092
10531093/* 15 Lucky Poker */
10541094ROM_START( cluckypo )
10551095   DECOCASS_BIOS_B_ROMS
r15176r15177
11971237   ROM_LOAD( "cbtime.cas",   0x0000, 0x8000, CRC(56d7dc58) SHA1(34b2513c9ca7ab40f532b6d6d911aa3012113632) )
11981238ROM_END
11991239
1240ROM_START( chamburger )
1241   DECOCASS_BIOS_A_ROMS
1242
1243   ROM_REGION( 0x01000, "dongle", 0 )     /* dongle data */
1244   ROM_LOAD( "dp-126_a.dgl",   0x0000, 0x1000, CRC(25bec0f0) SHA1(9fb1f9699f37937421e26d4fb8fdbcd21a5ddc5c) )
1245
1246   ROM_REGION( 0x10000, "cassette", 0 )     /* (max) 64k for cassette image */
1247   ROM_LOAD( "dt-126_a.cas",   0x0000, 0x8000, CRC(334fb987) SHA1(c55906bf6059686dd8a587dabbe3fb4d59200ab9) )
1248ROM_END
1249
12001250/* 27 Burnin' Rubber / Bump 'n' Jump */
12011251ROM_START( cburnrub )
12021252   DECOCASS_BIOS_B_ROMS
r15176r15177
12751325   DECOCASS_BIOS_A_ROMS
12761326
12771327   ROM_REGION( 0x01000, "dongle", 0 )     /* dongle data */
1278   ROM_LOAD( "dp-130 a.dgl",   0x0000, 0x1000,  CRC(469e80a8) SHA1(f581cd534ce6faba010c6616538cdf9d96d787da) )
1328   ROM_LOAD( "dp-130_a.dgl",   0x0000, 0x1000,  CRC(469e80a8) SHA1(f581cd534ce6faba010c6616538cdf9d96d787da) )
12791329
12801330   ROM_REGION( 0x10000, "cassette", 0 )     /* (max) 64k for cassette image */
1281   ROM_LOAD( "dt-130 a.bin",   0x0000, 0x8000,  CRC(1722e5e1) SHA1(e94066ead608df85d3f7310d4a81ba291da4bee6) )
1331   ROM_LOAD( "dt-130_a.bin",   0x0000, 0x8000,  CRC(1722e5e1) SHA1(e94066ead608df85d3f7310d4a81ba291da4bee6) )
12821332ROM_END
12831333
12841334/* 31 Pro Bowling */
r15176r15177
13281378   DECOCASS_BIOS_A_ROMS
13291379
13301380   ROM_REGION( 0x01000, "dongle", 0 )     /* dongle data */
1331   ROM_LOAD( "dp-133 a.dgl",   0x0000, 0x1000,  CRC(919fabb2) SHA1(3d6a0676cea7b0be0fe69d06e04ca08c36b2851a) )
1381   ROM_LOAD( "dp-133_a.dgl",   0x0000, 0x1000,  CRC(919fabb2) SHA1(3d6a0676cea7b0be0fe69d06e04ca08c36b2851a) )
13321382
13331383   ROM_REGION( 0x10000, "cassette", 0 )     /* (max) 64k for cassette image */
1334   ROM_LOAD( "dt-133 a.bin",   0x0000, 0x10000, CRC(de682a29) SHA1(2ee0dd8cb7fb595020d730a9da5d9cccda3f1264) )
1384   ROM_LOAD( "dt-133_a.bin",   0x0000, 0x10000, CRC(de682a29) SHA1(2ee0dd8cb7fb595020d730a9da5d9cccda3f1264) )
13351385ROM_END
13361386
13371387/* 34 Super Doubles Tennis */
r15176r15177
13391389   DECOCASS_BIOS_A_ROMS
13401390
13411391   ROM_REGION( 0x01000, "dongle", 0 )     /* dongle data */
1342   ROM_LOAD( "dp-134 a.dgl",   0x0000, 0x1000,  CRC(e484d2f5) SHA1(ee4e4c221933d391aeed8ff7182fa931a4e01466) )
1392   ROM_LOAD( "dp-134_a.dgl",   0x0000, 0x1000,  CRC(e484d2f5) SHA1(ee4e4c221933d391aeed8ff7182fa931a4e01466) )
13431393
13441394   ROM_REGION( 0x10000, "cassette", 0 )     /* (max) 64k for cassette image */
1345   ROM_LOAD( "dt-134 a.bin",   0x0000, 0x10000, CRC(9a69d961) SHA1(f88e267815ca0697708aca0ac9fa6f7664a0519c) )
1395   ROM_LOAD( "dt-134_a.bin",   0x0000, 0x10000, CRC(9a69d961) SHA1(f88e267815ca0697708aca0ac9fa6f7664a0519c) )
13461396ROM_END
13471397
13481398/* 37 Zeroize */
r15176r15177
14171467   DECOCASS_BIOS_A_ROMS
14181468
14191469   ROM_REGION( 0x08000, "dongle", 0 )     /* dongle data */
1420   ROM_LOAD( "dp-141 a.dgl",   0x0000, 0x8000,  CRC(bc379d2c) SHA1(bab19dcb6d68fdbd547ebab1598353f436321157) )
1470   ROM_LOAD( "dp-141_a.dgl",   0x0000, 0x8000,  CRC(bc379d2c) SHA1(bab19dcb6d68fdbd547ebab1598353f436321157) )
14211471
14221472   ROM_REGION( 0x10000, "cassette", 0 )     /* (max) 64k for cassette image */
1423   ROM_LOAD( "dt-141 1a.bin",  0x0000, 0x10000, CRC(20c2e86a) SHA1(a18248ba00b847a09df0bea7752a21162af8af76) )
1473   ROM_LOAD( "dt-141_1a.bin",  0x0000, 0x10000, CRC(20c2e86a) SHA1(a18248ba00b847a09df0bea7752a21162af8af76) )
14241474ROM_END
14251475
14261476/* 44 Boulder Dash */
r15176r15177
15031553   state->save_pointer(NAME(state->m_decrypted2), romlength);
15041554}
15051555
1506/* -- */ GAME( 1981, decocass, 0,        decocass, decocass, decocass, ROT270, "Data East Corporation", "DECO Cassette System", GAME_IS_BIOS_ROOT )
1507/* -- */ GAME( 1981, ctsttape, decocass, ctsttape, decocass, decocass, ROT270, "Data East Corporation", "Test Tape (DECO Cassette)", 0 )
1508/* 01 */ GAME( 1980, chwy,     decocass, chwy,     decocass, decocass, ROT270, "Data East Corporation", "Highway Chase (DECO Cassette)", 0 )
1556/* -- */ GAME( 1981, decocass,  0,        decocass, decocass, decocass, ROT270, "Data East Corporation", "DECO Cassette System", GAME_IS_BIOS_ROOT )
1557/* -- */ GAME( 1981, ctsttape,  decocass, ctsttape, decocass, decocass, ROT270, "Data East Corporation", "Test Tape (DECO Cassette)", 0 )
1558/* 01 */ GAME( 1980, chwy,      decocass, chwy,     decocass, decocass, ROT270, "Data East Corporation", "Highway Chase (DECO Cassette)", 0 )
15091559/* 02 */ // 1980.12 Sengoku Ninjatai
15101560/* 03 */ // 1981.01 Manhattan
1511/* 04 */ GAME( 1981, cterrani, decocass, cterrani, cterrani, decocass, ROT270, "Data East Corporation", "Terranean (DECO Cassette)", 0 )
1561/* 04 */ GAME( 1981, cterrani, decocass, cterrani, cterrani, decocass, ROT270, "Data East Corporation", "Terranean (DECO Cassette)", 0 )
15121562/* 05 */ // 1981.?? Missile Sprinter
15131563/* 06 */ // 1980.12 Nebula
1514/* 07 */ GAME( 1981, castfant, decocass, castfant, decocass, decocass, ROT270, "Data East Corporation", "Astro Fantasia (DECO Cassette)", 0 )
1564/* 07 */ GAME( 1981, castfant, decocass, castfant, decocass, decocass, ROT270, "Data East Corporation", "Astro Fantasia (DECO Cassette)", 0 )
15151565/* 08 */ // 1981.03 The Tower
1516/* 09 */ GAME( 1981, csuperas, decocass, csuperas, csuperas, decocass, ROT270, "Data East Corporation", "Super Astro Fighter (DECO Cassette)", 0 )
1566/* 09 */ GAME( 1981, csuperas, decocass, csuperas, csuperas, decocass, ROT270, "Data East Corporation", "Super Astro Fighter (DECO Cassette)", 0 )
15171567/* 10 */ // 1981.?? Ocean to Ocean (medal)
1518/* 11 */ GAME( 1981, clocknch, decocass, clocknch, clocknch, decocass, ROT270, "Data East Corporation", "Lock'n'Chase (DECO Cassette)", 0 )
1568/* 11 */ GAME( 1981, clocknch, decocass, clocknch, clocknch, decocass, ROT270, "Data East Corporation", "Lock'n'Chase (DECO Cassette)", 0 )
15191569/* 12 */ // 1981.08 Flash Boy/DECO Kid
1520/* 13 */ GAME( 1981, cprogolf, decocass, cprogolf, cprogolf, decocass, ROT270, "Data East Corporation", "Tournament Pro Golf (DECO Cassette)", 0 )
1521/* 14 */ // 1981.06 DS Telejan
1522/* 15 */ GAME( 1981, cluckypo, decocass, cluckypo, decocass, decocass, ROT270, "Data East Corporation", "Lucky Poker (DECO Cassette)", 0 )
1523/* 16 */ GAME( 1981, ctisland, decocass, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (DECO Cassette, set 1)", 0 )
1524       GAME( 1981, ctisland2,ctisland, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (DECO Cassette, set 2)", 0 )
1525       GAME( 1981, ctisland3,ctisland, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (DECO Cassette, set 3)", GAME_NOT_WORKING ) /* Different Bitswap? */
1570/* 13 */ GAME( 1981, cprogolf,  decocass, cprogolf, cprogolf, decocass, ROT270, "Data East Corporation", "Tournament Pro Golf (DECO Cassette)", 0 )
1571         GAME( 1981, cprogolfj, cprogolf, cprogolf, cprogolf, decocass, ROT270, "Data East Corporation", "Tournament Pro Golf (DECO Cassette, Japan)", GAME_NOT_WORKING )
1572/* 14 */ GAME( 1981, cdsteljn,  decocass, cprogolf, decocass, decocass, ROT270, "Data East Corporation", "DS Telejan (DECO Cassette, Japan)", GAME_NOT_WORKING )
1573/* 15 */ GAME( 1981, cluckypo,  decocass, cluckypo, decocass, decocass, ROT270, "Data East Corporation", "Lucky Poker (DECO Cassette)", 0 )
1574/* 16 */ GAME( 1981, ctisland,  decocass, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (DECO Cassette, set 1)", 0 )
1575       GAME( 1981, ctisland2, ctisland, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (DECO Cassette, set 2)", 0 )
1576       GAME( 1981, ctisland3, ctisland, ctisland, decocass, decocrom, ROT270, "Data East Corporation", "Treasure Island (DECO Cassette, set 3)", GAME_NOT_WORKING ) /* Different Bitswap? */
15261577/* 17 */ // 1981.10 Bobbitto
1527/* 18 */ GAME( 1982, cexplore, decocass, cexplore, cexplore, decocass, ROT270, "Data East Corporation", "Explorer (DECO Cassette)", GAME_NOT_WORKING )
1528/* 19 */ GAME( 1982, cdiscon1, decocass, cdiscon1, decocass, decocass, ROT270, "Data East Corporation", "Disco No.1 (DECO Cassette)", 0 )
1529       GAME( 1982, csweetht, cdiscon1, cdiscon1, decocass, decocass, ROT270, "Data East Corporation", "Sweet Heart (DECO Cassette)", 0 )
1530/* 20 */ GAME( 1982, ctornado, decocass, ctornado, ctornado, decocass, ROT270, "Data East Corporation", "Tornado (DECO Cassette)", 0 )
1531/* 21 */ GAME( 1982, cmissnx,  decocass, cmissnx,  cmissnx,  decocass, ROT270, "Data East Corporation", "Mission-X (DECO Cassette)", 0 )
1532/* 22 */ GAME( 1982, cptennis, decocass, cptennis, decocass, decocass, ROT270, "Data East Corporation", "Pro Tennis (DECO Cassette)", 0 )
1578/* 18 */ GAME( 1982, cexplore,  decocass, cexplore, cexplore, decocass, ROT270, "Data East Corporation", "Explorer (DECO Cassette)", GAME_NOT_WORKING )
1579/* 19 */ GAME( 1982, cdiscon1,  decocass, cdiscon1, decocass, decocass, ROT270, "Data East Corporation", "Disco No.1 (DECO Cassette)", 0 )
1580       GAME( 1982, csweetht,  cdiscon1, cdiscon1, decocass, decocass, ROT270, "Data East Corporation", "Sweet Heart (DECO Cassette)", 0 )
1581/* 20 */ GAME( 1982, ctornado,  decocass, ctornado, ctornado, decocass, ROT270, "Data East Corporation", "Tornado (DECO Cassette)", 0 )
1582/* 21 */ GAME( 1982, cmissnx,   decocass, cmissnx,  cmissnx,  decocass, ROT270, "Data East Corporation", "Mission-X (DECO Cassette)", 0 )
1583/* 22 */ GAME( 1982, cptennis,  decocass, cptennis, decocass, decocass, ROT270, "Data East Corporation", "Pro Tennis (DECO Cassette)", 0 )
15331584/* 23 */ // 1982.?? 18 Hole Pro Golf
15341585/* 24 */ // 1982.07 Tsumego Kaisyou
15351586/* 25 */ // 1982.10 Angler Dangler? (fishing)
1536/* 26 */ GAME( 1983, cbtime,   decocass, cbtime,   cbtime,   decocass, ROT270, "Data East Corporation", "Burger Time (DECO Cassette)", 0 )
1537/* 27 */ GAME( 1982, cburnrub, decocass, cburnrub, decocass, decocass, ROT270, "Data East Corporation", "Burnin' Rubber (DECO Cassette, set 1)", 0 )
1538       GAME( 1982, cburnrub2,cburnrub, cburnrub, decocass, decocass, ROT270, "Data East Corporation", "Burnin' Rubber (DECO Cassette, set 2)", 0 )
1539       GAME( 1982, cbnj,     cburnrub, cburnrub, decocass, decocass, ROT270, "Data East Corporation", "Bump 'n' Jump (DECO Cassette)", 0 )
1540/* 28 */ GAME( 1983, cgraplop, decocass, cgraplop, cgraplop, decocass, ROT270, "Data East Corporation", "Cluster Buster / Graplop (DECO Cassette, set 1)", 0 )
1541       GAME( 1983, cgraplop2,cgraplop, cgraplop2,cgraplop, decocass, ROT270, "Data East Corporation", "Cluster Buster / Graplop (DECO Cassette, set 2)", GAME_NOT_WORKING )
1542/* 29 */ GAME( 1983, clapapa,  decocass, clapapa,  decocass, decocass, ROT270, "Data East Corporation", "Rootin' Tootin' / La-Pa-Pa (DECO Cassette)" , 0) /* Displays 'La-Pa-Pa during attract */
1543        GAME( 1983, clapapa2, clapapa,  clapapa,  decocass, decocass, ROT270, "Data East Corporation", "Rootin' Tootin' (DECO Cassette)" , 0) /* Displays 'Rootin' Tootin' during attract */
1544/* 30 */ GAME( 1983, cskater,  decocass, cskater,  cskater,  decocass, ROT270, "Data East Corporation", "Skater (DECO Cassette, Japan)", 0 )
1545/* 31 */ GAME( 1983, cprobowl, decocass, cprobowl, decocass, decocass, ROT270, "Data East Corporation", "Pro Bowling (DECO Cassette)", 0 )
1546/* 32 */ GAME( 1983, cnightst, decocass, cnightst, cnightst, decocass, ROT270, "Data East Corporation", "Night Star (DECO Cassette, set 1)", 0 )
1547       GAME( 1983, cnightst2,cnightst, cnightst, cnightst, decocass, ROT270, "Data East Corporation", "Night Star (DECO Cassette, set 2)", 0 )
1548/* 33 */ GAME( 1983, cpsoccer, decocass, cpsoccer, cpsoccer, decocass, ROT270, "Data East Corporation", "Pro Soccer (DECO Cassette)", 0 )
1549       GAME( 1983, cpsoccerj,cpsoccer, cpsoccer, cpsoccer, decocass, ROT270, "Data East Corporation", "Pro Soccer (DECO Cassette, Japan)", 0 )
1550/* 34 */ GAME( 1983, csdtenis, decocass, csdtenis, csdtenis, decocass, ROT270, "Data East Corporation", "Super Doubles Tennis (DECO Cassette, Japan)", GAME_WRONG_COLORS )
1551/* 35 */ GAME( 1985, cflyball, decocass, cflyball, decocass, decocass, ROT270, "Data East Corporation", "Flying Ball (DECO Cassette)", 0 )
1587/* 26 */ GAME( 1983, cbtime,    decocass, cbtime,   cbtime,   decocass, ROT270, "Data East Corporation", "Burger Time (DECO Cassette)", 0 )
1588         GAME( 1982, chamburger,cbtime,   cbtime,   cbtime,   decocass, ROT270, "Data East Corporation", "Hamburger (DECO Cassette, Japan)", 0 )
1589/* 27 */ GAME( 1982, cburnrub,  decocass, cburnrub, decocass, decocass, ROT270, "Data East Corporation", "Burnin' Rubber (DECO Cassette, set 1)", 0 )
1590       GAME( 1982, cburnrub2, cburnrub, cburnrub, decocass, decocass, ROT270, "Data East Corporation", "Burnin' Rubber (DECO Cassette, set 2)", 0 )
1591       GAME( 1982, cbnj,      cburnrub, cburnrub, decocass, decocass, ROT270, "Data East Corporation", "Bump 'n' Jump (DECO Cassette)", 0 )
1592/* 28 */ GAME( 1983, cgraplop,  decocass, cgraplop, cgraplop, decocass, ROT270, "Data East Corporation", "Cluster Buster / Graplop (DECO Cassette, set 1)", 0 )
1593       GAME( 1983, cgraplop2, cgraplop, cgraplop2,cgraplop, decocass, ROT270, "Data East Corporation", "Cluster Buster / Graplop (DECO Cassette, set 2)", GAME_NOT_WORKING )
1594/* 29 */ GAME( 1983, clapapa,   decocass, clapapa,  decocass, decocass, ROT270, "Data East Corporation", "Rootin' Tootin' / La-Pa-Pa (DECO Cassette)" , 0) /* Displays 'La-Pa-Pa during attract */
1595        GAME( 1983, clapapa2,  clapapa,  clapapa,  decocass, decocass, ROT270, "Data East Corporation", "Rootin' Tootin' (DECO Cassette)" , 0) /* Displays 'Rootin' Tootin' during attract */
1596/* 30 */ GAME( 1983, cskater,   decocass, cskater,  cskater,  decocass, ROT270, "Data East Corporation", "Skater (DECO Cassette, Japan)", 0 )
1597/* 31 */ GAME( 1983, cprobowl,  decocass, cprobowl, decocass, decocass, ROT270, "Data East Corporation", "Pro Bowling (DECO Cassette)", 0 )
1598/* 32 */ GAME( 1983, cnightst,  decocass, cnightst, cnightst, decocass, ROT270, "Data East Corporation", "Night Star (DECO Cassette, set 1)", 0 )
1599       GAME( 1983, cnightst2, cnightst, cnightst, cnightst, decocass, ROT270, "Data East Corporation", "Night Star (DECO Cassette, set 2)", 0 )
1600/* 33 */ GAME( 1983, cpsoccer,  decocass, cpsoccer, cpsoccer, decocass, ROT270, "Data East Corporation", "Pro Soccer (DECO Cassette)", 0 )
1601       GAME( 1983, cpsoccerj, cpsoccer, cpsoccer, cpsoccer, decocass, ROT270, "Data East Corporation", "Pro Soccer (DECO Cassette, Japan)", 0 )
1602/* 34 */ GAME( 1983, csdtenis,  decocass, csdtenis, csdtenis, decocass, ROT270, "Data East Corporation", "Super Doubles Tennis (DECO Cassette, Japan)", GAME_WRONG_COLORS )
1603/* 35 */ GAME( 1985, cflyball,  decocass, cflyball, decocass, decocass, ROT270, "Data East Corporation", "Flying Ball (DECO Cassette)", 0 )
15521604/* 36 */ // 1984.04 Genesis/Boomer Rang'r
1553/* 37 */ GAME( 1983, czeroize, decocass, czeroize, decocass, decocass, ROT270, "Data East Corporation", "Zeroize (DECO Cassette)", 0 )
1554/* 38 */ GAME( 1984, cscrtry,  decocass, type4,    cscrtry,  decocass, ROT270, "Data East Corporation", "Scrum Try (DECO Cassette, set 1)", 0 )
1555       GAME( 1984, cscrtry2, cscrtry,  type4,    cscrtry,  decocass, ROT270, "Data East Corporation", "Scrum Try (DECO Cassette, set 2)", 0 )
1556/* 39 */ GAME( 1984, cppicf,   decocass, cppicf,   decocass, decocass, ROT270, "Data East Corporation", "Peter Pepper's Ice Cream Factory (DECO Cassette, set 1)", 0 )
1557       GAME( 1984, cppicf2,  cppicf,   cppicf,   decocass, decocass, ROT270, "Data East Corporation", "Peter Pepper's Ice Cream Factory (DECO Cassette, set 2)", 0 )
1558/* 40 */ GAME( 1984, cfghtice, decocass, cfghtice, cfghtice, decocass, ROT270, "Data East Corporation", "Fighting Ice Hockey (DECO Cassette)", 0 )
1559/* 41 */ GAME( 1984, coozumou, decocass, type4,    cscrtry,  decocass, ROT270, "Data East Corporation", "Oozumou - The Grand Sumo (DECO Cassette, Japan)", 0 )
1605/* 37 */ GAME( 1983, czeroize,  decocass, czeroize, decocass, decocass, ROT270, "Data East Corporation", "Zeroize (DECO Cassette)", 0 )
1606/* 38 */ GAME( 1984, cscrtry,   decocass, type4,    cscrtry,  decocass, ROT270, "Data East Corporation", "Scrum Try (DECO Cassette, set 1)", 0 )
1607       GAME( 1984, cscrtry2,  cscrtry,  type4,    cscrtry,  decocass, ROT270, "Data East Corporation", "Scrum Try (DECO Cassette, set 2)", 0 )
1608/* 39 */ GAME( 1984, cppicf,    decocass, cppicf,   decocass, decocass, ROT270, "Data East Corporation", "Peter Pepper's Ice Cream Factory (DECO Cassette, set 1)", 0 )
1609       GAME( 1984, cppicf2,   cppicf,   cppicf,   decocass, decocass, ROT270, "Data East Corporation", "Peter Pepper's Ice Cream Factory (DECO Cassette, set 2)", 0 )
1610/* 40 */ GAME( 1984, cfghtice,  decocass, cfghtice, cfghtice, decocass, ROT270, "Data East Corporation", "Fighting Ice Hockey (DECO Cassette)", 0 )
1611/* 41 */ GAME( 1984, coozumou,  decocass, type4,    cscrtry,  decocass, ROT270, "Data East Corporation", "Oozumou - The Grand Sumo (DECO Cassette, Japan)", 0 )
15601612/* 42 */ // 1984.08 Hellow Gateball // not a typo, this is official spelling
15611613/* 43 */ // 1984.08 Yellow Cab
1562/* 44 */ GAME( 1985, cbdash,   decocass, cbdash,   cbdash,   decocass, ROT270, "Data East Corporation", "Boulder Dash (DECO Cassette)", 0 )
1614/* 44 */ GAME( 1985, cbdash,    decocass, cbdash,   cbdash,   decocass, ROT270, "Data East Corporation", "Boulder Dash (DECO Cassette)", 0 )
15631615
15641616/* UX7 */ // 1984.12 Tokyo MIE Clinic/Tokyo MIE Shinryoujo
15651617/* UX8 */ // 1985.01 Tokyo MIE Clinic/Tokyo MIE Shinryoujo Part 2
src/mame/drivers/klax.c
r15176r15177
9595   AM_RANGE(0x3e0000, 0x3e07ff) AM_RAM_WRITE_LEGACY(atarigen_expanded_666_paletteram_w) AM_SHARE("paletteram")
9696   AM_RANGE(0x3f0000, 0x3f0f7f) AM_RAM_WRITE_LEGACY(atarigen_playfield_w) AM_SHARE("playfield")
9797   AM_RANGE(0x3f0f80, 0x3f0fff) AM_READWRITE_LEGACY(atarimo_0_slipram_r, atarimo_0_slipram_w)
98   AM_RANGE(0x3f1000, 0x3f1fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_upper")
98   AM_RANGE(0x3f1000, 0x3f1fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_upper_w) AM_SHARE("playfield_up")
9999   AM_RANGE(0x3f2000, 0x3f27ff) AM_READWRITE_LEGACY(atarimo_0_spriteram_r, atarimo_0_spriteram_w)
100100   AM_RANGE(0x3f2800, 0x3f3fff) AM_RAM
101101ADDRESS_MAP_END
src/mame/drivers/thunderj.c
r15176r15177
166166   AM_RANGE(0x3effc0, 0x3effff) AM_READWRITE(thunderj_atarivc_r, thunderj_atarivc_w) AM_SHARE("atarivc_data")
167167   AM_RANGE(0x3f0000, 0x3f1fff) AM_RAM_WRITE_LEGACY(atarigen_playfield2_latched_msb_w) AM_SHARE("playfield2")
168168   AM_RANGE(0x3f2000, 0x3f3fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_latched_lsb_w) AM_SHARE("playfield")
169   AM_RANGE(0x3f4000, 0x3f5fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_dual_upper_w) AM_SHARE("playfield_upper")
169   AM_RANGE(0x3f4000, 0x3f5fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_dual_upper_w) AM_SHARE("playfield_up")
170170   AM_RANGE(0x3f6000, 0x3f7fff) AM_READWRITE_LEGACY(atarimo_0_spriteram_r, atarimo_0_spriteram_w)
171171   AM_RANGE(0x3f8000, 0x3f8eff) AM_RAM_WRITE_LEGACY(atarigen_alpha_w) AM_SHARE("alpha")
172172   AM_RANGE(0x3f8f00, 0x3f8f7f) AM_RAM AM_SHARE("atarivc_eof")
src/mame/drivers/imolagp.c
r15176r15177
7575
7676#include "emu.h"
7777#include "cpu/z80/z80.h"
78#include "machine/8255ppi.h"
78#include "machine/i8255.h"
7979#include "sound/ay8910.h"
8080
8181
r15176r15177
503503} /* master_interrupt */
504504
505505
506static const ppi8255_interface ppi8255_intf =
506static I8255A_INTERFACE( ppi8255_intf )
507507{
508   DEVCB_NULL,      /* Port A read */
509   DEVCB_NULL,      /* Port B read */
510   DEVCB_NULL,      /* Port C read */
511   DEVCB_NULL,      /* Port A write */
512   DEVCB_NULL,      /* Port B write */
513   DEVCB_NULL      /* Port C write */
508   DEVCB_NULL,                     /* Port A read */
509   DEVCB_NULL,                     /* Port A write */
510   DEVCB_NULL,                     /* Port B read */
511   DEVCB_NULL,                     /* Port B write */
512   DEVCB_NULL,                     /* Port C read */
513   DEVCB_NULL,                     /* Port C write */
514514};
515515
516516
r15176r15177
569569   MCFG_MACHINE_START(imolagp)
570570   MCFG_MACHINE_RESET(imolagp)
571571
572   MCFG_PPI8255_ADD( "ppi8255", ppi8255_intf )
572   MCFG_I8255A_ADD( "ppi8255", ppi8255_intf )
573573
574574   MCFG_SCREEN_ADD("screen", RASTER)
575575   MCFG_SCREEN_REFRESH_RATE(60)
src/mame/drivers/marineb.c
r15176r15177
839839
840840ROM_START( bcruzm12 )
841841   ROM_REGION( 0x10000, "maincpu", 0 )
842   ROM_LOAD( "d-84_3.bin",         0x0000, 0x2000, CRC(132baa3d) SHA1(79f7a1dc49b6e45e68f4008f3ee4e383846f75d5) )
843   ROM_LOAD( "d-84_2.bin",         0x2000, 0x2000, CRC(1a788d1f) SHA1(5029f93f45d328a282d56e010eee68287b6b9306) )
844   ROM_LOAD( "d-84_1.bin",         0x4000, 0x2000, CRC(9d5b3017) SHA1(bced3f39faf94ce25cba382010f2c2ed322e9d7b) )
842   ROM_LOAD( "d-84_3.12c",      0x0000, 0x2000, CRC(132baa3d) SHA1(79f7a1dc49b6e45e68f4008f3ee4e383846f75d5) )
843   ROM_LOAD( "d-84_2.12b",      0x2000, 0x2000, CRC(1a788d1f) SHA1(5029f93f45d328a282d56e010eee68287b6b9306) )
844   ROM_LOAD( "d-84_1.12ab",   0x4000, 0x2000, CRC(9d5b3017) SHA1(bced3f39faf94ce25cba382010f2c2ed322e9d7b) )
845845
846846   ROM_REGION( 0x4000, "gfx1", 0 )
847   ROM_LOAD( "d-84_5.bin",         0x0000, 0x2000, CRC(2e963f6a) SHA1(dcc32ab4a4fa241b6f4a211642d00f6e0438f466) )
848   ROM_LOAD( "d-84_4.bin",         0x2000, 0x2000, CRC(fe186459) SHA1(3b0ee1fe98c835271f5b67de5ca0507827e25d71) )
847   ROM_LOAD( "d-84_5.17f",      0x0000, 0x2000, CRC(2e963f6a) SHA1(dcc32ab4a4fa241b6f4a211642d00f6e0438f466) )
848   ROM_LOAD( "d-84_4.17ef",   0x2000, 0x2000, CRC(fe186459) SHA1(3b0ee1fe98c835271f5b67de5ca0507827e25d71) )
849849
850850   ROM_REGION( 0x4000, "gfx2", 0 )
851   ROM_LOAD( "d-84_7.bin",         0x0000, 0x2000, CRC(a5be90ef) SHA1(6037d924296ba62999aafe665396fef142d73df2) )
852   ROM_LOAD( "d-84_6.bin",         0x2000, 0x2000, CRC(1337dc01) SHA1(c55bfc6dd15a499dd71da0acc5016035a7c51f16) )
851   ROM_LOAD( "d-84_7.17h",      0x0000, 0x2000, CRC(a5be90ef) SHA1(6037d924296ba62999aafe665396fef142d73df2) )
852   ROM_LOAD( "d-84_6.17fh",   0x2000, 0x2000, CRC(1337dc01) SHA1(c55bfc6dd15a499dd71da0acc5016035a7c51f16) )
853853
854854   ROM_REGION( 0x0200, "proms", 0 )
855   ROM_LOAD( "bcm12col.k7",      0x0000, 0x0100, CRC(bf4f2671) SHA1(dde6da568ecf0121910f4b507c83fe6230b07c8d) )   /* palette low 4 bits */
856   ROM_LOAD( "bcm12col.k6",      0x0100, 0x0100, CRC(59f955f6) SHA1(6d6d784971569e0af7cec8bd36659f24a652cd6a) )   /* palette high 4 bits */
855   ROM_LOAD( "bcm12col.7k",   0x0000, 0x0100, CRC(bf4f2671) SHA1(dde6da568ecf0121910f4b507c83fe6230b07c8d) )   /* palette low 4 bits */
856   ROM_LOAD( "bcm12col.6k",   0x0100, 0x0100, CRC(59f955f6) SHA1(6d6d784971569e0af7cec8bd36659f24a652cd6a) )   /* palette high 4 bits */
857857ROM_END
858858
859859ROM_START( hopprobo )
src/mame/drivers/relief.c
r15176r15177
162162   AM_RANGE(0x3effc0, 0x3effff) AM_READWRITE(relief_atarivc_r, relief_atarivc_w) AM_SHARE("atarivc_data")
163163   AM_RANGE(0x3f0000, 0x3f1fff) AM_RAM_WRITE_LEGACY(atarigen_playfield2_latched_msb_w) AM_SHARE("playfield2")
164164   AM_RANGE(0x3f2000, 0x3f3fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_latched_lsb_w) AM_SHARE("playfield")
165   AM_RANGE(0x3f4000, 0x3f5fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_dual_upper_w) AM_SHARE("playfield_upper")
165   AM_RANGE(0x3f4000, 0x3f5fff) AM_RAM_WRITE_LEGACY(atarigen_playfield_dual_upper_w) AM_SHARE("playfield_up")
166166   AM_RANGE(0x3f6000, 0x3f67ff) AM_READWRITE_LEGACY(atarimo_0_spriteram_r, atarimo_0_spriteram_w)
167167   AM_RANGE(0x3f6800, 0x3f8eff) AM_RAM
168168   AM_RANGE(0x3f8f00, 0x3f8f7f) AM_RAM AM_SHARE("atarivc_eof")
src/mame/drivers/homerun.c
r15176r15177
1717
1818#include "emu.h"
1919#include "cpu/z80/z80.h"
20#include "machine/8255ppi.h"
20#include "machine/i8255.h"
2121#include "sound/2203intf.h"
2222#include "includes/homerun.h"
2323
r15176r15177
4141}
4242
4343
44
45static const ppi8255_interface ppi8255_intf =
44static I8255A_INTERFACE( ppi8255_intf )
4645{
47   DEVCB_NULL,
48   DEVCB_NULL,
49   DEVCB_NULL,
50   DEVCB_HANDLER(pa_w),
51   DEVCB_HANDLER(pb_w),
52   DEVCB_HANDLER(pc_w)
46   DEVCB_NULL,            /* Port A read */
47   DEVCB_HANDLER(pa_w),   /* Port A write */
48   DEVCB_NULL,            /* Port B read */
49   DEVCB_HANDLER(pb_w),   /* Port B write */
50   DEVCB_NULL,            /* Port C read */
51   DEVCB_HANDLER(pc_w)      /* Port C write */
5352};
5453
5554
r15176r15177
7372   ADDRESS_MAP_GLOBAL_MASK(0xff)
7473   AM_RANGE(0x10, 0x10) AM_WRITENOP /* ?? */
7574   AM_RANGE(0x20, 0x20) AM_WRITENOP /* ?? */
76   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE_LEGACY("ppi8255", ppi8255_r, ppi8255_w)
75   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
7776   AM_RANGE(0x40, 0x40) AM_READ_PORT("IN0")
7877   AM_RANGE(0x50, 0x50) AM_READ_PORT("IN2")
7978   AM_RANGE(0x60, 0x60) AM_READ_PORT("IN1")
r15176r15177
229228   MCFG_MACHINE_START(homerun)
230229   MCFG_MACHINE_RESET(homerun)
231230
232   MCFG_PPI8255_ADD( "ppi8255", ppi8255_intf )
231   MCFG_I8255A_ADD( "ppi8255", ppi8255_intf )
233232
234233   /* video hardware */
235234   MCFG_SCREEN_ADD("screen", RASTER)
src/mame/drivers/pacman.c
r15176r15177
40394039ROM_END
40404040
40414041
4042ROM_START( mspacii )
4043   ROM_REGION( 0x10000, "maincpu", 0 )
4044   ROM_LOAD( "p3.6e",        0x0000, 0x1000, CRC(df673b57) SHA1(93ee4e8f9751db5f7d3c35988fcb8ae8037464ed) )
4045   ROM_LOAD( "p4.6f",        0x1000, 0x1000, CRC(7591f606) SHA1(0aead0ac5af602269df8732c5763147cdb543b8d) )
4046   ROM_LOAD( "p5.6h",        0x2000, 0x1000, CRC(c8ef1a7f) SHA1(0c9a28bbe63d7d44511a13316937a21b8846543e) )
4047   ROM_LOAD( "p6.6j",         0x3000, 0x1000, CRC(d498f435) SHA1(c041841b1349d8d5c2d560aed54c4aeb8adfddb8) )
4048   ROM_LOAD( "p7.s1",        0x8000, 0x1000, CRC(fbbc3d2e) SHA1(dc4337d7f0961e048a433021f670da6d314bd663) )
4049   ROM_LOAD( "p8.s2",        0x9000, 0x1000, CRC(aba3096d) SHA1(661e28785931fa329c2ebdc95d78072a42c512ff) )
4050
4051   ROM_REGION( 0x2000, "gfx1", 0 )
4052   ROM_LOAD( "p1.5e",        0x0000, 0x1000, CRC(04333722) SHA1(bb179d5302b26b815b5d7eff14865e7b4f8a6880) )
4053    ROM_LOAD( "p2.5f",        0x1000, 0x1000, CRC(615af909) SHA1(fd6a1dde780b39aea76bf1c4befa5882573c2ef4) )
4054
4055   ROM_REGION( 0x0120, "proms", 0 )
4056   ROM_LOAD( "82s123.7f",    0x0000, 0x0020, CRC(2fc650bd) SHA1(8d0268dee78e47c712202b0ec4f1f51109b1f2a5) )
4057   ROM_LOAD( "82s126.4a",    0x0020, 0x0100, CRC(3eb3a8e4) SHA1(19097b5f60d1030f8b82d9f1d3a241f93e5c75d6) )
4058
4059   ROM_REGION( 0x0200, "namco", 0 )   /* sound PROMs */
4060   ROM_LOAD( "82s126.1m",    0x0000, 0x0100, CRC(a9cc86bf) SHA1(bbcec0570aeceb582ff8238a4bc8546a23430081) )
4061   ROM_LOAD( "82s126.3m",    0x0100, 0x0100, CRC(77245b66) SHA1(0c4d0bee858b97632411c440bea6948a74759746) )   /* timing - not used */
4062ROM_END
4063
4064
40424065ROM_START( mspacmat )
40434066   ROM_REGION( 0x20000, "maincpu", 0 )   /* 64k for code+64k for decrypted code */
40444067   ROM_LOAD( "pacman.6e",    0x0000, 0x1000, CRC(c1e6ab10) SHA1(e87e059c5be45753f7e9f33dff851f16d6751181) )
r15176r15177
58165839   }
58175840}
58185841
5842READ8_MEMBER(pacman_state::mspacii_protection_r)
5843{
5844   /* used by extra routine at $3FE, bit 4 of 504d needs to be low, and of 504e to be high */
5845   UINT8 data = ioport("IN1")->read();
5846   return (data & 0xef) | (offset << 4 & 0x10);
5847}
5848
5849static DRIVER_INIT( mspacii )
5850{
5851   // protection
5852   pacman_state *state = machine.driver_data<pacman_state>();
5853   machine.device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(0x504d, 0x506f, read8_delegate(FUNC(pacman_state::mspacii_protection_r), state));
5854}
5855
58195856READ8_MEMBER(pacman_state::cannonbp_protection_r)
58205857{
58215858
r15176r15177
59285965GAME( 1981, piranha,  puckman,  piranha,  mspacman, eyes,     ROT90,  "GL (US Billiards license)", "Piranha", GAME_SUPPORTS_SAVE )
59295966GAME( 1981, piranhao, puckman,  piranha,  mspacman, eyes,     ROT90,  "GL (US Billiards license)", "Piranha (older)", GAME_SUPPORTS_SAVE )
59305967GAME( 1981, abscam,   puckman,  piranha,  mspacman, eyes,     ROT90,  "GL (US Billiards license)", "Abscam", GAME_SUPPORTS_SAVE )
5931GAME( 1981, nmouse,   0        ,  nmouse ,  nmouse,   eyes,     ROT90,  "Amenip (Palcom Queen River)", "Naughty Mouse (set 1)", GAME_SUPPORTS_SAVE )
5932GAME( 1981, nmouseb,  nmouse ,  nmouse ,  nmouse,   eyes,     ROT90,  "Amenip Nova Games Ltd.", "Naughty Mouse (set 2)", GAME_SUPPORTS_SAVE )
5968GAME( 1981, nmouse,   0,        nmouse,   nmouse,   eyes,     ROT90,  "Amenip (Palcom Queen River)", "Naughty Mouse (set 1)", GAME_SUPPORTS_SAVE )
5969GAME( 1981, nmouseb,  nmouse,   nmouse,   nmouse,   eyes,     ROT90,  "Amenip Nova Games Ltd.", "Naughty Mouse (set 2)", GAME_SUPPORTS_SAVE )
59335970GAME( 1981, mspacman, 0,        mspacman, mspacman, mspacman, ROT90,  "Midway / General Computer Corporation", "Ms. Pac-Man", GAME_SUPPORTS_SAVE )
59345971GAME( 1981, mspacmnf, mspacman, mspacman, mspacman, mspacman, ROT90,  "Midway / General Computer Corporation", "Ms. Pac-Man (with speedup hack)", GAME_SUPPORTS_SAVE )
59355972GAME( 1981, mspacmat, mspacman, mspacman, mspacman, mspacman, ROT90,  "hack", "Ms. Pac Attack", GAME_SUPPORTS_SAVE )
r15176r15177
59375974GAME( 1981, woodpeca, woodpeck, woodpek,  woodpek,  woodpek,  ROT90,  "Amenip", "Woodpecker (set 2)", GAME_SUPPORTS_SAVE )
59385975GAME( 1981, mspacmab, mspacman, woodpek,  mspacman, 0,        ROT90,  "bootleg", "Ms. Pac-Man (bootleg)", GAME_SUPPORTS_SAVE )
59395976GAME( 1981, mspacmbe, mspacman, woodpek,  mspacman, mspacmbe, ROT90,  "bootleg", "Ms. Pac-Man (bootleg, (encrypted))", GAME_SUPPORTS_SAVE )
5977GAME( 1981, mspacii,  mspacman, woodpek,  mspacman, mspacii,  ROT90,  "bootleg (Orca)", "Ms. Pac-Man II (bootleg)", GAME_SUPPORTS_SAVE )
59405978GAME( 1981, pacgal,   mspacman, woodpek,  mspacman, 0,        ROT90,  "hack", "Pac-Gal", GAME_SUPPORTS_SAVE )
59415979GAME( 1981, mspacpls, mspacman, woodpek,  mspacpls, 0,        ROT90,  "hack", "Ms. Pac-Man Plus", GAME_SUPPORTS_SAVE )
59425980GAME( 1982, ponpoko,  0,        woodpek,  ponpoko,  ponpoko,  ROT0,   "Sigma Enterprises Inc.", "Ponpoko", GAME_SUPPORTS_SAVE )
src/mame/drivers/konamim2.c
r15176r15177
11451145
11461146static const powerpc_config ppc602_config =
11471147{
1148   33000000         /* Multiplier 2, Bus = 33MHz, Core = 66MHz */
1148   33000000,         /* Multiplier 2, Bus = 33MHz, Core = 66MHz */
1149   NULL,
1150   NULL
11491151};
11501152
11511153static INTERRUPT_GEN(m2)
src/mame/drivers/slotcarn.c
r15176r15177
1717#include "emu.h"
1818#include "cpu/z80/z80.h"
1919#include "sound/ay8910.h"
20#include "machine/8255ppi.h"
20#include "machine/i8255.h"
2121#include "video/mc6845.h"
2222
2323#define MASTER_CLOCK         (XTAL_10MHz)
r15176r15177
192192   AM_RANGE(0xb000, 0xb000) AM_DEVWRITE_LEGACY("aysnd", ay8910_address_w)
193193   AM_RANGE(0xb100, 0xb100) AM_DEVREADWRITE_LEGACY("aysnd", ay8910_r, ay8910_data_w)
194194
195   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE_LEGACY("ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports */
196   AM_RANGE(0xba00, 0xba03) AM_DEVREADWRITE_LEGACY("ppi8255_1", ppi8255_r, ppi8255_w)   /* Input Ports */
197   AM_RANGE(0xbc00, 0xbc03) AM_DEVREADWRITE_LEGACY("ppi8255_2", ppi8255_r, ppi8255_w)   /* Input/Output Ports */
195   AM_RANGE(0xb800, 0xb803) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)   /* Input Ports */
196   AM_RANGE(0xba00, 0xba03) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)   /* Input Ports */
197   AM_RANGE(0xbc00, 0xbc03) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)   /* Input/Output Ports */
198198
199199   AM_RANGE(0xc000, 0xc000) AM_READ_PORT("DSW3")
200200   AM_RANGE(0xc400, 0xc400) AM_READ_PORT("DSW4")
r15176r15177
550550*       PPI 8255 (x3) Interfaces       *
551551***************************************/
552552
553static const ppi8255_interface scarn_ppi8255_intf[3] =
553static I8255A_INTERFACE( ppi8255_0_intf )
554554{
555   {   /* A, B & C set as input */
556      DEVCB_INPUT_PORT("IN0"),   /* Port A read */
557      DEVCB_INPUT_PORT("IN1"),   /* Port B read */
558      DEVCB_INPUT_PORT("IN2"),   /* Port C read */
559      DEVCB_NULL,               /* Port A write */
560      DEVCB_NULL,               /* Port B write */
561      DEVCB_NULL               /* Port C write */
562   },
563   {   /* A set as input */
564      DEVCB_INPUT_PORT("DSW1"),   /* Port A read */
565      DEVCB_NULL,               /* Port B read */
566      DEVCB_NULL,               /* Port C read */
567      DEVCB_NULL,               /* Port A write */
568      DEVCB_NULL,               /* Port B write */
569      DEVCB_NULL               /* Port C write */
570   },
571   {   /* A & B set as input */
572      DEVCB_INPUT_PORT("IN3"),   /* Port A read */
573      DEVCB_INPUT_PORT("IN4"),   /* Port B read */
574      DEVCB_NULL,               /* Port C read */
575      DEVCB_NULL,               /* Port A write */
576      DEVCB_NULL,               /* Port B write */
577      DEVCB_NULL               /* Port C write */
578   }
555   DEVCB_INPUT_PORT("IN0"),         /* Port A read */
556   DEVCB_NULL,                     /* Port A write */
557   DEVCB_INPUT_PORT("IN1"),         /* Port B read */
558   DEVCB_NULL,                     /* Port B write */
559   DEVCB_INPUT_PORT("IN2"),         /* Port C read */
560   DEVCB_NULL                     /* Port C write */
579561};
580562
563static I8255A_INTERFACE( ppi8255_1_intf )
564{
565   DEVCB_INPUT_PORT("DSW1"),         /* Port A read */
566   DEVCB_NULL,                     /* Port A write */
567   DEVCB_NULL,                     /* Port B read */
568   DEVCB_NULL,                     /* Port B write */
569   DEVCB_NULL,                     /* Port C read */
570   DEVCB_NULL                     /* Port C write */
571};
581572
573static I8255A_INTERFACE( ppi8255_2_intf )
574{
575   DEVCB_INPUT_PORT("IN3"),         /* Port A read */
576   DEVCB_NULL,                     /* Port A write */
577   DEVCB_INPUT_PORT("IN4"),         /* Port B read */
578   DEVCB_NULL,                     /* Port B write */
579   DEVCB_NULL,                     /* Port C read */
580   DEVCB_NULL                     /* Port C write */
581};
582
583
582584/*************************************
583585*          AY8910 Interface          *
584586*************************************/
r15176r15177
606608   MCFG_CPU_IO_MAP(spielbud_io_map)
607609
608610   /* 3x 8255 */
609   MCFG_PPI8255_ADD( "ppi8255_0", scarn_ppi8255_intf[0] )
610   MCFG_PPI8255_ADD( "ppi8255_1", scarn_ppi8255_intf[1] )
611   MCFG_PPI8255_ADD( "ppi8255_2", scarn_ppi8255_intf[2] )
611   MCFG_I8255A_ADD( "ppi8255_0", ppi8255_0_intf )
612   MCFG_I8255A_ADD( "ppi8255_1", ppi8255_1_intf )
613   MCFG_I8255A_ADD( "ppi8255_2", ppi8255_2_intf )
612614
613615   MCFG_MACHINE_START(merit)
614616
src/emu/rendlay.c
r15176r15177
482482         m_maxstate = 262143;
483483      if (newcomp.m_type == component::CTYPE_DOTMATRIX)
484484         m_maxstate = 255;
485      if (newcomp.m_type == component::CTYPE_DOTMATRIX5DOT)
486         m_maxstate = 31;
485487      if (newcomp.m_type == component::CTYPE_SIMPLECOUNTER)
486488      {
487489         m_maxstate = xml_get_attribute_int_with_subst(machine, *compnode, "maxstate", 999);
r15176r15177
644646
645647   // dotmatrix nodes
646648   else if (strcmp(compnode.name, "dotmatrix") == 0)
649   {
647650      m_type = CTYPE_DOTMATRIX;
648
651   }
652   else if (strcmp(compnode.name, "dotmatrix5dot") == 0)
653   {
654      m_type = CTYPE_DOTMATRIX5DOT;
655   }
649656   // simplecounter nodes
650657   else if (strcmp(compnode.name, "simplecounter") == 0)
651658   {
r15176r15177
798805         break;
799806
800807      case CTYPE_DOTMATRIX:
801         draw_dotmatrix(dest, bounds, state);
808         draw_dotmatrix(8, dest, bounds, state);
802809         break;
803810
811      case CTYPE_DOTMATRIX5DOT:
812         draw_dotmatrix(5, dest, bounds, state);
813         break;
814
804815      case CTYPE_SIMPLECOUNTER:
805816         draw_simplecounter(machine, dest, bounds, state);
806817         break;
r15176r15177
17201731
17211732
17221733//-------------------------------------------------
1723//  draw_dotmatrix - draw a row of 8 dots for a
1734//  draw_dotmatrix - draw a row of dots for a
17241735//  dotmatrix
17251736//-------------------------------------------------
17261737
1727void layout_element::component::draw_dotmatrix(bitmap_argb32 &dest, const rectangle &bounds, int pattern)
1738void layout_element::component::draw_dotmatrix(int dots, bitmap_argb32 &dest, const rectangle &bounds, int pattern)
17281739{
17291740   const rgb_t onpen = MAKE_ARGB(0xff, 0xff, 0xff, 0xff);
17301741   const rgb_t offpen = MAKE_ARGB(0xff, 0x20, 0x20, 0x20);
17311742
17321743   // sizes for computation
1733   int bmwidth = 2000;
17341744   int bmheight = 300;
17351745   int dotwidth = 250;
17361746
17371747   // allocate a temporary bitmap for drawing
1738   bitmap_argb32 tempbitmap(bmwidth, bmheight);
1748   bitmap_argb32 tempbitmap(dotwidth*dots, bmheight);
17391749   tempbitmap.fill(MAKE_ARGB(0xff, 0x00, 0x00, 0x00));
17401750
1741   for (int i = 0; i < 8; i++)
1751   for (int i = 0; i < dots; i++)
17421752      draw_segment_decimal(tempbitmap, ((dotwidth/2 )+ (i * dotwidth)), bmheight/2, dotwidth, (pattern & (1 << i))?onpen:offpen);
17431753
17441754   // resample to the target size
r15176r15177
18141824
18151825//-------------------------------------------------
18161826//  draw_segment_diagonal_1 - draw a diagonal
1817//  LED segment that looks like this: /
1827//  LED segment that looks like a backslash
18181828//-------------------------------------------------
18191829
18201830void layout_element::component::draw_segment_diagonal_1(bitmap_argb32 &dest, int minx, int maxx, int miny, int maxy, int width, rgb_t color)
r15176r15177
18391849
18401850//-------------------------------------------------
18411851//  draw_segment_diagonal_2 - draw a diagonal
1842//  LED segment that looks like this:
1852//  LED segment that looks like a forward slash
18431853//-------------------------------------------------
18441854
18451855void layout_element::component::draw_segment_diagonal_2(bitmap_argb32 &dest, int minx, int maxx, int miny, int maxy, int width, rgb_t color)
src/emu/rendlay.h
r15176r15177
121121         CTYPE_LED14SEGSC,
122122         CTYPE_LED16SEGSC,
123123         CTYPE_DOTMATRIX,
124         CTYPE_DOTMATRIX5DOT,
124125         CTYPE_SIMPLECOUNTER,
125126         CTYPE_REEL,
126127         CTYPE_MAX
r15176r15177
139140      void draw_led14segsc(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
140141      void draw_led16seg(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
141142      void draw_led16segsc(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
142      void draw_dotmatrix(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
143      void draw_dotmatrix(int dots,bitmap_argb32 &dest, const rectangle &bounds, int pattern);
143144      void draw_segment_horizontal_caps(bitmap_argb32 &dest, int minx, int maxx, int midy, int width, int caps, rgb_t color);
144145      void draw_segment_horizontal(bitmap_argb32 &dest, int minx, int maxx, int midy, int width, rgb_t color);
145146      void draw_segment_vertical_caps(bitmap_argb32 &dest, int miny, int maxy, int midx, int width, int caps, rgb_t color);
src/emu/machine/intelfsh.h
r15176r15177
124124   UINT8               m_device_id;
125125   UINT8               m_maker_id;
126126   bool               m_sector_is_4k;
127   UINT8                m_page_size;
127   UINT8               m_page_size;
128128
129129   // internal state
130130   UINT8               m_status;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team