src/mess/video/kaypro.c
| r4527 | r4528 | |
| 140 | 140 | d3 Underline |
| 141 | 141 | d2 blinking (at unknown rate) |
| 142 | 142 | d1 low intensity |
| 143 | | d0 reverse video */ |
| 143 | d0 reverse video |
| 144 | 144 | |
| 145 | Not sure how the attributes interact, for example does an underline blink? */ |
| 145 | 146 | |
| 147 | |
| 146 | 148 | MC6845_UPDATE_ROW( kaypro2x_update_row ) |
| 147 | 149 | { |
| 148 | 150 | UINT16 *p = BITMAP_ADDR16(bitmap, y, 0); |
| r4527 | r4528 | |
| 190 | 192 | inv ^= mc6845_cursor[ra]; |
| 191 | 193 | |
| 192 | 194 | /* get pattern of pixels for that character scanline */ |
| 193 | | gfx = FNT[(chr<<4) | ra ]; |
| 195 | if ((ra == 15) && (attr & 8)) /* underline */ |
| 196 | gfx = 0xff; |
| 197 | else |
| 198 | gfx = FNT[(chr<<4) | ra ]; |
| 194 | 199 | |
| 195 | 200 | /* Display a scanline of a character (8 pixels) */ |
| 196 | 201 | *p = ( gfx & 0x80 ) ? fg : bg; p++; |
| r4527 | r4528 | |
| 200 | 205 | *p = ( gfx & 0x08 ) ? fg : bg; p++; |
| 201 | 206 | *p = ( gfx & 0x04 ) ? fg : bg; p++; |
| 202 | 207 | *p = ( gfx & 0x02 ) ? fg : bg; p++; |
| 203 | | |
| 204 | | /* underline */ |
| 205 | | if (attr & 8) |
| 206 | | *p = fg; |
| 207 | | else |
| 208 | | *p = ( gfx & 0x01 ) ? fg : bg; |
| 209 | | |
| 210 | | p++; |
| 208 | *p = ( gfx & 0x01 ) ? fg : bg; p++; |
| 211 | 209 | } |
| 212 | 210 | } |
| 213 | 211 | |