Previous 199869 Revisions Next

r25347 Monday 16th September, 2013 at 14:54:00 UTC by hap
joystick is 4-way
[src/mame/drivers]flower.c

trunk/src/mame/drivers/flower.c
r25346r25347
393914       19E         "       "
4040
4141                Upright or Cocktail cabinet
42     Two 8-Way joysticks with three (3) fire buttons each
42     Two 4-Way joysticks with three (3) fire buttons each
4343
4444    Button 1: Laser    Button 2: Missle    Button 3: Cutter
4545
r25346r25347
194194   PORT_DIPSETTING(    0x00, "50k, then every 80k" )
195195
196196   PORT_START("IN0CPU1")
197   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_8WAY
198   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  ) PORT_8WAY
199   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  ) PORT_8WAY
200   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY
197   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_4WAY
198   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  ) PORT_4WAY
199   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  ) PORT_4WAY
200   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY
201201   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("P1 Laser")
202202   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P1 Missile")
203203   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("P1 Cutter")
204204   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
205205
206206   PORT_START("IN1CPU1")
207   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_8WAY PORT_COCKTAIL
208   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  ) PORT_8WAY PORT_COCKTAIL
209   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  ) PORT_8WAY PORT_COCKTAIL
210   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
207   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_4WAY PORT_COCKTAIL
208   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  ) PORT_4WAY PORT_COCKTAIL
209   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  ) PORT_4WAY PORT_COCKTAIL
210   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL
211211   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Laser")
212212   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Missile")
213213   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_COCKTAIL PORT_NAME("P2 Cutter")
r25346r25347
250250   // cpus are Z80 "A" type, official maximum speed of 4 MHz, but 4.6 MHz has been proven to work in practice
251251   MCFG_CPU_ADD("maincpu", Z80,XTAL_18_432MHz/4)
252252   MCFG_CPU_PROGRAM_MAP(flower_cpu1_2)
253   MCFG_CPU_VBLANK_INT_DRIVER("screen", flower_state, irq0_line_hold)
253   MCFG_CPU_VBLANK_INT_DRIVER("screen", flower_state, irq0_line_hold)
254254
255255   MCFG_CPU_ADD("subcpu", Z80,XTAL_18_432MHz/4)
256256   MCFG_CPU_PROGRAM_MAP(flower_cpu1_2)
257   MCFG_CPU_PERIODIC_INT_DRIVER(flower_state, irq0_line_hold, 120)    // controls game speed? irqsource and frequency unknown
257   MCFG_CPU_PERIODIC_INT_DRIVER(flower_state, irq0_line_hold, 120) // controls game speed? irqsource and frequency unknown
258258
259259   MCFG_CPU_ADD("audiocpu", Z80,XTAL_18_432MHz/4)
260260   MCFG_CPU_PROGRAM_MAP(flower_sound_cpu)
261   MCFG_CPU_PERIODIC_INT_DRIVER(flower_state, irq0_line_hold, 90) // controls music speed. irqsource and frequency unknown, same as subcpu perhaps?
261   MCFG_CPU_PERIODIC_INT_DRIVER(flower_state, irq0_line_hold, 90) // controls music speed. irqsource and frequency unknown, same as subcpu perhaps?
262262
263263   // tight sync, slowdowns otherwise
264264//  MCFG_QUANTUM_PERFECT_CPU("maincpu")
r25346r25347
266266
267267   /* video hardware */
268268   MCFG_SCREEN_ADD("screen", RASTER)
269   MCFG_SCREEN_REFRESH_RATE(60)        // ?
269   MCFG_SCREEN_REFRESH_RATE(60) // ?
270270   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
271271   MCFG_SCREEN_SIZE(34*8, 33*8)
272272   MCFG_SCREEN_VISIBLE_AREA(0*8, 34*8-1, 0*8, 28*8-1)
273273   MCFG_SCREEN_UPDATE_DRIVER(flower_state, screen_update_flower)
274274
275275   MCFG_GFXDECODE(flower)
276
277276   MCFG_PALETTE_LENGTH(256)
278277
279
280278   /* sound hardware */
281279   MCFG_SPEAKER_STANDARD_MONO("mono")
282280

Previous 199869 Revisions Next


© 1997-2024 The MAME Team