fcdev-cc65 0.0.0-stage → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/asminc/_file.inc +27 -0
- package/asminc/_heap.inc +35 -0
- package/asminc/accelerator.inc +80 -0
- package/asminc/agat.inc +39 -0
- package/asminc/apple2.inc +95 -0
- package/asminc/apple2.mac +54 -0
- package/asminc/ascii_charmap.inc +287 -0
- package/asminc/atari.inc +1169 -0
- package/asminc/atari.mac +65 -0
- package/asminc/atari2600.inc +7 -0
- package/asminc/atari2600_riot.inc +20 -0
- package/asminc/atari2600_tia.inc +69 -0
- package/asminc/atari5200.inc +133 -0
- package/asminc/atari7800.inc +14 -0
- package/asminc/atari7800_maria.inc +39 -0
- package/asminc/atari7800_riot.inc +20 -0
- package/asminc/atari7800_tia.inc +69 -0
- package/asminc/atari_antic.inc +95 -0
- package/asminc/atari_atascii_charmap.inc +301 -0
- package/asminc/atari_gtia.inc +119 -0
- package/asminc/atari_pokey.inc +43 -0
- package/asminc/atari_screen_charmap.inc +303 -0
- package/asminc/atmos.inc +117 -0
- package/asminc/c128.inc +224 -0
- package/asminc/c16.inc +9 -0
- package/asminc/c64.inc +219 -0
- package/asminc/c65.inc +239 -0
- package/asminc/cbm.mac +56 -0
- package/asminc/cbm510.inc +200 -0
- package/asminc/cbm610.inc +121 -0
- package/asminc/cbm_filetype.inc +34 -0
- package/asminc/cbm_kernal.inc +248 -0
- package/asminc/cbm_petscii_charmap.inc +291 -0
- package/asminc/cbm_screen_charmap.inc +305 -0
- package/asminc/cpu.mac +4 -0
- package/asminc/creativision.inc +66 -0
- package/asminc/ctype.inc +31 -0
- package/asminc/ctype_common.inc +91 -0
- package/asminc/ctypetable.inc +48 -0
- package/asminc/cx16.inc +574 -0
- package/asminc/em-error.inc +49 -0
- package/asminc/em-kernel.inc +106 -0
- package/asminc/errno.inc +37 -0
- package/asminc/fcntl.inc +21 -0
- package/asminc/gamate.inc +64 -0
- package/asminc/generic.mac +53 -0
- package/asminc/get_tv.inc +22 -0
- package/asminc/joy-error.inc +44 -0
- package/asminc/joy-kernel.inc +83 -0
- package/asminc/kim1.inc +31 -0
- package/asminc/longbranch.mac +88 -0
- package/asminc/lynx.inc +460 -0
- package/asminc/mega65.inc +239 -0
- package/asminc/modload.inc +78 -0
- package/asminc/module.mac +13 -0
- package/asminc/mouse-kernel.inc +184 -0
- package/asminc/nes.inc +93 -0
- package/asminc/o65.inc +150 -0
- package/asminc/opcodes.inc +514 -0
- package/asminc/pce.inc +93 -0
- package/asminc/pet.inc +100 -0
- package/asminc/plus4.inc +86 -0
- package/asminc/rp6502.inc +98 -0
- package/asminc/ser-error.inc +55 -0
- package/asminc/ser-kernel.inc +162 -0
- package/asminc/signal.inc +57 -0
- package/asminc/sim65.inc +75 -0
- package/asminc/smc.inc +267 -0
- package/asminc/stat.inc +64 -0
- package/asminc/statvfs.inc +46 -0
- package/asminc/stdio.inc +74 -0
- package/asminc/supervision.inc +75 -0
- package/asminc/sym1.inc +186 -0
- package/asminc/telestrat.inc +546 -0
- package/asminc/tgi-error.inc +52 -0
- package/asminc/tgi-kernel.inc +233 -0
- package/asminc/tgi-vectorfont.inc +70 -0
- package/asminc/time.inc +74 -0
- package/asminc/utsname.inc +46 -0
- package/asminc/vic20.inc +119 -0
- package/asminc/zeropage.inc +40 -0
- package/bin/ar65.exe +0 -0
- package/bin/ca65.exe +0 -0
- package/bin/cc65.exe +0 -0
- package/bin/da65.exe +0 -0
- package/bin/ld65.exe +0 -0
- package/cfg/module.cfg +21 -0
- package/cfg/nes.cfg +62 -0
- package/cfg/none.cfg +37 -0
- package/include/6502.h +140 -0
- package/include/_6522.h +68 -0
- package/include/_6525.h +62 -0
- package/include/_6526.h +71 -0
- package/include/_6545.h +53 -0
- package/include/_6551.h +55 -0
- package/include/_antic.h +254 -0
- package/include/_atari5200os.h +94 -0
- package/include/_atarios.h +661 -0
- package/include/_gtia.h +281 -0
- package/include/_heap.h +60 -0
- package/include/_maria.h +63 -0
- package/include/_mikey.h +264 -0
- package/include/_pbi.h +63 -0
- package/include/_pia.h +52 -0
- package/include/_pokey.h +220 -0
- package/include/_riot.h +26 -0
- package/include/_sid.h +68 -0
- package/include/_suzy.h +336 -0
- package/include/_ted.h +86 -0
- package/include/_tia.h +100 -0
- package/include/_vdc.h +53 -0
- package/include/_vic.h +67 -0
- package/include/_vic2.h +192 -0
- package/include/_vic3.h +188 -0
- package/include/accelerator.h +339 -0
- package/include/agat.h +76 -0
- package/include/apple2.h +358 -0
- package/include/apple2_filetype.h +324 -0
- package/include/apple2enh.h +67 -0
- package/include/arpa/inet.h +81 -0
- package/include/ascii_charmap.h +295 -0
- package/include/assert.h +59 -0
- package/include/atari.h +554 -0
- package/include/atari2600.h +32 -0
- package/include/atari5200.h +100 -0
- package/include/atari7800.h +67 -0
- package/include/atari_atascii_charmap.h +304 -0
- package/include/atari_screen_charmap.h +310 -0
- package/include/atmos.h +189 -0
- package/include/c128.h +175 -0
- package/include/c16.h +60 -0
- package/include/c64.h +175 -0
- package/include/c65.h +120 -0
- package/include/cbm.h +321 -0
- package/include/cbm264.h +165 -0
- package/include/cbm510.h +168 -0
- package/include/cbm610.h +153 -0
- package/include/cbm_filetype.h +108 -0
- package/include/cbm_petscii_charmap.h +297 -0
- package/include/cbm_screen_charmap.h +311 -0
- package/include/cc65.h +109 -0
- package/include/conio.h +248 -0
- package/include/creativision.h +78 -0
- package/include/ctype.h +88 -0
- package/include/cx16.h +420 -0
- package/include/dbg.h +124 -0
- package/include/device.h +72 -0
- package/include/dio.h +113 -0
- package/include/dirent.h +151 -0
- package/include/em/em-kernel.h +77 -0
- package/include/em.h +135 -0
- package/include/errno.h +135 -0
- package/include/fcntl.h +75 -0
- package/include/gamate.h +209 -0
- package/include/geos/gconst.h +69 -0
- package/include/geos/gdisk.h +79 -0
- package/include/geos/gdlgbox.h +110 -0
- package/include/geos/gfile.h +72 -0
- package/include/geos/ggraph.h +180 -0
- package/include/geos/gmemory.h +30 -0
- package/include/geos/gmenu.h +53 -0
- package/include/geos/gprocess.h +22 -0
- package/include/geos/gsprite.h +96 -0
- package/include/geos/gstruct.h +174 -0
- package/include/geos/gsym.h +340 -0
- package/include/geos/gsys.h +54 -0
- package/include/geos.h +109 -0
- package/include/inttypes.h +237 -0
- package/include/iso646.h +60 -0
- package/include/joystick/joy-kernel.h +84 -0
- package/include/joystick.h +109 -0
- package/include/kim1.h +73 -0
- package/include/limits.h +87 -0
- package/include/locale.h +83 -0
- package/include/lynx.h +144 -0
- package/include/lz4.h +43 -0
- package/include/lzsa.h +56 -0
- package/include/mega65.h +120 -0
- package/include/modload.h +103 -0
- package/include/mouse/mouse-kernel.h +67 -0
- package/include/mouse.h +220 -0
- package/include/nes.h +203 -0
- package/include/o65.h +178 -0
- package/include/osic1p.h +66 -0
- package/include/pce.h +110 -0
- package/include/peekpoke.h +58 -0
- package/include/pen.h +78 -0
- package/include/pet.h +113 -0
- package/include/plus4.h +63 -0
- package/include/rp6502.h +266 -0
- package/include/serial.h +180 -0
- package/include/setjmp.h +55 -0
- package/include/signal.h +74 -0
- package/include/sim65.h +136 -0
- package/include/stdarg.h +57 -0
- package/include/stdbool.h +53 -0
- package/include/stddef.h +66 -0
- package/include/stdint.h +144 -0
- package/include/stdio.h +166 -0
- package/include/stdlib.h +174 -0
- package/include/string.h +106 -0
- package/include/supervision.h +137 -0
- package/include/sym1.h +165 -0
- package/include/sys/stat.h +94 -0
- package/include/sys/statvfs.h +74 -0
- package/include/sys/types.h +102 -0
- package/include/sys/utsname.h +97 -0
- package/include/target.h +77 -0
- package/include/telestrat.h +129 -0
- package/include/tgi/tgi-error.h +64 -0
- package/include/tgi/tgi-kernel.h +75 -0
- package/include/tgi/tgi-vectorfont.h +90 -0
- package/include/tgi.h +286 -0
- package/include/time.h +143 -0
- package/include/unistd.h +103 -0
- package/include/vic20.h +141 -0
- package/include/zlib.h +175 -0
- package/include/zx02.h +44 -0
- package/lib/nes.lib +0 -0
- package/lib/none.lib +0 -0
- package/manifest.json +227 -0
- package/package.json +19 -4
- package/README.md +0 -3
package/include/atari.h
ADDED
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* atari.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Atari system specific definitions */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 2000-2021 Mark Keates <markk@dendrite.co.uk> */
|
|
10
|
+
/* Freddy Offenga <taf_offenga@yahoo.com> */
|
|
11
|
+
/* Christian Groessler <chris@groessler.org> */
|
|
12
|
+
/* Bill Kendrick <nbs@sonic.net> */
|
|
13
|
+
/* et al. */
|
|
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 _ATARI_H
|
|
38
|
+
#define _ATARI_H
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/* Check for errors */
|
|
42
|
+
#if !defined(__ATARI__)
|
|
43
|
+
# error This module may only be used when compiling for the Atari!
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/*****************************************************************************/
|
|
48
|
+
/* Character codes */
|
|
49
|
+
/*****************************************************************************/
|
|
50
|
+
|
|
51
|
+
#define CH_DELCHR 0xFE /* delete char under the cursor */
|
|
52
|
+
#define CH_ENTER 0x9B
|
|
53
|
+
#define CH_ESC 0x1B
|
|
54
|
+
#define CH_CURS_UP 28
|
|
55
|
+
#define CH_CURS_DOWN 29
|
|
56
|
+
#define CH_CURS_LEFT 30
|
|
57
|
+
#define CH_CURS_RIGHT 31
|
|
58
|
+
|
|
59
|
+
#define CH_TAB 0x7F /* tabulator */
|
|
60
|
+
#define CH_EOL 0x9B /* end-of-line marker */
|
|
61
|
+
#define CH_CLR 0x7D /* clear screen */
|
|
62
|
+
#define CH_BEL 0xFD /* bell */
|
|
63
|
+
#define CH_DEL 0x7E /* back space (delete char to the left) */
|
|
64
|
+
#define CH_RUBOUT 0x7E /* back space (old, deprecated) */
|
|
65
|
+
#define CH_DELLINE 0x9C /* delete line */
|
|
66
|
+
#define CH_INSLINE 0x9D /* insert line */
|
|
67
|
+
|
|
68
|
+
/* These are defined to be Atari + NumberKey */
|
|
69
|
+
#define CH_F1 177
|
|
70
|
+
#define CH_F2 178
|
|
71
|
+
#define CH_F3 179
|
|
72
|
+
#define CH_F4 180
|
|
73
|
+
#define CH_F5 181
|
|
74
|
+
#define CH_F6 182
|
|
75
|
+
#define CH_F7 183
|
|
76
|
+
#define CH_F8 184
|
|
77
|
+
#define CH_F9 185
|
|
78
|
+
#define CH_F10 176
|
|
79
|
+
|
|
80
|
+
#define CH_ULCORNER 0x11
|
|
81
|
+
#define CH_URCORNER 0x05
|
|
82
|
+
#define CH_LLCORNER 0x1A
|
|
83
|
+
#define CH_LRCORNER 0x03
|
|
84
|
+
#define CH_TTEE 0x17
|
|
85
|
+
#define CH_BTEE 0x18
|
|
86
|
+
#define CH_LTEE 0x01
|
|
87
|
+
#define CH_RTEE 0x04
|
|
88
|
+
#define CH_CROSS 0x13
|
|
89
|
+
#define CH_HLINE 0x12
|
|
90
|
+
#define CH_VLINE 0x7C
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/*****************************************************************************/
|
|
94
|
+
/* Masks for joy_read */
|
|
95
|
+
/*****************************************************************************/
|
|
96
|
+
|
|
97
|
+
#define JOY_UP_MASK 0x01
|
|
98
|
+
#define JOY_DOWN_MASK 0x02
|
|
99
|
+
#define JOY_LEFT_MASK 0x04
|
|
100
|
+
#define JOY_RIGHT_MASK 0x08
|
|
101
|
+
#define JOY_BTN_1_MASK 0x10
|
|
102
|
+
|
|
103
|
+
#define JOY_FIRE_MASK JOY_BTN_1_MASK
|
|
104
|
+
#define JOY_FIRE(v) ((v) & JOY_FIRE_MASK)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/*****************************************************************************/
|
|
108
|
+
/* Keyboard values returned by kbcode / CH */
|
|
109
|
+
/*****************************************************************************/
|
|
110
|
+
|
|
111
|
+
#define KEY_NONE ((unsigned char) 0xFF)
|
|
112
|
+
|
|
113
|
+
#define KEY_0 ((unsigned char) 0x32)
|
|
114
|
+
#define KEY_1 ((unsigned char) 0x1F)
|
|
115
|
+
#define KEY_2 ((unsigned char) 0x1E)
|
|
116
|
+
#define KEY_3 ((unsigned char) 0x1A)
|
|
117
|
+
#define KEY_4 ((unsigned char) 0x18)
|
|
118
|
+
#define KEY_5 ((unsigned char) 0x1D)
|
|
119
|
+
#define KEY_6 ((unsigned char) 0x1B)
|
|
120
|
+
#define KEY_7 ((unsigned char) 0x33)
|
|
121
|
+
#define KEY_8 ((unsigned char) 0x35)
|
|
122
|
+
#define KEY_9 ((unsigned char) 0x30)
|
|
123
|
+
|
|
124
|
+
#define KEY_A ((unsigned char) 0x3F)
|
|
125
|
+
#define KEY_B ((unsigned char) 0x15)
|
|
126
|
+
#define KEY_C ((unsigned char) 0x12)
|
|
127
|
+
#define KEY_D ((unsigned char) 0x3A)
|
|
128
|
+
#define KEY_E ((unsigned char) 0x2A)
|
|
129
|
+
#define KEY_F ((unsigned char) 0x38)
|
|
130
|
+
#define KEY_G ((unsigned char) 0x3D)
|
|
131
|
+
#define KEY_H ((unsigned char) 0x39)
|
|
132
|
+
#define KEY_I ((unsigned char) 0x0D)
|
|
133
|
+
#define KEY_J ((unsigned char) 0x01)
|
|
134
|
+
#define KEY_K ((unsigned char) 0x05)
|
|
135
|
+
#define KEY_L ((unsigned char) 0x00)
|
|
136
|
+
#define KEY_M ((unsigned char) 0x25)
|
|
137
|
+
#define KEY_N ((unsigned char) 0x23)
|
|
138
|
+
#define KEY_O ((unsigned char) 0x08)
|
|
139
|
+
#define KEY_P ((unsigned char) 0x0A)
|
|
140
|
+
#define KEY_Q ((unsigned char) 0x2F)
|
|
141
|
+
#define KEY_R ((unsigned char) 0x28)
|
|
142
|
+
#define KEY_S ((unsigned char) 0x3E)
|
|
143
|
+
#define KEY_T ((unsigned char) 0x2D)
|
|
144
|
+
#define KEY_U ((unsigned char) 0x0B)
|
|
145
|
+
#define KEY_V ((unsigned char) 0x10)
|
|
146
|
+
#define KEY_W ((unsigned char) 0x2E)
|
|
147
|
+
#define KEY_X ((unsigned char) 0x16)
|
|
148
|
+
#define KEY_Y ((unsigned char) 0x2B)
|
|
149
|
+
#define KEY_Z ((unsigned char) 0x17)
|
|
150
|
+
|
|
151
|
+
#define KEY_COMMA ((unsigned char) 0x20)
|
|
152
|
+
#define KEY_PERIOD ((unsigned char) 0x22)
|
|
153
|
+
#define KEY_SLASH ((unsigned char) 0x26)
|
|
154
|
+
#define KEY_SEMICOLON ((unsigned char) 0x02)
|
|
155
|
+
#define KEY_PLUS ((unsigned char) 0x06)
|
|
156
|
+
#define KEY_ASTERISK ((unsigned char) 0x07)
|
|
157
|
+
#define KEY_DASH ((unsigned char) 0x0E)
|
|
158
|
+
#define KEY_EQUALS ((unsigned char) 0x0F)
|
|
159
|
+
#define KEY_LESSTHAN ((unsigned char) 0x36)
|
|
160
|
+
#define KEY_GREATERTHAN ((unsigned char) 0x37)
|
|
161
|
+
|
|
162
|
+
#define KEY_ESC ((unsigned char) 0x1C)
|
|
163
|
+
#define KEY_TAB ((unsigned char) 0x2C)
|
|
164
|
+
#define KEY_SPACE ((unsigned char) 0x21)
|
|
165
|
+
#define KEY_RETURN ((unsigned char) 0x0C)
|
|
166
|
+
#define KEY_DELETE ((unsigned char) 0x34)
|
|
167
|
+
#define KEY_CAPS ((unsigned char) 0x3C)
|
|
168
|
+
#define KEY_INVERSE ((unsigned char) 0x27)
|
|
169
|
+
#define KEY_HELP ((unsigned char) 0x11)
|
|
170
|
+
|
|
171
|
+
/* Function keys only exist on the 1200XL model. */
|
|
172
|
+
#define KEY_F1 ((unsigned char) 0x03)
|
|
173
|
+
#define KEY_F2 ((unsigned char) 0x04)
|
|
174
|
+
#define KEY_F3 ((unsigned char) 0x13)
|
|
175
|
+
#define KEY_F4 ((unsigned char) 0x14)
|
|
176
|
+
|
|
177
|
+
/* N.B. Cannot read Ctrl key alone */
|
|
178
|
+
#define KEY_CTRL ((unsigned char) 0x80)
|
|
179
|
+
|
|
180
|
+
/* N.B. Cannot read Shift key alone via KBCODE;
|
|
181
|
+
** instead, check "Shfit key press" bit of SKSTAT register.
|
|
182
|
+
** Also, no way to tell left Shift from right Shift.
|
|
183
|
+
*/
|
|
184
|
+
#define KEY_SHIFT ((unsigned char) 0x40)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
/* Composed keys
|
|
188
|
+
** (Other combinations are possible, including Shift+Ctrl+key,
|
|
189
|
+
** though not all such combinations are available.)
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
#define KEY_EXCLAMATIONMARK (KEY_1 | KEY_SHIFT)
|
|
193
|
+
#define KEY_QUOTE (KEY_2 | KEY_SHIFT)
|
|
194
|
+
#define KEY_HASH (KEY_3 | KEY_SHIFT)
|
|
195
|
+
#define KEY_DOLLAR (KEY_4 | KEY_SHIFT)
|
|
196
|
+
#define KEY_PERCENT (KEY_5 | KEY_SHIFT)
|
|
197
|
+
#define KEY_AMPERSAND (KEY_6 | KEY_SHIFT)
|
|
198
|
+
#define KEY_APOSTROPHE (KEY_7 | KEY_SHIFT)
|
|
199
|
+
#define KEY_AT (KEY_8 | KEY_SHIFT)
|
|
200
|
+
#define KEY_OPENINGPARAN (KEY_9 | KEY_SHIFT)
|
|
201
|
+
#define KEY_CLOSINGPARAN (KEY_0 | KEY_SHIFT)
|
|
202
|
+
#define KEY_UNDERLINE (KEY_DASH | KEY_SHIFT)
|
|
203
|
+
#define KEY_BAR (KEY_EQUALS | KEY_SHIFT)
|
|
204
|
+
#define KEY_COLON (KEY_SEMICOLON | KEY_SHIFT)
|
|
205
|
+
#define KEY_BACKSLASH (KEY_PLUS | KEY_SHIFT)
|
|
206
|
+
#define KEY_CIRCUMFLEX (KEY_ASTERISK | KEY_SHIFT)
|
|
207
|
+
#define KEY_OPENINGBRACKET (KEY_COMMA | KEY_SHIFT)
|
|
208
|
+
#define KEY_CLOSINGBRACKET (KEY_PERIOD | KEY_SHIFT)
|
|
209
|
+
#define KEY_QUESTIONMARK (KEY_SLASH | KEY_SHIFT)
|
|
210
|
+
#define KEY_CLEAR (KEY_LESSTHAN | KEY_SHIFT)
|
|
211
|
+
#define KEY_INSERT (KEY_GREATERTHAN | KEY_SHIFT)
|
|
212
|
+
|
|
213
|
+
#define KEY_UP (KEY_DASH | KEY_CTRL)
|
|
214
|
+
#define KEY_DOWN (KEY_EQUALS | KEY_CTRL)
|
|
215
|
+
#define KEY_LEFT (KEY_PLUS | KEY_CTRL)
|
|
216
|
+
#define KEY_RIGHT (KEY_ASTERISK | KEY_CTRL)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
/*****************************************************************************/
|
|
220
|
+
/* Color register functions */
|
|
221
|
+
/*****************************************************************************/
|
|
222
|
+
|
|
223
|
+
void __fastcall__ _setcolor (unsigned char color_reg, unsigned char hue, unsigned char luminance);
|
|
224
|
+
void __fastcall__ _setcolor_low (unsigned char color_reg, unsigned char color_value);
|
|
225
|
+
unsigned char __fastcall__ _getcolor (unsigned char color_reg);
|
|
226
|
+
|
|
227
|
+
/*****************************************************************************/
|
|
228
|
+
/* Other screen functions */
|
|
229
|
+
/*****************************************************************************/
|
|
230
|
+
|
|
231
|
+
void waitvsync (void); /* wait for start of next frame */
|
|
232
|
+
int __fastcall__ _graphics (unsigned char mode); /* mode value same as in BASIC */
|
|
233
|
+
void __fastcall__ _scroll (signed char numlines);
|
|
234
|
+
/* numlines > 0 scrolls up */
|
|
235
|
+
/* numlines < 0 scrolls down */
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
/*****************************************************************************/
|
|
239
|
+
/* Sound function */
|
|
240
|
+
/*****************************************************************************/
|
|
241
|
+
|
|
242
|
+
void __fastcall__ _sound (unsigned char voice, unsigned char frequency, unsigned char distortion, unsigned char volume);
|
|
243
|
+
|
|
244
|
+
/*****************************************************************************/
|
|
245
|
+
/* Misc. functions */
|
|
246
|
+
/*****************************************************************************/
|
|
247
|
+
|
|
248
|
+
unsigned char get_ostype(void); /* get ROM version */
|
|
249
|
+
unsigned char get_tv(void); /* get TV system */
|
|
250
|
+
void _save_vecs(void); /* save system vectors */
|
|
251
|
+
void _rest_vecs(void); /* restore system vectors */
|
|
252
|
+
char *_getdefdev(void); /* get default floppy device */
|
|
253
|
+
unsigned char _is_cmdline_dos(void); /* does DOS support command lines */
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
/*****************************************************************************/
|
|
257
|
+
/* Global variables */
|
|
258
|
+
/*****************************************************************************/
|
|
259
|
+
|
|
260
|
+
extern unsigned char _dos_type; /* the DOS flavour */
|
|
261
|
+
#ifndef __ATARIXL__
|
|
262
|
+
extern void atr130_emd[];
|
|
263
|
+
extern void atrstd_joy[]; /* referred to by joy_static_stddrv[] */
|
|
264
|
+
extern void atrmj8_joy[];
|
|
265
|
+
extern void atrjoy_mou[];
|
|
266
|
+
extern void atrst_mou[]; /* referred to by mouse_static_stddrv[] */
|
|
267
|
+
extern void atrami_mou[];
|
|
268
|
+
extern void atrtrk_mou[];
|
|
269
|
+
extern void atrtt_mou[];
|
|
270
|
+
extern void atrrdev_ser[]; /* referred to by ser_static_stddrv[] */
|
|
271
|
+
extern void atr3_tgi[];
|
|
272
|
+
extern void atr4_tgi[];
|
|
273
|
+
extern void atr5_tgi[];
|
|
274
|
+
extern void atr6_tgi[];
|
|
275
|
+
extern void atr7_tgi[];
|
|
276
|
+
extern void atr8_tgi[]; /* referred to by tgi_static_stddrv[] */
|
|
277
|
+
extern void atr8p2_tgi[];
|
|
278
|
+
extern void atr9_tgi[];
|
|
279
|
+
extern void atr9p2_tgi[];
|
|
280
|
+
extern void atr10_tgi[];
|
|
281
|
+
extern void atr10p2_tgi[];
|
|
282
|
+
extern void atr11_tgi[];
|
|
283
|
+
extern void atr14_tgi[];
|
|
284
|
+
extern void atr15_tgi[];
|
|
285
|
+
extern void atr15p2_tgi[];
|
|
286
|
+
#else
|
|
287
|
+
extern void atrx130_emd[];
|
|
288
|
+
extern void atrxstd_joy[]; /* referred to by joy_static_stddrv[] */
|
|
289
|
+
extern void atrxmj8_joy[];
|
|
290
|
+
extern void atrxjoy_mou[];
|
|
291
|
+
extern void atrxst_mou[]; /* referred to by mouse_static_stddrv[] */
|
|
292
|
+
extern void atrxami_mou[];
|
|
293
|
+
extern void atrxtrk_mou[];
|
|
294
|
+
extern void atrxtt_mou[];
|
|
295
|
+
extern void atrxrdev_ser[]; /* referred to by ser_static_stddrv[] */
|
|
296
|
+
extern void atrx3_tgi[];
|
|
297
|
+
extern void atrx4_tgi[];
|
|
298
|
+
extern void atrx5_tgi[];
|
|
299
|
+
extern void atrx6_tgi[];
|
|
300
|
+
extern void atrx7_tgi[];
|
|
301
|
+
extern void atrx8_tgi[]; /* referred to by tgi_static_stddrv[] */
|
|
302
|
+
extern void atrx8p2_tgi[];
|
|
303
|
+
extern void atrx9_tgi[];
|
|
304
|
+
extern void atrx9p2_tgi[];
|
|
305
|
+
extern void atrx10_tgi[];
|
|
306
|
+
extern void atrx10p2_tgi[];
|
|
307
|
+
extern void atrx11_tgi[];
|
|
308
|
+
extern void atrx14_tgi[];
|
|
309
|
+
extern void atrx15_tgi[];
|
|
310
|
+
extern void atrx15p2_tgi[];
|
|
311
|
+
#endif
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
/*****************************************************************************/
|
|
315
|
+
/* get_ostype return value defines (for explanation, see ostype.s) */
|
|
316
|
+
/*****************************************************************************/
|
|
317
|
+
|
|
318
|
+
/* masks */
|
|
319
|
+
#define AT_OS_TYPE_MAIN 7
|
|
320
|
+
#define AT_OS_TYPE_MINOR (7 << 3)
|
|
321
|
+
/* AT_OS_TYPE_MAIN values */
|
|
322
|
+
#define AT_OS_UNKNOWN 0
|
|
323
|
+
#define AT_OS_400800 1
|
|
324
|
+
#define AT_OS_1200XL 2
|
|
325
|
+
#define AT_OS_XLXE 3
|
|
326
|
+
/* AS_OS_TYPE_MINOR values */
|
|
327
|
+
/* for 400/800 remember this are the ROM versions */
|
|
328
|
+
/* to check whether the hw is PAL or NTSC, use get_tv() */
|
|
329
|
+
#define AT_OS_400800PAL_A 1
|
|
330
|
+
#define AT_OS_400800PAL_B 2
|
|
331
|
+
#define AT_OS_400800NTSC_A 1
|
|
332
|
+
#define AT_OS_400800NTSC_B 2
|
|
333
|
+
#define AT_OS_1200_10 1
|
|
334
|
+
#define AT_OS_1200_11 2
|
|
335
|
+
#define AT_OS_XLXE_1 1
|
|
336
|
+
#define AT_OS_XLXE_2 2
|
|
337
|
+
#define AT_OS_XLXE_3 3
|
|
338
|
+
#define AT_OS_XLXE_4 4
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
/*****************************************************************************/
|
|
342
|
+
/* get_tv return values */
|
|
343
|
+
/*****************************************************************************/
|
|
344
|
+
|
|
345
|
+
#define AT_NTSC 0
|
|
346
|
+
#define AT_PAL 1
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
/*****************************************************************************/
|
|
350
|
+
/* valid _dos_type values */
|
|
351
|
+
/*****************************************************************************/
|
|
352
|
+
|
|
353
|
+
#define SPARTADOS 0
|
|
354
|
+
#define REALDOS 1
|
|
355
|
+
#define BWDOS 2
|
|
356
|
+
#define OSADOS 3
|
|
357
|
+
#define XDOS 4
|
|
358
|
+
#define ATARIDOS 5
|
|
359
|
+
#define MYDOS 6
|
|
360
|
+
#define NODOS 255
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
/*****************************************************************************/
|
|
364
|
+
/* Define hardware and where they're mapped in memory */
|
|
365
|
+
/*****************************************************************************/
|
|
366
|
+
|
|
367
|
+
#include <_atarios.h>
|
|
368
|
+
#define OS (*(struct __os*)0x0000)
|
|
369
|
+
#define BASIC (*(struct __basic*)0x0080)
|
|
370
|
+
|
|
371
|
+
#include <_gtia.h>
|
|
372
|
+
#define GTIA_READ (*(struct __gtia_read*)0xD000)
|
|
373
|
+
#define GTIA_WRITE (*(struct __gtia_write*)0xD000)
|
|
374
|
+
|
|
375
|
+
#include <_pbi.h>
|
|
376
|
+
|
|
377
|
+
#include <_pokey.h>
|
|
378
|
+
#define POKEY_READ (*(struct __pokey_read*)0xD200)
|
|
379
|
+
#define POKEY_WRITE (*(struct __pokey_write*)0xD200)
|
|
380
|
+
|
|
381
|
+
#include <_pia.h>
|
|
382
|
+
#define PIA (*(struct __pia*)0xD300)
|
|
383
|
+
|
|
384
|
+
#include <_antic.h>
|
|
385
|
+
#define ANTIC (*(struct __antic*)0xD400)
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
/*****************************************************************************/
|
|
389
|
+
/* conio and TGI color defines */
|
|
390
|
+
/*****************************************************************************/
|
|
391
|
+
|
|
392
|
+
/* Note that the conio color implementation is monochrome
|
|
393
|
+
** (textcolor just sets text brightness low or high, depending on background
|
|
394
|
+
** color)
|
|
395
|
+
** These values can be used with bordercolor(), bgcolor(), and _setcolor_low()
|
|
396
|
+
*/
|
|
397
|
+
#define COLOR_BLACK GTIA_COLOR_BLACK
|
|
398
|
+
#define COLOR_WHITE GTIA_COLOR_WHITE
|
|
399
|
+
#define COLOR_RED GTIA_COLOR_RED
|
|
400
|
+
#define COLOR_CYAN GTIA_COLOR_CYAN
|
|
401
|
+
#define COLOR_PURPLE GTIA_COLOR_VIOLET
|
|
402
|
+
#define COLOR_GREEN GTIA_COLOR_GREEN
|
|
403
|
+
#define COLOR_BLUE GTIA_COLOR_BLUE
|
|
404
|
+
#define COLOR_YELLOW GTIA_COLOR_YELLOW
|
|
405
|
+
#define COLOR_ORANGE GTIA_COLOR_ORANGE
|
|
406
|
+
#define COLOR_BROWN GTIA_COLOR_BROWN
|
|
407
|
+
#define COLOR_LIGHTRED GTIA_COLOR_LIGHTRED
|
|
408
|
+
#define COLOR_GRAY1 GTIA_COLOR_GRAY1
|
|
409
|
+
#define COLOR_GRAY2 GTIA_COLOR_GRAY2
|
|
410
|
+
#define COLOR_LIGHTGREEN GTIA_COLOR_LIGHTGREEN
|
|
411
|
+
#define COLOR_LIGHTBLUE GTIA_COLOR_LIGHTBLUE
|
|
412
|
+
#define COLOR_GRAY3 GTIA_COLOR_GRAY3
|
|
413
|
+
|
|
414
|
+
/* TGI color defines */
|
|
415
|
+
#define TGI_COLOR_BLACK COLOR_BLACK
|
|
416
|
+
#define TGI_COLOR_WHITE COLOR_WHITE
|
|
417
|
+
#define TGI_COLOR_RED COLOR_RED
|
|
418
|
+
#define TGI_COLOR_CYAN COLOR_CYAN
|
|
419
|
+
#define TGI_COLOR_PURPLE COLOR_PURPLE
|
|
420
|
+
#define TGI_COLOR_GREEN COLOR_GREEN
|
|
421
|
+
#define TGI_COLOR_BLUE COLOR_BLUE
|
|
422
|
+
#define TGI_COLOR_YELLOW COLOR_YELLOW
|
|
423
|
+
#define TGI_COLOR_ORANGE COLOR_ORANGE
|
|
424
|
+
#define TGI_COLOR_BROWN COLOR_BROWN
|
|
425
|
+
#define TGI_COLOR_LIGHTRED COLOR_LIGHTRED
|
|
426
|
+
#define TGI_COLOR_GRAY1 COLOR_GRAY1
|
|
427
|
+
#define TGI_COLOR_GRAY2 COLOR_GRAY2
|
|
428
|
+
#define TGI_COLOR_LIGHTGREEN COLOR_LIGHTGREEN
|
|
429
|
+
#define TGI_COLOR_LIGHTBLUE COLOR_LIGHTBLUE
|
|
430
|
+
#define TGI_COLOR_GRAY3 COLOR_GRAY3
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
/*****************************************************************************/
|
|
434
|
+
/* PIA PORTA and PORTB register bits */
|
|
435
|
+
/*****************************************************************************/
|
|
436
|
+
|
|
437
|
+
/* See also: "JOY_xxx_MASK" in "atari.h" */
|
|
438
|
+
|
|
439
|
+
/* Paddle 0-3 triggers (per PORTA bits) */
|
|
440
|
+
#define PORTA_PTRIG3 0x80
|
|
441
|
+
#define PORTA_PTRIG2 0x40
|
|
442
|
+
#define PORTA_PTRIG1 0x08
|
|
443
|
+
#define PORTA_PTRIG0 0x04
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
/* On the Atari 400/800, PORTB is the same as PORTA, but for controller ports 3 & 4. */
|
|
447
|
+
|
|
448
|
+
/* Paddle 4-7 triggers (per PORTB bits); only 400/800 had four controller ports */
|
|
449
|
+
#define PORTB_PTRIG7 0x80
|
|
450
|
+
#define PORTB_PTRIG6 0x40
|
|
451
|
+
#define PORTB_PTRIG5 0x08
|
|
452
|
+
#define PORTB_PTRIG4 0x04
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
/* On the XL series of computers, PORTB has been changed to a memory and
|
|
456
|
+
** LED control (1200XL model only) register (read/write):
|
|
457
|
+
*/
|
|
458
|
+
|
|
459
|
+
/* If set, the built-in OS is enabled, and occupies the address range $C000-$FFFF
|
|
460
|
+
** (except that the area $D000-$D7FF will only access the hardware registers.)
|
|
461
|
+
** If clear, RAM is enabled in this area (again, save for the hole.)
|
|
462
|
+
*/
|
|
463
|
+
#define PORTB_OSROM 0x01
|
|
464
|
+
|
|
465
|
+
/* If set, RAM is enabled for the address range $A000-$BFFF.
|
|
466
|
+
** If clear, the built-in BASIC ROM is enabled at this address.
|
|
467
|
+
** And if there is a cartridge installed in the computer, it makes no difference.
|
|
468
|
+
*/
|
|
469
|
+
#define PORTB_BASICROM 0x02
|
|
470
|
+
|
|
471
|
+
/* If set, the corresponding LED is turned off. If clear, the LED will be on.
|
|
472
|
+
** (1200XL only)
|
|
473
|
+
*/
|
|
474
|
+
#define PORTB_LED1 0x04
|
|
475
|
+
#define PORTB_LED2 0x08
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
/* On the XE series of computers, PORTB is a bank-selected memory control register (read/write): */
|
|
479
|
+
|
|
480
|
+
/* These bits determine which memory bank is visible to the CPU and/or ANTIC chip
|
|
481
|
+
** when their Bank Switch bit is set. There are four possible banks of 16KB each.
|
|
482
|
+
*/
|
|
483
|
+
#define PORTB_BANKSELECT1 0x00
|
|
484
|
+
#define PORTB_BANKSELECT2 0x04
|
|
485
|
+
#define PORTB_BANKSELECT3 0x08
|
|
486
|
+
#define PORTB_BANKSELECT4 0x0C
|
|
487
|
+
|
|
488
|
+
/* If set, the CPU and/or ANTIC chip will access bank-switched memory mapped to the
|
|
489
|
+
** address range $4000-$7FFF.
|
|
490
|
+
** If clear, the CPU and/or ANTIC will see normal memory in this region.
|
|
491
|
+
*/
|
|
492
|
+
#define PORTB_BANKSWITCH_CPU 0x10
|
|
493
|
+
#define PORTB_BANKSWITCH_ANTIC 0x20
|
|
494
|
+
|
|
495
|
+
/* If set, RAM is enabled for the address range $5000-$57FF.
|
|
496
|
+
** If clear, the self-test ROM (physically located at $D000-$D7FF, under the hardware registers)
|
|
497
|
+
** is remapped to this memory area.
|
|
498
|
+
*/
|
|
499
|
+
#define PORTB_SELFTEST 0x80
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
/*****************************************************************************/
|
|
503
|
+
/* PACTL and PBCTL register bits */
|
|
504
|
+
/*****************************************************************************/
|
|
505
|
+
|
|
506
|
+
/* (W) Peripheral PA1/PB1 interrupt (IRQ) ("peripheral proceed line available") enable.
|
|
507
|
+
** One equals enable. Set by the OS but available to the user; reset on powerup.
|
|
508
|
+
** (PxCTL_IRQ_STATUS (R) bit will get set upon interrupt occurance)
|
|
509
|
+
*/
|
|
510
|
+
#define PxCTL_IRQ_ENABLE 0x01 /* bit 0 */
|
|
511
|
+
|
|
512
|
+
/* Note: Bit 1 is always set to */
|
|
513
|
+
|
|
514
|
+
/* (W) Controls PORTA/PORTB addressing
|
|
515
|
+
** 1 = PORTA/PORTB register; read/write to controller port
|
|
516
|
+
** 0 = direction control register; write to direction controls
|
|
517
|
+
** (allows setting data flow; write 0s & 1s to PORTA/PORTB bits
|
|
518
|
+
** to set which port's pins are read (input), or write (output),
|
|
519
|
+
** respectively)
|
|
520
|
+
*/
|
|
521
|
+
#define PxCTL_ADDRESSING 0x04 /* bit 2 */
|
|
522
|
+
|
|
523
|
+
/* (W) Peripheral motor control line; Turn the cassette on or off
|
|
524
|
+
** (PACTL-specific register bit)
|
|
525
|
+
** 0 = on
|
|
526
|
+
** 1 = off
|
|
527
|
+
*/
|
|
528
|
+
#define PACTL_MOTOR_CONTROL 0x08 /* bit 3 */
|
|
529
|
+
|
|
530
|
+
/* Peripheral command identification (serial bus command line)
|
|
531
|
+
** (PBCTL-specific register bit)
|
|
532
|
+
*/
|
|
533
|
+
#define PBCTL_PERIPH_CMD_IDENT 0x08 /* bit 3 */
|
|
534
|
+
|
|
535
|
+
/* Note: Bits 4 & 5 are always set to 1 */
|
|
536
|
+
|
|
537
|
+
/* Note: Bit 6 is always set to 0 */
|
|
538
|
+
|
|
539
|
+
/* (R) Peripheral interrupt (IRQ) status bit.
|
|
540
|
+
** Set by Peripherals (PORTA / PORTB). Reset by reading from PORTA / PORTB.
|
|
541
|
+
** PACTL's is interrupt status of PROCEED
|
|
542
|
+
** PBCTL's is interrupt status of SIO
|
|
543
|
+
*/
|
|
544
|
+
#define PxCTL_IRQ_STATUS 0x80
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
/* The following #define will cause the matching function calls in conio.h
|
|
548
|
+
** to be overlaid by macros with the same names, saving the function call
|
|
549
|
+
** overhead.
|
|
550
|
+
*/
|
|
551
|
+
#define _textcolor(color) COLOR_WHITE
|
|
552
|
+
|
|
553
|
+
/* End of atari.h */
|
|
554
|
+
#endif
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* Atari VCS 2600 TIA & RIOT registers addresses */
|
|
4
|
+
/* */
|
|
5
|
+
/* Source: DASM Version 1.05 - vcs.h */
|
|
6
|
+
/* */
|
|
7
|
+
/* Florent Flament (contact@florentflament.com), 2017 */
|
|
8
|
+
/* */
|
|
9
|
+
/*****************************************************************************/
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
#ifndef _ATARI2600_H
|
|
14
|
+
#define _ATARI2600_H
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* Check for errors */
|
|
19
|
+
#if !defined(__ATARI2600__)
|
|
20
|
+
# error This module may only be used when compiling for the Atari 2600!
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
|
+
#include <_tia.h>
|
|
24
|
+
#define TIA (*(struct __tia*)0x0000)
|
|
25
|
+
|
|
26
|
+
#include <_riot.h>
|
|
27
|
+
#define RIOT (*(struct __riot*)0x0280)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/* End of atari2600.h */
|
|
32
|
+
#endif
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* atari5200.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Atari 5200 system specific definitions */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 2014 Christian Groessler <chris@groessler.org> */
|
|
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 _ATARI5200_H
|
|
34
|
+
#define _ATARI5200_H
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/* check for errors */
|
|
39
|
+
#if !defined(__ATARI5200__)
|
|
40
|
+
# error This module may only be used when compiling for the Atari 5200!
|
|
41
|
+
#endif
|
|
42
|
+
|
|
43
|
+
/* no support for dynamically loadable drivers */
|
|
44
|
+
#define DYN_DRV 0
|
|
45
|
+
|
|
46
|
+
/* the addresses of the static drivers */
|
|
47
|
+
extern void atr5200std_joy[]; /* referred to by joy_static_stddrv[] */
|
|
48
|
+
|
|
49
|
+
/* masks for joy_read */
|
|
50
|
+
#define JOY_UP_MASK 0x01
|
|
51
|
+
#define JOY_DOWN_MASK 0x02
|
|
52
|
+
#define JOY_LEFT_MASK 0x04
|
|
53
|
+
#define JOY_RIGHT_MASK 0x08
|
|
54
|
+
#define JOY_BTN_1_MASK 0x10
|
|
55
|
+
|
|
56
|
+
/* character codes */
|
|
57
|
+
#define CH_ULCORNER 0x0B /* '+' sign */
|
|
58
|
+
#define CH_URCORNER 0x0B
|
|
59
|
+
#define CH_LLCORNER 0x0B
|
|
60
|
+
#define CH_LRCORNER 0x0B
|
|
61
|
+
#define CH_HLINE 0x0D /* dash */
|
|
62
|
+
#define CH_VLINE 0x01 /* exclamation mark */
|
|
63
|
+
|
|
64
|
+
/* get_tv return values */
|
|
65
|
+
#define AT_NTSC 0
|
|
66
|
+
#define AT_PAL 1
|
|
67
|
+
|
|
68
|
+
/* Define variables used by the OS*/
|
|
69
|
+
#include <_atari5200os.h>
|
|
70
|
+
#define OS (*(struct __os*)0x0000)
|
|
71
|
+
|
|
72
|
+
/* define hardware */
|
|
73
|
+
#include <_gtia.h>
|
|
74
|
+
#define GTIA_READ (*(struct __gtia_read*)0xC000)
|
|
75
|
+
#define GTIA_WRITE (*(struct __gtia_write*)0xC000)
|
|
76
|
+
|
|
77
|
+
#include <_pokey.h>
|
|
78
|
+
#define POKEY_READ (*(struct __pokey_read*)0xE800)
|
|
79
|
+
#define POKEY_WRITE (*(struct __pokey_write*)0xE800)
|
|
80
|
+
|
|
81
|
+
#include <_antic.h>
|
|
82
|
+
#define ANTIC (*(struct __antic*)0xD400)
|
|
83
|
+
|
|
84
|
+
/* conio color defines */
|
|
85
|
+
#define COLOR_WHITE 0x00
|
|
86
|
+
#define COLOR_RED 0x01
|
|
87
|
+
#define COLOR_GREEN 0x02
|
|
88
|
+
#define COLOR_BLACK 0x03
|
|
89
|
+
|
|
90
|
+
/* The following #define will cause the matching function calls in conio.h
|
|
91
|
+
** to be overlaid by macros with the same names, saving the function call
|
|
92
|
+
** overhead.
|
|
93
|
+
*/
|
|
94
|
+
#define _bordercolor(color) 0
|
|
95
|
+
|
|
96
|
+
/* wait for start of next frame */
|
|
97
|
+
void waitvsync (void);
|
|
98
|
+
|
|
99
|
+
/* end of atari5200.h */
|
|
100
|
+
#endif
|