Previous 199869 Revisions Next

r33745 Monday 8th December, 2014 at 18:20:12 UTC by Curt Coder
(MESS) victor9k: Implemented character attributes and intensity. (nw)
[src/mess/drivers]victor9k.c

trunk/src/mess/drivers/victor9k.c
r242256r242257
2222    - floppy 8048
2323    - keyboard
2424    - hires graphics
25    - character attributes
2625    - brightness/contrast
2726    - MC6852
2827    - codec sound
r242256r242257
108107         UINT32 char_ram_addr = (BIT(ma, 12) << 16) | ((code & 0xff) << 5) | (ra << 1);
109108         UINT16 data = program.read_word(char_ram_addr);
110109
110         if (code & CODE_REVERSE_VIDEO) data ^= 0xffff;
111         if (code & CODE_NON_DISPLAY) data = 0;
112         if (sx == cursor_x) data = 0xffff;
113
111114         for (int x = 0; x <= 10; x++)
112115         {
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;
114119
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;
118121         }
119122
120123         video_ram_addr += 2;
r242256r242257
441444   MCFG_SCREEN_SIZE(640, 480)
442445   MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
443446
444   MCFG_PALETTE_ADD_MONOCHROME_GREEN("palette")
447   MCFG_PALETTE_ADD_MONOCHROME_GREEN_HIGHLIGHT("palette")
445448
446449   MCFG_MC6845_ADD(HD46505S_TAG, HD6845, SCREEN_TAG, 1000000) // HD6845 == HD46505S
447450   MCFG_MC6845_SHOW_BORDER_AREA(true)


Previous 199869 Revisions Next


© 1997-2024 The MAME Team