Previous 15994 Revisions Next

r7559 Friday 12th March, 2010 at 06:36:04 UTC by Barry Rodewald
[6525TPI, C64] Compile fixes.
[src/mess/machine]6525tpi.c c64.c

src/mess/machine/6525tpi.c
r7558r7559
220220   {
221221      tpi6525->interrupt_level = 1;
222222
223      DBG_LOG(device->machine, 3, "tpi6525", ("%s set interrupt\n", device->tag.cstr()));
223      DBG_LOG(device->machine, 3, "tpi6525", ("%s set interrupt\n", device->tag()));
224224
225225      if (tpi6525->intf->irq_func != NULL)
226226         tpi6525->intf->irq_func(device, tpi6525->interrupt_level);
r7558r7559
236236   {
237237      tpi6525->interrupt_level = 0;
238238
239      DBG_LOG(device->machine, 3, "tpi6525", ("%s clear interrupt\n", device->tag.cstr()));
239      DBG_LOG(device->machine, 3, "tpi6525", ("%s clear interrupt\n", device->tag()));
240240
241241      if (tpi6525->intf->irq_func != NULL)
242242         tpi6525->intf->irq_func(device, tpi6525->interrupt_level);
r7558r7559
450450         data = (data & ~tpi6525->ddr_c) | (tpi6525->ddr_c & tpi6525->port_c);
451451      }
452452
453      DBG_LOG(device->machine, 2, "tpi6525", ("%s read %.2x %.2x\n", device->tag.cstr(), offset, data));
453      DBG_LOG(device->machine, 2, "tpi6525", ("%s read %.2x %.2x\n", device->tag(), offset, data));
454454      break;
455455
456456   case 3:
r7558r7559
509509
510510   }
511511
512   DBG_LOG(device->machine, 3, "tpi6525", ("%s read %.2x %.2x\n", device->tag.cstr(), offset, data));
512   DBG_LOG(device->machine, 3, "tpi6525", ("%s read %.2x %.2x\n", device->tag(), offset, data));
513513
514514   return data;
515515}
r7558r7559
519519{
520520   tpi6525_state *tpi6525 = get_safe_token(device);
521521
522   DBG_LOG(device->machine, 2, "tpi6525", ("%s write %.2x %.2x\n", device->tag.cstr(), offset, data));
522   DBG_LOG(device->machine, 2, "tpi6525", ("%s write %.2x %.2x\n", device->tag(), offset, data));
523523
524524   switch (offset & 7)
525525   {
src/mess/machine/c64.c
r7558r7559
954954{
955955   int index = 0;
956956
957   if (strcmp(device->tag.cstr(), "cart1") == 0)
957   if (strcmp(device->tag(), "cart1") == 0)
958958      index = 0;
959959
960   if (strcmp(device->tag.cstr(), "cart2") == 0)
960   if (strcmp(device->tag(), "cart2") == 0)
961961      index = 1;
962962
963963

Previous 15994 Revisions Next


© 1998-2018 The MESS Team