Previous 199869 Revisions Next

r19341 Wednesday 5th December, 2012 at 18:59:49 UTC by Angelo Salese
(MAME) Added color prom to Taxi Driver, and fixed colors in it [Zab, Angelo Salese]
[src/mame/drivers]taxidriv.c
[src/mame/includes]taxidriv.h

trunk/src/mame/drivers/taxidriv.c
r19340r19341
314314   8,8,
315315   RGN_FRAC(1,1),
316316   4,
317   { 3, 2, 1, 0 },
317   { 0, 1, 2, 3 },
318318   { 1*4, 0*4, 3*4, 2*4, 5*4, 4*4, 7*4, 6*4 },
319319   { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 },
320320   32*8
r19340r19341
325325   4,4,
326326   RGN_FRAC(1,1),
327327   4,
328   { 3, 2, 1, 0 },
328   { 0, 1, 2, 3 },
329329   { 1*4, 0*4, 3*4, 2*4 },
330330   { 0*16, 1*16, 2*16, 3*16 },
331331   16*4
r19340r19341
362362   DEVCB_NULL
363363};
364364
365void taxidriv_state::palette_init()
366{
367   const UINT8 *color_prom = machine().root_device().memregion("proms")->base();
368   int bit0, bit1, r, g, b;
369   int   i;
365370
371   /* TODO: resistors, 1k & 470*/
366372
373   for (i = 0; i < 0x10; ++i)
374   {
375      bit0 = (color_prom[0] >> 0) & 0x01;
376      bit1 = (color_prom[0] >> 1) & 0x01;
377      r = 0x55 * bit0 + 0xaa * bit1;
378      bit0 = (color_prom[0] >> 2) & 0x01;
379      bit1 = (color_prom[0] >> 3) & 0x01;
380      g = 0x55 * bit0 + 0xaa * bit1;
381      bit0 = (color_prom[0] >> 4) & 0x01;
382      bit1 = (color_prom[0] >> 5) & 0x01;
383      b = 0x55 * bit0 + 0xaa * bit1;
384
385      palette_set_color(machine(), i, MAKE_RGB(r, g, b));
386      color_prom++;
387   }
388}
389
367390static MACHINE_CONFIG_START( taxidriv, taxidriv_state )
368391
369392   /* basic machine hardware */
r19340r19341
453476    ROM_LOAD( "12.21.ic88",   0x0000, 0x2000, CRC(684b7bb0) SHA1(d83c45ff3adf94c649340227794020482231399f) )
454477    ROM_LOAD( "13.20.ic89",   0x2000, 0x2000, CRC(d1ef110e) SHA1(e34b6b4b70c783a8cf1296a05d3cec6af5820d0c) )
455478
456   ROM_REGION( 0x0100, "proms", 0 )
457   ROM_LOAD( "prom.ic2",  0x0000, 0x0100, NO_DUMP ) // color prom located at edge of pcb
479   ROM_REGION( 0x020, "proms", 0 )
480   ROM_LOAD( "prom.ic2",  0x0000, 0x020, CRC(c366a9c5) SHA1(d38581e5c425cab4a4f216d99651e86d8034a7d2) ) // color prom located at edge of pcb
458481ROM_END
459482
460483
461GAME( 1984, taxidriv,  0,        taxidriv, taxidriv, driver_device, 0, ROT90, "Graphic Techno", "Taxi Driver", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL )
484GAME( 1984, taxidriv,  0,        taxidriv, taxidriv, driver_device, 0, ROT90, "Graphic Techno", "Taxi Driver", GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL )
trunk/src/mame/includes/taxidriv.h
r19340r19341
5151   DECLARE_READ8_MEMBER(p8910_1a_r);
5252   DECLARE_WRITE8_MEMBER(p8910_0b_w);
5353   DECLARE_WRITE8_MEMBER(taxidriv_spritectrl_w);
54   virtual void palette_init();
5455   UINT32 screen_update_taxidriv(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
5556};

Previous 199869 Revisions Next


© 1997-2024 The MAME Team