Previous 15994 Revisions Next

r10488 Thursday 17th February, 2011 at 23:51:52 UTC by Angelo Salese
Some printf'ing, useful for QX-10 & A5105 debugging
[src/mess/video]upd7220.c

src/mess/video/upd7220.c
r10487r10488
454454/*-------------------------------------------------
455455    advance_ead - advance EAD pointer
456456-------------------------------------------------*/
457#ifdef UNUSED_FUNCTION
457
458458#define EAD         upd7220->ead
459459#define DAD         upd7220->dad
460460#define P         upd7220->pitch
r10487r10488
463463#define LR(value)   ((value << 1) | MSB(value))
464464#define RR(value)   ((LSB(value) << 15) | (value >> 1))
465465
466/* TODO: EAD addition/subtraction is wrong, must be direction param 0 + (direction param 1 x pitch) */
466467static void advance_ead(upd7220_t *upd7220)
467468{
468469   switch (upd7220->draw_mode & 0x07)
r10487r10488
512513
513514   EAD &= 0x3ffff;
514515}
515#endif
516
516517/*-------------------------------------------------
517518    translate_command - translate command byte
518519-------------------------------------------------*/
r10487r10488
761762
762763   case COMMAND_WDAT: /* write data into display memory */
763764      logerror("uPD7220 '%s' Unimplemented command WDAT\n", device->tag());
764
765      if (flag == FIFO_PARAMETER)
765      if (upd7220->param_ptr == 2)
766766      {
767         upd7220->param_ptr = 0;
767         printf("%02x %02x (%c) %04x\n",upd7220->pr[2],upd7220->pr[1],upd7220->pr[1],EAD);
768         advance_ead(upd7220);
768769      }
769770      break;
770771

Previous 15994 Revisions Next


© 1998-2018 The MESS Team