]> git.sur5r.net Git - cc65/blob - include/atmos.h
Removed pet.inc, since the real file is still in the pet directory and this
[cc65] / include / atmos.h
1 /*****************************************************************************/
2 /*                                                                           */
3 /*                                 atmos.h                                   */
4 /*                                                                           */
5 /*                   Oric Atmos system specific definitions                  */
6 /*                                                                           */
7 /*                                                                           */
8 /*                                                                           */
9 /* (C) 2002       Debrune Jérome, <jede@oric.org>                            */
10 /* (C) 2003-2004  Ullrich von Bassewitz                                      */
11 /*                Roemerstrasse 52                                           */
12 /*                D-70794 Filderstadt                                        */
13 /* EMail:         uz@cc65.org                                                */
14 /*                                                                           */
15 /*                                                                           */
16 /* This software is provided 'as-is', without any expressed or implied       */
17 /* warranty.  In no event will the authors be held liable for any damages    */
18 /* arising from the use of this software.                                    */
19 /*                                                                           */
20 /* Permission is granted to anyone to use this software for any purpose,     */
21 /* including commercial applications, and to alter it and redistribute it    */
22 /* freely, subject to the following restrictions:                            */
23 /*                                                                           */
24 /* 1. The origin of this software must not be misrepresented; you must not   */
25 /*    claim that you wrote the original software. If you use this software   */
26 /*    in a product, an acknowledgment in the product documentation would be  */
27 /*    appreciated but is not required.                                       */
28 /* 2. Altered source versions must be plainly marked as such, and must not   */
29 /*    be misrepresented as being the original software.                      */
30 /* 3. This notice may not be removed or altered from any source              */
31 /*    distribution.                                                          */
32 /*                                                                           */
33 /*****************************************************************************/
34
35
36
37 #ifndef _ATMOS_H
38 #define _ATMOS_H
39
40
41
42 /* Check for errors */
43 #if !defined(__ATMOS__)
44 #  error This module may only be used when compiling for the Oric Atmos!
45 #endif
46
47
48
49 /* Color defines */
50 #define COLOR_BLACK     0x00
51 #define COLOR_RED       0x01
52 #define COLOR_GREEN     0x02
53 #define COLOR_YELLOW    0x03
54 #define COLOR_BLUE      0x04
55 #define COLOR_MAGENTA   0x05
56 #define COLOR_CYAN      0x06
57 #define COLOR_WHITE     0x07
58
59
60
61 /* Define hardware */
62 #include <_6522.h>
63 #define VIA     (*(struct __6522*)0x300)
64
65
66
67 /* These are defined to be FUNCT + NumberKey */
68 #define CH_F1           0xB1
69 #define CH_F2           0xB2
70 #define CH_F3           0xB3
71 #define CH_F4           0xB4
72 #define CH_F5           0xB5
73 #define CH_F6           0xB6
74 #define CH_F7           0xB7
75 #define CH_F8           0xB8
76 #define CH_F9           0xB9
77 #define CH_F10          0xB0
78
79
80
81 /* Character codes */
82 #define CH_ULCORNER     '+'
83 #define CH_URCORNER     '+'
84 #define CH_LLCORNER     '+'
85 #define CH_LRCORNER     '+'
86 #define CH_TTEE         '+'
87 #define CH_BTEE         '+'
88 #define CH_LTEE         '+'
89 #define CH_RTEE         '+'
90 #define CH_CROSS        '+'
91
92
93
94 /* End of atmos.h */
95 #endif
96
97
98