Previous 199869 Revisions Next

r17746 Sunday 9th September, 2012 at 09:23:55 UTC by Curt Coder
(MESS) c64: Fixed edu64/pet64 crash. (nw)
[src/mess/drivers]c64.c

trunk/src/mess/drivers/c64.c
r17745r17746
373373//  vic2_interface vic_intf
374374//-------------------------------------------------
375375
376static 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
389static 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
396376static INTERRUPT_GEN( c64_frame_interrupt )
397377{
398378   c64_state *state = device->machine().driver_data<c64_state>();
r17745r17746
10581038//-------------------------------------------------
10591039
10601040static MACHINE_CONFIG_DERIVED( pet64, ntsc )
1061   MCFG_PALETTE_INIT( pet64 )
1041   // TODO monochrome green palette
10621042MACHINE_CONFIG_END
10631043
10641044
r17745r17746
15151495COMP( 1982,   c64j,   c64n,   0,      ntsc,      c64,    driver_device,      0,      "Commodore Business Machines", "Commodore 64 (Japan)",                  GAME_SUPPORTS_SAVE )
15161496COMP( 1982,   c64p,   c64n,   0,      pal,      c64,    driver_device,      0,      "Commodore Business Machines", "Commodore 64 (PAL)",                  GAME_SUPPORTS_SAVE )
15171497COMP( 1982,   c64sw,   c64n,   0,      pal,      c64sw,    driver_device,      0,      "Commodore Business Machines", "Commodore 64 / VIC-64S (Sweden/Finland)",   GAME_SUPPORTS_SAVE )
1518COMP( 1983, pet64,   c64n,   0,     pet64,     c64,    driver_device,       0,     "Commodore Business Machines", "PET 64 / CBM 4064 (NTSC)",               GAME_SUPPORTS_SAVE )
1519COMP( 1983, edu64,  c64n,   0,     pet64,     c64,    driver_device,       0,     "Commodore Business Machines", "Educator 64 (NTSC)",                  GAME_SUPPORTS_SAVE )
1498COMP( 1983, pet64,   c64n,   0,     pet64,     c64,    driver_device,       0,     "Commodore Business Machines", "PET 64 / CBM 4064 (NTSC)",               GAME_SUPPORTS_SAVE | GAME_WRONG_COLORS )
1499COMP( 1983, edu64,  c64n,   0,     pet64,     c64,    driver_device,       0,     "Commodore Business Machines", "Educator 64 (NTSC)",                  GAME_SUPPORTS_SAVE | GAME_WRONG_COLORS )
15201500COMP( 1984, sx64n,   c64n,   0,      ntsc_sx,   c64,    driver_device,      0,      "Commodore Business Machines", "SX-64 / Executive 64 (NTSC)",            GAME_SUPPORTS_SAVE )
15211501COMP( 1984, sx64p,   c64n,   0,      pal_sx,      c64,    driver_device,      0,      "Commodore Business Machines", "SX-64 / Executive 64 (PAL)",            GAME_SUPPORTS_SAVE )
15221502COMP( 1984, vip64,   c64n,   0,      pal_sx,      c64sw,    driver_device,      0,      "Commodore Business Machines", "VIP-64 (Sweden/Finland)",               GAME_SUPPORTS_SAVE )

Previous 199869 Revisions Next


© 1997-2024 The MAME Team