]> git.sur5r.net Git - cc65/blob - include/apple2.h
Added mouse_ioctl
[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 /* (C) 2003  Ullrich von Bassewitz, <uz@cc65.org>                            */
11 /*                                                                           */
12 /*                                                                           */
13 /* This software is provided 'as-is', without any expressed or implied       */
14 /* warranty.  In no event will the authors be held liable for any damages    */
15 /* arising from the use of this software.                                    */
16 /*                                                                           */
17 /* Permission is granted to anyone to use this software for any purpose,     */
18 /* including commercial applications, and to alter it and redistribute it    */
19 /* freely, subject to the following restrictions:                            */
20 /*                                                                           */
21 /* 1. The origin of this software must not be misrepresented; you must not   */
22 /*    claim that you wrote the original software. If you use this software   */
23 /*    in a product, an acknowledgment in the product documentation would be  */
24 /*    appreciated but is not required.                                       */
25 /* 2. Altered source versions must be plainly marked as such, and must not   */
26 /*    be misrepresented as being the original software.                      */
27 /* 3. This notice may not be removed or altered from any source              */
28 /*    distribution.                                                          */
29 /*                                                                           */
30 /*****************************************************************************/
31
32
33
34 #ifndef _APPLE2_H
35 #define _APPLE2_H
36
37
38
39 /* Check for errors */
40 #if !defined(__APPLE2__)
41 #  error This module may only be used when compiling for the Apple ][!
42 #endif
43
44
45
46 /*****************************************************************************/
47 /*                                   Data                                    */
48 /*****************************************************************************/
49
50
51
52 /* Color Defines
53  * Since Apple2 does not support color text these defines are only
54  * used to get the library to compile correctly.  They should not be used
55  * in user code
56  */
57 #define COLOR_BLACK     0x00
58 #define COLOR_WHITE     0x01
59
60 /* Characters codes */
61 #define CH_DEL          0x7F
62 #define CH_ESC          0x1B
63 #define CH_CURS_UP      0x0B
64 #define CH_CURS_DOWN    0x0A
65
66 /* These are defined to be OpenApple + NumberKey */
67 #define CH_F1           0xB1
68 #define CH_F2           0xB2
69 #define CH_F3           0xB3
70 #define CH_F4           0xB4
71 #define CH_F5           0xB5
72 #define CH_F6           0xB6
73 #define CH_F7           0xB7
74 #define CH_F8           0xB8
75 #define CH_F9           0xB9
76 #define CH_F10          0xB0
77
78 #define CH_ULCORNER     '+'
79 #define CH_URCORNER     '+'
80 #define CH_LLCORNER     '+'
81 #define CH_LRCORNER     '+'
82 #define CH_TTEE         '+'
83 #define CH_BTEE         '+'
84 #define CH_LTEE         '+'
85 #define CH_RTEE         '+'
86 #define CH_CROSS        '+'
87
88 /* Return codes for get_ostype */
89 #define AP_OS_IIPLAIN  0x01             /* Plain Apple II */
90 #define AP_OS_IIPLUS   0x02             /* Apple II+ */
91 #define AP_OS_IIIEM    0x03             /* Apple /// in emulation mode */
92 #define AP_OS_IIE      0x04             /* Apple IIe */
93 #define AP_OS_IIC      0x05             /* Apple IIc */
94 #define AP_OS_IIECARD  0x06             /* Apple IIe Card for the Macintosh LC */
95
96
97
98 /*****************************************************************************/
99 /*                                   Code                                    */
100 /*****************************************************************************/
101
102
103
104 unsigned char get_ostype (void);
105 /* Get the ROM version. Returns one of the C64_OS_xxx codes. */
106
107
108
109 /* End of apple2.h */
110 #endif
111
112
113