Previous 15994 Revisions Next

r8829 Saturday 21st August, 2010 at 18:35:43 UTC by Angelo Salese
[PC8001]: Made the video to actually draw in white
[src/mess/drivers]pc8001.c
[src/mess/video]upd3301.c

src/mess/video/upd3301.c
r8828r8829
106106   int at1;                  /*  */
107107   int at0;                  /*  */
108108   int sc;                     /*  */
109   int a;                     /* attributes per row */
109   int attr;                  /* attributes per row */
110110   int attr_blink;               /* attribute blink */
111111   int attr_frame;               /* attribute blink frame counter */
112112
r8828r8829
381381            upd3301->at1 = BIT(data, 7);
382382            upd3301->at0 = BIT(data, 6);
383383            upd3301->sc = BIT(data, 5);
384            upd3301->a = (data & 0x1f) + 1;
384            upd3301->attr = (data & 0x1f) + 1;
385385            if (LOG) logerror("UPD3301 '%s' AT1: %u\n", device->tag(), upd3301->at1);
386386            if (LOG) logerror("UPD3301 '%s' AT0: %u\n", device->tag(), upd3301->at0);
387387            if (LOG) logerror("UPD3301 '%s' SC: %u\n", device->tag(), upd3301->sc);
388            if (LOG) logerror("UPD3301 '%s' A: %u\n", device->tag(), upd3301->a);
388            if (LOG) logerror("UPD3301 '%s' ATTR: %u\n", device->tag(), upd3301->attr);
389389
390390            upd3301->mode = MODE_NONE;
391391            break;
r8828r8829
556556      upd3301->attr_fifo_pos++;
557557   }
558558
559   if ((upd3301->data_fifo_pos == upd3301->h) && (upd3301->attr_fifo_pos == (upd3301->a << 1)))
559   if ((upd3301->data_fifo_pos == upd3301->h) && (upd3301->attr_fifo_pos == (upd3301->attr << 1)))
560560   {
561561      upd3301->input_fifo = !upd3301->input_fifo;
562562      upd3301->data_fifo_pos = 0;
src/mess/drivers/pc8001.c
r8828r8829
342342      {
343343         int color = BIT(data, 7) ^ rvv;
344344
345         *BITMAP_ADDR16(bitmap, y, (sx * 8) + i) = color;
345         *BITMAP_ADDR16(bitmap, y, (sx * 8) + i) = color ? 7 : 0;
346346
347347         data <<= 1;
348348      }
r8828r8829
355355      {
356356         int color = BIT(data, 7) ^ rvv;
357357
358         *BITMAP_ADDR16(bitmap, y, (sx/2 * 16) + (i * 2)) = color;
359         *BITMAP_ADDR16(bitmap, y, (sx/2 * 16) + (i * 2) + 1) = color;
358         *BITMAP_ADDR16(bitmap, y, (sx/2 * 16) + (i * 2)) = color ? 7 : 0;
359         *BITMAP_ADDR16(bitmap, y, (sx/2 * 16) + (i * 2) + 1) = color ? 7 : 0;
360360
361361         data <<= 1;
362362      }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team