trunk/src/mess/drivers/victor9k.c
| r242256 | r242257 | |
| 22 | 22 | - floppy 8048 |
| 23 | 23 | - keyboard |
| 24 | 24 | - hires graphics |
| 25 | | - character attributes |
| 26 | 25 | - brightness/contrast |
| 27 | 26 | - MC6852 |
| 28 | 27 | - codec sound |
| r242256 | r242257 | |
| 108 | 107 | UINT32 char_ram_addr = (BIT(ma, 12) << 16) | ((code & 0xff) << 5) | (ra << 1); |
| 109 | 108 | UINT16 data = program.read_word(char_ram_addr); |
| 110 | 109 | |
| 110 | if (code & CODE_REVERSE_VIDEO) data ^= 0xffff; |
| 111 | if (code & CODE_NON_DISPLAY) data = 0; |
| 112 | if (sx == cursor_x) data = 0xffff; |
| 113 | |
| 111 | 114 | for (int x = 0; x <= 10; x++) |
| 112 | 115 | { |
| 113 | | int color = BIT(data, x); |
| 116 | int pixel = BIT(data, x); |
| 117 | int color = palette[pixel && de]; |
| 118 | if (!(code & CODE_LOW_INTENSITY) && color) color = 2; |
| 114 | 119 | |
| 115 | | if (sx == cursor_x) color = 1; |
| 116 | | |
| 117 | | bitmap.pix32(vbp + y, hbp + x + sx*10) = palette[color && de]; |
| 120 | bitmap.pix32(vbp + y, hbp + x + sx*10) = color; |
| 118 | 121 | } |
| 119 | 122 | |
| 120 | 123 | video_ram_addr += 2; |
| r242256 | r242257 | |
| 441 | 444 | MCFG_SCREEN_SIZE(640, 480) |
| 442 | 445 | MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 443 | 446 | |
| 444 | | MCFG_PALETTE_ADD_MONOCHROME_GREEN("palette") |
| 447 | MCFG_PALETTE_ADD_MONOCHROME_GREEN_HIGHLIGHT("palette") |
| 445 | 448 | |
| 446 | 449 | MCFG_MC6845_ADD(HD46505S_TAG, HD6845, SCREEN_TAG, 1000000) // HD6845 == HD46505S |
| 447 | 450 | MCFG_MC6845_SHOW_BORDER_AREA(true) |