trunk/src/mame/drivers/taxidriv.c
| r19340 | r19341 | |
| 314 | 314 | 8,8, |
| 315 | 315 | RGN_FRAC(1,1), |
| 316 | 316 | 4, |
| 317 | | { 3, 2, 1, 0 }, |
| 317 | { 0, 1, 2, 3 }, |
| 318 | 318 | { 1*4, 0*4, 3*4, 2*4, 5*4, 4*4, 7*4, 6*4 }, |
| 319 | 319 | { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 }, |
| 320 | 320 | 32*8 |
| r19340 | r19341 | |
| 325 | 325 | 4,4, |
| 326 | 326 | RGN_FRAC(1,1), |
| 327 | 327 | 4, |
| 328 | | { 3, 2, 1, 0 }, |
| 328 | { 0, 1, 2, 3 }, |
| 329 | 329 | { 1*4, 0*4, 3*4, 2*4 }, |
| 330 | 330 | { 0*16, 1*16, 2*16, 3*16 }, |
| 331 | 331 | 16*4 |
| r19340 | r19341 | |
| 362 | 362 | DEVCB_NULL |
| 363 | 363 | }; |
| 364 | 364 | |
| 365 | void 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; |
| 365 | 370 | |
| 371 | /* TODO: resistors, 1k & 470*/ |
| 366 | 372 | |
| 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 | |
| 367 | 390 | static MACHINE_CONFIG_START( taxidriv, taxidriv_state ) |
| 368 | 391 | |
| 369 | 392 | /* basic machine hardware */ |
| r19340 | r19341 | |
| 453 | 476 | ROM_LOAD( "12.21.ic88", 0x0000, 0x2000, CRC(684b7bb0) SHA1(d83c45ff3adf94c649340227794020482231399f) ) |
| 454 | 477 | ROM_LOAD( "13.20.ic89", 0x2000, 0x2000, CRC(d1ef110e) SHA1(e34b6b4b70c783a8cf1296a05d3cec6af5820d0c) ) |
| 455 | 478 | |
| 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 |
| 458 | 481 | ROM_END |
| 459 | 482 | |
| 460 | 483 | |
| 461 | | GAME( 1984, taxidriv, 0, taxidriv, taxidriv, driver_device, 0, ROT90, "Graphic Techno", "Taxi Driver", GAME_WRONG_COLORS | GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL ) |
| 484 | GAME( 1984, taxidriv, 0, taxidriv, taxidriv, driver_device, 0, ROT90, "Graphic Techno", "Taxi Driver", GAME_IMPERFECT_GRAPHICS | GAME_NO_COCKTAIL ) |