trunk/src/mame/drivers/lbeach.c
r26360 | r26361 | |
17 | 17 | or to make room for future additions? |
18 | 18 | |
19 | 19 | TODO: |
20 | | - discrete sound? |
21 | | - correct colors |
| 20 | - discrete sound |
| 21 | - improve colors |
22 | 22 | - unknown writes |
23 | | - video/nmi timing |
24 | 23 | |
25 | 24 | ***************************************************************************/ |
26 | 25 | |
r26360 | r26361 | |
84 | 83 | |
85 | 84 | void lbeach_state::palette_init() |
86 | 85 | { |
87 | | // This is guesswork. |
88 | | // The only hints are the gradient on the Seletron screen, |
89 | | // and the highlighted blocks in testmode. |
90 | | |
91 | 86 | // tiles |
92 | 87 | 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); |
94 | 89 | |
95 | 90 | // road |
96 | 91 | palette_set_color_rgb(machine(), 2, 0x00, 0x00, 0x00); |
r26360 | r26361 | |
107 | 102 | |
108 | 103 | // player car |
109 | 104 | 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); |
111 | 106 | } |
112 | 107 | |
113 | 108 | |
r26360 | r26361 | |
326 | 321 | /* basic machine hardware */ |
327 | 322 | MCFG_CPU_ADD("maincpu", M6800, XTAL_16MHz / 32) // Motorola MC6800P, 500kHz |
328 | 323 | 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) |
330 | 325 | |
331 | 326 | MCFG_NVRAM_ADD_0FILL("nvram") |
332 | 327 | |
333 | 328 | /* video hardware */ |
334 | 329 | MCFG_SCREEN_ADD("screen", RASTER) |
335 | | MCFG_SCREEN_REFRESH_RATE(60) // ? |
| 330 | MCFG_SCREEN_REFRESH_RATE(60) // ~60Hz |
336 | 331 | MCFG_SCREEN_SIZE(512, 256) |
337 | 332 | MCFG_SCREEN_VISIBLE_AREA(0, 511-32, 0, 255-24) |
338 | 333 | MCFG_SCREEN_UPDATE_DRIVER(lbeach_state, screen_update_lbeach) |
r26360 | r26361 | |
372 | 367 | ROM_END |
373 | 368 | |
374 | 369 | |
375 | | GAMEL(1979, lbeach, 0, lbeach, lbeach, driver_device, 0, ROT0, "Olympia / Seletron", "Long Beach", GAME_WRONG_COLORS | GAME_NO_SOUND | GAME_SUPPORTS_SAVE, layout_lbeach ) |
| 370 | GAMEL(1979, lbeach, 0, lbeach, lbeach, driver_device, 0, ROT0, "Olympia / Seletron", "Long Beach", GAME_IMPERFECT_COLORS | GAME_NO_SOUND | GAME_SUPPORTS_SAVE, layout_lbeach ) |