src/mess/drivers/vidbrain.c
| r7844 | r7845 | |
| 14 | 14 | |
| 15 | 15 | TODO: |
| 16 | 16 | |
| 17 | - SMI 3853 |
| 17 | 18 | - colors |
| 18 | 19 | - low resolution mode |
| 19 | 20 | - discrete sound |
| r7844 | r7845 | |
| 45 | 46 | switch (offset) |
| 46 | 47 | { |
| 47 | 48 | case 0xfa: |
| 49 | return 0xff; |
| 50 | |
| 48 | 51 | case 0xfb: |
| 52 | // alternate this between 0xf5 and 0x34 to make Checkers boot |
| 49 | 53 | return 0xff; |
| 50 | 54 | } |
| 51 | 55 | |
| r7844 | r7845 | |
| 86 | 90 | break; |
| 87 | 91 | } |
| 88 | 92 | |
| 93 | state->vlsi[offset] = data; |
| 94 | |
| 89 | 95 | logerror("VLSI %02x = %02x\n", offset, data); |
| 90 | 96 | } |
| 91 | 97 | |
| r7844 | r7845 | |
| 370 | 376 | |
| 371 | 377 | for (int y = 0; y < 49; y++) |
| 372 | 378 | { |
| 379 | int row = y / 7; |
| 380 | |
| 373 | 381 | for (int sx = 0; sx < 16; sx++) |
| 374 | 382 | { |
| 375 | 383 | UINT8 data = state->video_ram[addr++]; |
| 376 | 384 | |
| 377 | 385 | for (int x = 0; x < 8; x++) |
| 378 | 386 | { |
| 379 | | *BITMAP_ADDR16(bitmap, y, (sx * 8) + x) = BIT(data, 7) ? 7 : state->bg_color; |
| 387 | *BITMAP_ADDR16(bitmap, y, (sx * 8) + x) = BIT(data, 7) ? (state->vlsi[0x10+row] >> 5) : state->bg_color; |
| 380 | 388 | data <<= 1; |
| 381 | 389 | } |
| 382 | 390 | } |