Previous 199869 Revisions Next

r26361 Friday 22nd November, 2013 at 15:22:45 UTC by hap
small tweaks, based on measurement and video by any
[src/mame/drivers]lbeach.c

trunk/src/mame/drivers/lbeach.c
r26360r26361
1717  or to make room for future additions?
1818
1919TODO:
20- discrete sound?
21- correct colors
20- discrete sound
21- improve colors
2222- unknown writes
23- video/nmi timing
2423
2524***************************************************************************/
2625
r26360r26361
8483
8584void lbeach_state::palette_init()
8685{
87   // This is guesswork.
88   // The only hints are the gradient on the Seletron screen,
89   // and the highlighted blocks in testmode.
90   
9186   // tiles
9287   palette_set_color_rgb(machine(), 0, 0x00, 0x00, 0x00);
93   palette_set_color_rgb(machine(), 1, 0xff, 0xff, 0xff);
88   palette_set_color_rgb(machine(), 1, 0xc0, 0xc0, 0xc0);
9489
9590   // road
9691   palette_set_color_rgb(machine(), 2, 0x00, 0x00, 0x00);
r26360r26361
107102
108103   // player car
109104   palette_set_color_rgb(machine(), 10, 0x00, 0x00, 0x00);
110   palette_set_color_rgb(machine(), 11, 0xc0, 0xc0, 0xc0);
105   palette_set_color_rgb(machine(), 11, 0xff, 0xff, 0xff);
111106}
112107
113108
r26360r26361
326321   /* basic machine hardware */
327322   MCFG_CPU_ADD("maincpu", M6800, XTAL_16MHz / 32) // Motorola MC6800P, 500kHz
328323   MCFG_CPU_PROGRAM_MAP(lbeach_map)
329   MCFG_CPU_PERIODIC_INT_DRIVER(lbeach_state, nmi_line_pulse, 50) // unknown freq, it affects game speed, glitchy if it's too fast
324   MCFG_CPU_VBLANK_INT_DRIVER("screen", lbeach_state, nmi_line_pulse)
330325
331326   MCFG_NVRAM_ADD_0FILL("nvram")
332327
333328   /* video hardware */
334329   MCFG_SCREEN_ADD("screen", RASTER)
335   MCFG_SCREEN_REFRESH_RATE(60) // ?
330   MCFG_SCREEN_REFRESH_RATE(60) // ~60Hz
336331   MCFG_SCREEN_SIZE(512, 256)
337332   MCFG_SCREEN_VISIBLE_AREA(0, 511-32, 0, 255-24)
338333   MCFG_SCREEN_UPDATE_DRIVER(lbeach_state, screen_update_lbeach)
r26360r26361
372367ROM_END
373368
374369
375GAMEL(1979, lbeach, 0, lbeach, lbeach, driver_device, 0, ROT0, "Olympia / Seletron", "Long Beach", GAME_WRONG_COLORS | GAME_NO_SOUND | GAME_SUPPORTS_SAVE, layout_lbeach )
370GAMEL(1979, lbeach, 0, lbeach, lbeach, driver_device, 0, ROT0, "Olympia / Seletron", "Long Beach", GAME_IMPERFECT_COLORS | GAME_NO_SOUND | GAME_SUPPORTS_SAVE, layout_lbeach )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team