Previous 199869 Revisions Next

r36442 Monday 16th March, 2015 at 05:21:39 UTC by Vasantha Crabb
Make Cherry Bonus artwork clickable
[src/mame/drivers]goldstar.c
[src/mame/layout]cherryb3.lay

trunk/src/mame/drivers/goldstar.c
r244953r244954
69576957}
69586958
69596959
6960static MACHINE_CONFIG_START( chrygld, cb3_state )
6961
6962   /* basic machine hardware */
6963   MCFG_CPU_ADD("maincpu", Z80, CPU_CLOCK)
6964   MCFG_CPU_PROGRAM_MAP(ncb3_map)
6965   MCFG_CPU_IO_MAP(ncb3_readwriteport)
6966   MCFG_CPU_VBLANK_INT_DRIVER("screen", goldstar_state,  irq0_line_hold)
6967
6968   MCFG_DEVICE_ADD("ppi8255_0", I8255A, 0)
6969   MCFG_I8255_IN_PORTA_CB(IOPORT("IN0"))
6970   MCFG_I8255_IN_PORTB_CB(IOPORT("IN3"))   //Player2 controls, confirmed
6971
6972   MCFG_DEVICE_ADD("ppi8255_1", I8255A, 0)
6973   MCFG_I8255_IN_PORTA_CB(IOPORT("IN1"))
6974   MCFG_I8255_IN_PORTB_CB(IOPORT("IN2"))
6975   MCFG_I8255_IN_PORTC_CB(IOPORT("DSW1"))
6976
6977   MCFG_DEVICE_ADD("ppi8255_2", I8255A, 0)
6978   MCFG_I8255_IN_PORTA_CB(IOPORT("DSW2"))
6979
6980   /* video hardware */
6981   MCFG_SCREEN_ADD("screen", RASTER)
6982   MCFG_SCREEN_REFRESH_RATE(60)
6983//  MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
6984   MCFG_SCREEN_SIZE(64*8, 32*8)
6985   MCFG_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 2*8, 30*8-1)
6986   MCFG_SCREEN_UPDATE_DRIVER(goldstar_state, screen_update_goldstar)
6987   MCFG_SCREEN_PALETTE("palette")
6988
6989   MCFG_GFXDECODE_ADD("gfxdecode", "palette", chry10)
6990   MCFG_PALETTE_ADD("palette", 256)
6991   MCFG_PALETTE_INIT_OWNER(goldstar_state,cm)
6992   MCFG_NVRAM_ADD_1FILL("nvram")
6993
6994   MCFG_VIDEO_START_OVERRIDE(goldstar_state,goldstar)
6995
6996   /* sound hardware */
6997   MCFG_SPEAKER_STANDARD_MONO("mono")
6998
6999   MCFG_SOUND_ADD("snsnd", SN76489, PSG_CLOCK)
7000   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.80)
7001
7002   MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK)
7003   MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW4"))
7004   MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW3"))
7005   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
7006MACHINE_CONFIG_END
7007
7008
7009
70106960static MACHINE_CONFIG_START( ncb3, cb3_state )
70116961
70126962   /* basic machine hardware */
r244953r244954
70647014   MCFG_GFXDECODE_MODIFY("gfxdecode", cb3e)
70657015MACHINE_CONFIG_END
70667016
7017static MACHINE_CONFIG_DERIVED( chrygld, ncb3 )
7018   MCFG_GFXDECODE_MODIFY("gfxdecode", chry10)
7019MACHINE_CONFIG_END
7020
70677021static MACHINE_CONFIG_DERIVED( cherrys, ncb3 )
70687022   MCFG_GFXDECODE_MODIFY("gfxdecode", cherrys)
70697023MACHINE_CONFIG_END
r244953r244954
70737027MACHINE_CONFIG_END
70747028
70757029
7076
70777030static MACHINE_CONFIG_START( wcherry, goldstar_state )
70787031
70797032   /* basic machine hardware */
r244953r244954
71237076MACHINE_CONFIG_END
71247077
71257078
7126
71277079static MACHINE_CONFIG_START( cm, cmaster_state )
71287080
71297081   /* basic machine hardware */
trunk/src/mame/layout/cherryb3.lay
r244953r244954
214214
215215<!-- define lamps -->
216216
217      <bezel name="lamp0" element="stop_b">
217      <bezel name="lamp0" element="stop_b" inputtag="IN0" inputmask="0x04">
218218         <bounds x="2.05" y="3.08" width="0.50" height="0.24" />
219219      </bezel>
220      <bezel name="lamp0" element="stop2">
220      <bezel name="lamp0" element="stop2" inputtag="IN0" inputmask="0x04">
221221         <bounds x="2.07" y="3.10" width="0.46" height="0.20" />
222222      </bezel>
223223
224224
225      <bezel name="lamp1" element="dup_b">
225      <bezel name="lamp1" element="dup_b" inputtag="IN0" inputmask="0x08">
226226         <bounds x="0.65" y="3.08" width="0.50" height="0.24" />
227227      </bezel>
228      <bezel name="lamp1" element="dup">
228      <bezel name="lamp1" element="dup" inputtag="IN0" inputmask="0x08">
229229         <bounds x="0.67" y="3.10" width="0.46" height="0.20" />
230230      </bezel>
231231
232232
233      <bezel name="lamp2" element="stop_b">
233      <bezel name="lamp2" element="stop_b" inputtag="IN0" inputmask="0x10">
234234         <bounds x="1.4" y="3.08" width="0.50" height="0.24" />
235235      </bezel>
236      <bezel name="lamp2" element="stop1">
236      <bezel name="lamp2" element="stop1" inputtag="IN0" inputmask="0x10">
237237         <bounds x="1.42" y="3.10" width="0.46" height="0.20" />
238238      </bezel>
239239
240240
241      <bezel name="lamp3" element="bet_b">
241      <bezel name="lamp3" element="bet_b" inputtag="IN0" inputmask="0x20">
242242         <bounds x="0.05" y="3.08" width="0.40" height="0.24" />
243243      </bezel>
244      <bezel name="lamp3" element="bet">
244      <bezel name="lamp3" element="bet" inputtag="IN0" inputmask="0x20">
245245         <bounds x="0.07" y="3.10" width="0.36" height="0.20" />
246246      </bezel>
247247
248248
249      <bezel name="lamp4" element="stop_b">
249      <bezel name="lamp4" element="stop_b" inputtag="IN0" inputmask="0x40">
250250         <bounds x="2.7" y="3.08" width="0.50" height="0.24" />
251251      </bezel>
252      <bezel name="lamp4" element="stop3">
252      <bezel name="lamp4" element="stop3" inputtag="IN0" inputmask="0x40">
253253         <bounds x="2.72" y="3.10" width="0.46" height="0.20" />
254254      </bezel>
255255
256256
257      <bezel name="lamp5" element="start_b">
257      <bezel name="lamp5" element="start_b" inputtag="IN0" inputmask="0x80">
258258         <bounds x="3.45" y="3.08" width="0.50" height="0.24" />
259259      </bezel>
260      <bezel name="lamp5" element="start">
260      <bezel name="lamp5" element="start" inputtag="IN0" inputmask="0x80">
261261         <bounds x="3.47" y="3.10" width="0.46" height="0.20" />
262262      </bezel>
263263


Previous 199869 Revisions Next


© 1997-2024 The MAME Team