Previous 199869 Revisions Next

r26483 Monday 2nd December, 2013 at 18:44:34 UTC by hap
tab align stuff
[src/mame/drivers]omegrace.c

trunk/src/mame/drivers/omegrace.c
r26482r26483
4949
5050    1  -  -  0  0                    Vec RAM (4k)
5151    1  -  -  0  1
52    1  -  -  1  0            Vec ROM (2k) E1
52    1  -  -  1  0                    Vec ROM (2k) E1
5353    1  -  -  1  1                    Vec ROM (2k) F1
5454
5555    I/O Ports
r26482r26483
6161
6262    10 I    DIP SW C4 (game ship settings)
6363
64        6 5  4 3  2 1
64            6 5  4 3  2 1
6565                          1st bonus ship at
6666            | |  | |  0 0  40,000
6767            | |  | |  0 1  50,000
r26482r26483
7979            1 1           1 credit = 3 ships / 2 credits = 7 ships
8080
8181    11 I    7 = Test
82        6 = P1 Fire
83        5 = P1 Thrust
84        4 = Tilt
82            6 = P1 Fire
83            5 = P1 Thrust
84            4 = Tilt
8585
86        1 = Coin 2
87        0 = Coin 1
86            1 = Coin 2
87            0 = Coin 1
8888
8989    12 I    7 = 1P1CR
90        6 = 1P2CR
90            6 = 1P2CR
9191
92        3 = 2P2CR -+
93        2 = 2P1CR  |
94        1 = P2Fire |
95        0 = P2Thr -+ cocktail only
92            3 = 2P2CR -+
93            2 = 2P1CR  |
94            1 = P2Fire |
95            0 = P2Thr -+ cocktail only
9696
97    13 O   7 =
97    13 O    7 =
9898            6 = screen reverse
9999            5 = 2 player 2 credit start LED
100100            4 = 2 player 1 credit start LED
r26482r26483
107107
108108    15 I    encoder 1 (d7-d2)
109109
110        The encoder is a 64 position Grey Code encoder, or a
111        pot and A to D converter.
110            The encoder is a 64 position Grey Code encoder, or a
111            pot and A to D converter.
112112
113        Unlike the quadrature inputs on Atari and Sega games,
113            Unlike the quadrature inputs on Atari and Sega games,
114114            Omega Race's controller is an absolute angle.
115115
116        0x00, 0x04, 0x14, 0x10, 0x18, 0x1c, 0x5c, 0x58,
117        0x50, 0x54, 0x44, 0x40, 0x48, 0x4c, 0x6c, 0x68,
118        0x60, 0x64, 0x74, 0x70, 0x78, 0x7c, 0xfc, 0xf8,
119        0xf0, 0xf4, 0xe4, 0xe0, 0xe8, 0xec, 0xcc, 0xc8,
120        0xc0, 0xc4, 0xd4, 0xd0, 0xd8, 0xdc, 0x9c, 0x98,
121        0x90, 0x94, 0x84, 0x80, 0x88, 0x8c, 0xac, 0xa8,
122        0xa0, 0xa4, 0xb4, 0xb0, 0xb8, 0xbc, 0x3c, 0x38,
123        0x30, 0x34, 0x24, 0x20, 0x28, 0x2c, 0x0c, 0x08
116            0x00, 0x04, 0x14, 0x10, 0x18, 0x1c, 0x5c, 0x58,
117            0x50, 0x54, 0x44, 0x40, 0x48, 0x4c, 0x6c, 0x68,
118            0x60, 0x64, 0x74, 0x70, 0x78, 0x7c, 0xfc, 0xf8,
119            0xf0, 0xf4, 0xe4, 0xe0, 0xe8, 0xec, 0xcc, 0xc8,
120            0xc0, 0xc4, 0xd4, 0xd0, 0xd8, 0xdc, 0x9c, 0x98,
121            0x90, 0x94, 0x84, 0x80, 0x88, 0x8c, 0xac, 0xa8,
122            0xa0, 0xa4, 0xb4, 0xb0, 0xb8, 0xbc, 0x3c, 0x38,
123            0x30, 0x34, 0x24, 0x20, 0x28, 0x2c, 0x0c, 0x08
124124
125125    16 I    encoder 2 (d5-d0)
126126
127        The inputs aren't scrambled as they are on the 1 player
127            The inputs aren't scrambled as they are on the 1 player
128128            encoder
129129
130130    17 I    DIP SW C6 (coin/cocktail settings)
r26482r26483
199199
200200    I/O (write-only)
201201
202    0,1             8912 (K3)
203    2,3         8912 (J3)
202    0,1                     8912 (K3)
203    2,3                     8912 (J3)
204204
205205
206206    I/O (read-only)
r26482r26483
232232      m_maincpu(*this, "maincpu"),
233233      m_audiocpu(*this, "audiocpu") { }
234234
235   required_device<cpu_device> m_maincpu;
236   required_device<cpu_device> m_audiocpu;
237
235238   DECLARE_READ8_MEMBER(omegrace_vg_go_r);
236239   DECLARE_READ8_MEMBER(omegrace_spinner1_r);
237240   DECLARE_WRITE8_MEMBER(omegrace_leds_w);
238241   DECLARE_WRITE8_MEMBER(omegrace_soundlatch_w);
239242   DECLARE_DRIVER_INIT(omegrace);
240243   virtual void machine_reset();
241   required_device<cpu_device> m_maincpu;
242   required_device<cpu_device> m_audiocpu;
243244};
244245
245246
r26482r26483
266267
267268READ8_MEMBER(omegrace_state::omegrace_vg_go_r)
268269{
269   avgdvg_go_w(space,0,0);
270   avgdvg_go_w(space, 0, 0);
270271   return 0;
271272}
272273
r26482r26483
493494   /* main CPU */
494495   /* XTAL101 Crystal @ 12mhz */
495496   /* through 74LS161, Pin 13 = divide by 4 */
496   MCFG_CPU_ADD("maincpu", Z80,12000000/4)
497   MCFG_CPU_ADD("maincpu", Z80, XTAL_12MHz/4)
497498   MCFG_CPU_PROGRAM_MAP(main_map)
498499   MCFG_CPU_IO_MAP(port_map)
499500   MCFG_CPU_PERIODIC_INT_DRIVER(omegrace_state, irq0_line_hold, 250)
r26482r26483
502503   /* XTAL101 Crystal @ 12mhz */
503504   /* through 74LS161, Pin 12 = divide by 8 */
504505   /* Fed to CPU as 1.5mhz though line J4-D */
505   MCFG_CPU_ADD("audiocpu", Z80,12000000/8)
506   MCFG_CPU_ADD("audiocpu", Z80, XTAL_12MHz/8)
506507   MCFG_CPU_PROGRAM_MAP(sound_map)
507508   MCFG_CPU_IO_MAP(sound_port)
508509   MCFG_CPU_PERIODIC_INT_DRIVER(omegrace_state, nmi_line_pulse, 250)
r26482r26483
524525
525526   /* XTAL101 Crystal @ 12mhz */
526527   /* through 74LS92, Pin 8 = divide by 12 */
527   MCFG_SOUND_ADD("ay1", AY8912, 12000000/12)
528   MCFG_SOUND_ADD("ay1", AY8912, XTAL_12MHz/12)
528529   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
529530
530   MCFG_SOUND_ADD("ay2", AY8912, 12000000/12)
531   MCFG_SOUND_ADD("ay2", AY8912, XTAL_12MHz/12)
531532   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
532533MACHINE_CONFIG_END
533534

Previous 199869 Revisions Next


© 1997-2024 The MAME Team