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.
Files changed (224) hide show
  1. package/LICENSE +17 -0
  2. package/asminc/_file.inc +27 -0
  3. package/asminc/_heap.inc +35 -0
  4. package/asminc/accelerator.inc +80 -0
  5. package/asminc/agat.inc +39 -0
  6. package/asminc/apple2.inc +95 -0
  7. package/asminc/apple2.mac +54 -0
  8. package/asminc/ascii_charmap.inc +287 -0
  9. package/asminc/atari.inc +1169 -0
  10. package/asminc/atari.mac +65 -0
  11. package/asminc/atari2600.inc +7 -0
  12. package/asminc/atari2600_riot.inc +20 -0
  13. package/asminc/atari2600_tia.inc +69 -0
  14. package/asminc/atari5200.inc +133 -0
  15. package/asminc/atari7800.inc +14 -0
  16. package/asminc/atari7800_maria.inc +39 -0
  17. package/asminc/atari7800_riot.inc +20 -0
  18. package/asminc/atari7800_tia.inc +69 -0
  19. package/asminc/atari_antic.inc +95 -0
  20. package/asminc/atari_atascii_charmap.inc +301 -0
  21. package/asminc/atari_gtia.inc +119 -0
  22. package/asminc/atari_pokey.inc +43 -0
  23. package/asminc/atari_screen_charmap.inc +303 -0
  24. package/asminc/atmos.inc +117 -0
  25. package/asminc/c128.inc +224 -0
  26. package/asminc/c16.inc +9 -0
  27. package/asminc/c64.inc +219 -0
  28. package/asminc/c65.inc +239 -0
  29. package/asminc/cbm.mac +56 -0
  30. package/asminc/cbm510.inc +200 -0
  31. package/asminc/cbm610.inc +121 -0
  32. package/asminc/cbm_filetype.inc +34 -0
  33. package/asminc/cbm_kernal.inc +248 -0
  34. package/asminc/cbm_petscii_charmap.inc +291 -0
  35. package/asminc/cbm_screen_charmap.inc +305 -0
  36. package/asminc/cpu.mac +4 -0
  37. package/asminc/creativision.inc +66 -0
  38. package/asminc/ctype.inc +31 -0
  39. package/asminc/ctype_common.inc +91 -0
  40. package/asminc/ctypetable.inc +48 -0
  41. package/asminc/cx16.inc +574 -0
  42. package/asminc/em-error.inc +49 -0
  43. package/asminc/em-kernel.inc +106 -0
  44. package/asminc/errno.inc +37 -0
  45. package/asminc/fcntl.inc +21 -0
  46. package/asminc/gamate.inc +64 -0
  47. package/asminc/generic.mac +53 -0
  48. package/asminc/get_tv.inc +22 -0
  49. package/asminc/joy-error.inc +44 -0
  50. package/asminc/joy-kernel.inc +83 -0
  51. package/asminc/kim1.inc +31 -0
  52. package/asminc/longbranch.mac +88 -0
  53. package/asminc/lynx.inc +460 -0
  54. package/asminc/mega65.inc +239 -0
  55. package/asminc/modload.inc +78 -0
  56. package/asminc/module.mac +13 -0
  57. package/asminc/mouse-kernel.inc +184 -0
  58. package/asminc/nes.inc +93 -0
  59. package/asminc/o65.inc +150 -0
  60. package/asminc/opcodes.inc +514 -0
  61. package/asminc/pce.inc +93 -0
  62. package/asminc/pet.inc +100 -0
  63. package/asminc/plus4.inc +86 -0
  64. package/asminc/rp6502.inc +98 -0
  65. package/asminc/ser-error.inc +55 -0
  66. package/asminc/ser-kernel.inc +162 -0
  67. package/asminc/signal.inc +57 -0
  68. package/asminc/sim65.inc +75 -0
  69. package/asminc/smc.inc +267 -0
  70. package/asminc/stat.inc +64 -0
  71. package/asminc/statvfs.inc +46 -0
  72. package/asminc/stdio.inc +74 -0
  73. package/asminc/supervision.inc +75 -0
  74. package/asminc/sym1.inc +186 -0
  75. package/asminc/telestrat.inc +546 -0
  76. package/asminc/tgi-error.inc +52 -0
  77. package/asminc/tgi-kernel.inc +233 -0
  78. package/asminc/tgi-vectorfont.inc +70 -0
  79. package/asminc/time.inc +74 -0
  80. package/asminc/utsname.inc +46 -0
  81. package/asminc/vic20.inc +119 -0
  82. package/asminc/zeropage.inc +40 -0
  83. package/bin/ar65.exe +0 -0
  84. package/bin/ca65.exe +0 -0
  85. package/bin/cc65.exe +0 -0
  86. package/bin/da65.exe +0 -0
  87. package/bin/ld65.exe +0 -0
  88. package/cfg/module.cfg +21 -0
  89. package/cfg/nes.cfg +62 -0
  90. package/cfg/none.cfg +37 -0
  91. package/include/6502.h +140 -0
  92. package/include/_6522.h +68 -0
  93. package/include/_6525.h +62 -0
  94. package/include/_6526.h +71 -0
  95. package/include/_6545.h +53 -0
  96. package/include/_6551.h +55 -0
  97. package/include/_antic.h +254 -0
  98. package/include/_atari5200os.h +94 -0
  99. package/include/_atarios.h +661 -0
  100. package/include/_gtia.h +281 -0
  101. package/include/_heap.h +60 -0
  102. package/include/_maria.h +63 -0
  103. package/include/_mikey.h +264 -0
  104. package/include/_pbi.h +63 -0
  105. package/include/_pia.h +52 -0
  106. package/include/_pokey.h +220 -0
  107. package/include/_riot.h +26 -0
  108. package/include/_sid.h +68 -0
  109. package/include/_suzy.h +336 -0
  110. package/include/_ted.h +86 -0
  111. package/include/_tia.h +100 -0
  112. package/include/_vdc.h +53 -0
  113. package/include/_vic.h +67 -0
  114. package/include/_vic2.h +192 -0
  115. package/include/_vic3.h +188 -0
  116. package/include/accelerator.h +339 -0
  117. package/include/agat.h +76 -0
  118. package/include/apple2.h +358 -0
  119. package/include/apple2_filetype.h +324 -0
  120. package/include/apple2enh.h +67 -0
  121. package/include/arpa/inet.h +81 -0
  122. package/include/ascii_charmap.h +295 -0
  123. package/include/assert.h +59 -0
  124. package/include/atari.h +554 -0
  125. package/include/atari2600.h +32 -0
  126. package/include/atari5200.h +100 -0
  127. package/include/atari7800.h +67 -0
  128. package/include/atari_atascii_charmap.h +304 -0
  129. package/include/atari_screen_charmap.h +310 -0
  130. package/include/atmos.h +189 -0
  131. package/include/c128.h +175 -0
  132. package/include/c16.h +60 -0
  133. package/include/c64.h +175 -0
  134. package/include/c65.h +120 -0
  135. package/include/cbm.h +321 -0
  136. package/include/cbm264.h +165 -0
  137. package/include/cbm510.h +168 -0
  138. package/include/cbm610.h +153 -0
  139. package/include/cbm_filetype.h +108 -0
  140. package/include/cbm_petscii_charmap.h +297 -0
  141. package/include/cbm_screen_charmap.h +311 -0
  142. package/include/cc65.h +109 -0
  143. package/include/conio.h +248 -0
  144. package/include/creativision.h +78 -0
  145. package/include/ctype.h +88 -0
  146. package/include/cx16.h +420 -0
  147. package/include/dbg.h +124 -0
  148. package/include/device.h +72 -0
  149. package/include/dio.h +113 -0
  150. package/include/dirent.h +151 -0
  151. package/include/em/em-kernel.h +77 -0
  152. package/include/em.h +135 -0
  153. package/include/errno.h +135 -0
  154. package/include/fcntl.h +75 -0
  155. package/include/gamate.h +209 -0
  156. package/include/geos/gconst.h +69 -0
  157. package/include/geos/gdisk.h +79 -0
  158. package/include/geos/gdlgbox.h +110 -0
  159. package/include/geos/gfile.h +72 -0
  160. package/include/geos/ggraph.h +180 -0
  161. package/include/geos/gmemory.h +30 -0
  162. package/include/geos/gmenu.h +53 -0
  163. package/include/geos/gprocess.h +22 -0
  164. package/include/geos/gsprite.h +96 -0
  165. package/include/geos/gstruct.h +174 -0
  166. package/include/geos/gsym.h +340 -0
  167. package/include/geos/gsys.h +54 -0
  168. package/include/geos.h +109 -0
  169. package/include/inttypes.h +237 -0
  170. package/include/iso646.h +60 -0
  171. package/include/joystick/joy-kernel.h +84 -0
  172. package/include/joystick.h +109 -0
  173. package/include/kim1.h +73 -0
  174. package/include/limits.h +87 -0
  175. package/include/locale.h +83 -0
  176. package/include/lynx.h +144 -0
  177. package/include/lz4.h +43 -0
  178. package/include/lzsa.h +56 -0
  179. package/include/mega65.h +120 -0
  180. package/include/modload.h +103 -0
  181. package/include/mouse/mouse-kernel.h +67 -0
  182. package/include/mouse.h +220 -0
  183. package/include/nes.h +203 -0
  184. package/include/o65.h +178 -0
  185. package/include/osic1p.h +66 -0
  186. package/include/pce.h +110 -0
  187. package/include/peekpoke.h +58 -0
  188. package/include/pen.h +78 -0
  189. package/include/pet.h +113 -0
  190. package/include/plus4.h +63 -0
  191. package/include/rp6502.h +266 -0
  192. package/include/serial.h +180 -0
  193. package/include/setjmp.h +55 -0
  194. package/include/signal.h +74 -0
  195. package/include/sim65.h +136 -0
  196. package/include/stdarg.h +57 -0
  197. package/include/stdbool.h +53 -0
  198. package/include/stddef.h +66 -0
  199. package/include/stdint.h +144 -0
  200. package/include/stdio.h +166 -0
  201. package/include/stdlib.h +174 -0
  202. package/include/string.h +106 -0
  203. package/include/supervision.h +137 -0
  204. package/include/sym1.h +165 -0
  205. package/include/sys/stat.h +94 -0
  206. package/include/sys/statvfs.h +74 -0
  207. package/include/sys/types.h +102 -0
  208. package/include/sys/utsname.h +97 -0
  209. package/include/target.h +77 -0
  210. package/include/telestrat.h +129 -0
  211. package/include/tgi/tgi-error.h +64 -0
  212. package/include/tgi/tgi-kernel.h +75 -0
  213. package/include/tgi/tgi-vectorfont.h +90 -0
  214. package/include/tgi.h +286 -0
  215. package/include/time.h +143 -0
  216. package/include/unistd.h +103 -0
  217. package/include/vic20.h +141 -0
  218. package/include/zlib.h +175 -0
  219. package/include/zx02.h +44 -0
  220. package/lib/nes.lib +0 -0
  221. package/lib/none.lib +0 -0
  222. package/manifest.json +227 -0
  223. package/package.json +19 -4
  224. package/README.md +0 -3
