1 /*****************************************************************************/
5 /* enhanced Apple //e system specific definitions */
9 /* (C) 2004 Oliver Schmidt, <ol.sc@web.de> */
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. */
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: */
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 */
29 /*****************************************************************************/
38 /* Check for errors */
39 #if !defined(__APPLE2ENH__)
40 # error This module may only be used when compiling for the enhanced Apple //e!
49 /*****************************************************************************/
51 /*****************************************************************************/
55 /* Characters codes */
57 #define CH_CURS_UP 0x0B
58 #define CH_CURS_DOWN 0x0A
62 #define CH_ULCORNER 0x5F
63 #define CH_URCORNER 0x20
64 #define CH_LLCORNER 0xD4
65 #define CH_LRCORNER 0xDF
72 /* These are defined to be OpenApple + NumberKey */
85 #define VIDEOMODE_40x24 0x0011
86 #define VIDEOMODE_80x24 0x0012
87 #define VIDEOMODE_40COL VIDEOMODE_40x24
88 #define VIDEOMODE_80COL VIDEOMODE_80x24
92 /*****************************************************************************/
94 /*****************************************************************************/
98 /* The addresses of the static drivers */
99 extern void a2e_auxmem_emd[];
100 extern void a2e_stdjoy_joy[]; /* Referred to by joy_static_stddrv[] */
101 extern void a2e_stdmou_mou[]; /* Referred to by mouse_static_stddrv[] */
102 extern void a2e_ssc_ser[];
103 extern void a2e_hi_tgi[]; /* Referred to by tgi_static_stddrv[] */
104 extern void a2e_lo_tgi[];
108 /*****************************************************************************/
110 /*****************************************************************************/
114 unsigned __fastcall__ videomode (unsigned mode);
115 /* Set the video mode, return the old mode. Call with one of the VIDEOMODE_xx
121 /* End of apple2enh.h */