fcdev-cc65 0.0.0-stage → 0.6.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/_suzy.h
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* _suzy.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Atari Lynx, Suzy chip register hardware structures */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* This software is provided 'as-is', without any expressed or implied */
|
|
9
|
+
/* warranty. In no event will the authors be held liable for any damages */
|
|
10
|
+
/* arising from the use of this software. */
|
|
11
|
+
/* */
|
|
12
|
+
/* Permission is granted to anyone to use this software for any purpose, */
|
|
13
|
+
/* including commercial applications, and to alter it and redistribute it */
|
|
14
|
+
/* freely, subject to the following restrictions: */
|
|
15
|
+
/* */
|
|
16
|
+
/* 1. The origin of this software must not be misrepresented; you must not */
|
|
17
|
+
/* claim that you wrote the original software. If you use this software */
|
|
18
|
+
/* in a product, an acknowledgment in the product documentation would be */
|
|
19
|
+
/* appreciated but is not required. */
|
|
20
|
+
/* 2. Altered source versions must be plainly marked as such, and must not */
|
|
21
|
+
/* be misrepresented as being the original software. */
|
|
22
|
+
/* 3. This notice may not be removed or altered from any source */
|
|
23
|
+
/* distribution. */
|
|
24
|
+
/* */
|
|
25
|
+
/*****************************************************************************/
|
|
26
|
+
|
|
27
|
+
#ifndef __SUZY_H
|
|
28
|
+
#define __SUZY_H
|
|
29
|
+
|
|
30
|
+
/* JOYSTICK bit definitions */
|
|
31
|
+
enum {
|
|
32
|
+
JOYPAD_RIGHT = 0x10,
|
|
33
|
+
JOYPAD_LEFT = 0x20,
|
|
34
|
+
JOYPAD_DOWN = 0x40,
|
|
35
|
+
JOYPAD_UP = 0x80,
|
|
36
|
+
BUTTON_OPTION1 = 0x08,
|
|
37
|
+
BUTTON_OPTION2 = 0x04,
|
|
38
|
+
BUTTON_INNER = 0x02,
|
|
39
|
+
BUTTON_OUTER = 0x01
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/* SWITCHES bit definitions */
|
|
43
|
+
enum {
|
|
44
|
+
CART1_IO_INACTIVE = 0x04,
|
|
45
|
+
CART0_IO_INACTIVE = 0x02,
|
|
46
|
+
BUTTON_PAUSE = 0x01
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/* SPRCTL0 bit definitions */
|
|
50
|
+
enum {
|
|
51
|
+
BPP_4 = 0xC0,
|
|
52
|
+
BPP_3 = 0x80,
|
|
53
|
+
BPP_2 = 0x40,
|
|
54
|
+
BPP_1 = 0x00,
|
|
55
|
+
HFLIP = 0x20,
|
|
56
|
+
VFLIP = 0x10,
|
|
57
|
+
TYPE_SHADOW = 0x07,
|
|
58
|
+
TYPE_XOR = 0x06,
|
|
59
|
+
TYPE_NONCOLL = 0x05,
|
|
60
|
+
TYPE_NORMAL = 0x04,
|
|
61
|
+
TYPE_BOUNDARY = 0x03,
|
|
62
|
+
TYPE_BSHADOW = 0x02,
|
|
63
|
+
TYPE_BACKNONCOLL = 0x01,
|
|
64
|
+
TYPE_BACKGROUND = 0x00
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/* SPRCTL1 bit definitions */
|
|
68
|
+
enum {
|
|
69
|
+
LITERAL = 0x80,
|
|
70
|
+
PACKED = 0x00,
|
|
71
|
+
ALGO3 = 0x40,
|
|
72
|
+
RENONE = 0x00,
|
|
73
|
+
REHV = 0x10,
|
|
74
|
+
REHVS = 0x20,
|
|
75
|
+
REHVST = 0x30,
|
|
76
|
+
REUSEPAL = 0x08,
|
|
77
|
+
SKIP = 0x04,
|
|
78
|
+
DRAWUP = 0x02,
|
|
79
|
+
DRAWLEFT = 0x01
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/* Sprite control block (SCB) definitions */
|
|
83
|
+
|
|
84
|
+
/* SCB with all attributes */
|
|
85
|
+
typedef struct SCB_REHVST_PAL {
|
|
86
|
+
unsigned char sprctl0;
|
|
87
|
+
unsigned char sprctl1;
|
|
88
|
+
unsigned char sprcoll;
|
|
89
|
+
char *next;
|
|
90
|
+
unsigned char *data;
|
|
91
|
+
signed int hpos;
|
|
92
|
+
signed int vpos;
|
|
93
|
+
unsigned int hsize;
|
|
94
|
+
unsigned int vsize;
|
|
95
|
+
unsigned int stretch;
|
|
96
|
+
unsigned int tilt;
|
|
97
|
+
unsigned char penpal[8];
|
|
98
|
+
} SCB_REHVST_PAL;
|
|
99
|
+
|
|
100
|
+
/* SCB without pallette */
|
|
101
|
+
typedef struct SCB_REHVST {
|
|
102
|
+
unsigned char sprctl0;
|
|
103
|
+
unsigned char sprctl1;
|
|
104
|
+
unsigned char sprcoll;
|
|
105
|
+
char *next;
|
|
106
|
+
unsigned char *data;
|
|
107
|
+
signed int hpos;
|
|
108
|
+
signed int vpos;
|
|
109
|
+
unsigned int hsize;
|
|
110
|
+
unsigned int vsize;
|
|
111
|
+
unsigned int stretch;
|
|
112
|
+
unsigned int tilt;
|
|
113
|
+
} SCB_REHVST;
|
|
114
|
+
|
|
115
|
+
/* SCB without stretch/tilt */
|
|
116
|
+
typedef struct SCB_REHV {
|
|
117
|
+
unsigned char sprctl0;
|
|
118
|
+
unsigned char sprctl1;
|
|
119
|
+
unsigned char sprcoll;
|
|
120
|
+
char *next;
|
|
121
|
+
unsigned char *data;
|
|
122
|
+
signed int hpos;
|
|
123
|
+
signed int vpos;
|
|
124
|
+
unsigned int hsize;
|
|
125
|
+
unsigned int vsize;
|
|
126
|
+
} SCB_REHV;
|
|
127
|
+
|
|
128
|
+
/* SCB without stretch/tilt, with penpal */
|
|
129
|
+
typedef struct SCB_REHV_PAL {
|
|
130
|
+
unsigned char sprctl0;
|
|
131
|
+
unsigned char sprctl1;
|
|
132
|
+
unsigned char sprcoll;
|
|
133
|
+
char *next;
|
|
134
|
+
unsigned char *data;
|
|
135
|
+
signed int hpos;
|
|
136
|
+
signed int vpos;
|
|
137
|
+
unsigned int hsize;
|
|
138
|
+
unsigned int vsize;
|
|
139
|
+
unsigned char penpal[8];
|
|
140
|
+
} SCB_REHV_PAL;
|
|
141
|
+
|
|
142
|
+
/* SCB without tilt/penpal */
|
|
143
|
+
typedef struct SCB_REHVS {
|
|
144
|
+
unsigned char sprctl0;
|
|
145
|
+
unsigned char sprctl1;
|
|
146
|
+
unsigned char sprcoll;
|
|
147
|
+
char *next;
|
|
148
|
+
unsigned char *data;
|
|
149
|
+
signed int hpos;
|
|
150
|
+
signed int vpos;
|
|
151
|
+
unsigned int hsize;
|
|
152
|
+
unsigned int vsize;
|
|
153
|
+
unsigned int stretch;
|
|
154
|
+
} SCB_REHVS;
|
|
155
|
+
|
|
156
|
+
/* SCB without tilt, with penpal */
|
|
157
|
+
typedef struct SCB_REHVS_PAL {
|
|
158
|
+
unsigned char sprctl0;
|
|
159
|
+
unsigned char sprctl1;
|
|
160
|
+
unsigned char sprcoll;
|
|
161
|
+
char *next;
|
|
162
|
+
unsigned char *data;
|
|
163
|
+
signed int hpos;
|
|
164
|
+
signed int vpos;
|
|
165
|
+
unsigned int hsize;
|
|
166
|
+
unsigned int vsize;
|
|
167
|
+
unsigned int stretch;
|
|
168
|
+
unsigned char penpal[8];
|
|
169
|
+
} SCB_REHVS_PAL;
|
|
170
|
+
|
|
171
|
+
/* SCB without size/stretch/tilt/penpal */
|
|
172
|
+
typedef struct SCB_RENONE {
|
|
173
|
+
unsigned char sprctl0;
|
|
174
|
+
unsigned char sprctl1;
|
|
175
|
+
unsigned char sprcoll;
|
|
176
|
+
char *next;
|
|
177
|
+
unsigned char *data;
|
|
178
|
+
signed int hpos;
|
|
179
|
+
signed int vpos;
|
|
180
|
+
} SCB_RENONE;
|
|
181
|
+
|
|
182
|
+
/* SCB without size/str/tilt, with penpal */
|
|
183
|
+
typedef struct SCB_RENONE_PAL {
|
|
184
|
+
unsigned char sprctl0;
|
|
185
|
+
unsigned char sprctl1;
|
|
186
|
+
unsigned char sprcoll;
|
|
187
|
+
char *next;
|
|
188
|
+
unsigned char *data;
|
|
189
|
+
signed int hpos;
|
|
190
|
+
signed int vpos;
|
|
191
|
+
unsigned char penpal[8];
|
|
192
|
+
} SCB_RENONE_PAL;
|
|
193
|
+
|
|
194
|
+
typedef struct PENPAL_4 {
|
|
195
|
+
unsigned char penpal[8];
|
|
196
|
+
} PENPAL_4;
|
|
197
|
+
|
|
198
|
+
typedef struct PENPAL_3 {
|
|
199
|
+
unsigned char penpal[4];
|
|
200
|
+
} PENPAL_3;
|
|
201
|
+
|
|
202
|
+
typedef struct PENPAL_2 {
|
|
203
|
+
unsigned char penpal[2];
|
|
204
|
+
} PENPAL_2;
|
|
205
|
+
|
|
206
|
+
typedef struct PENPAL_1 {
|
|
207
|
+
unsigned char penpal[1];
|
|
208
|
+
} PENPAL_1;
|
|
209
|
+
|
|
210
|
+
/* SPRGO bit definitions */
|
|
211
|
+
enum {
|
|
212
|
+
SPRITE_GO = 0x01, /* sprite process start bit */
|
|
213
|
+
EVER_ON = 0x04 /* everon detector enable */
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/* SPRSYS bit definitions for write operations */
|
|
217
|
+
enum {
|
|
218
|
+
SIGNMATH = 0x80, /* signed math */
|
|
219
|
+
ACCUMULATE = 0x40, /* accumulate multiplication results */
|
|
220
|
+
NO_COLLIDE = 0x20, /* do not collide with any sprites (also SPRCOLL bit definition) */
|
|
221
|
+
VSTRETCH = 0x10, /* stretch v */
|
|
222
|
+
LEFTHAND = 0x08,
|
|
223
|
+
CLR_UNSAFE = 0x04, /* unsafe access reset */
|
|
224
|
+
SPRITESTOP = 0x02 /* request to stop sprite process */
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
/* SPRSYS bit definitions for read operations */
|
|
228
|
+
enum {
|
|
229
|
+
MATHWORKING = 0x80, /* math operation in progress */
|
|
230
|
+
MATHWARNING = 0x40, /* accumulator overflow on multiple or divide by zero */
|
|
231
|
+
MATHCARRY = 0x20, /* last carry bit */
|
|
232
|
+
VSTRETCHING = 0x10,
|
|
233
|
+
LEFTHANDED = 0x08,
|
|
234
|
+
UNSAFE_ACCESS = 0x04, /* unsafe access performed */
|
|
235
|
+
SPRITETOSTOP = 0x02, /* requested to stop */
|
|
236
|
+
SPRITEWORKING = 0x01 /* sprite process is active */
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
/* Suzy hardware registers */
|
|
240
|
+
struct __suzy {
|
|
241
|
+
unsigned char *tmpadr; /* 0xFC00 Temporary address */
|
|
242
|
+
unsigned int tiltacc; /* 0xFC02 Tilt accumulator */
|
|
243
|
+
unsigned int hoff; /* 0xFC04 Offset to H edge of screen */
|
|
244
|
+
unsigned int voff; /* 0xFC06 Offset to V edge of screen */
|
|
245
|
+
unsigned char *sprbase; /* 0xFC08 Base address of sprite */
|
|
246
|
+
unsigned char *colbase; /* 0xFC0A Base address of collision buffer */
|
|
247
|
+
unsigned char *vidadr; /* 0xFC0C Current vid buffer address */
|
|
248
|
+
unsigned char *coladr; /* 0xFC0E Current col buffer address */
|
|
249
|
+
unsigned char *scbnext; /* 0xFC10 Address of next SCB */
|
|
250
|
+
unsigned char *sprdline; /* 0xFC12 start of sprite data line address */
|
|
251
|
+
unsigned int hposstrt; /* 0xFC14 start hpos */
|
|
252
|
+
unsigned int vposstrt; /* 0xFC16 start vpos */
|
|
253
|
+
unsigned int sprhsize; /* 0xFC18 sprite h size */
|
|
254
|
+
unsigned int sprvsize; /* 0xFC1A sprite v size */
|
|
255
|
+
unsigned int stretchl; /* 0xFC1C H size adder */
|
|
256
|
+
unsigned int tilt; /* 0xFC1E H pos adder */
|
|
257
|
+
unsigned int sprdoff; /* 0xFC20 offset to next sprite data line */
|
|
258
|
+
unsigned int sprvpos; /* 0xFC22 current vpos */
|
|
259
|
+
unsigned int colloff; /* 0xFC24 offset to collision depository */
|
|
260
|
+
unsigned int vsizeacc; /* 0xFC26 vertical size accumulator */
|
|
261
|
+
unsigned int hsizeoff; /* 0xFC28 horizontal size offset */
|
|
262
|
+
unsigned int vsizeoff; /* 0xFC2A vertical size offset */
|
|
263
|
+
unsigned char *scbaddr; /* 0xFC2C address of current SCB */
|
|
264
|
+
unsigned char *procaddr; /* 0xFC2E address of current spr data proc */
|
|
265
|
+
unsigned char unused0[32]; /* 0xFC30 - 0xFC4F reserved/unused */
|
|
266
|
+
unsigned char unused1[2]; /* 0xFC50 - 0xFC51 do not use */
|
|
267
|
+
unsigned char mathd; /* 0xFC52 */
|
|
268
|
+
unsigned char mathc; /* 0xFC53 */
|
|
269
|
+
unsigned char mathb; /* 0xFC54 */
|
|
270
|
+
unsigned char matha; /* 0xFC55 write starts a multiply operation */
|
|
271
|
+
unsigned char mathp; /* 0xFC56 */
|
|
272
|
+
unsigned char mathn; /* 0xFC57 */
|
|
273
|
+
unsigned char unused2[8]; /* 0xFC58 - 0xFC5F do not use */
|
|
274
|
+
unsigned char mathh; /* 0xFC60 */
|
|
275
|
+
unsigned char mathg; /* 0xFC61 */
|
|
276
|
+
unsigned char mathf; /* 0xFC62 */
|
|
277
|
+
unsigned char mathe; /* 0xFC63 write starts a divide operation */
|
|
278
|
+
unsigned char unused3[8]; /* 0xFC64 - 0xFC6B do not use */
|
|
279
|
+
unsigned char mathm; /* 0xFC6C */
|
|
280
|
+
unsigned char mathl; /* 0xFC6D */
|
|
281
|
+
unsigned char mathk; /* 0xFC6E */
|
|
282
|
+
unsigned char mathj; /* 0xFC6F */
|
|
283
|
+
unsigned char unused4[16]; /* 0xFC70 - 0xFC7F do not use */
|
|
284
|
+
unsigned char sprctl0; /* 0xFC80 sprite control bits 0 */
|
|
285
|
+
unsigned char sprctl1; /* 0xFC81 sprite control bits 1 */
|
|
286
|
+
unsigned char sprcoll; /* 0xFC82 sprite collision number */
|
|
287
|
+
unsigned char sprinit; /* 0xFC83 sprite initialization bits */
|
|
288
|
+
unsigned char unused5[4]; /* 0xFC84 - 0xFC87 unused */
|
|
289
|
+
unsigned char suzyhrev; /* 0xFC88 suzy hardware rev */
|
|
290
|
+
unsigned char suzysrev; /* 0xFC89 suzy software rev */
|
|
291
|
+
unsigned char unused6[6]; /* 0xFC8A - 0xFC8F unused */
|
|
292
|
+
unsigned char suzybusen; /* 0xFC90 suzy bus enable */
|
|
293
|
+
unsigned char sprgo; /* 0xFC91 sprite process start bit */
|
|
294
|
+
unsigned char sprsys; /* 0xFC92 sprite system control bits */
|
|
295
|
+
unsigned char unused7[29]; /* 0xFC93 - 0xFCAF unused */
|
|
296
|
+
unsigned char joystick; /* 0xFCB0 joystick and buttons */
|
|
297
|
+
unsigned char switches; /* 0xFCB1 other switches */
|
|
298
|
+
unsigned char cart0; /* 0xFCB2 cart0 r/w */
|
|
299
|
+
unsigned char cart1; /* 0xFCB3 cart1 r/w */
|
|
300
|
+
unsigned char unused8[8]; /* 0xFCB4 - 0xFCBF unused */
|
|
301
|
+
unsigned char leds; /* 0xFCC0 leds */
|
|
302
|
+
unsigned char unused9; /* 0xFCC1 unused */
|
|
303
|
+
unsigned char parstat; /* 0xFCC2 parallel port status */
|
|
304
|
+
unsigned char pardata; /* 0xFCC3 parallel port data */
|
|
305
|
+
unsigned char howie; /* 0xFCC4 howie (?) */
|
|
306
|
+
/* 0xFCC5 - 0xFCFF unused */
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
/* Hardware math registers */
|
|
310
|
+
#define FACTOR_A *(unsigned int *) 0xFC54
|
|
311
|
+
#define FACTOR_B *(unsigned int *) 0xFC52
|
|
312
|
+
#define PRODUCT0 *(unsigned int *) 0xFC60
|
|
313
|
+
#define PRODUCT1 *(unsigned int *) 0xFC62
|
|
314
|
+
#define PRODUCT *(long *) 0xFC60
|
|
315
|
+
|
|
316
|
+
#define DIVIDEND0 *(unsigned int *) 0xFC60
|
|
317
|
+
#define DIVIDEND1 *(unsigned int *) 0xFC62
|
|
318
|
+
#define DIVIDEND *(long *) 0xFC60
|
|
319
|
+
#define DIVISOR *(unsigned int *) 0xFC56
|
|
320
|
+
#define QUOTIENT0 *(unsigned int *) 0xFC52
|
|
321
|
+
#define QUOTIENT1 *(unsigned int *) 0xFC54
|
|
322
|
+
#define QUOTIENT *(long *) 0xFC52
|
|
323
|
+
#define REMAINDER0 *(unsigned int *) 0xFC6C
|
|
324
|
+
#define REMAINDER1 *(unsigned int *) 0xFC6E
|
|
325
|
+
#define REMAINDER *(long *) 0xFC6C
|
|
326
|
+
|
|
327
|
+
/* Deprecated definitions */
|
|
328
|
+
|
|
329
|
+
/* MAPCTL $FFF9 */
|
|
330
|
+
#define HIGHSPEED 0x80
|
|
331
|
+
#define VECTORSPACE 0x08
|
|
332
|
+
#define ROMSPACE 0x04
|
|
333
|
+
#define MIKEYSPACE 0x02
|
|
334
|
+
#define SUZYSPACE 0x01
|
|
335
|
+
|
|
336
|
+
#endif
|
package/include/_ted.h
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* _ted.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Internal include file, do not use directly */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 2003 Ullrich von Bassewitz */
|
|
10
|
+
/* Roemerstrasse 52 */
|
|
11
|
+
/* D-70794 Filderstadt */
|
|
12
|
+
/* EMail: uz@cc65.org */
|
|
13
|
+
/* */
|
|
14
|
+
/* */
|
|
15
|
+
/* This software is provided 'as-is', without any expressed or implied */
|
|
16
|
+
/* warranty. In no event will the authors be held liable for any damages */
|
|
17
|
+
/* arising from the use of this software. */
|
|
18
|
+
/* */
|
|
19
|
+
/* Permission is granted to anyone to use this software for any purpose, */
|
|
20
|
+
/* including commercial applications, and to alter it and redistribute it */
|
|
21
|
+
/* freely, subject to the following restrictions: */
|
|
22
|
+
/* */
|
|
23
|
+
/* 1. The origin of this software must not be misrepresented; you must not */
|
|
24
|
+
/* claim that you wrote the original software. If you use this software */
|
|
25
|
+
/* in a product, an acknowledgment in the product documentation would be */
|
|
26
|
+
/* appreciated but is not required. */
|
|
27
|
+
/* 2. Altered source versions must be plainly marked as such, and must not */
|
|
28
|
+
/* be misrepresented as being the original software. */
|
|
29
|
+
/* 3. This notice may not be removed or altered from any source */
|
|
30
|
+
/* distribution. */
|
|
31
|
+
/* */
|
|
32
|
+
/*****************************************************************************/
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
#ifndef __TED_H
|
|
37
|
+
#define __TED_H
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/* Define a structure with the ted register offsets */
|
|
42
|
+
struct __ted {
|
|
43
|
+
unsigned char t1_lo; /* Timer #1 low */
|
|
44
|
+
unsigned char t1_hi; /* Timer #1 high */
|
|
45
|
+
unsigned char t2_lo; /* Timer #2 low */
|
|
46
|
+
unsigned char t2_hi; /* Timer #2 high */
|
|
47
|
+
unsigned char t3_lo; /* Timer #3 low */
|
|
48
|
+
unsigned char t3_hi; /* Timer #3 high */
|
|
49
|
+
unsigned char vscroll; /* Vertical scroll control */
|
|
50
|
+
unsigned char hscroll; /* Horizontal scroll control */
|
|
51
|
+
unsigned char kbdlatch; /* Keyboard latch */
|
|
52
|
+
unsigned char irr; /* Interrupt request register */
|
|
53
|
+
unsigned char imr; /* Interrupt mask register */
|
|
54
|
+
unsigned char irq_rasterline; /* Interrupt rasterline */
|
|
55
|
+
unsigned char cursor_hi; /* Cursor position high */
|
|
56
|
+
unsigned char cursor_lo; /* Cursor position low */
|
|
57
|
+
unsigned char snd1_freq_lo; /* Channel #1 frequency */
|
|
58
|
+
unsigned char snd2_freq_lo; /* Channel #2 frequency low */
|
|
59
|
+
unsigned char snd2_freq_hi; /* Channel #2 frequency high */
|
|
60
|
+
unsigned char snd_ctrl; /* Sound control */
|
|
61
|
+
unsigned char misc; /* Channel #1 frequency high and more */
|
|
62
|
+
unsigned char char_addr; /* Character data base address */
|
|
63
|
+
unsigned char video_addr; /* Video memory base address */
|
|
64
|
+
unsigned char bgcolor; /* Background color */
|
|
65
|
+
unsigned char color1; /* Color register #1 */
|
|
66
|
+
unsigned char color2; /* Color register #2 */
|
|
67
|
+
unsigned char color3; /* Color register #3 */
|
|
68
|
+
unsigned char bordercolor; /* Border color */
|
|
69
|
+
unsigned char bmap_reload_hi; /* Bitmap reload bits 8+9 */
|
|
70
|
+
unsigned char bmap_reload_lo; /* Bitmap reload bits 0-7 */
|
|
71
|
+
unsigned char rasterline_hi; /* Current rasterline bit 8 */
|
|
72
|
+
unsigned char rasterline_lo; /* Current rasterline bits 0-7 */
|
|
73
|
+
unsigned char rastercolumn; /* Current rastercolumn */
|
|
74
|
+
unsigned char cursor_blink; /* Cursor blink attribute */
|
|
75
|
+
unsigned char unused[30]; /* Unused */
|
|
76
|
+
unsigned char enable_rom; /* Write enables ROM */
|
|
77
|
+
unsigned char enable_ram; /* Write enables RAM */
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/* End of _ted.h */
|
|
83
|
+
#endif
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
package/include/_tia.h
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* Atari VCS 2600 TIA registers addresses */
|
|
4
|
+
/* */
|
|
5
|
+
/* Source: DASM - vcs.h */
|
|
6
|
+
/* */
|
|
7
|
+
/* Florent Flament (contact@florentflament.com), 2017 */
|
|
8
|
+
/* */
|
|
9
|
+
/*****************************************************************************/
|
|
10
|
+
|
|
11
|
+
/* TIA write / read registers */
|
|
12
|
+
struct __tia {
|
|
13
|
+
union {
|
|
14
|
+
unsigned char vsync;
|
|
15
|
+
unsigned char cxm0p;
|
|
16
|
+
};
|
|
17
|
+
union {
|
|
18
|
+
unsigned char vblank;
|
|
19
|
+
unsigned char cxm1p;
|
|
20
|
+
};
|
|
21
|
+
union {
|
|
22
|
+
unsigned char wsync;
|
|
23
|
+
unsigned char cxp0fb;
|
|
24
|
+
};
|
|
25
|
+
union {
|
|
26
|
+
unsigned char rsync;
|
|
27
|
+
unsigned char cxp1fb;
|
|
28
|
+
};
|
|
29
|
+
union {
|
|
30
|
+
unsigned char nusiz0;
|
|
31
|
+
unsigned char cxm0fb;
|
|
32
|
+
};
|
|
33
|
+
union {
|
|
34
|
+
unsigned char nusiz1;
|
|
35
|
+
unsigned char cxm1fb;
|
|
36
|
+
};
|
|
37
|
+
union {
|
|
38
|
+
unsigned char colup0;
|
|
39
|
+
unsigned char cxblpf;
|
|
40
|
+
};
|
|
41
|
+
union {
|
|
42
|
+
unsigned char colup1;
|
|
43
|
+
unsigned char cxppmm;
|
|
44
|
+
};
|
|
45
|
+
union {
|
|
46
|
+
unsigned char colupf;
|
|
47
|
+
unsigned char inpt0;
|
|
48
|
+
};
|
|
49
|
+
union {
|
|
50
|
+
unsigned char colubk;
|
|
51
|
+
unsigned char inpt1;
|
|
52
|
+
};
|
|
53
|
+
union {
|
|
54
|
+
unsigned char ctrlpf;
|
|
55
|
+
unsigned char inpt2;
|
|
56
|
+
};
|
|
57
|
+
union {
|
|
58
|
+
unsigned char refp0;
|
|
59
|
+
unsigned char inpt3;
|
|
60
|
+
};
|
|
61
|
+
union {
|
|
62
|
+
unsigned char refp1;
|
|
63
|
+
unsigned char inpt4;
|
|
64
|
+
};
|
|
65
|
+
union {
|
|
66
|
+
unsigned char pf0;
|
|
67
|
+
unsigned char inpt5;
|
|
68
|
+
};
|
|
69
|
+
unsigned char pf1;
|
|
70
|
+
unsigned char pf2;
|
|
71
|
+
unsigned char resp0;
|
|
72
|
+
unsigned char resp1;
|
|
73
|
+
unsigned char resm0;
|
|
74
|
+
unsigned char resm1;
|
|
75
|
+
unsigned char resbl;
|
|
76
|
+
unsigned char audc0;
|
|
77
|
+
unsigned char audc1;
|
|
78
|
+
unsigned char audf0;
|
|
79
|
+
unsigned char audf1;
|
|
80
|
+
unsigned char audv0;
|
|
81
|
+
unsigned char audv1;
|
|
82
|
+
unsigned char grp0;
|
|
83
|
+
unsigned char grp1;
|
|
84
|
+
unsigned char enam0;
|
|
85
|
+
unsigned char enam1;
|
|
86
|
+
unsigned char enabl;
|
|
87
|
+
unsigned char hmp0;
|
|
88
|
+
unsigned char hmp1;
|
|
89
|
+
unsigned char hmm0;
|
|
90
|
+
unsigned char hmm1;
|
|
91
|
+
unsigned char hmbl;
|
|
92
|
+
unsigned char vdelp0;
|
|
93
|
+
unsigned char vdelp1;
|
|
94
|
+
unsigned char vdelbl;
|
|
95
|
+
unsigned char resmp0;
|
|
96
|
+
unsigned char resmp1;
|
|
97
|
+
unsigned char hmove;
|
|
98
|
+
unsigned char hmclr;
|
|
99
|
+
unsigned char cxclr;
|
|
100
|
+
};
|
package/include/_vdc.h
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* _vdc.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Internal include file, do not use directly */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 1998-2000 Ullrich von Bassewitz */
|
|
10
|
+
/* Wacholderweg 14 */
|
|
11
|
+
/* D-70597 Stuttgart */
|
|
12
|
+
/* EMail: uz@musoftware.de */
|
|
13
|
+
/* */
|
|
14
|
+
/* */
|
|
15
|
+
/* This software is provided 'as-is', without any expressed or implied */
|
|
16
|
+
/* warranty. In no event will the authors be held liable for any damages */
|
|
17
|
+
/* arising from the use of this software. */
|
|
18
|
+
/* */
|
|
19
|
+
/* Permission is granted to anyone to use this software for any purpose, */
|
|
20
|
+
/* including commercial applications, and to alter it and redistribute it */
|
|
21
|
+
/* freely, subject to the following restrictions: */
|
|
22
|
+
/* */
|
|
23
|
+
/* 1. The origin of this software must not be misrepresented; you must not */
|
|
24
|
+
/* claim that you wrote the original software. If you use this software */
|
|
25
|
+
/* in a product, an acknowledgment in the product documentation would be */
|
|
26
|
+
/* appreciated but is not required. */
|
|
27
|
+
/* 2. Altered source versions must be plainly marked as such, and must not */
|
|
28
|
+
/* be misrepresented as being the original software. */
|
|
29
|
+
/* 3. This notice may not be removed or altered from any source */
|
|
30
|
+
/* distribution. */
|
|
31
|
+
/* */
|
|
32
|
+
/*****************************************************************************/
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
#ifndef __VDC_H
|
|
37
|
+
#define __VDC_H
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/* Define a structure with the vdc register offsets */
|
|
42
|
+
struct __vdc {
|
|
43
|
+
unsigned char ctrl; /* Control register */
|
|
44
|
+
unsigned char data; /* Data register */
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/* End of _vdc.h */
|
|
50
|
+
#endif
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
package/include/_vic.h
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* _vic.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Internal include file, do not use directly */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 2002 Ullrich von Bassewitz */
|
|
10
|
+
/* Wacholderweg 14 */
|
|
11
|
+
/* D-70597 Stuttgart */
|
|
12
|
+
/* EMail: uz@musoftware.de */
|
|
13
|
+
/* */
|
|
14
|
+
/* */
|
|
15
|
+
/* This software is provided 'as-is', without any expressed or implied */
|
|
16
|
+
/* warranty. In no event will the authors be held liable for any damages */
|
|
17
|
+
/* arising from the use of this software. */
|
|
18
|
+
/* */
|
|
19
|
+
/* Permission is granted to anyone to use this software for any purpose, */
|
|
20
|
+
/* including commercial applications, and to alter it and redistribute it */
|
|
21
|
+
/* freely, subject to the following restrictions: */
|
|
22
|
+
/* */
|
|
23
|
+
/* 1. The origin of this software must not be misrepresented; you must not */
|
|
24
|
+
/* claim that you wrote the original software. If you use this software */
|
|
25
|
+
/* in a product, an acknowledgment in the product documentation would be */
|
|
26
|
+
/* appreciated but is not required. */
|
|
27
|
+
/* 2. Altered source versions must be plainly marked as such, and must not */
|
|
28
|
+
/* be misrepresented as being the original software. */
|
|
29
|
+
/* 3. This notice may not be removed or altered from any source */
|
|
30
|
+
/* distribution. */
|
|
31
|
+
/* */
|
|
32
|
+
/*****************************************************************************/
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
#ifndef __VIC_H
|
|
37
|
+
#define __VIC_H
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/* Define a structure with the vic register offsets */
|
|
42
|
+
struct __vic {
|
|
43
|
+
unsigned char leftborder;
|
|
44
|
+
unsigned char upperborder;
|
|
45
|
+
unsigned char charsperline; /* Characters per line */
|
|
46
|
+
unsigned char linecount; /* Number of lines */
|
|
47
|
+
unsigned char rasterline; /* Current raster line */
|
|
48
|
+
unsigned char addr; /* Address of chargen and video ram */
|
|
49
|
+
unsigned char strobe_x; /* Light pen, X position */
|
|
50
|
+
unsigned char strobe_y; /* Light pen, Y position */
|
|
51
|
+
unsigned char analog_x; /* Analog input X */
|
|
52
|
+
unsigned char analog_y; /* Analog input Y */
|
|
53
|
+
unsigned char voice1; /* Sound generator #1 */
|
|
54
|
+
unsigned char voice2; /* Sound generator #2 */
|
|
55
|
+
unsigned char voice3; /* Sound generator #3 */
|
|
56
|
+
unsigned char noise; /* Noise generator */
|
|
57
|
+
unsigned char volume_color; /* Bits 0..3: volume, 4..7: color */
|
|
58
|
+
unsigned char bg_border_color;/* Background and border color */
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/* End of _vic.h */
|
|
64
|
+
#endif
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|