Lines Matching +full:0 +full:x8200
54 #define SC_RENDER_DEBUG 0
108 RENDERER(mda, 0, txtrndrsw, vga_set);
109 RENDERER(cga, 0, txtrndrsw, vga_set);
110 RENDERER(ega, 0, txtrndrsw, vga_set);
111 RENDERER(vga, 0, txtrndrsw, vga_set);
161 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8200,
162 0x8400, 0x8400, 0x8400, 0x9200, 0xB200, 0xA900, 0xC900, 0x8600, }, {
163 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7C00,
164 0x7800, 0x7800, 0x7800, 0x6C00, 0x4C00, 0x4600, 0x0600, 0x0000, },
169 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8700,
170 0x8400, 0x9200, 0xB200, 0xA900, 0xC900, 0x0600, 0x0000, 0x0000, }, {
171 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7800,
172 0x7800, 0x6C00, 0x4C00, 0x4600, 0x0600, 0x0000, 0x0000, 0x0000, },
177 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8600, 0x8400,
178 0xB200, 0xD200, 0x0900, 0x0900, 0x0600, 0x0000, 0x0000, 0x0000, }, {
179 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7800, 0x7800,
180 0x4C00, 0x0C00, 0x0600, 0x0600, 0x0000, 0x0000, 0x0000, 0x0000, },
185 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8700,
186 0x8400, 0x9200, 0xB200, 0xC900, 0x0900, 0x0480, 0x0480, 0x0300, }, {
187 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7800,
188 0x7800, 0x6C00, 0x4C00, 0x0600, 0x0600, 0x0300, 0x0300, 0x0000, },
193 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8780,
194 0x9200, 0xB200, 0xD900, 0x8900, 0x0600, 0x0000, 0x0000, 0x0000, }, {
195 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7800,
196 0x6C00, 0x4C00, 0x0600, 0x0600, 0x0000, 0x0000, 0x0000, 0x0000, },
201 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8080,
202 0x8040, 0x83E0, 0x8200, 0x9900, 0xA900, 0xC480, 0x8480, 0x0300, }, {
203 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7F00,
204 0x7F80, 0x7C00, 0x7C00, 0x6600, 0x4600, 0x0300, 0x0300, 0x0000, },
209 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8780,
210 0xB200, 0xD200, 0x8900, 0x0900, 0x0600, 0x0000, 0x0000, 0x0000, }, {
211 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7800,
212 0x4C00, 0x0C00, 0x0600, 0x0600, 0x0000, 0x0000, 0x0000, 0x0000, },
217 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8080,
218 0x8040, 0x83C0, 0x9200, 0xA900, 0xC900, 0x0480, 0x0480, 0x0300, }, {
219 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7F00,
220 0x7F80, 0x7C00, 0x6C00, 0x4600, 0x0600, 0x0300, 0x0300, 0x0000, },
225 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8080,
226 0x97C0, 0xB200, 0xF200, 0xC900, 0x8900, 0x0600, 0x0000, 0x0000, }, {
227 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7F00,
228 0x6800, 0x4C00, 0x0C00, 0x0600, 0x0600, 0x0000, 0x0000, 0x0000, },
233 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8080,
234 0x97C0, 0xB200, 0xF200, 0xC900, 0x8900, 0x0480, 0x0480, 0x0300, }, {
235 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7F00,
236 0x6800, 0x4C00, 0x0C00, 0x0600, 0x0600, 0x0300, 0x0300, 0x0000, },
241 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8080,
242 0x9780, 0xB200, 0xC900, 0x0900, 0x0600, 0x0000, 0x0000, 0x0000, }, {
243 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7F00,
244 0x6800, 0x4C00, 0x0600, 0x0600, 0x0000, 0x0000, 0x0000, 0x0000, },
249 0xC000, 0xA000, 0x9000, 0x8800, 0x8400, 0x8200, 0x8100, 0x8080,
250 0x8040, 0x93E0, 0xB200, 0xC900, 0x8900, 0x0480, 0x0480, 0x0300, }, {
251 0x0000, 0x4000, 0x6000, 0x7000, 0x7800, 0x7C00, 0x7E00, 0x7F00,
252 0x7F80, 0x6C00, 0x4C00, 0x0600, 0x0600, 0x0300, 0x0300, 0x0000, },
257 0xF800, 0xCE00, 0xC380, 0xC0E0, 0xC038, 0xC1FC, 0xDCC0, 0xF660,
258 0xC330, 0x01E0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, }, {
259 0x0000, 0x3000, 0x3C00, 0x3F00, 0x3FC0, 0x3E00, 0x2300, 0x0180,
260 0x00C0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, },
303 if (((pos) & 1) == 0) { \
323 } while (0)
326 0x000000, 0x0000ad, 0x00ad00, 0x00adad,
327 0xad0000, 0xad00ad, 0xad5200, 0xadadad,
328 0x525252, 0x5252ff, 0x52ff52, 0x52ffff,
329 0xff5252, 0xff52ff, 0xffff52, 0xffffff
333 0x0000, 0x0016, 0x0560, 0x0576, 0xb000, 0xb016, 0xb2a0, 0xb576,
334 0x52aa, 0x52bf, 0x57ea, 0x57ff, 0xfaaa, 0xfabf, 0xffea, 0xffff
338 0x0000, 0x0016, 0x02c0, 0x02d6, 0x5800, 0x5816, 0x5940, 0x5ad6,
339 0x294a, 0x295f, 0x2bea, 0x2bff, 0x7d4a, 0x7d5f, 0x7fea, 0x7fff
345 &vga_aspect_scale, 0, "Aspect scale ratio (3:4):actual times 100");
351 a = (a & 0x8800) | ((a & 0x7000) >> 4) | in vga_flipattr()
352 ((a & 0x0700) << 4); in vga_flipattr()
354 a = ((a & 0xf000) >> 4) | ((a & 0x0f00) << 4); in vga_flipattr()
370 bgmask = blink ? 0x7000 : 0xf000; in vga_cursorattr_adj()
372 fg = a & 0x0f00; in vga_cursorattr_adj()
373 for (i = 0; i < nitems(scp->curs_attr.bg); i++) { in vga_cursorattr_adj()
380 return (fg | newbg | (blink ? a & 0x8000 : 0)); in vga_cursorattr_adj()
414 mdpp = &mousesmall[0]; in vga_setmdp()
417 mdpp = &mouselarge[0]; in vga_setmdp()
427 best_i = 0; in vga_setmdp()
428 best_v = 0x7fffffff; in vga_setmdp()
429 for (i = 0; i < n; i++) { in vga_setmdp()
472 for (p = sc_vtb_pointer(&scp->scr, from); count-- > 0; ++from) { in vga_txtdraw()
487 if (base < 0 || base >= scp->font_size) in vga_txtcursor_shape()
489 /* the caller may set height <= 0 in order to disable the cursor */ in vga_txtcursor_shape()
529 for (i = imax(h - scp->curs_attr.base - scp->curs_attr.height, 0); in draw_txtcharcursor()
531 font[i] ^= 0xff; in draw_txtcharcursor()
534 vidd_load_font(sc->adp, 0, h, 8, font, sc->cursor_char, 1); in draw_txtcharcursor()
552 if (scp->curs_attr.height <= 0) /* the text cursor is disabled */ in vga_txtcursor()
617 &font_buf[0], scp->font_size); in draw_txtmouse()
626 for (i = 0; i < scp->font_size; ++i) { in draw_txtmouse()
634 for (i = 0; i < 16; ++i) { in draw_txtmouse()
641 border = (border & 0xff0000) | in draw_txtmouse()
642 (border & 0x007f80) << 1 | in draw_txtmouse()
643 (border & 0x00003f) << 2; in draw_txtmouse()
644 interior = (interior & 0xff0000) | in draw_txtmouse()
645 (interior & 0x007f80) << 1 | in draw_txtmouse()
646 (interior & 0x00003f) << 2; in draw_txtmouse()
653 for (i = 0; i < scp->font_size; ++i) { in draw_txtmouse()
654 font_buf[i] = (cursor[i] & 0xff00) >> 8; in draw_txtmouse()
655 font_buf[i + 32] = cursor[i] & 0xff; in draw_txtmouse()
656 font_buf[i + 64] = (cursor[i + scp->font_size] & 0xff00) >> 8; in draw_txtmouse()
657 font_buf[i + 96] = cursor[i + scp->font_size] & 0xff; in draw_txtmouse()
664 !(inb(crtc_addr + 6) & 0x08)) in draw_txtmouse()
668 vidd_load_font(scp->sc->adp, 0, 32, 8, font_buf, c, 4); in draw_txtmouse()
694 color = (col_conv[(a & 0xf000) >> 12] << 12) in draw_txtmouse()
695 | ((a & 0x0f00) | 0x0800); in draw_txtmouse()
697 color = ((a & 0xf000) >> 4) | ((a & 0x0f00) << 4); in draw_txtmouse()
760 for (i = 0; i < lines; ++i) { in vga_pxlclear_direct()
775 outw(GDCIDX, 0x0005); /* read mode 0, write mode 0 */ in vga_pxlclear_planar()
776 outw(GDCIDX, 0x0003); /* data rotate/function select */ in vga_pxlclear_planar()
777 outw(GDCIDX, 0x0f01); /* set/reset enable */ in vga_pxlclear_planar()
778 outw(GDCIDX, 0xff08); /* bit mask */ in vga_pxlclear_planar()
779 outw(GDCIDX, ((attr & 0xf000) >> 4) | 0x00); /* set/reset */ in vga_pxlclear_planar()
784 for (i = 0; i < lines; ++i) { in vga_pxlclear_planar()
788 outw(GDCIDX, 0x0000); /* set/reset */ in vga_pxlclear_planar()
789 outw(GDCIDX, 0x0001); /* set/reset enable */ in vga_pxlclear_planar()
807 if (scp->yoff > 0) { in vga_pxlborder_direct()
828 for (i = 0; i < scp->ysize * scp->font_size; ++i) { in vga_pxlborder_direct()
829 if (scp->xoff > 0) { in vga_pxlborder_direct()
837 if (x > 0) { in vga_pxlborder_direct()
860 outw(GDCIDX, 0x0005); /* read mode 0, write mode 0 */ in vga_pxlborder_planar()
861 outw(GDCIDX, 0x0003); /* data rotate/function select */ in vga_pxlborder_planar()
862 outw(GDCIDX, 0x0f01); /* set/reset enable */ in vga_pxlborder_planar()
863 outw(GDCIDX, 0xff08); /* bit mask */ in vga_pxlborder_planar()
864 outw(GDCIDX, (color << 8) | 0x00); /* set/reset */ in vga_pxlborder_planar()
867 if (scp->yoff > 0) in vga_pxlborder_planar()
874 for (i = 0; i < scp->ysize*scp->font_size; ++i) { in vga_pxlborder_planar()
875 if (scp->xoff > 0) in vga_pxlborder_planar()
877 if (x > 0) in vga_pxlborder_planar()
881 outw(GDCIDX, 0x0000); /* set/reset */ in vga_pxlborder_planar()
882 outw(GDCIDX, 0x0001); /* set/reset enable */ in vga_pxlborder_planar()
904 for (i = from; count-- > 0; ++i) { in vga_vgadraw_direct()
909 col1 = (a & 0x0f00) >> 8; in vga_vgadraw_direct()
910 col2 = (a & 0xf000) >> 12; in vga_vgadraw_direct()
915 for (j = 0; j < scp->font_size; ++j, ++f) { in vga_vgadraw_direct()
916 for (k = 0; k < 8; ++k) { in vga_vgadraw_direct()
949 outw(GDCIDX, 0x0305); /* read mode 0, write mode 3 */ in vga_vgadraw_planar()
950 outw(GDCIDX, 0xff08); /* bit mask */ in vga_vgadraw_planar()
952 outw(GDCIDX, 0x0005); /* read mode 0, write mode 0 */ in vga_vgadraw_planar()
953 outw(GDCIDX, 0x0003); /* data rotate/function select */ in vga_vgadraw_planar()
954 outw(GDCIDX, 0x0f01); /* set/reset enable */ in vga_vgadraw_planar()
958 for (i = from; count-- > 0; ++i) { in vga_vgadraw_planar()
962 col1 = a & 0x0f00; in vga_vgadraw_planar()
963 col2 = (a & 0xf000) >> 4; in vga_vgadraw_planar()
968 outw(GDCIDX, bg | 0x00); /* set/reset */ in vga_vgadraw_planar()
970 outw(GDCIDX, 0xff08); /* bit mask */ in vga_vgadraw_planar()
971 writeb(d, 0xff); in vga_vgadraw_planar()
977 outw(GDCIDX, col1 | 0x00); /* set/reset */ in vga_vgadraw_planar()
981 for (j = 0; j < scp->font_size; ++j, ++f) { in vga_vgadraw_planar()
985 outw(GDCIDX, (*f << 8) | 0x08); /* bit mask */ in vga_vgadraw_planar()
986 writeb(e, 0); in vga_vgadraw_planar()
995 outw(GDCIDX, 0x0005); /* read mode 0, write mode 0 */ in vga_vgadraw_planar()
997 outw(GDCIDX, 0xff08); /* bit mask */ in vga_vgadraw_planar()
998 outw(GDCIDX, 0x0000); /* set/reset */ in vga_vgadraw_planar()
999 outw(GDCIDX, 0x0001); /* set/reset enable */ in vga_vgadraw_planar()
1031 col1 = (a & 0x0f00) >> 8; in draw_pxlcursor_direct()
1039 for (i = 0; i < height; ++i, --f) { in draw_pxlcursor_direct()
1040 for (j = 0; j < 8; ++j) { in draw_pxlcursor_direct()
1065 outw(GDCIDX, 0x0005); /* read mode 0, write mode 0 */ in draw_pxlcursor_planar()
1066 outw(GDCIDX, 0x0003); /* data rotate/function select */ in draw_pxlcursor_planar()
1067 outw(GDCIDX, 0x0f01); /* set/reset enable */ in draw_pxlcursor_planar()
1074 col = (a & 0xf000) >> 4; in draw_pxlcursor_planar()
1075 outw(GDCIDX, col | 0x00); /* set/reset */ in draw_pxlcursor_planar()
1076 outw(GDCIDX, 0xff08); /* bit mask */ in draw_pxlcursor_planar()
1077 writeb(d, 0); in draw_pxlcursor_planar()
1080 col = a & 0x0f00; in draw_pxlcursor_planar()
1081 outw(GDCIDX, col | 0x00); /* set/reset */ in draw_pxlcursor_planar()
1085 for (i = 0; i < height; ++i, --f) { in draw_pxlcursor_planar()
1086 outw(GDCIDX, (*f << 8) | 0x08); /* bit mask */ in draw_pxlcursor_planar()
1087 writeb(d, 0); in draw_pxlcursor_planar()
1090 outw(GDCIDX, 0x0000); /* set/reset */ in draw_pxlcursor_planar()
1091 outw(GDCIDX, 0x0001); /* set/reset enable */ in draw_pxlcursor_planar()
1092 outw(GDCIDX, 0xff08); /* bit mask */ in draw_pxlcursor_planar()
1095 static int pxlblinkrate = 0;
1100 if (scp->curs_attr.height <= 0) /* the text cursor is disabled */ in vga_pxlcursor_direct()
1108 pxlblinkrate = 0; in vga_pxlcursor_direct()
1128 if (scp->curs_attr.height <= 0) /* the text cursor is disabled */ in vga_pxlcursor_planar()
1136 pxlblinkrate = 0; in vga_pxlcursor_planar()
1160 pxlblinkrate = 0; in vga_pxlblink_direct()
1172 pxlblinkrate = 0; in vga_pxlblink_planar()
1197 outw(GDCIDX, 0x0305); /* read mode 0, write mode 3 */ in draw_pxlmouse_planar()
1198 outw(GDCIDX, 0xff08); /* bit mask */ in draw_pxlmouse_planar()
1200 outw(GDCIDX, 0x0005); /* read mode 0, write mode 0 */ in draw_pxlmouse_planar()
1201 outw(GDCIDX, 0x0003); /* data rotate/function select */ in draw_pxlmouse_planar()
1202 outw(GDCIDX, 0x0f01); /* set/reset enable */ in draw_pxlmouse_planar()
1204 outw(GDCIDX, (scp->curs_attr.mouse_ba << 8) | 0x00); /* set/reset */ in draw_pxlmouse_planar()
1206 for (i = y, j = 0; i < ymax; ++i, ++j) { in draw_pxlmouse_planar()
1208 for (k = 0; k < 3; ++k) { in draw_pxlmouse_planar()
1210 if (m1 != 0 && x + 8 * k < scp->xpixel) { in draw_pxlmouse_planar()
1216 outw(GDCIDX, (m1 << 8) | 0x08); in draw_pxlmouse_planar()
1217 writeb(p + k, 0); in draw_pxlmouse_planar()
1223 outw(GDCIDX, (scp->curs_attr.mouse_ia << 8) | 0x00); /* set/reset */ in draw_pxlmouse_planar()
1225 for (i = y, j = 0; i < ymax; ++i, ++j) { in draw_pxlmouse_planar()
1227 for (k = 0; k < 3; ++k) { in draw_pxlmouse_planar()
1229 if (m1 != 0 && x + 8 * k < scp->xpixel) { in draw_pxlmouse_planar()
1235 outw(GDCIDX, (m1 << 8) | 0x08); in draw_pxlmouse_planar()
1236 writeb(p + k, 0); in draw_pxlmouse_planar()
1243 outw(GDCIDX, 0x0005); /* read mode 0, write mode 0 */ in draw_pxlmouse_planar()
1245 outw(GDCIDX, 0xff08); /* bit mask */ in draw_pxlmouse_planar()
1246 outw(GDCIDX, 0x0000); /* set/reset */ in draw_pxlmouse_planar()
1247 outw(GDCIDX, 0x0001); /* set/reset enable */ in draw_pxlmouse_planar()
1272 outw(GDCIDX, 0x0005); /* read mode 0, write mode 0 */ in remove_pxlmouse_planar()
1273 outw(GDCIDX, 0x0003); /* data rotate/function select */ in remove_pxlmouse_planar()
1274 outw(GDCIDX, 0x0f01); /* set/reset enable */ in remove_pxlmouse_planar()
1275 outw(GDCIDX, 0xff08); /* bit mask */ in remove_pxlmouse_planar()
1276 outw(GDCIDX, (scp->border << 8) | 0x00); /* set/reset */ in remove_pxlmouse_planar()
1281 writeb(p, 0); in remove_pxlmouse_planar()
1283 outw(GDCIDX, 0x0000); /* set/reset */ in remove_pxlmouse_planar()
1284 outw(GDCIDX, 0x0001); /* set/reset enable */ in remove_pxlmouse_planar()
1316 for (i = 0; i < yend - y; i++, p += line_width) in vga_pxlmouse_direct()
1317 for (j = xend - x - 1; j >= 0; j--) in vga_pxlmouse_direct()
1324 for (i = 0; i < yend - y; i++, p += line_width) in vga_pxlmouse_direct()
1325 for (j = xend - x - 1; j >= 0; j--) in vga_pxlmouse_direct()