Previous 199869 Revisions Next

r18371 Tuesday 9th October, 2012 at 10:18:17 UTC by hap
(placeholder)
[src/mame]mame.mak
[src/mame/drivers]dragrace.c
[src/mame/layout]dragrace.lay*

trunk/src/mame/mame.mak
r18370r18371
20452045
20462046$(DRIVERS)/destroyr.o:   $(LAYOUT)/destroyr.lh
20472047
2048$(DRIVERS)/dlair.o:   $(LAYOUT)/dlair.lh
2048$(DRIVERS)/dlair.o:      $(LAYOUT)/dlair.lh
20492049
2050$(DRIVERS)/dragrace.o:   $(LAYOUT)/dragrace.lh
2051
20502052$(DRIVERS)/firebeat.o:   $(LAYOUT)/firebeat.lh
20512053
20522054$(DRIVERS)/flicker.o:   $(LAYOUT)/flicker.lh
trunk/src/mame/layout/dragrace.lay
r0r18371
1<?xml version="1.0"?>
2<mamelayout version="2">
3   <element name="overlay">
4      <rect>
5         <color red="0.094" green="0.5" blue="1.0" />
6      </rect>
7   </element>   
8
9   <view name="Color Overlay">
10      <screen index="0">
11         <bounds left="0" top="0" right="4" bottom="3" />
12      </screen>
13      <overlay element="overlay">
14         <bounds left="0" top="0" right="4" bottom="3" />
15      </overlay>
16   </view>
17</mamelayout>
trunk/src/mame/drivers/dragrace.c
r18370r18371
99#include "includes/dragrace.h"
1010#include "sound/discrete.h"
1111
12#include "dragrace.lh"
1213
14
1315TIMER_DEVICE_CALLBACK_MEMBER(dragrace_state::dragrace_frame_callback)
1416{
1517   int i;
r18370r18371
8890
8991WRITE8_MEMBER(dragrace_state::dragrace_misc_w)
9092{
91
9293   /* Set/clear individual bit */
9394   UINT32 mask = 1 << offset;
9495   if (data & 0x01)
r18370r18371
101102
102103WRITE8_MEMBER(dragrace_state::dragrace_misc_clear_w)
103104{
104
105105   /* Clear 8 bits */
106106   UINT32 mask = 0xff << (((offset >> 3) & 0x03) * 8);
107107   m_misc_flags &= (~mask);
r18370r18371
317317
318318void dragrace_state::machine_reset()
319319{
320
321320   m_misc_flags = 0;
322321   m_gear[0] = 0;
323322   m_gear[1] = 0;
r18370r18371
331330   MCFG_CPU_PERIODIC_INT_DRIVER(dragrace_state, irq0_line_hold,  4*60)
332331   MCFG_WATCHDOG_VBLANK_INIT(8)
333332
334
335333   MCFG_TIMER_DRIVER_ADD_PERIODIC("frame_timer", dragrace_state, dragrace_frame_callback, attotime::from_hz(60))
336334
337335   /* video hardware */
r18370r18371
358356   ROM_REGION( 0x10000, "maincpu", 0 )
359357   ROM_LOAD( "8513.c1", 0x1000, 0x0800, CRC(543bbb30) SHA1(646a41d1124c8365f07a93de38af007895d7d263) )
360358   ROM_LOAD( "8514.a1", 0x1800, 0x0800, CRC(ad218690) SHA1(08ba5f4fa4c75d8dad1a7162888d44b3349cbbe4) )
361   ROM_RELOAD(          0xF800, 0x0800 )
359   ROM_RELOAD(          0xf800, 0x0800 )
362360
363361   ROM_REGION( 0x800, "gfx1", 0 )   /* 2 color tiles */
364362   ROM_LOAD( "8519dr.j0", 0x000, 0x200, CRC(aa221ba0) SHA1(450acbf349d77a790a25f3e303c31b38cc426a38) )
r18370r18371
373371ROM_END
374372
375373
376GAME( 1977, dragrace, 0, dragrace, dragrace, driver_device, 0, 0, "Atari (Kee Games)", "Drag Race", GAME_SUPPORTS_SAVE )
374GAMEL(1977, dragrace, 0, dragrace, dragrace, driver_device, 0, 0, "Atari (Kee Games)", "Drag Race", GAME_SUPPORTS_SAVE, layout_dragrace )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team