Previous 15994 Revisions Next

r5539 Sunday 30th August, 2009 at 06:59:04 UTC by Roberto Zandonà
[C64] added domark cart
[src/mess/machine]c64.c

src/mess/machine/c64.c
r5538r5539
11281128         case C64GS:         /* Type # 15 */
11291129         case DINAMIC:      /* Type # 17 */
11301130         case ZAXXON:      /* Type # 18 */
1131         case DOMARK:      /* Type # 19 */
11311132         case COMAL_80:      /* Type # 21 */
11321133         case GENERIC_CRT:      /* Type #  0 */
11331134            printf("Currently supported cart type (Type %d)\n", c64_cart_type);
r5538r5539
14981499   return cart[offset & 0x0fff];
14991500}
15001501
1502static WRITE8_HANDLER( domark_bank_w )
1503{
1504   // Type # 19
1505   // working:
1506   // not working:
1507
1508   UINT8 bank = data & 0x7f;
1509   UINT8 *cart = memory_region(space->machine, "cart");
1510
1511   if (data & 0x80)
1512   {
1513      c64_game = 1;
1514      c64_exrom = 1;
1515   }
1516   else
1517   {
1518      c64_game = 1;
1519      c64_exrom = 0;
1520      memcpy(roml, cart + bank * 0x2000, 0x2000);
1521   }
1522}
1523
15011524static WRITE8_HANDLER( comal80_bank_w )
15021525{
15031526   // Type # 21
r5538r5539
15711594      case ZAXXON:      /* Type # 18 */
15721595         memory_install_read8_handler( space, 0x8000, 0x9fff, 0, 0, zaxxon_bank_r );
15731596         break;
1597      case DOMARK:      /* Type # 19 */
1598         memory_install_write8_handler( space, 0xde00, 0xde00, 0, 0, domark_bank_w );
1599         break;
15741600      case COMAL_80:          /* Type # 21 - 4 16k banks, loaded at 0x8000, banks chosen by writing to 0xde00 */
15751601         memory_install_write8_handler( space, 0xde00, 0xde00, 0, 0, comal80_bank_w );
15761602         break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team