Changeset fffab34 in buchla-emu for emu/vid.c


Ignore:
Timestamp:
09/04/2017 04:32:56 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
ca77925
Parents:
d021bbb
Message:

Support UND attribute.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emu/vid.c

    rd021bbb rfffab34  
    5050#define OD0_CB 0x0800
    5151
     52#define AT_UND 0x0100
    5253#define AT_CG 0x8000
    5354
     
    125126                                int32_t fg = (at & 0x00f0) >> 4;
    126127
    127                                 uint16_t *cg = (at & AT_CG) != 0 ? cg0 : cg1;
    128                                 int32_t bits = cg[256 * line + ch];
     128                                int32_t bits;
     129
     130                                if ((at & AT_UND) != 0 && line == 1) {
     131                                        bits = 0xff;
     132                                }
     133                                else {
     134                                        uint16_t *cg = (at & AT_CG) != 0 ? cg0 : cg1;
     135                                        bits = cg[256 * line + ch];
     136                                }
     137
    129138                                int32_t mask = 0x01;
    130139
Note: See TracChangeset for help on using the changeset viewer.