src/mess/video/upd3301.c
| r8828 | r8829 | |
| 106 | 106 | int at1; /* */ |
| 107 | 107 | int at0; /* */ |
| 108 | 108 | int sc; /* */ |
| 109 | | int a; /* attributes per row */ |
| 109 | int attr; /* attributes per row */ |
| 110 | 110 | int attr_blink; /* attribute blink */ |
| 111 | 111 | int attr_frame; /* attribute blink frame counter */ |
| 112 | 112 | |
| r8828 | r8829 | |
| 381 | 381 | upd3301->at1 = BIT(data, 7); |
| 382 | 382 | upd3301->at0 = BIT(data, 6); |
| 383 | 383 | upd3301->sc = BIT(data, 5); |
| 384 | | upd3301->a = (data & 0x1f) + 1; |
| 384 | upd3301->attr = (data & 0x1f) + 1; |
| 385 | 385 | if (LOG) logerror("UPD3301 '%s' AT1: %u\n", device->tag(), upd3301->at1); |
| 386 | 386 | if (LOG) logerror("UPD3301 '%s' AT0: %u\n", device->tag(), upd3301->at0); |
| 387 | 387 | 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); |
| 389 | 389 | |
| 390 | 390 | upd3301->mode = MODE_NONE; |
| 391 | 391 | break; |
| r8828 | r8829 | |
| 556 | 556 | upd3301->attr_fifo_pos++; |
| 557 | 557 | } |
| 558 | 558 | |
| 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))) |
| 560 | 560 | { |
| 561 | 561 | upd3301->input_fifo = !upd3301->input_fifo; |
| 562 | 562 | upd3301->data_fifo_pos = 0; |
src/mess/drivers/pc8001.c
| r8828 | r8829 | |
| 342 | 342 | { |
| 343 | 343 | int color = BIT(data, 7) ^ rvv; |
| 344 | 344 | |
| 345 | | *BITMAP_ADDR16(bitmap, y, (sx * 8) + i) = color; |
| 345 | *BITMAP_ADDR16(bitmap, y, (sx * 8) + i) = color ? 7 : 0; |
| 346 | 346 | |
| 347 | 347 | data <<= 1; |
| 348 | 348 | } |
| r8828 | r8829 | |
| 355 | 355 | { |
| 356 | 356 | int color = BIT(data, 7) ^ rvv; |
| 357 | 357 | |
| 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; |
| 360 | 360 | |
| 361 | 361 | data <<= 1; |
| 362 | 362 | } |