Previous 199869 Revisions Next

r33055 Wednesday 29th October, 2014 at 16:21:08 UTC by Thomas Klausner
Convert to UTF-8.
[hash]vsmile_cd.xml
[src/mame]mame.mak
[src/mame/drivers]segaufo.c
[src/mame/layout]segaufo.lay
[src/mame/machine]315_5296.h

trunk/hash/vsmile_cd.xml
r241566r241567
1717********7 = Spain
1818
191980-093000(US)   | The Crystal Ball Adventures
2080-093004(GE)   | Das zauberhafte Märchenabenteuer
2180-093005(FR)   | L'aventure enchantée>
2080-093004(GE)   | Das zauberhafte Märchenabenteuer
2180-093005(FR)   | L'aventure enchantée
222280-093007(SP)   | El Castillo de las Princesas
2323-
242480-093020(US)   | The Incredibles - Mission Incredible
r241566r241567
3131-
323280-093060(US)   | The Amazing Spider-Man - Countdown to Doom
333380-093064(GE)   | Spiderman - Angriff der Superschurken
3480-093065(FR)   | Spider-Man - Course-poursuite à Manhattan
3480-093065(FR)   | Spider-Man - Course-poursuite à Manhattan
353580-093067(SP)   | El Asombroso Spider-Man - Persecucion en la Cuidad
3636-
373780-093080(US)   | Scooby-Doo! - Ancient Adventure
r241566r241567
414180-093087(SP)   | Scooby-Doo - Viaje al Pasdao
4242-
434380-093100(US)   | Cars - In The Fast Lane
4480-093104(GE)   | Cars - Auf der Überholspur
4480-093104(GE)   | Cars - Auf der Überholspur
454580-093105(FR)   | Cars - A Fond la Caisse!
464680-093107(SP)   | Cars - El Carril Rapido
4747-
484880-093120(US)   | Wacky Race on Jumpin' Bean Island
4980-093124(GE)   | Das verrückte Rennen auf der Hüpf-Bohnen-Insel
4980-093124(GE)   | Das verrückte Rennen auf der Hüpf-Bohnen-Insel
505080-093127(SP)   | Carrera Loca - En La Isla de las Vainas Fritas  (real# unknown)
5151-
525280-093140(US)   | Shrek The Third - The Search for Arthur
trunk/src/mame/drivers/segaufo.c
r241566r241567
4747#include "machine/pit8253.h"
4848#include "machine/315_5296.h"
4949#include "sound/2612intf.h"
50#include "sound/upd7759.h"
5150
52#include "segaufo.lh"
5351
54
5552/* simulation parameters */
5653// x/y/z cabinet dimensions per player (motor range)
5754#define CABINET_WIDTH   400
r241566r241567
7269public:
7370   ufo_state(const machine_config &mconfig, device_type type, const char *tag)
7471      : driver_device(mconfig, type, tag),
75      m_maincpu(*this, "maincpu"),
76      m_upd(*this, "upd")
72      m_maincpu(*this, "maincpu")
7773   { }
7874
7975   required_device<cpu_device> m_maincpu;
80   optional_device<upd7759_device> m_upd;
8176   
8277   struct Player
8378   {
r241566r241567
108103   virtual void machine_reset();
109104   virtual void machine_start();
110105   TIMER_DEVICE_CALLBACK_MEMBER(simulate_xyz);
111   TIMER_DEVICE_CALLBACK_MEMBER(update_info);
112106};
113107
114108
r241566r241567
129123      m_player[p].motor[m].position = 1;
130124}
131125
126
132127TIMER_DEVICE_CALLBACK_MEMBER(ufo_state::simulate_xyz)
133128{
134129   for (int p = 0; p < 2; p++)
r241566r241567
136131         motor_tick(p, m);
137132}
138133
139
140TIMER_DEVICE_CALLBACK_MEMBER(ufo_state::update_info)
141{
142   ;
143}
144
145
146134/***************************************************************************
147135
148136  I/O
r241566r241567
156144
157145WRITE_LINE_MEMBER(ufo_state::pit_out1)
158146{
159   // NMI?
160   if (state)
161      m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
147   // ?
162148}
163149
164150WRITE_LINE_MEMBER(ufo_state::pit_out2)
165151{
166   // ?
152   // NMI?
153   if (state)
154      m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
167155}
168156
169157
r241566r241567
382370
383371void ufo_state::machine_start()
384372{
385   // init/zerofill/register for savestates
373   // init/zerofill
386374   static const float motor_speeds[4] =
387375      { 1.0f/CABINET_WIDTH, 1.0f/CABINET_DEPTH, 1.0f/CABINET_HEIGHT, 1.0f/CRANE_SIZE };
388376   
389   for (int m = 0; m < 4; m++)
377   for (int p = 0; p < 2; p++)
390378   {
391      for (int p = 0; p < 2; p++)
379      for (int m = 0; m < 4; m++)
392380      {
393381         m_player[p].motor[m].running = 0;
394382         m_player[p].motor[m].direction = 0;
395383         m_player[p].motor[m].position = 0.5;
396384         m_player[p].motor[m].speed = motor_speeds[m];
397385      }
398
399      save_item(NAME(m_player[0].motor[m].running), m);
400      save_item(NAME(m_player[0].motor[m].direction), m);
401      save_item(NAME(m_player[0].motor[m].position), m);
402
403      save_item(NAME(m_player[1].motor[m].running), m);
404      save_item(NAME(m_player[1].motor[m].direction), m);
405      save_item(NAME(m_player[1].motor[m].position), m);
406386   }
407   
408   m_stepper = 0;
409   save_item(NAME(m_stepper));
410387}
411388
412389WRITE_LINE_MEMBER(ufo_state::ym3438_irq)
r241566r241567
422399   MCFG_CPU_IO_MAP(ufo_portmap)
423400
424401   MCFG_TIMER_DRIVER_ADD_PERIODIC("motor_timer", ufo_state, simulate_xyz, attotime::from_hz(MOTOR_SPEED))
425   MCFG_TIMER_DRIVER_ADD_PERIODIC("update_timer", ufo_state, update_info, attotime::from_hz(60))
426402   
427403   MCFG_DEVICE_ADD("io1", SEGA_315_5296, 16000000)
428404   // all ports set to input
r241566r241567
514490ROM_END
515491
516492
517GAMEL( 1991, newufo,       0,      ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (standard)", GAME_MECHANICAL | GAME_SUPPORTS_SAVE, layout_segaufo )
518GAMEL( 1991, newufo_sonic, newufo, ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (Sonic The Hedgehog)", GAME_MECHANICAL | GAME_SUPPORTS_SAVE, layout_segaufo )
519GAMEL( 1991, newufo_nfl,   newufo, ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (Team NFL)", GAME_MECHANICAL | GAME_SUPPORTS_SAVE, layout_segaufo )
520GAMEL( 1991, newufo_xmas,  newufo, ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (Christmas season ROM kit)", GAME_MECHANICAL | GAME_SUPPORTS_SAVE, layout_segaufo )
521GAMEL( 1991, ufomini,      0,      ufo, ufo, driver_device, 0, ROT0, "Sega", "UFO Catcher Mini", GAME_NOT_WORKING | GAME_MECHANICAL | GAME_SUPPORTS_SAVE, layout_segaufo )
522GAMEL( 1996, ufo21,        0,      ufo, ufo, driver_device, 0, ROT0, "Sega", "UFO Catcher 21", GAME_NOT_WORKING | GAME_MECHANICAL | GAME_SUPPORTS_SAVE, layout_segaufo )
523GAMEL( 1998, ufo800,       0,      ufo, ufo, driver_device, 0, ROT0, "Sega", "UFO Catcher 800", GAME_NOT_WORKING | GAME_MECHANICAL | GAME_SUPPORTS_SAVE, layout_segaufo )
493GAME (1991, newufo,       0,      ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (standard)", GAME_MECHANICAL )
494GAME (1991, newufo_sonic, newufo, ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (Sonic The Hedgehog)", GAME_MECHANICAL )
495GAME (1991, newufo_nfl,   newufo, ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (Team NFL)", GAME_MECHANICAL )
496GAME (1991, newufo_xmas,  newufo, ufo, ufo, driver_device, 0, ROT0, "Sega", "New UFO Catcher (Christmas season ROM kit)", GAME_MECHANICAL )
497GAME (1991, ufomini,      0,      ufo, ufo, driver_device, 0, ROT0, "Sega", "UFO Catcher Mini", GAME_NOT_WORKING | GAME_MECHANICAL )
498GAME (1996, ufo21,        0,      ufo, ufo, driver_device, 0, ROT0, "Sega", "UFO Catcher 21", GAME_NOT_WORKING | GAME_MECHANICAL )
499GAME (1998, ufo800,       0,      ufo, ufo, driver_device, 0, ROT0, "Sega", "UFO Catcher 800", GAME_NOT_WORKING | GAME_MECHANICAL )
trunk/src/mame/layout/segaufo.lay
r241566r241567
1<?xml version="1.0"?>
2<mamelayout version="2">
3
4
5<!-- define elements -->
6
7   <element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element>
8
9   <element name="digit" defstate="0">
10      <led7seg>
11         <color red="1.0" green="0.3" blue="0.2" />
12      </led7seg>
13   </element>
14
15
16   <view name="Internal Layout">
17      <bounds left="0" right="100" top="0" bottom="50" />
18      <bezel element="static_black">
19         <bounds left="0" right="100" top="0" bottom="50" />
20      </bezel>
21
22      <bezel name="digit0" element="digit">
23         <bounds x="10" y="10" width="10" height="15" />
24      </bezel>
25      <bezel name="digit1" element="digit">
26         <bounds x="20" y="10" width="10" height="15" />
27      </bezel>
28
29   </view>
30</mamelayout>
trunk/src/mame/machine/315_5296.h
r241566r241567
100100
101101   DECLARE_READ8_MEMBER( read );
102102   DECLARE_WRITE8_MEMBER( write );
103   
104   UINT8 debug_peek_output(offs_t offset) { return m_output_latch[offset & 7]; }
105103
106104protected:
107105   // device-level overrides
trunk/src/mame/mame.mak
r241566r241567
28332833
28342834$(DRIVERS)/segas32.o:   $(LAYOUT)/radr.lh
28352835
2836$(DRIVERS)/segaufo.o:   $(LAYOUT)/segaufo.lh
2837
28382836$(DRIVERS)/segaybd.o:   $(LAYOUT)/pdrift.lh
28392837
28402838$(DRIVERS)/sigmab52.o:  $(LAYOUT)/sigmab52.lh


Previous 199869 Revisions Next


© 1997-2024 The MAME Team