]> git.sur5r.net Git - cc65/blob - include/creativision.h
Initial Creativision Import
[cc65] / include / creativision.h
1 /* CreatiVision Header */
2
3 #ifndef _CVISION_H
4
5 #define _CVISION_H
6
7 #define CH_VLINE 33
8 #define CH_HLINE 34
9 #define CH_ULCORNER 35
10 #define CH_URCORNER 36
11 #define CH_LLCORNER 37
12 #define CH_LRCORNER 38
13
14 #define DYN_DRV 0
15
16 /* Colours - from TMS9918 */
17 #define C_TRANSPARENT   0
18 #define C_BLACK         1
19 #define C_MED_GREEN     2 
20 #define C_LIGHT_GREEN   3
21 #define C_DARK_BLUE     4
22 #define C_LIGHT_BLUE    5
23 #define C_DARK_RED      6
24 #define C_CYAN          7
25 #define C_MED_RED       8
26 #define C_LIGHT_RED     9
27 #define C_DARK_YELLOW   10
28 #define C_LIGHT_YELLOW  11
29 #define C_DARK_GREEN    12
30 #define C_MAGENTA       13
31 #define C_GREY          14
32 #define C_WHITE         15
33
34 /* Joystick states */
35 #define JOY_UP          5
36 #define JOY_DOWN        1
37 #define JOY_LEFT        7
38 #define JOY_RIGHT       3
39 #define JOY_LEFT_UP     6
40 #define JOY_LEFT_DOWN   8
41 #define JOY_RIGHT_UP    4
42 #define JOY_RIGHT_DOWN  2
43 #define JOY_LBUTTON     1
44 #define JOY_RBUTTON     2
45
46 /* Joystick values */
47 #define JOY_LEFT_DIR      1
48 #define JOY_RIGHT_DIR     2
49 #define JOY_LEFT_BUTTONS  3
50 #define JOY_RIGHT_BUTTONS 4                     
51
52 /* Protos */
53 void __fastcall__ psg_outb( unsigned char b );
54 void __fastcall__ psg_delay( unsigned char b );
55 void psg_silence( void );
56 void __fastcall__ bios_playsound( void *a, unsigned char b);
57 unsigned char __fastcall__ joystate( unsigned char which );
58
59 #endif