Previous 15994 Revisions Next

r4830 Monday 25th May, 2009 at 13:38:42 UTC by Fabio Priuli
Clean-ups and documented IEEE changes.
[docs]messnew.txt
[src/mess/includes]cbmieeeb.h
[src/mess/machine]6525tpi.c c128.c c16.c c64.c c65.c cbmb.c cbmdrive.c cbmieeeb.c pet.c vc1541.c vc20.c

src/mess/includes/cbmieeeb.h
r4829r4830
2828
2929DEVICE_GET_INFO( cbm_ieee_bus );
3030
31void cbm_ieee_open(void);
32
3331void cbm_ieee_dav_w(const device_config *ieeedev, int device, int data);
3432void cbm_ieee_nrfd_w(const device_config *ieeedev, int device, int data);
3533void cbm_ieee_ndac_w(const device_config *ieeedev, int device, int data);
src/mess/machine/c65.c
r4829r4830
2020#include "includes/c64.h"
2121
2222#define VERBOSE_LEVEL 0
23#define DBG_LOG(N,M,A) \
23#define DBG_LOG( MACHINE, N, M, A ) \
2424   do { \
2525      if(VERBOSE_LEVEL >= N) \
2626      { \
2727         if( M ) \
28            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(machine)), (char*) M ); \
28            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(MACHINE)), (char*) M ); \
2929         logerror A; \
3030      } \
3131   } while (0)
r4829r4830
112112
113113   if (level != old_level)
114114   {
115      DBG_LOG (3, "mos6510", ("irq %s\n", level ? "start" : "end"));
115      DBG_LOG(machine, 3, "mos6510", ("irq %s\n", level ? "start" : "end"));
116116      cputag_set_input_line(machine, "maincpu", M6510_IRQ_LINE, level);
117117      old_level = level;
118118   }
r4829r4830
297297*/
298298static void c65_dma_port_w(running_machine *machine, int offset, int value)
299299{
300   static int dump=0;
300   static int dump = 0;
301301   PAIR pair, src, dst, len;
302302   UINT8 cmd, fill;
303303   int i;
304304   const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
305305
306   switch (offset&3) {
306   switch (offset & 3)
307   {
307308   case 2:
308309   case 1:
309      dma.data[offset&3]=value;
310      dma.data[offset & 3] = value;
310311      break;
311312   case 0:
312      pair.b.h3=0;
313      pair.b.h2=dma.data[2];
314      pair.b.h=dma.data[1];
315      pair.b.l=dma.data[0]=value;
316      cmd=c65_read_mem(space, pair.d++);
317      len.w.h=0;
318      len.b.l=c65_read_mem(space, pair.d++);
319      len.b.h=c65_read_mem(space, pair.d++);
320      src.b.h3=0;
321      fill=src.b.l=c65_read_mem(space, pair.d++);
322      src.b.h=c65_read_mem(space, pair.d++);
323      src.b.h2=c65_read_mem(space, pair.d++);
324      dst.b.h3=0;
325      dst.b.l=c65_read_mem(space, pair.d++);
326      dst.b.h=c65_read_mem(space, pair.d++);
327      dst.b.h2=c65_read_mem(space, pair.d++);
313      pair.b.h3 = 0;
314      pair.b.h2 = dma.data[2];
315      pair.b.h = dma.data[1];
316      pair.b.l = dma.data[0]=value;
317      cmd = c65_read_mem(space, pair.d++);
318      len.w.h = 0;
319      len.b.l = c65_read_mem(space, pair.d++);
320      len.b.h = c65_read_mem(space, pair.d++);
321      src.b.h3 = 0;
322      fill = src.b.l = c65_read_mem(space, pair.d++);
323      src.b.h = c65_read_mem(space, pair.d++);
324      src.b.h2 = c65_read_mem(space, pair.d++);
325      dst.b.h3 = 0;
326      dst.b.l = c65_read_mem(space, pair.d++);
327      dst.b.h = c65_read_mem(space, pair.d++);
328      dst.b.h2 = c65_read_mem(space, pair.d++);
328329
329      switch (cmd) {
330      switch (cmd)
331      {
330332      case 0:
331         if (src.d==0x3ffff) dump=1;
333         if (src.d == 0x3ffff) dump = 1;
332334         if (dump)
333            DBG_LOG(1,"dma copy job",
335            DBG_LOG(space->machine, 1,"dma copy job",
334336                  ("len:%.4x src:%.6x dst:%.6x sub:%.2x modrm:%.2x\n",
335337                   len.w.l, src.d, dst.d, c65_read_mem(space, pair.d),
336                   c65_read_mem(space, pair.d+1) ) );
337         if ( (dma.version==1)
338             &&( (src.d&0x400000)||(dst.d&0x400000)) ) {
339            if ( !(src.d&0x400000) ) {
340               dst.d&=~0x400000;
341               for (i=0; i<len.w.l; i++)
342                  c65_write_mem(space, dst.d--,c65_read_mem(space, src.d++));
343            } else if ( !(dst.d&0x400000) ) {
344               src.d&=~0x400000;
345               for (i=0; i<len.w.l; i++)
346                  c65_write_mem(space, dst.d++,c65_read_mem(space, src.d--));
347            } else {
348               src.d&=~0x400000;
349               dst.d&=~0x400000;
350               for (i=0; i<len.w.l; i++)
351                  c65_write_mem(space, --dst.d,c65_read_mem(space, --src.d));
338                   c65_read_mem(space, pair.d + 1) ) );
339         if ((dma.version == 1)
340             && ( (src.d&0x400000) || (dst.d & 0x400000)))
341         {
342            if (!(src.d & 0x400000))
343            {
344               dst.d &= ~0x400000;
345               for (i = 0; i < len.w.l; i++)
346                  c65_write_mem(space, dst.d--, c65_read_mem(space, src.d++));
352347            }
353         } else {
354            for (i=0; i<len.w.l; i++)
355               c65_write_mem(space, dst.d++,c65_read_mem(space, src.d++));
348            else if (!(dst.d & 0x400000))
349            {
350               src.d &= ~0x400000;
351               for (i = 0; i < len.w.l; i++)
352                  c65_write_mem(space, dst.d++, c65_read_mem(space, src.d--));
353            }
354            else
355            {
356               src.d &= ~0x400000;
357               dst.d &= ~0x400000;
358               for (i = 0; i < len.w.l; i++)
359                  c65_write_mem(space, --dst.d, c65_read_mem(space, --src.d));
360            }
361         }
362         else
363         {
364            for (i = 0; i < len.w.l; i++)
365               c65_write_mem(space, dst.d++, c65_read_mem(space, src.d++));
356366         }
357367         break;
358368      case 3:
359         DBG_LOG(3,"dma fill job",
369         DBG_LOG(space->machine, 3,"dma fill job",
360370               ("len:%.4x value:%.2x dst:%.6x sub:%.2x modrm:%.2x\n",
361371                len.w.l, fill, dst.d, c65_read_mem(space, pair.d),
362                c65_read_mem(space, pair.d+1)));
363            for (i=0; i<len.w.l; i++)
364               c65_write_mem(space, dst.d++,fill);
372                c65_read_mem(space, pair.d + 1)));
373            for (i = 0; i < len.w.l; i++)
374               c65_write_mem(space, dst.d++, fill);
365375            break;
366376      case 0x30:
367         DBG_LOG(1,"dma copy down",
377         DBG_LOG(space->machine, 1,"dma copy down",
368378               ("len:%.4x src:%.6x dst:%.6x sub:%.2x modrm:%.2x\n",
369379                len.w.l, src.d, dst.d, c65_read_mem(space, pair.d),
370                c65_read_mem(space, pair.d+1) ) );
371         for (i=0; i<len.w.l; i++)
380                c65_read_mem(space, pair.d + 1) ) );
381         for (i = 0; i < len.w.l; i++)
372382            c65_write_mem(space, dst.d--,c65_read_mem(space, src.d--));
373383         break;
374384      default:
375         DBG_LOG(1,"dma job",
385         DBG_LOG(space->machine, 1,"dma job",
376386               ("cmd:%.2x len:%.4x src:%.6x dst:%.6x sub:%.2x modrm:%.2x\n",
377387                cmd,len.w.l, src.d, dst.d, c65_read_mem(space, pair.d),
378                c65_read_mem(space, pair.d+1)));
388                c65_read_mem(space, pair.d + 1)));
379389      }
380390      break;
381391   default:
382      DBG_LOG (1, "dma chip write", ("%.3x %.2x\n", offset,value));
392      DBG_LOG(space->machine, 1, "dma chip write", ("%.3x %.2x\n", offset, value));
383393      break;
384394   }
385395}
r4829r4830
387397static int c65_dma_port_r(running_machine *machine, int offset)
388398{
389399   /* offset 3 bit 7 in progress ? */
390   DBG_LOG (2, "dma chip read", ("%.3x\n", offset));
400   DBG_LOG(machine, 2, "dma chip read", ("%.3x\n", offset));
391401    return 0x7f;
392402}
393403
394404static void c65_6511_port_w(running_machine *machine, int offset, int value)
395405{
396   if (offset==7)
406   if (offset == 7)
397407   {
398      c65_6511_port=value;
408      c65_6511_port = value;
399409   }
400   DBG_LOG (2, "r6511 write", ("%.2x %.2x\n", offset, value));
410   DBG_LOG(machine, 2, "r6511 write", ("%.2x %.2x\n", offset, value));
401411}
402412
403413static int c65_6511_port_r(running_machine *machine, int offset)
404414{
405   int data=0xff;
415   int data = 0xff;
406416
407   if (offset==7)
417   if (offset == 7)
408418   {
409419      if (input_port_read(machine, "SPECIAL") & 0x20)
410420         data &= ~1;
411421   }
412   DBG_LOG (2, "r6511 read", ("%.2x\n", offset));
422   DBG_LOG(machine, 2, "r6511 read", ("%.2x\n", offset));
413423
414424   return data;
415425}
r4829r4830
514524
515525   attotime time;
516526   int head,track,sector;
517} c65_fdc= { 0 };
527} c65_fdc = { 0 };
518528
519529#define FDC_LOST 4
520530#define FDC_CRC 8
r4829r4830
527537#if 0
528538static void c65_fdc_state(void)
529539{
530   switch (c65_fdc.state) {
540   switch (c65_fdc.state)
541   {
531542   case FDC_CMD_MOTOR_SPIN_UP:
532      if (timer_get_time(machine)-c65_fdc.time) {
533         c65_fdc.state=0;
534         c65_fdc.status&=~FDC_BUSY;
543      if (timer_get_time(machine) - c65_fdc.time)
544      {
545         c65_fdc.state = 0;
546         c65_fdc.status &= ~FDC_BUSY;
535547      }
536548      break;
537549   }
538550}
539551#endif
540552
541static void c65_fdc_w(running_machine *machine, int offset, int data)
553static void c65_fdc_w( running_machine *machine, int offset, int data )
542554{
543   DBG_LOG (1, "fdc write", ("%.5x %.2x %.2x\n", cpu_get_pc(cputag_get_cpu(machine, "maincpu")), offset, data));
544   switch (offset&0xf) {
555   DBG_LOG(machine, 1, "fdc write", ("%.5x %.2x %.2x\n", cpu_get_pc(cputag_get_cpu(machine, "maincpu")), offset, data));
556   switch (offset & 0xf)
557   {
545558   case 0:
546      c65_fdc.reg[0]=data;
559      c65_fdc.reg[0] = data;
547560      break;
548561   case 1:
549      c65_fdc.reg[1]=data;
550      switch (data&0xf9) {
562      c65_fdc.reg[1] = data;
563      switch (data & 0xf9)
564      {
551565      case 0x20: // wait for motor spin up
552         c65_fdc.status&=~(FDC_IRQ|FDC_LOST|FDC_CRC|FDC_RNF);
553         c65_fdc.status|=FDC_BUSY;
554         c65_fdc.time=timer_get_time(machine);
555         c65_fdc.state=FDC_CMD_MOTOR_SPIN_UP;
566         c65_fdc.status &= ~(FDC_IRQ|FDC_LOST|FDC_CRC|FDC_RNF);
567         c65_fdc.status |= FDC_BUSY;
568         c65_fdc.time = timer_get_time(machine);
569         c65_fdc.state = FDC_CMD_MOTOR_SPIN_UP;
556570         break;
557571      case 0: // cancel
558         c65_fdc.status&=~(FDC_BUSY);
559         c65_fdc.state=0;
572         c65_fdc.status &= ~(FDC_BUSY);
573         c65_fdc.state = 0;
560574         break;
561575      case 0x80: // buffered write
562576      case 0x40: // buffered read
r4829r4830
569583   case 2: case 3: // read only
570584      break;
571585   case 4:
572      c65_fdc.reg[offset&0xf]=data;
573      c65_fdc.track=data;
586      c65_fdc.reg[offset & 0xf] = data;
587      c65_fdc.track = data;
574588      break;
575589   case 5:
576      c65_fdc.reg[offset&0xf]=data;
577      c65_fdc.sector=data;
590      c65_fdc.reg[offset & 0xf] = data;
591      c65_fdc.sector = data;
578592      break;
579593   case 6:
580      c65_fdc.reg[offset&0xf]=data;
581      c65_fdc.head=data;
594      c65_fdc.reg[offset & 0xf] = data;
595      c65_fdc.head = data;
582596      break;
583597   case 7:
584      c65_fdc.buffer[c65_fdc.cpu_pos++]=data;
598      c65_fdc.buffer[c65_fdc.cpu_pos++] = data;
585599      break;
586600   default:
587      c65_fdc.reg[offset&0xf]=data;
601      c65_fdc.reg[offset & 0xf] = data;
588602      break;
589603   }
590604}
591605
592static int c65_fdc_r(running_machine *machine, int offset)
606static int c65_fdc_r( running_machine *machine, int offset )
593607{
594   UINT8 data=0;
595   switch (offset&0xf) {
608   UINT8 data = 0;
609   switch (offset & 0xf)
610   {
596611   case 0:
597      data=c65_fdc.reg[0];
612      data = c65_fdc.reg[0];
598613      break;
599614   case 1:
600      data=c65_fdc.reg[1];
615      data = c65_fdc.reg[1];
601616      break;
602617   case 2:
603      data=c65_fdc.status;
618      data = c65_fdc.status;
604619      break;
605620   case 3:
606      data=c65_fdc.status>>8;
621      data = c65_fdc.status >> 8;
607622      break;
608623   case 4:
609      data=c65_fdc.track;
624      data = c65_fdc.track;
610625      break;
611626   case 5:
612      data=c65_fdc.sector;
627      data = c65_fdc.sector;
613628      break;
614629   case 6:
615      data=c65_fdc.head;
630      data = c65_fdc.head;
616631      break;
617632   case 7:
618      data=c65_fdc.buffer[c65_fdc.cpu_pos++];
633      data = c65_fdc.buffer[c65_fdc.cpu_pos++];
619634      break;
620635   default:
621      data=c65_fdc.reg[offset&0xf];
636      data = c65_fdc.reg[offset & 0xf];
622637      break;
623638   }
624   DBG_LOG (1, "fdc read", ("%.5x %.2x %.2x\n", cpu_get_pc(cputag_get_cpu(machine, "maincpu")), offset, data));
639   DBG_LOG(machine, 1, "fdc read", ("%.5x %.2x %.2x\n", cpu_get_pc(cputag_get_cpu(machine, "maincpu")), offset, data));
625640   return data;
626641}
627642
r4829r4830
676691
677692static WRITE8_HANDLER ( c65_write_io )
678693{
679   running_machine *machine = space->machine;
680694   const device_config *sid_0 = devtag_get_device(space->machine, "sid_r");
681695   const device_config *sid_1 = devtag_get_device(space->machine, "sid_l");
682696
r4829r4830
700714      else if (offset<0x440)
701715         sid6581_w(sid_1, offset & 0x3f, data);
702716      else
703         DBG_LOG (1, "io write", ("%.3x %.2x\n", offset, data));
717         DBG_LOG(space->machine, 1, "io write", ("%.3x %.2x\n", offset, data));
704718      break;
705719   case 0x500:
706      DBG_LOG (1, "io write", ("%.3x %.2x\n", offset, data));
720      DBG_LOG(space->machine, 1, "io write", ("%.3x %.2x\n", offset, data));
707721      break;
708722   case 0x600:
709723      c65_6511_port_w(space->machine, offset&0xff,data);
r4829r4830
716730
717731static WRITE8_HANDLER ( c65_write_io_dc00 )
718732{
719   running_machine *machine = space->machine;
720733   const device_config *cia_0 = devtag_get_device(space->machine, "cia_0");
721734   const device_config *cia_1 = devtag_get_device(space->machine, "cia_1");
722735
723   switch(offset&0xf00) {
736   switch(offset & 0xf00)
737   {
724738   case 0x000:
725739      cia_w(cia_0, offset, data);
726740      break;
r4829r4830
729743      break;
730744   case 0x200:
731745   case 0x300:
732      DBG_LOG (1, "io write", ("%.3x %.2x\n", offset+0xc00, data));
746      DBG_LOG(space->machine, 1, "io write", ("%.3x %.2x\n", offset+0xc00, data));
733747      break;
734748   }
735749}
736750
737751static READ8_HANDLER ( c65_read_io )
738752{
739   running_machine *machine = space->machine;
740753   const device_config *sid_0 = devtag_get_device(space->machine, "sid_r");
741754   const device_config *sid_1 = devtag_get_device(space->machine, "sid_l");
742755
743   switch(offset&0xf00) {
756   switch(offset & 0xf00)
757   {
744758   case 0x000:
745759      if (offset < 0x80)
746760         return vic3_port_r (space, offset & 0x7f);
747      if (offset < 0xa0) {
761      if (offset < 0xa0)
762      {
748763         return c65_fdc_r(space->machine, offset&0x1f);
749      } else {
764      }
765      else
766      {
750767         return c65_ram_expansion_r(space, offset&0x1f);
751768         /*return; ram expansion crtl optional */
752769      }
753770      break;
754   case 0x100:case 0x200: case 0x300:
771   case 0x100:
772   case 0x200:
773   case 0x300:
755774   /* read only !? */
756      DBG_LOG (1, "io read", ("%.3x\n", offset));
775      DBG_LOG(space->machine, 1, "io read", ("%.3x\n", offset));
757776      break;
758777   case 0x400:
759      if (offset<0x420)
778      if (offset < 0x420)
760779         return sid6581_r(sid_0, offset & 0x3f);
761      if (offset<0x440)
780      if (offset < 0x440)
762781         return sid6581_r(sid_1, offset & 0x3f);
763      DBG_LOG (1, "io read", ("%.3x\n", offset));
782      DBG_LOG(space->machine, 1, "io read", ("%.3x\n", offset));
764783      break;
765784   case 0x500:
766      DBG_LOG (1, "io read", ("%.3x\n", offset));
785      DBG_LOG(space->machine, 1, "io read", ("%.3x\n", offset));
767786      break;
768787   case 0x600:
769788      return c65_6511_port_r(space->machine, offset&0xff);
r4829r4830
775794
776795static READ8_HANDLER ( c65_read_io_dc00 )
777796{
778   running_machine *machine = space->machine;
779797   const device_config *cia_0 = devtag_get_device(space->machine, "cia_0");
780798   const device_config *cia_1 = devtag_get_device(space->machine, "cia_1");
781799
782   switch(offset&0x300) {
800   switch(offset & 0x300)
801   {
783802   case 0x000:
784803      return cia_r(cia_0, offset);
785804   case 0x100:
786805      return cia_r(cia_1, offset);
787806   case 0x200:
788807   case 0x300:
789      DBG_LOG (1, "io read", ("%.3x\n", offset+0xc00));
808      DBG_LOG(space->machine, 1, "io read", ("%.3x\n", offset+0xc00));
790809      break;
791810   }
792811   return 0xff;
r4829r4830
805824   bit 6 vic3 c65 character set */
806825static void c65_bankswitch_interface(running_machine *machine, int value)
807826{
808   static int old=0;
827   static int old = 0;
809828   read8_space_func rh;
810829   write8_space_func wh;
811830
812   DBG_LOG (2, "c65 bankswitch", ("%.2x\n",value));
831   DBG_LOG(machine, 2, "c65 bankswitch", ("%.2x\n",value));
813832
814833   if (c65_io_on)
815834   {
816      if (value&1)
835      if (value & 1)
817836      {
818         memory_set_bankptr (machine, 8, c64_colorram + 0x400);
819         memory_set_bankptr (machine, 9, c64_colorram + 0x400);
837         memory_set_bankptr(machine, 8, c64_colorram + 0x400);
838         memory_set_bankptr(machine, 9, c64_colorram + 0x400);
820839         rh = SMH_BANK(8);
821840         wh = SMH_BANK(9);
822841      }
r4829r4830
829848      memory_install_write8_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x0dc00, 0x0dfff, 0, 0, wh);
830849   }
831850
832   c65_io_dc00_on=!(value&1);
851   c65_io_dc00_on =! (value & 1);
833852#if 0
834853   /* cartridge roms !?*/
835854   if (value & 0x08)
r4829r4830
872891   if (data == old)
873892      return;
874893
875   DBG_LOG (1, "bankswitch", ("%d\n", data & 7));
894   DBG_LOG(machine, 1, "bankswitch", ("%d\n", data & 7));
876895   loram = (data & 1) ? 1 : 0;
877896   hiram = (data & 2) ? 1 : 0;
878897   charen = (data & 4) ? 1 : 0;
src/mess/machine/cbmb.c
r4829r4830
2626#define IEEE9ON 0
2727
2828#define VERBOSE_LEVEL 0
29#define DBG_LOG(N,M,A) \
29#define DBG_LOG( MACHINE, N, M, A ) \
3030   do { \
3131      if(VERBOSE_LEVEL >= N) \
3232      { \
3333         if( M ) \
34            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(machine)), (char*) M ); \
34            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(MACHINE)), (char*) M ); \
3535         logerror A; \
3636      } \
3737   } while (0)
r4829r4830
224224void cbmb_irq(const device_config *device, int level)
225225{
226226   static int old_level = 0;
227   running_machine *machine = device->machine;
228227
229228   if (level != old_level)
230229   {
231      DBG_LOG (3, "mos6509", ("irq %s\n", level ? "start" : "end"));
230      DBG_LOG(device->machine, 3, "mos6509", ("irq %s\n", level ? "start" : "end"));
232231      cputag_set_input_line(device->machine, "maincpu", M6502_IRQ_LINE, level);
233232      old_level = level;
234233   }
src/mess/machine/vc1541.c
r4829r4830
162162
163163
164164#define VERBOSE_LEVEL 0
165#define DBG_LOG(MACHINE,N,M,A) \
165#define DBG_LOG( MACHINE, N, M, A ) \
166166   do { \
167167      if(VERBOSE_LEVEL >= N) \
168168      { \
src/mess/machine/c128.c
r4829r4830
3030
3131
3232#define VERBOSE_LEVEL 0
33#define DBG_LOG(N,M,A) \
33#define DBG_LOG( MACHINE, N, M, A ) \
3434   do { \
3535      if(VERBOSE_LEVEL >= N) \
3636      { \
3737         if( M ) \
38            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(machine)), (char*) M ); \
38            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(MACHINE)), (char*) M ); \
3939         logerror A; \
4040      } \
4141   } while (0)
r4829r4830
154154
155155   if (level != old_level)
156156   {
157      DBG_LOG (3, "mos6510", ("irq %s\n", level ? "start" : "end"));
157      DBG_LOG(machine, 3, "mos6510", ("irq %s\n", level ? "start" : "end"));
158158
159159      if (0) // && (cpu_getactivecpu() == 0))
160160      {
r4829r4830
304304
305305static WRITE8_HANDLER(c128_dma8726_port_w)
306306{
307   running_machine *machine = space->machine;
308   DBG_LOG(1,"dma write",("%.3x %.2x\n",offset,data));
307   DBG_LOG(space->machine, 1, "dma write", ("%.3x %.2x\n",offset,data));
309308}
310309
311310static READ8_HANDLER(c128_dma8726_port_r)
312311{
313   running_machine *machine = space->machine;
314   DBG_LOG(1,"dma read",("%.3x\n",offset));
312   DBG_LOG(space->machine, 1, "dma read", ("%.3x\n",offset));
315313   return 0xff;
316314}
317315
318316WRITE8_HANDLER( c128_write_d000 )
319317{
320   running_machine *machine = space->machine;
321318   const device_config *cia_0 = devtag_get_device(space->machine, "cia_0");
322319   const device_config *cia_1 = devtag_get_device(space->machine, "cia_1");
323320   const device_config *sid = devtag_get_device(space->machine, "sid6581");
r4829r4830
336333      switch ((offset&0xf00)>>8)
337334      {
338335      case 0:case 1: case 2: case 3:
339         vic2_port_w (space, offset & 0x3ff, data);
336         vic2_port_w(space, offset & 0x3ff, data);
340337         break;
341338      case 4:
342339         sid6581_w(sid, offset & 0x3f, data);
343340         break;
344341      case 5:
345         c128_mmu8722_port_w (space, offset & 0xff, data);
342         c128_mmu8722_port_w(space, offset & 0xff, data);
346343         break;
347344      case 6:case 7:
348         vdc8563_port_w (space, offset & 0xff, data);
345         vdc8563_port_w(space, offset & 0xff, data);
349346         break;
350347      case 8: case 9: case 0xa: case 0xb:
351348          if (c64mode)
r4829r4830
363360         c128_dma8726_port_w(space, offset&0xff,data);
364361         break;
365362      case 0xe:
366         DBG_LOG (1, "io write", ("%.3x %.2x\n", offset, data));
363         DBG_LOG(space->machine, 1, "io write", ("%.3x %.2x\n", offset, data));
367364         break;
368365      }
369366   }
r4829r4830
373370
374371static READ8_HANDLER( c128_read_io )
375372{
376   running_machine *machine = space->machine;
377373   const device_config *cia_0 = devtag_get_device(space->machine, "cia_0");
378374   const device_config *cia_1 = devtag_get_device(space->machine, "cia_1");
379375   const device_config *sid = devtag_get_device(space->machine, "sid6581");
380376
381377   if (offset < 0x400)
382      return vic2_port_r (space, offset & 0x3ff);
378      return vic2_port_r(space, offset & 0x3ff);
383379   else if (offset < 0x500)
384      return sid6581_r (sid, offset & 0xff);
380      return sid6581_r(sid, offset & 0xff);
385381   else if (offset < 0x600)
386      return c128_mmu8722_port_r (space, offset & 0xff);
382      return c128_mmu8722_port_r(space, offset & 0xff);
387383   else if (offset < 0x800)
388      return vdc8563_port_r (space, offset & 0xff);
384      return vdc8563_port_r(space, offset & 0xff);
389385   else if (offset < 0xc00)
390386      return c64_colorram[offset & 0x3ff];
391387   else if (offset == 0xc00)
r4829r4830
404400      return cia_r(cia_1, offset);
405401   else if ((offset >= 0xf00) & (offset <= 0xfff))
406402      return c128_dma8726_port_r(space, offset&0xff);
407   DBG_LOG (1, "io read", ("%.3x\n", offset));
403   DBG_LOG(space->machine, 1, "io read", ("%.3x\n", offset));
408404   return 0xff;
409405}
410406
r4829r4830
418414      return;
419415
420416   data = (UINT8) devtag_get_info_int(machine, "maincpu", CPUINFO_INT_M6510_PORT) & 0x07;
421   if ((data == old)&&(exrom==c64_exrom)&&(game==c64_game)&&!reset)
417   if ((data == old) && (exrom == c64_exrom) && (game == c64_game) && !reset)
422418      return;
423419
424   DBG_LOG (1, "bankswitch", ("%d\n", data & 7));
420   DBG_LOG(machine, 1, "bankswitch", ("%d\n", data & 7));
425421   loram = (data & 1) ? 1 : 0;
426422   hiram = (data & 2) ? 1 : 0;
427423   charen = (data & 4) ? 1 : 0;
r4829r4830
785781   {
786782      if (!MMU_CPU8502)
787783      {
788//         DBG_LOG (1, "switching to z80", ("active %d\n",cpu_getactivecpu()) );
784//         DBG_LOG(machine, 1, "switching to z80", ("active %d\n",cpu_getactivecpu()) );
789785//         memory_set_context(machine, 0);
790786         c128_bankswitch_z80(machine);
791787//         memory_set_context(machine, 1);
r4829r4830
794790      }
795791      else
796792      {
797//         DBG_LOG (1, "switching to m6502", ("active %d\n",cpu_getactivecpu()) );
793//         DBG_LOG(machine, 1, "switching to m6502", ("active %d\n",cpu_getactivecpu()) );
798794//         memory_set_context(machine, 1);
799795         c128_bankswitch_128(machine, reset);
800796//         memory_set_context(machine, 0);
src/mess/machine/pet.c
r4829r4830
2121#include "devices/cassette.h"
2222
2323#define VERBOSE_LEVEL 0
24#define DBG_LOG(N,M,A) \
24#define DBG_LOG( MACHINE, N, M, A ) \
2525   do { \
2626      if(VERBOSE_LEVEL >= N) \
2727      { \
2828         if( M ) \
29            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(machine)), (char*) M ); \
29            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(MACHINE)), (char*) M ); \
3030         logerror A; \
3131      } \
3232   } while (0)
r4829r4830
174174{
175175   int level = state ? 1 : 0;
176176   static int old_level = 0;
177   running_machine *machine = device->machine;
178   pet_state *driver_state = machine->driver_data;
177   pet_state *driver_state = device->machine->driver_data;
179178   if (level != old_level)
180179   {
181      DBG_LOG (3, "mos6502", ("irq %s\n", level ? "start" : "end"));
180      DBG_LOG(device->machine, 3, "mos6502", ("irq %s\n", level ? "start" : "end"));
182181      if (driver_state->superpet)
183         cputag_set_input_line(machine, "m6809", M6809_IRQ_LINE, level);
184      cputag_set_input_line(machine, "maincpu", M6502_IRQ_LINE, level);
182         cputag_set_input_line(device->machine, "m6809", M6809_IRQ_LINE, level);
183      cputag_set_input_line(device->machine, "maincpu", M6502_IRQ_LINE, level);
185184      old_level = level;
186185   }
187186}
r4829r4830
280279
281280static WRITE8_DEVICE_HANDLER( pet_address_line_11 )
282281{
283   running_machine *machine = device->machine;
284   DBG_LOG (1, "address line", ("%d\n", data));
282   DBG_LOG(device->machine, 1, "address line", ("%d\n", data));
285283   if (data) pet_font |= 1;
286284   else pet_font &= ~1;
287285}
src/mess/machine/c16.c
r4829r4830
2626
2727
2828#define VERBOSE_LEVEL 0
29#define DBG_LOG(N,M,A) \
29#define DBG_LOG( MACHINE, N, M, A ) \
3030   do { \
3131      if(VERBOSE_LEVEL >= N) \
3232      { \
3333         if( M ) \
34            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(machine)), (char*) M ); \
34            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(MACHINE)), (char*) M ); \
3535         logerror A; \
3636      } \
3737   } while (0)
r4829r4830
364364  */
365365WRITE8_HANDLER(c16_6551_port_w)
366366{
367   running_machine *machine = space->machine;
368367   offset &= 0x03;
369   DBG_LOG (3, "6551", ("port write %.2x %.2x\n", offset, data));
368   DBG_LOG(space->machine, 3, "6551", ("port write %.2x %.2x\n", offset, data));
370369   port6529 = data;
371370}
372371
373372READ8_HANDLER(c16_6551_port_r)
374373{
375   running_machine *machine = space->machine;
376374   int data = 0x00;
377375
378376   offset &= 0x03;
379   DBG_LOG (3, "6551", ("port read %.2x %.2x\n", offset, data));
377   DBG_LOG(space->machine, 3, "6551", ("port read %.2x %.2x\n", offset, data));
380378   return data;
381379}
382380
r4829r4830
429427
430428   if (level != old_level)
431429   {
432      DBG_LOG (3, "mos7501", ("irq %s\n", level ? "start" : "end"));
430      DBG_LOG(machine, 3, "mos7501", ("irq %s\n", level ? "start" : "end"));
433431      cputag_set_input_line(machine, "maincpu", M6510_IRQ_LINE, level);
434432      old_level = level;
435433   }
src/mess/machine/cbmdrive.c
r4829r4830
839839         {
840840            if (drive->cmdpos < sizeof (drive->cmdbuffer))
841841               drive->cmdbuffer[drive->cmdpos++] = drive->i.serial.value;
842            DBG_LOG (machine, 1, "serial read", ("%s %s %.2x\n",
842            DBG_LOG(machine, 1, "serial read", ("%s %s %.2x\n",
843843                     drive->i.serial.broadcast ? "broad" : "",
844844                     drive->i.serial.last ? "last" : "",
845845                                 drive->i.serial.value));
r4829r4830
11951195      }
11961196      if (vc1541_time_greater(machine, drive, ATTOTIME_IN_USEC(20)))
11971197      {
1198         DBG_LOG (machine, 1, "vc1541", ("%.2x written\n", drive->i.serial.value));
1198         DBG_LOG(machine, 1, "vc1541", ("%.2x written\n", drive->i.serial.value));
11991199         drive->i.serial.data = 1;
12001200         drive->i.serial.clock = 0;
12011201         drive->i.serial.state++;
src/mess/machine/cbmieeeb.c
r4829r4830
361361
362362
363363#define VERBOSE_LEVEL 0
364#define DBG_LOG( N, M, A ) \
364#define DBG_LOG( MACHINE, N, M, A ) \
365365   do { \
366366      if(VERBOSE_LEVEL >= N) \
367367      { \
368368         if( M ) \
369            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(machine)), (char*) M ); \
369            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(MACHINE)), (char*) M ); \
370370         logerror A; \
371371      } \
372372   } while (0)
r4829r4830
398398{
399399   cbm_ieee_bus_t *ieeebus = get_safe_token(ieeedev);
400400
401//   DBG_LOG(1, "cbm ieee dav", ("%.4x dev:%d %d\n", activecpu_get_pc(), device, data));
401//   DBG_LOG(ieeedev->machine, 1, "cbm ieee dav", ("%.4x dev:%d %d\n", activecpu_get_pc(), device, data));
402402   ieeebus->bus[device].dav = data;
403403   if (device == 0)
404404      c2031_state(ieeedev->machine, cbm_drive);
r4829r4830
413413{
414414   cbm_ieee_bus_t *ieeebus = get_safe_token(ieeedev);
415415
416//   DBG_LOG(1, "cbm ieee nrfd", ("%.4x dev:%d %d\n", activecpu_get_pc(), device, data));
416//   DBG_LOG(ieeedev->machine, 1, "cbm ieee nrfd", ("%.4x dev:%d %d\n", activecpu_get_pc(), device, data));
417417   ieeebus->bus[device].nrfd = data;
418418   if (device == 0)
419419      c2031_state(ieeedev->machine, cbm_drive);
r4829r4830
428428{
429429   cbm_ieee_bus_t *ieeebus = get_safe_token(ieeedev);
430430
431//   DBG_LOG(1, "cbm ieee ndac",("%.4x dev:%d %d\n", activecpu_get_pc(), device, data));
431//   DBG_LOG(ieeedev->machine, 1, "cbm ieee ndac",("%.4x dev:%d %d\n", activecpu_get_pc(), device, data));
432432   ieeebus->bus[device].ndac = data;
433433   if (device == 0)
434434      c2031_state(ieeedev->machine, cbm_drive);
r4829r4830
443443{
444444   cbm_ieee_bus_t *ieeebus = get_safe_token(ieeedev);
445445
446//   DBG_LOG(1, "cbm ieee atn",("%.4x dev:%d %d\n", activecpu_get_pc(), device, data));
446//   DBG_LOG(ieeedev->machine, 1, "cbm ieee atn",("%.4x dev:%d %d\n", activecpu_get_pc(), device, data));
447447   ieeebus->bus[device].atn = data;
448448   if (device == 0)
449449      c2031_state(ieeedev->machine, cbm_drive);
r4829r4830
458458{
459459   cbm_ieee_bus_t *ieeebus = get_safe_token(ieeedev);
460460
461//   DBG_LOG(1, "cbm ieee eoi", ("%.4x dev:%d %d\n", activecpu_get_pc(), device, data));
461//   DBG_LOG(ieeedev->machine, 1, "cbm ieee eoi", ("%.4x dev:%d %d\n", activecpu_get_pc(), device, data));
462462   ieeebus->bus[device].eoi = data;
463463   if (device == 0)
464464      c2031_state(ieeedev->machine, cbm_drive);
r4829r4830
473473{
474474   cbm_ieee_bus_t *ieeebus = get_safe_token(ieeedev);
475475
476//   DBG_LOG(1, "cbm ieee data", ("%.4x dev:%d %.2x\n", activecpu_get_pc(), device, data));
476//   DBG_LOG(ieeedev->machine, 1, "cbm ieee data", ("%.4x dev:%d %.2x\n", activecpu_get_pc(), device, data));
477477   ieeebus->bus[device].data = data;
478478   if (device == 0)
479479      c2031_state(ieeedev->machine, cbm_drive);
r4829r4830
487487
488488READ8_DEVICE_HANDLER( cbm_ieee_srq_r )
489489{
490   running_machine *machine = device->machine;
491490   cbm_ieee_bus_t *ieeebus = get_safe_token(device);
492491   int data = ieeebus->bus[1].srq;
493492
494   DBG_LOG(1, "cbm ieee srq", ("read %d\n", data));
493   DBG_LOG(device->machine, 1, "cbm ieee srq", ("read %d\n", data));
495494   return data;
496495}
497496
498497READ8_DEVICE_HANDLER( cbm_ieee_dav_r )
499498{
500   running_machine *machine = device->machine;
501499   cbm_ieee_bus_t *ieeebus = get_safe_token(device);
502500   int data = ieeebus->bus[0].dav && ieeebus->bus[1].dav;
503501
504   DBG_LOG(1, "cbm ieee dav", ("read %d\n", data));
502   DBG_LOG(device->machine, 1, "cbm ieee dav", ("read %d\n", data));
505503   return data;
506504}
507505
508506READ8_DEVICE_HANDLER( cbm_ieee_nrfd_r )
509507{
510   running_machine *machine = device->machine;
511508   cbm_ieee_bus_t *ieeebus = get_safe_token(device);
512509   int data = ieeebus->bus[0].nrfd && ieeebus->bus[1].nrfd;
513510
514   DBG_LOG(1, "cbm ieee nrfd", ("read %d\n", data));
511   DBG_LOG(device->machine, 1, "cbm ieee nrfd", ("read %d\n", data));
515512   return data;
516513}
517514
518515READ8_DEVICE_HANDLER( cbm_ieee_ndac_r )
519516{
520   running_machine *machine = device->machine;
521517   cbm_ieee_bus_t *ieeebus = get_safe_token(device);
522518   int data = ieeebus->bus[0].ndac && ieeebus->bus[1].ndac;
523519
524   DBG_LOG(1,"cbm ieee ndac", ("read %d\n", data));
520   DBG_LOG(device->machine, 1,"cbm ieee ndac", ("read %d\n", data));
525521   return data;
526522}
527523
528524READ8_DEVICE_HANDLER( cbm_ieee_atn_r )
529525{
530   running_machine *machine = device->machine;
531526   cbm_ieee_bus_t *ieeebus = get_safe_token(device);
532527   int data = ieeebus->bus[0].atn && ieeebus->bus[1].atn;
533528
534   DBG_LOG(1,"cbm ieee atn", ("read %d\n", data));
529   DBG_LOG(device->machine, 1,"cbm ieee atn", ("read %d\n", data));
535530   return data;
536531}
537532
538533READ8_DEVICE_HANDLER( cbm_ieee_eoi_r )
539534{
540//   running_machine *machine = device->machine;
541535   cbm_ieee_bus_t *ieeebus = get_safe_token(device);
542536   int data = ieeebus->bus[0].eoi && ieeebus->bus[1].eoi;
543537
544/*   DBG_LOG(1, "cbm ieee eoi", ("read %d\n", data)); */
538/*   DBG_LOG(device->machine, 1, "cbm ieee eoi", ("read %d\n", data)); */
545539   return data;
546540}
547541
548542READ8_DEVICE_HANDLER( cbm_ieee_data_r )
549543{
550   running_machine *machine = device->machine;
551544   cbm_ieee_bus_t *ieeebus = get_safe_token(device);
552545   int data = ieeebus->bus[0].data & ieeebus->bus[1].data;
553546
554   DBG_LOG(1, "cbm ieee data", ("read %.2x\n", data));
547   DBG_LOG(device->machine, 1, "cbm ieee data", ("read %.2x\n", data));
555548   return data;
556549}
557550
src/mess/machine/vc20.c
r4829r4830
3131
3232
3333#define VERBOSE_LEVEL 0
34#define DBG_LOG(N,M,A) \
34#define DBG_LOG(MACHINE, N, M, A) \
3535   do { \
3636      if(VERBOSE_LEVEL >= N) \
3737      { \
3838         if( M ) \
39            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(machine)), (char*) M ); \
39            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(MACHINE)), (char*) M ); \
4040         logerror A; \
4141      } \
4242   } while (0)
r4829r4830
8080
8181static READ8_DEVICE_HANDLER( vc20_via0_read_ca1 )
8282{
83   return !( input_port_read(device->machine, "SPECIAL") & 0x02 );
83   return !(input_port_read(device->machine, "SPECIAL") & 0x02);
8484}
8585
8686static READ8_DEVICE_HANDLER( vc20_via0_read_ca2 )
8787{
88   running_machine *machine = device->machine;
89   DBG_LOG (1, "tape", ("motor read %d\n", via0_ca2));
88   DBG_LOG(device->machine, 1, "tape", ("motor read %d\n", via0_ca2));
9089   return via0_ca2;
9190}
9291
r4829r4830
132131
133132static WRITE8_DEVICE_HANDLER( vc20_via0_write_porta )
134133{
135   running_machine *machine = device->machine;      // used in DBG_LOG
136   const device_config *serbus = devtag_get_device(machine, "serial_bus");
134   const device_config *serbus = devtag_get_device(device->machine, "serial_bus");
137135
138136   cbm_serial_atn_write(serbus, 0, serial_atn = !(data & 0x80));
139   DBG_LOG(1, "serial out", ("atn %s\n", serial_atn ? "high" : "low"));
137   DBG_LOG(device->machine, 1, "serial out", ("atn %s\n", serial_atn ? "high" : "low"));
140138}
141139
142140/* via 1 addr 0x9120
r4829r4830
335333
336334static READ8_DEVICE_HANDLER( vc20_via1_read_cb1 )
337335{
338   running_machine *machine = device->machine;      // used in DBG_LOG
339   const device_config *serbus = devtag_get_device(machine, "serial_bus");
336   const device_config *serbus = devtag_get_device(device->machine, "serial_bus");
340337
341   DBG_LOG(1, "serial in", ("request read\n"));
338   DBG_LOG(device->machine, 1, "serial in", ("request read\n"));
342339   return cbm_serial_request_read(serbus, 0);
343340}
344341
src/mess/machine/6525tpi.c
r4829r4830
8181***************************************************************************/
8282
8383#define VERBOSE_LEVEL 0
84#define DBG_LOG(N,M,A) \
84#define DBG_LOG( MACHINE, N, M, A ) \
8585   do { \
8686      if(VERBOSE_LEVEL >= N) \
8787      { \
8888         if( M ) \
89            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(device->machine)), (char*) M ); \
89            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(MACHINE)), (char*) M ); \
9090         logerror A; \
9191      } \
9292   } while (0)
r4829r4830
220220   {
221221      tpi6525->interrupt_level = 1;
222222
223      DBG_LOG(3, "tpi6525", ("%s set interrupt\n", device->tag));
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);
r4829r4830
236236   {
237237      tpi6525->interrupt_level = 0;
238238
239      DBG_LOG (3, "tpi6525", ("%s clear interrupt\n", device->tag));
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);
r4829r4830
450450         data = (data & ~tpi6525->ddr_c) | (tpi6525->ddr_c & tpi6525->port_c);
451451      }
452452
453      DBG_LOG(2, "tpi6525", ("%s read %.2x %.2x\n", device->tag, offset, data));
453      DBG_LOG(device->machine, 2, "tpi6525", ("%s read %.2x %.2x\n", device->tag, offset, data));
454454      break;
455455
456456   case 3:
r4829r4830
509509
510510   }
511511
512   DBG_LOG(3, "tpi6525", ("%s read %.2x %.2x\n", device->tag, offset, data));
512   DBG_LOG(device->machine, 3, "tpi6525", ("%s read %.2x %.2x\n", device->tag, offset, data));
513513
514514   return data;
515515}
r4829r4830
519519{
520520   tpi6525_state *tpi6525 = get_safe_token(device);
521521
522   DBG_LOG(2, "tpi6525", ("%s write %.2x %.2x\n", device->tag, 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
r4829r4830
3333#include "devices/cartslot.h"
3434
3535#define VERBOSE_LEVEL 0
36#define DBG_LOG(N,M,A) \
36#define DBG_LOG( MACHINE, N, M, A ) \
3737   do { \
3838      if(VERBOSE_LEVEL >= N) \
3939      { \
4040         if( M ) \
41            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(machine)), (char*) M ); \
41            logerror("%11.6f: %-24s", attotime_to_double(timer_get_time(MACHINE)), (char*) M ); \
4242         logerror A; \
4343      } \
4444   } while (0)
r4829r4830
127127
128128   if (level != old_level)
129129   {
130      DBG_LOG (3, "mos6510", ("irq %s\n", level ? "start" : "end"));
130      DBG_LOG(machine, 3, "mos6510", ("irq %s\n", level ? "start" : "end"));
131131      cputag_set_input_line(machine, "maincpu", M6510_IRQ_LINE, level);
132132      old_level = level;
133133   }
r4829r4830
263263
264264WRITE8_HANDLER( c64_write_io )
265265{
266   running_machine *machine = space->machine;
267266   const device_config *cia_0 = devtag_get_device(space->machine, "cia_0");
268267   const device_config *cia_1 = devtag_get_device(space->machine, "cia_1");
269268   const device_config *sid = devtag_get_device(space->machine, "sid6581");
r4829r4830
282281      if (c64_cia1_on)
283282         cia_w(cia_1, offset, data);
284283      else
285         DBG_LOG (1, "io write", ("%.3x %.2x\n", offset, data));
284         DBG_LOG(space->machine, 1, "io write", ("%.3x %.2x\n", offset, data));
286285   }
287286   else if (offset < 0xf00)
288287   {
289288      /* i/o 1 */
290         DBG_LOG (1, "io write", ("%.3x %.2x\n", offset, data));
289         DBG_LOG(space->machine, 1, "io write", ("%.3x %.2x\n", offset, data));
291290   }
292291   else
293292   {
294293      /* i/o 2 */
295         DBG_LOG (1, "io write", ("%.3x %.2x\n", offset, data));
294         DBG_LOG(space->machine, 1, "io write", ("%.3x %.2x\n", offset, data));
296295   }
297296}
298297
r4829r4830
310309
311310READ8_HANDLER( c64_read_io )
312311{
313   running_machine *machine = space->machine;
314312   const device_config *cia_0 = devtag_get_device(space->machine, "cia_0");
315313   const device_config *cia_1 = devtag_get_device(space->machine, "cia_1");
316314   const device_config *sid = devtag_get_device(space->machine, "sid6581");
r4829r4830
342340   else if (c64_cia1_on && (offset < 0xe00))
343341      return cia_r(cia_1, offset);
344342
345   DBG_LOG (1, "io read", ("%.3x\n", offset));
343   DBG_LOG(space->machine, 1, "io read", ("%.3x\n", offset));
346344
347345   return 0xff;
348346}
r4829r4830
481479   if (!c64_game && c64_exrom)
482480      ultimax_mode = 1;
483481
484   DBG_LOG (1, "bankswitch", ("%d\n", data & 7));
482   DBG_LOG(machine, 1, "bankswitch", ("%d\n", data & 7));
485483   loram  = (data & 1) ? 1 : 0;
486484   hiram  = (data & 2) ? 1 : 0;
487485   charen = (data & 4) ? 1 : 0;
docs/messnew.txt
r4829r4830
165165
166166- Implemented following devices: PIO8155, RP5C01A, HD44102, HD61830. [Curt Coder]
167167
168- Changed the Commodore Serial Bus implementation to be a device. More work is
169  needed to make the code flexible enough to support all the possible devices
170  which could have been connected to the real thing. [Fabio Priuli]
168- Changed the Commodore Serial Bus and IEEE Bus implementations to be devices.
169  More work is needed to make the code flexible enough to support all the possible
170  devices which could have been connected to the real thing. [Fabio Priuli]
171171
172172
1731730.131

Previous 15994 Revisions Next


© 1998-2018 The MESS Team