trunk/src/mess/drivers/c64.c
| r17745 | r17746 | |
| 373 | 373 | // vic2_interface vic_intf |
| 374 | 374 | //------------------------------------------------- |
| 375 | 375 | |
| 376 | | static const unsigned char c64_palette[] = |
| 377 | | { |
| 378 | | // black, white, red, cyan |
| 379 | | // purple, green, blue, yellow |
| 380 | | // orange, brown, light red, dark gray, |
| 381 | | // medium gray, light green, light blue, light gray |
| 382 | | // taken from the vice emulator |
| 383 | | 0x00, 0x00, 0x00, 0xfd, 0xfe, 0xfc, 0xbe, 0x1a, 0x24, 0x30, 0xe6, 0xc6, |
| 384 | | 0xb4, 0x1a, 0xe2, 0x1f, 0xd2, 0x1e, 0x21, 0x1b, 0xae, 0xdf, 0xf6, 0x0a, |
| 385 | | 0xb8, 0x41, 0x04, 0x6a, 0x33, 0x04, 0xfe, 0x4a, 0x57, 0x42, 0x45, 0x40, |
| 386 | | 0x70, 0x74, 0x6f, 0x59, 0xfe, 0x59, 0x5f, 0x53, 0xfe, 0xa4, 0xa7, 0xa2 |
| 387 | | }; |
| 388 | | |
| 389 | | static PALETTE_INIT( pet64 ) |
| 390 | | { |
| 391 | | int i; |
| 392 | | for (i = 0; i < 16; i++) |
| 393 | | palette_set_color_rgb(machine, i, 0, c64_palette[i * 3 + 1], 0); |
| 394 | | } |
| 395 | | |
| 396 | 376 | static INTERRUPT_GEN( c64_frame_interrupt ) |
| 397 | 377 | { |
| 398 | 378 | c64_state *state = device->machine().driver_data<c64_state>(); |
| r17745 | r17746 | |
| 1058 | 1038 | //------------------------------------------------- |
| 1059 | 1039 | |
| 1060 | 1040 | static MACHINE_CONFIG_DERIVED( pet64, ntsc ) |
| 1061 | | MCFG_PALETTE_INIT( pet64 ) |
| 1041 | // TODO monochrome green palette |
| 1062 | 1042 | MACHINE_CONFIG_END |
| 1063 | 1043 | |
| 1064 | 1044 | |
| r17745 | r17746 | |
| 1515 | 1495 | COMP( 1982, c64j, c64n, 0, ntsc, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64 (Japan)", GAME_SUPPORTS_SAVE ) |
| 1516 | 1496 | COMP( 1982, c64p, c64n, 0, pal, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64 (PAL)", GAME_SUPPORTS_SAVE ) |
| 1517 | 1497 | COMP( 1982, c64sw, c64n, 0, pal, c64sw, driver_device, 0, "Commodore Business Machines", "Commodore 64 / VIC-64S (Sweden/Finland)", GAME_SUPPORTS_SAVE ) |
| 1518 | | COMP( 1983, pet64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "PET 64 / CBM 4064 (NTSC)", GAME_SUPPORTS_SAVE ) |
| 1519 | | COMP( 1983, edu64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "Educator 64 (NTSC)", GAME_SUPPORTS_SAVE ) |
| 1498 | COMP( 1983, pet64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "PET 64 / CBM 4064 (NTSC)", GAME_SUPPORTS_SAVE | GAME_WRONG_COLORS ) |
| 1499 | COMP( 1983, edu64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "Educator 64 (NTSC)", GAME_SUPPORTS_SAVE | GAME_WRONG_COLORS ) |
| 1520 | 1500 | COMP( 1984, sx64n, c64n, 0, ntsc_sx, c64, driver_device, 0, "Commodore Business Machines", "SX-64 / Executive 64 (NTSC)", GAME_SUPPORTS_SAVE ) |
| 1521 | 1501 | COMP( 1984, sx64p, c64n, 0, pal_sx, c64, driver_device, 0, "Commodore Business Machines", "SX-64 / Executive 64 (PAL)", GAME_SUPPORTS_SAVE ) |
| 1522 | 1502 | COMP( 1984, vip64, c64n, 0, pal_sx, c64sw, driver_device, 0, "Commodore Business Machines", "VIP-64 (Sweden/Finland)", GAME_SUPPORTS_SAVE ) |