1 | /*
|
---|
2 | =============================================================================
|
---|
3 | vsdd.h -- header for Matra-Harris 82716 VSDD video display functions
|
---|
4 | Version 10 -- 1987-05-27 -- D.N. Lynx Crowe
|
---|
5 | (c) Copyright 1987 -- D.N. Lynx Crowe
|
---|
6 | =============================================================================
|
---|
7 | */
|
---|
8 |
|
---|
9 | #define VSDD (unsigned int *)0x200000
|
---|
10 |
|
---|
11 | #define V_CHITE 12 /* Character height */
|
---|
12 |
|
---|
13 | /* object descriptor flags */
|
---|
14 |
|
---|
15 | #define V_CBS 0x0800 /* 0 = Bit Map, 1 = Character */
|
---|
16 | #define V_RES0 0x0000 /* Resolution 0: char 16, bit - */
|
---|
17 | #define V_RES1 0x0200 /* Resolution 1: char 6, bit - */
|
---|
18 | #define V_RES2 0x0400 /* Resolution 2: char 8, bit 2 */
|
---|
19 | #define V_RES3 0x0600 /* Resolution 3: char 12, bit 4 */
|
---|
20 | #define V_CRS 0x0100 /* Conceal/Reveal Select */
|
---|
21 |
|
---|
22 | #define V_PSE 0x0080 /* Proportional space enable */
|
---|
23 | #define V_FAD 0x0040 /* Full attributes select */
|
---|
24 | #define V_OBL 0x0020 /* Object blink */
|
---|
25 | #define V_BLA 0x0010 /* Object blank */
|
---|
26 |
|
---|
27 | #define V_HCR 0x0008 /* High color resolution */
|
---|
28 | #define V_TDE 0x0004 /* Transparency detect enable */
|
---|
29 | #define V_DCS0 0x0000 /* Default color select 0 */
|
---|
30 | #define V_DCS1 0x0001 /* Default color select 1 */
|
---|
31 | #define V_DCS2 0x0002 /* Default color select 2 */
|
---|
32 | #define V_DCS3 0x0003 /* Default color select 3 */
|
---|
33 |
|
---|
34 | /* Preset flags for bitmap and character objects */
|
---|
35 |
|
---|
36 | #define V_BTYPE 0
|
---|
37 | #define V_CTYPE (V_CBS | V_RES2 | ((V_CHITE - 1) << 12))
|
---|
38 |
|
---|
39 | /* character attribute flags */
|
---|
40 |
|
---|
41 | #define C_ALTCS 0x8000
|
---|
42 | #define C_TFGND 0x4000
|
---|
43 | #define C_TBGND 0x2000
|
---|
44 | #define C_WIDE 0x1000
|
---|
45 |
|
---|
46 | #define C_MASK 0x0800
|
---|
47 | #define C_INVRT 0x0400
|
---|
48 | #define C_BLINK 0x0200
|
---|
49 | #define C_ULINE 0x0100
|
---|
50 |
|
---|
51 | /* |
---|
52 |
|
---|
53 | */
|
---|
54 |
|
---|
55 | struct octent { /* Object control table entry */
|
---|
56 |
|
---|
57 | unsigned int ysize, /* Height of object in pixels */
|
---|
58 | xsize; /* Width of object in pixels */
|
---|
59 |
|
---|
60 | int objx, /* Object x location */
|
---|
61 | objy; /* Object y location */
|
---|
62 |
|
---|
63 | unsigned int *obase; /* Base of object data */
|
---|
64 |
|
---|
65 | char opri, /* Current object priority */
|
---|
66 | obank; /* Object bank 0..3 */
|
---|
67 |
|
---|
68 | unsigned int odtw0, /* Object descriptor table word 0 */
|
---|
69 | odtw1; /* Object descriptor table word 1 */
|
---|
70 | };
|
---|
71 |
|
---|