]> git.sur5r.net Git - cc65/blob - include/apple2.h
Working on new serial API
[cc65] / include / apple2.h
1 /*****************************************************************************/
2 /*                                                                           */
3 /*                                 apple2.h                                  */
4 /*                                                                           */
5 /*                   Apple ][ system specific definitions                    */
6 /*                                                                           */
7 /*                                                                           */
8 /*                                                                           */
9 /* (C) 2000  Kevin Ruland, <kevin@rodin.wustl.edu>                           */
10 /*                                                                           */
11 /*                                                                           */
12 /* This software is provided 'as-is', without any expressed or implied       */
13 /* warranty.  In no event will the authors be held liable for any damages    */
14 /* arising from the use of this software.                                    */
15 /*                                                                           */
16 /* Permission is granted to anyone to use this software for any purpose,     */
17 /* including commercial applications, and to alter it and redistribute it    */
18 /* freely, subject to the following restrictions:                            */
19 /*                                                                           */
20 /* 1. The origin of this software must not be misrepresented; you must not   */
21 /*    claim that you wrote the original software. If you use this software   */
22 /*    in a product, an acknowledgment in the product documentation would be  */
23 /*    appreciated but is not required.                                       */
24 /* 2. Altered source versions must be plainly marked as such, and must not   */
25 /*    be misrepresented as being the original software.                      */
26 /* 3. This notice may not be removed or altered from any source              */
27 /*    distribution.                                                          */
28 /*                                                                           */
29 /*****************************************************************************/
30
31
32
33 #ifndef _APPLE2_H
34 #define _APPLE2_H
35
36
37
38 /* Check for errors */
39 #if !defined(__APPLE2__)
40 #  error This module may only be used when compiling for the Apple ][!
41 #endif
42
43
44
45 /* Color Defines
46  * Since Apple2 does not support color text these defines are only
47  * used to get the library to compile correctly.  They should not be used
48  * in user code
49  */
50 #define COLOR_BLACK     0x00
51 #define COLOR_WHITE     0x01
52
53
54
55 /* Characters codes */
56 #define CH_DEL          0x7F
57 #define CH_ESC          0x1B
58 #define CH_CURS_UP      0x0B
59 #define CH_CURS_DOWN    0x0A
60
61 /* These are defined to be OpenApple + NumberKey */
62 #define CH_F1           0xB1
63 #define CH_F2           0xB2
64 #define CH_F3           0xB3
65 #define CH_F4           0xB4
66 #define CH_F5           0xB5
67 #define CH_F6           0xB6
68 #define CH_F7           0xB7
69 #define CH_F8           0xB8
70 #define CH_F9           0xB9
71 #define CH_F10          0xB0
72
73 #define CH_ULCORNER     '+'
74 #define CH_URCORNER     '+'
75 #define CH_LLCORNER     '+'
76 #define CH_LRCORNER     '+'
77 #define CH_TTEE         '+'
78 #define CH_BTEE         '+'
79 #define CH_LTEE         '+'
80 #define CH_RTEE         '+'
81 #define CH_CROSS        '+'
82
83
84
85 /* End of apple2.h */
86 #endif
87
88
89