1 /*****************************************************************************/
5 /* Apple ][ system specific definitions */
9 /* (C) 2000 Kevin Ruland, <kevin@rodin.wustl.edu> */
10 /* (C) 2003 Ullrich von Bassewitz, <uz@cc65.org> */
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. */
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: */
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 */
30 /*****************************************************************************/
39 /* Check for errors */
40 #if !defined(__APPLE2__) && !defined(__APPLE2ENH__)
41 # error This module may only be used when compiling for the Apple ][!
46 /*****************************************************************************/
48 /*****************************************************************************/
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
57 #define COLOR_BLACK 0x00
58 #define COLOR_WHITE 0x01
60 /* Characters codes */
63 #define CH_CURS_LEFT 0x08
64 #define CH_CURS_RIGHT 0x15
66 #define CH_ULCORNER '+'
67 #define CH_URCORNER '+'
68 #define CH_LLCORNER '+'
69 #define CH_LRCORNER '+'
76 /* Return codes for get_ostype */
77 #define APPLE_IIPLAIN 0x01 /* Plain Apple ][ */
78 #define APPLE_IIPLUS 0x02 /* Apple ][+ */
79 #define APPLE_IIIEM 0x03 /* Apple /// in emulation mode */
80 #define APPLE_IIE 0x04 /* Apple //e */
81 #define APPLE_IIEENH 0x05 /* Enhanced Apple //e */
82 #define APPLE_IIECARD 0x06 /* Apple //e Option Card */
83 #define APPLE_IIC 0x07 /* Apple //c */
87 /*****************************************************************************/
89 /*****************************************************************************/
93 unsigned char get_ostype (void);
94 /* Get the machine type. Returns one of the APPLE_xxx codes. */