@@ -0,0 +1,254 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* _antic.h */
4
+ /* */
5
+ /* Internal include file, do not use directly */
6
+ /* */
7
+ /* */
8
+ /* "ANTIC, Alphanumeric Television Interface Controller, is responsible for */
9
+ /* the generation of playfield graphics which is delivered as a datastream */
10
+ /* to the related CTIA/GTIA chip. The CTIA/GTIA provides the coloring of the */
11
+ /* playfield graphics, and is responsible for adding overlaid sprite */
12
+ /* (referred to as "Player/Missile graphics" by Atari). Atari advertised it */
13
+ /* as a true microprocessor, in that it has an instruction set to run */
14
+ /* programs (called display lists) to process data. ANTIC has no capacity */
15
+ /* for writing back computed values to memory, it merely reads data from */
16
+ /* memory and processes it for output to the screen, therefore it is not */
17
+ /* Turing complete." - Wikipedia article on "ANTIC" (with edits) */
18
+ /* */
19
+ /* (C) 2000 Freddy Offenga <taf_offenga@yahoo.com> */
20
+ /* 24-Jan-2011: Christian Krueger: Added defines for Antic instruction set */
21
+ /* 2019-01-16: Bill Kendrick <nbs@sonic.net>: More defines for registers */
22
+ /* */
23
+ /* */
24
+ /* This software is provided 'as-is', without any expressed or implied */
25
+ /* warranty. In no event will the authors be held liable for any damages */
26
+ /* arising from the use of this software. */
27
+ /* */
28
+ /* Permission is granted to anyone to use this software for any purpose, */
29
+ /* including commercial applications, and to alter it and redistribute it */
30
+ /* freely, subject to the following restrictions: */
31
+ /* */
32
+ /* 1. The origin of this software must not be misrepresented; you must not */
33
+ /* claim that you wrote the original software. If you use this software */
34
+ /* in a product, an acknowledgment in the product documentation would be */
35
+ /* appreciated but is not required. */
36
+ /* 2. Altered source versions must be plainly marked as such, and must not */
37
+ /* be misrepresented as being the original software. */
38
+ /* 3. This notice may not be removed or altered from any source */
39
+ /* distribution. */
40
+ /* */
41
+ /*****************************************************************************/
42
+
43
+
44
+ #ifndef __ANTIC_H
45
+ #define __ANTIC_H
46
+
47
+ /*****************************************************************************/
48
+ /* Define a structure with the ANTIC coprocessor's register offsets */
49
+ /*****************************************************************************/
50
+
51
+ struct __antic {
52
+ unsigned char dmactl; /* (W) direct memory access control */
53
+ unsigned char chactl; /* (W) character mode control */
54
+ unsigned char dlistl; /* display list pointer low-byte */
55
+ unsigned char dlisth; /* display list pointer high-byte */
56
+ unsigned char hscrol; /* (W) horizontal scroll enable */
57
+ unsigned char vscrol; /* (W) vertical scroll enable */
58
+ unsigned char unuse0; /* unused */
59
+ unsigned char pmbase; /* (W) msb of p/m base address (for when DMACTL has player and/or missile DMA enabled) */
60
+ unsigned char unuse1; /* unused */
61
+ unsigned char chbase; /* (W) msb of character set base address */
62
+ unsigned char wsync; /* (W) wait for horizontal synchronization */
63
+ unsigned char vcount; /* (R) vertical line counter */
64
+ unsigned char penh; /* (R) light pen horizontal position */
65
+ unsigned char penv; /* (R) light pen vertical position */
66
+ unsigned char nmien; /* (W) non-maskable interrupt enable */
67
+ union {
68
+ /* (W) ("NMIRES") nmi reset -- clears the interrupt request register;
69
+ ** resets all of the NMI status together
70
+ */
71
+ unsigned char nmires;
72
+
73
+ /* (R) ("NMIST") nmi status -- holds cause for the NMI interrupt */
74
+ unsigned char nmist;
75
+ };
76
+ };
77
+
78
+
79
+ /*****************************************************************************/
80
+ /* DMACTL register options */
81
+ /*****************************************************************************/
82
+
83
+ /* Initialized to 0x22: DMA fetch, normal playfield, no PMG DMA, double-line PMGs */
84
+
85
+ /* Playfield modes: */
86
+ #define DMACTL_PLAYFIELD_NONE 0x00
87
+ #define DMACTL_PLAYFIELD_NARROW 0x01 /* e.g., 32 bytes per scanline with thick borders */
88
+ #define DMACTL_PLAYFIELD_NORMAL 0x02 /* e.g., 40 bytes per scanline with normal borders */
89
+ #define DMACTL_PLAYFIELD_WIDE 0x03 /* e.g., 48 bytes per scanline with no borders (overscan) */
90
+
91
+ /* Other options: */
92
+
93
+ /* If not set, GTIA's GRAFP0 thru GRAFP3, and/or GRAFM registers are used for
94
+ ** player & missile shapes, respectively. (Modify the registers during the horizontal blank
95
+ ** (Display List Interrupt), a la "racing the beam" on an Atari VCS/2600, )
96
+ ** if set, ANTIC's PMBASE will be used to fetch shapes from memory via DMA.
97
+ */
98
+ #define DMACTL_DMA_MISSILES 0x04
99
+ #define DMACTL_DMA_PLAYERS 0x08
100
+
101
+ /* Unless set, PMGs (as fetched via DMA) will be double-scanline resolution */
102
+ #define DMACTL_PMG_SINGLELINE 0x10
103
+
104
+ /* Unless set, ANTIC operation is disabled, since it cannot fetch
105
+ ** Display List instructions
106
+ */
107
+ #define DMACTL_DMA_FETCH 0x20
108
+
109
+
110
+ /*****************************************************************************/
111
+ /* CHACTL register options */
112
+ /*****************************************************************************/
113
+
114
+ /* Initialized to 2 (CHACTL_CHAR_NORMAL | CHACTL_INV_PRESENT) */
115
+
116
+ /* Inverted (upside-down) characters */
117
+ #define CHACTL_CHAR_NORMAL 0x00
118
+ #define CHACTL_CHAR_INVERTED 0x04
119
+
120
+ /* Inverse (reverse-video) characters */
121
+ #define CHACTL_INV_TRANS 0x00 /* chars with high-bit shown */
122
+ #define CHACTL_INV_OPAQUE 0x01 /* chars with high-bit appear as space */
123
+ #define CHACTL_INV_PRESENT 0x02 /* chars with high-bit are reverse-video */
124
+
125
+
126
+ /*****************************************************************************/
127
+ /* Values for NMIEN (enabling interrupts) & NMIST (cause for the interrupt) */
128
+ /*****************************************************************************/
129
+
130
+ /* Display List Interrupts
131
+ ** Called on a modeline when "DL_DLI" bit is set the ANTIC instruction,
132
+ ** and jumps through VDSLST vector.
133
+ */
134
+ #define NMIEN_DLI 0x80
135
+
136
+ /* Vertical Blank Interrupt
137
+ ** Called during every vertical blank; see SYSVBV, VVBLKI, CRITIC, and VVBLKD,
138
+ ** as well as the SETVBV routine.
139
+ */
140
+ #define NMIEN_VBI 0x40
141
+
142
+ /* [Reset] key pressed */
143
+ #define NMIEN_RESET 0x20
144
+
145
+
146
+ /*****************************************************************************/
147
+ /* ANTIC instruction set */
148
+ /*****************************************************************************/
149
+
150
+ /* Absolute instructions (non mode lines) */
151
+ #define DL_JMP ((unsigned char) 1)
152
+ #define DL_JVB ((unsigned char) 65)
153
+
154
+ #define DL_BLK1 ((unsigned char) 0) /* 1 blank scanline */
155
+ #define DL_BLK2 ((unsigned char) 16) /* 2 blank scanlines */
156
+ #define DL_BLK3 ((unsigned char) 32) /* ...etc. */
157
+ #define DL_BLK4 ((unsigned char) 48)
158
+ #define DL_BLK5 ((unsigned char) 64)
159
+ #define DL_BLK6 ((unsigned char) 80)
160
+ #define DL_BLK7 ((unsigned char) 96)
161
+ #define DL_BLK8 ((unsigned char) 112)
162
+
163
+
164
+ /* Absolute instructions (mode lines) */
165
+
166
+ /* Note: Actual width varies (e.g., 40 vs 32 vs 48) depending on
167
+ ** normal vs narrow vs wide (overscan) playfield setting; see DMACTL
168
+ */
169
+
170
+ /* Character modes (text, tile graphics, etc.) */
171
+
172
+ /* monochrome, 40 character & 8 scanlines per mode line (aka Atari BASIC GRAPHICS 0 via OS's CIO routines) */
173
+ #define DL_CHR40x8x1 ((unsigned char) 2)
174
+
175
+ /* monochrome, 40 character & 10 scanlines per mode line (like GR. 0, with descenders) */
176
+ #define DL_CHR40x10x1 ((unsigned char) 3)
177
+
178
+ /* colour, 40 character & 8 scanlines per mode line (GR. 12) */
179
+ #define DL_CHR40x8x4 ((unsigned char) 4)
180
+
181
+ /* colour, 40 character & 16 scanlines per mode line (GR. 13) */
182
+ #define DL_CHR40x16x4 ((unsigned char) 5)
183
+
184
+ /* colour (duochrome per character), 20 character & 8 scanlines per mode line (GR. 1) */
185
+ #define DL_CHR20x8x2 ((unsigned char) 6)
186
+
187
+ /* colour (duochrome per character), 20 character & 16 scanlines per mode line (GR. 2) */
188
+ #define DL_CHR20x16x2 ((unsigned char) 7)
189
+
190
+
191
+ /* Bitmap modes */
192
+
193
+ /* colour, 40 pixel & 8 scanlines per mode line (GR. 3) */
194
+ #define DL_MAP40x8x4 ((unsigned char) 8)
195
+
196
+ /* 'duochrome', 80 pixel & 4 scanlines per mode line (GR.4) */
197
+ #define DL_MAP80x4x2 ((unsigned char) 9)
198
+
199
+ /* colour, 80 pixel & 4 scanlines per mode line (GR.5) */
200
+ #define DL_MAP80x4x4 ((unsigned char) 10)
201
+
202
+ /* 'duochrome', 160 pixel & 2 scanlines per mode line (GR.6) */
203
+ #define DL_MAP160x2x2 ((unsigned char) 11)
204
+
205
+ /* 'duochrome', 160 pixel & 1 scanline per mode line (GR.14) */
206
+ #define DL_MAP160x1x2 ((unsigned char) 12)
207
+
208
+ /* 4 colours, 160 pixel & 2 scanlines per mode line (GR.7) */
209
+ #define DL_MAP160x2x4 ((unsigned char) 13)
210
+
211
+ /* 4 colours, 160 pixel & 1 scanline per mode line (GR.15) */
212
+ #define DL_MAP160x1x4 ((unsigned char) 14)
213
+
214
+ /* monochrome, 320 pixel & 1 scanline per mode line (GR.8) */
215
+ #define DL_MAP320x1x1 ((unsigned char) 15)
216
+
217
+
218
+ /* Equivalents, for people familiar with Atari 8-bit OS */
219
+
220
+ #define DL_GRAPHICS0 DL_CHR40x8x1
221
+ #define DL_GRAPHICS1 DL_CHR20x8x2
222
+ #define DL_GRAPHICS2 DL_CHR20x16x2
223
+ #define DL_GRAPHICS3 DL_MAP40x8x4
224
+ #define DL_GRAPHICS4 DL_MAP80x4x2
225
+ #define DL_GRAPHICS5 DL_MAP80x4x4
226
+ #define DL_GRAPHICS6 DL_MAP160x2x2
227
+ #define DL_GRAPHICS7 DL_MAP160x2x4
228
+ #define DL_GRAPHICS8 DL_MAP320x1x1
229
+ #define DL_GRAPHICS9 DL_MAP320x1x1 /* N.B.: GRAPHICS 9, 10, and 11 also involve GTIA's PRIOR register */
230
+ #define DL_GRAPHICS10 DL_MAP320x1x1
231
+ #define DL_GRAPHICS11 DL_MAP320x1x1
232
+ #define DL_GRAPHICS12 DL_CHR40x8x4 /* N.B.: Atari 400/800 OS didn't have GRAPHICS 12 or 13 */
233
+ #define DL_GRAPHICS13 DL_CHR40x16x4
234
+ #define DL_GRAPHICS14 DL_MAP160x1x2
235
+ #define DL_GRAPHICS15 DL_MAP160x1x4
236
+
237
+ /* Atari 400/800 OS didn't have GRAPHICS 14 or 15, so they were known by "6+" and "7+" */
238
+ #define DL_GRAPHICS6PLUS DL_GRAPHICS14
239
+ #define DL_GRAPHICS7PLUS DL_GRAPHICS15
240
+
241
+ /* Neither Atari 400/800 nor XL OS supported 10-scanline (descenders) text mode via CIO */
242
+ #define DL_GRAPHICS0_DESCENDERS DL_CHR40x10x1
243
+
244
+ /* Modifiers to mode lines */
245
+ #define DL_HSCROL(x) ((unsigned char)((x) | 16)) /* enable smooth horizontal scrolling on this line; see HSCROL */
246
+ #define DL_VSCROL(x) ((unsigned char)((x) | 32)) /* enable smooth vertical scrolling on this line; see VSCROL */
247
+ #define DL_LMS(x) ((unsigned char)((x) | 64)) /* Load Memory Scan (next two bytes must be the LSB/MSB of the data to load) */
248
+
249
+ /* General modifier */
250
+ #define DL_DLI(x) ((unsigned char)((x) | 128)) /* enable Display List Interrupt on this mode line */
251
+
252
+
253
+ /* End of _antic.h */
254
+ #endif /* #ifndef __ANTIC_H */
@@ -0,0 +1,94 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* _atari5200os.h */
4
+ /* */
5
+ /* Internal include file, do not use directly */
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 __ATARI5200OS_H
28
+ #define __ATARI5200OS_H
29
+
30
+
31
+ struct __os {
32
+
33
+ /*Page zero*/
34
+ unsigned char pokmsk; // = $00 System mask for POKEY IRQ enable
35
+ unsigned char rtclok[2]; // = $01,$02 Real time clock
36
+ unsigned char critic; // = $03 Critical section flag
37
+ unsigned char atract; // = $04 Attract mode counter
38
+
39
+ union {
40
+ struct {
41
+ unsigned char sdlstl; // = $05 Save display list LO
42
+ unsigned char sdlsth; // = $06 Save display list HI
43
+ };
44
+ void* sdlst; // = $05,$06 Display list shadow
45
+ };
46
+
47
+ unsigned char sdmctl; // = $07 DMACTL shadow
48
+ unsigned char pcolr0; // = $08 PM color 0
49
+ unsigned char pcolr1; // = $09 PM color 1
50
+ unsigned char pcolr2; // = $0A PM color 2
51
+ unsigned char pcolr3; // = $0B PM color 3
52
+ unsigned char color0; // = $0C PF color 0
53
+ unsigned char color1; // = $0D PF color 1
54
+ unsigned char color2; // = $0E PF color 2
55
+ unsigned char color3; // = $0F PF color 3
56
+ unsigned char color4; // = $10 PF color 4
57
+ unsigned char paddl0; // = $11 POT0 Shadow
58
+ unsigned char paddl1; // = $12 POT1 Shadow
59
+ unsigned char paddl2; // = $13 POT2 Shadow
60
+ unsigned char paddl3; // = $14 POT3 Shadow
61
+ unsigned char paddl4; // = $15 POT4 Shadow
62
+ unsigned char paddl5; // = $16 POT5 Shadow
63
+ unsigned char paddl6; // = $17 POT6 Shadow
64
+ unsigned char paddl7; // = $18 POT7 Shadow
65
+
66
+ /*cc65 runtime zero page variables*/
67
+ unsigned char rowcrs_5200; // = $19 Cursor row (conio)
68
+ unsigned char colcrs_5200; // = $1A Cursor column (conio)
69
+ unsigned char* savmsc; // = $1B/$1C Pointer to screen memory (conio)
70
+
71
+ unsigned char _filler_1[0xE3]; // = $1D-$FF Filler
72
+
73
+ /*Stack*/
74
+ unsigned char stack[0x100]; // = $100-$1FF Stack
75
+
76
+ /*Page 2 OS variables*/
77
+ void (*vinter)(void); // = $200 Immediate IRQ vector
78
+ void (*vvblki)(void); // = $202 Immediate VBI vector
79
+ void (*vvblkd)(void); // = $204 Deferred VBI vector
80
+ void (*vdslst)(void); // = $206 DLI vector
81
+ void (*vkeybd)(void); // = $208 Keyboard IRQ vector
82
+ void (*vkeypd)(void); // = $20A Keyboard continuation vector
83
+ void (*vbrkky)(void); // = $20C Break key interrupt vector
84
+ void (*vbreak)(void); // = $20E BRK instruction interrupt vector
85
+ void (*vserin)(void); // = $210 Serial input ready vector
86
+ void (*vseror)(void); // = $212 Serial output data needed vector
87
+ void (*vseroc)(void); // = $214 Serial output completed vector
88
+ void (*vtimr1)(void); // = $216 POKEY timer 1 IRQ vector
89
+ void (*vtimr2)(void); // = $218 POKEY timer 2 IRQ vector
90
+ void (*vtimr4)(void); // = $21A POKEY timer 4 IRQ vector
91
+
92
+ };
93
+
94
+ #endif