source: buchla-68k/include/vsdd.h@ f7428b1

Last change on this file since f7428b1 was f7428b1, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Started to rework include files.

  • Property mode set to 100644
File size: 2.1 KB
Line 
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#pragma once
10#include "stdint.h"
11
12#define VSDD ((uint16_t *)0x200000)
13
14#define V_CHITE 12 /* Character height */
15
16/* object descriptor flags */
17
18#define V_CBS 0x0800 /* 0 = Bit Map, 1 = Character */
19#define V_RES0 0x0000 /* Resolution 0: char 16, bit - */
20#define V_RES1 0x0200 /* Resolution 1: char 6, bit - */
21#define V_RES2 0x0400 /* Resolution 2: char 8, bit 2 */
22#define V_RES3 0x0600 /* Resolution 3: char 12, bit 4 */
23#define V_CRS 0x0100 /* Conceal/Reveal Select */
24
25#define V_PSE 0x0080 /* Proportional space enable */
26#define V_FAD 0x0040 /* Full attributes select */
27#define V_OBL 0x0020 /* Object blink */
28#define V_BLA 0x0010 /* Object blank */
29
30#define V_HCR 0x0008 /* High color resolution */
31#define V_TDE 0x0004 /* Transparency detect enable */
32#define V_DCS0 0x0000 /* Default color select 0 */
33#define V_DCS1 0x0001 /* Default color select 1 */
34#define V_DCS2 0x0002 /* Default color select 2 */
35#define V_DCS3 0x0003 /* Default color select 3 */
36
37/* Preset flags for bitmap and character objects */
38
39#define V_BTYPE 0
40#define V_CTYPE (V_CBS | V_RES2 | ((V_CHITE - 1) << 12))
41
42/* character attribute flags */
43
44#define C_ALTCS 0x8000
45#define C_TFGND 0x4000
46#define C_TBGND 0x2000
47#define C_WIDE 0x1000
48
49#define C_MASK 0x0800
50#define C_INVRT 0x0400
51#define C_BLINK 0x0200
52#define C_ULINE 0x0100
53
54/*
55
56*/
57
58struct octent { /* Object control table entry */
59
60 uint16_t ysize, /* Height of object in pixels */
61 xsize; /* Width of object in pixels */
62
63 int16_t objx, /* Object x location */
64 objy; /* Object y location */
65
66 uint16_t *obase; /* Base of object data */
67
68 int8_t opri, /* Current object priority */
69 obank; /* Object bank 0..3 */
70
71 uint16_t odtw0, /* Object descriptor table word 0 */
72 odtw1; /* Object descriptor table word 1 */
73};
Note: See TracBrowser for help on using the repository browser.