]> git.sur5r.net Git - cc65/blob - include/pce.h
Merge remote-tracking branch 'upstream/master' into pcenginetarget
[cc65] / include / pce.h
1 #define CH_CROSS        0x10
2
3 #define CH_RTEE     0x17
4 #define CH_LTEE     0x0f
5
6 #define CH_ULCORNER     0x10
7 #define CH_URCORNER     0x10
8 #define CH_LLCORNER     0x10
9 #define CH_LRCORNER     0x10
10
11
12 #define TV_NTSC         0
13 #define TV_PAL          1
14 #define get_tv()        0
15
16 #define CLOCKS_PER_SEC          50              // ???
17 #define CLK_TCK                         50              // ?!?
18
19 //#ifndef CH_ENTER
20 #define CH_ENTER        '\n'
21 //#endif
22
23 #define CH_STOP         0x08
24
25 #define CH_F1           0x14
26 #define CH_F3           0x15
27 #define CH_F5           0x16
28 #define CH_F7           0x17
29
30 #define CH_CURS_UP              0x01
31 #define CH_CURS_DOWN    0x02
32
33 #ifndef CH_CURS_LEFT
34 #define CH_CURS_LEFT    0x03
35 #endif
36
37 #ifndef CH_CURS_RIGHT
38 #define CH_CURS_RIGHT   0x04
39 #endif
40
41 #define CH_ESC          8
42
43 #define CH_DEL          20
44
45 /* Color defines */
46 #define COLOR_BLACK             0x00
47 #define COLOR_WHITE             0x01
48 #define COLOR_RED               0x02
49 #define COLOR_CYAN                      0x03
50 #define COLOR_VIOLET            0x04
51 #define COLOR_GREEN             0x05
52 #define COLOR_BLUE              0x06
53 #define COLOR_YELLOW            0x07
54 #define COLOR_ORANGE            0x08
55 #define COLOR_BROWN             0x09
56 #define COLOR_LIGHTRED          0x0A
57 #define COLOR_GRAY1             0x0B
58 #define COLOR_GRAY2             0x0C
59 #define COLOR_LIGHTGREEN        0x0D
60 #define COLOR_LIGHTBLUE         0x0E
61 #define COLOR_GRAY3             0x0F
62
63 #define JOY_FIRE_B  5
64 #define JOY_START   6
65 #define JOY_SELECT  7
66
67 /*
68 void __fastcall__ waitvblank(void);
69
70 unsigned char __fastcall__ cpeekcharxy(unsigned char x,unsigned char y);
71 unsigned char __fastcall__ cpeekchar(void);
72 unsigned char __fastcall__ cpeekcolxy(unsigned char x,unsigned char y);
73 unsigned char __fastcall__ cpeekcol(void);
74 */