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,339 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* accelerator.h */
4
+ /* */
5
+ /* Accelerator specific definitions */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 2018 Marco van den Heuvel */
10
+ /* EMail: blackystardust68@yahoo.com */
11
+ /* */
12
+ /* */
13
+ /* This software is provided 'as-is', without any expressed or implied */
14
+ /* warranty. In no event will the authors be held liable for any damages */
15
+ /* arising from the use of this software. */
16
+ /* */
17
+ /* Permission is granted to anyone to use this software for any purpose, */
18
+ /* including commercial applications, and to alter it and redistribute it */
19
+ /* freely, subject to the following restrictions: */
20
+ /* */
21
+ /* 1. The origin of this software must not be misrepresented; you must not */
22
+ /* claim that you wrote the original software. If you use this software */
23
+ /* in a product, an acknowledgment in the product documentation would be */
24
+ /* appreciated but is not required. */
25
+ /* 2. Altered source versions must be plainly marked as such, and must not */
26
+ /* be misrepresented as being the original software. */
27
+ /* 3. This notice may not be removed or altered from any source */
28
+ /* distribution. */
29
+ /* */
30
+ /*****************************************************************************/
31
+
32
+
33
+
34
+ #ifndef _ACCELERATOR_H
35
+ #define _ACCELERATOR_H
36
+
37
+ /*****************/
38
+ /* Speed defines */
39
+ /*****************/
40
+
41
+ #define SPEED_SLOW 0x00
42
+ #define SPEED_FAST 0xFF
43
+
44
+ #define SPEED_1X SPEED_SLOW
45
+ #define SPEED_2X 2 - 1 /* C64 Chameleon, C64DTV, C128, PET 65816, Apple2 Fast Chip, Apple2 TransWarp, Apple2 Zip Chip */
46
+ #define SPEED_3X 3 - 1 /* C64 Chameleon, C65, PET 65816, Apple2 Booster, Apple 2 Fast Chip, Apple2 Titan, Apple2 TransWarp, Apple2 Zip Chip */
47
+ #define SPEED_4X 4 - 1 /* C64 Chameleon, C64 TurboMaster, C64 TurboProcess, PET 65816, Apple2 Fast Chip, Apple2 Zip Chip */
48
+ #define SPEED_5X 5 - 1 /* C64 Chameleon, PET 65816, Apple2 Fast Chip */
49
+ #define SPEED_6X 6 - 1 /* C64 Chameleon, PET 65816, Apple2 Fast Chip */
50
+ #define SPEED_7X 7 - 1 /* PET 65816, Apple2 Fast Chip */
51
+ #define SPEED_8X 8 - 1 /* C64 Flash8, PET 65816, Apple 2 Fast Chip */
52
+ #define SPEED_10X 10 - 1 /* PET 65816, Apple2 Fast Chip */
53
+ #define SPEED_12X 12 - 1 /* Apple2 Fast Chip */
54
+ #define SPEED_16X 16 - 1 /* Apple2 Fast Chip */
55
+ #define SPEED_20X 20 - 1 /* C64/C128 SuperCPU */
56
+
57
+ /***********************************/
58
+ /* Accelerator function prototypes */
59
+ /***********************************/
60
+
61
+ /* C64/C128 SuperCPU cartridge */
62
+
63
+ unsigned char __fastcall__ set_scpu_speed (unsigned char speed);
64
+
65
+ /* Set the speed of the SuperCPU cartridge, using SPEED_SLOW will switch to
66
+ * 1 Mhz mode, SPEED_20X or SPEED_FAST will switch to 20 Mhz mode.
67
+ *
68
+ * Note that any value lower than SPEED_20X will switch to 1 Mhz mode, and
69
+ * any value higher or equal to SPEED_20X will switch to 20 Mhz mode.
70
+ *
71
+ * This function will return the actual speed the CPU is at after trying
72
+ * to set the requested speed, if this is not the speed that was requested
73
+ * then possibly the hardware speed switch prevented any software speed
74
+ * switching.
75
+ *
76
+ * This function does not check for the presence of the SuperCPU cartridge,
77
+ * make sure you use 'detect_scpu();' before using.
78
+ */
79
+
80
+ unsigned char get_scpu_speed (void);
81
+
82
+ /* Get the speed of the SuperCPU cartridge.
83
+ *
84
+ * Possible return values:
85
+ * SPEED_1X : 1 Mhz mode
86
+ * SPEED_20X : 20 Mhz mode
87
+ *
88
+ * This function does not check for the presence of the SuperCPU cartridge,
89
+ * make sure you use 'detect_scpu();' before using.
90
+ */
91
+
92
+ unsigned char detect_scpu (void);
93
+
94
+ /* Check for the presence of the SuperCPU cartridge.
95
+ *
96
+ * Possible return values:
97
+ * 0x00 : SuperCPU cartridge not present
98
+ * 0x01 : SuperCPU cartridge present
99
+ */
100
+
101
+
102
+ /* C64DTV */
103
+
104
+ unsigned char __fastcall__ set_c64dtv_speed (unsigned char speed);
105
+
106
+ /* Set the speed of the C64DTV, using SPEED_SLOW will switch to
107
+ * slow mode, SPEED_2X or SPEED_FAST will switch to fast mode.
108
+ *
109
+ * Note that any value higher or equal to SPEED_2X will switch to fast mode.
110
+ *
111
+ * This function will return the actual speed the CPU is at after trying
112
+ * to set the requested speed, to my knowledge the switch should not fail.
113
+ *
114
+ * This function does not check for the presence of the C64DTV,
115
+ * make sure you use 'detect_c64dtv();' before using.
116
+ */
117
+
118
+ unsigned char get_c64dtv_speed (void);
119
+
120
+ /* Get the speed of the C64DTV.
121
+ *
122
+ * Possible return values:
123
+ * SPEED_1X : slow mode
124
+ * SPEED_2X : fast mode
125
+ *
126
+ * This function does not check for the presence of the C64DTV,
127
+ * make sure you use 'detect_c64dtv();' before using.
128
+ */
129
+
130
+ unsigned char detect_c64dtv (void);
131
+
132
+ /* Check for the presence of the C64DTV.
133
+ *
134
+ * Possible return values:
135
+ * 0x00 : C64DTV not present
136
+ * 0x01 : C64DTV present
137
+ */
138
+
139
+
140
+ /* C128 8502 CPU */
141
+
142
+ unsigned char __fastcall__ set_c128_speed (unsigned char speed);
143
+
144
+ /* Set the speed of the C128 8502 CPU, using SPEED_SLOW will switch to
145
+ * 1 Mhz (slow) mode, SPEED_2X or SPEED_FAST will switch to 2Mhz (fast) mode.
146
+ *
147
+ * Note that any value higher or equal to SPEED_2X will switch to fast mode.
148
+ *
149
+ * This function will return the actual speed the CPU is at after trying
150
+ * to set the requested speed, to my knowledge the switching should not fail.
151
+ *
152
+ * This function does not check if the C128 CPU is the current CPU, make sure
153
+ * you use 'detect_c128();' before using.
154
+ */
155
+
156
+ unsigned char get_c128_speed (void);
157
+
158
+ /* Get the speed of the C128 8502 CPU.
159
+ *
160
+ * Possible return values:
161
+ * SPEED_SLOW : Slow mode
162
+ * SPEED_2X : Fast mode
163
+ *
164
+ * This function does not check if the C128 CPU is the current CPU, make sure
165
+ * you use 'detect_c128();' before using.
166
+ */
167
+
168
+ unsigned char detect_c128 (void);
169
+
170
+ /* Check if the C128 CPU is the current CPU.
171
+ *
172
+ * Possible return values:
173
+ * 0x00 : C128 CPU is not the current CPU
174
+ * 0x01 : C128 CPU is the current CPU
175
+ */
176
+
177
+
178
+ /* C64 Chameleon cartridge */
179
+
180
+ unsigned char __fastcall__ set_chameleon_speed (unsigned char speed);
181
+
182
+ /* Set the speed of the C64 Chameleon cartridge, the following inputs
183
+ * are accepted:
184
+ * SPEED_SLOW : 1 Mhz mode
185
+ * SPEED_1X : 1 Mhz mode
186
+ * SPEED_2X : 2 Mhz mode
187
+ * SPEED_3X : 3 Mhz mode
188
+ * SPEED_4X : 4 Mhz mode
189
+ * SPEED_5X : 5 Mhz mode
190
+ * SPEED_6X : 6 Mhz mode
191
+ * SPEED_FAST : Maximum speed mode
192
+ *
193
+ * Note that any value higher or equal to SPEED_7X will switch to maximum
194
+ * speed mode.
195
+ *
196
+ * This function will return the actual speed the CPU is at after trying
197
+ * to set the requested speed, to my knowledge the switching should not fail.
198
+ *
199
+ * This function does not check for the presence of the C64 Chameleon cartridge,
200
+ * make sure you use 'detect_chameleon();' before using.
201
+ */
202
+
203
+ unsigned char get_chameleon_speed (void);
204
+
205
+ ;/* Get the speed of the C64 Chameleon cartridge.
206
+ ; *
207
+ ; * Possible return values:
208
+ ; * SPEED_SLOW : Slow mode
209
+ ; * SPEED_2X : 2Mhz mode
210
+ ; * SPEED_3X : 3Mhz mode
211
+ ; * SPEED_4X : 4Mhz mode
212
+ ; * SPEED_5X : 5Mhz mode
213
+ ; * SPEED_6X : 6Mhz mode
214
+ ; * SPEED_FAST : Maximum speed mode
215
+ ; *
216
+ ; * This function does not check for the presence of the C64 Chameleon cartridge,
217
+ ; * make sure you use 'detect_chameleon();' before using.
218
+ ; */
219
+
220
+ unsigned char detect_chameleon (void);
221
+
222
+ /* Check for the presence of the C64 Chameleon cartridge.
223
+ *
224
+ * Possible return values:
225
+ * 0x00 : C64 Chameleon cartridge not present
226
+ * 0x01 : C64 Chameleon cartridge present
227
+ */
228
+
229
+
230
+ /* C65/C64DX in C64 mode */
231
+
232
+ unsigned char __fastcall__ set_c65_speed (unsigned char speed);
233
+
234
+ /* Set the speed of the C65/C64DX CPU, using SPEED_SLOW will switch to
235
+ * 1 Mhz mode, SPEED_3X or SPEED_FAST will switch to 3.5 Mhz (fast) mode.
236
+ *
237
+ * Note that any value higher or equal to SPEED_3X will switch to fast mode.
238
+ *
239
+ * This function will return the actual speed the CPU is at after trying
240
+ * to set the requested speed, to my knowledge the switching should not fail.
241
+ *
242
+ * This function does not check for the presence of a C65/C64DX in C64 mode,
243
+ * make sure you use 'detect_c65();' before using.
244
+ */
245
+
246
+ unsigned char get_c65_speed (void);
247
+
248
+ /* Get the speed of the C65/C64DX CPU.
249
+ *
250
+ * Possible return values:
251
+ * SPEED_SLOW : Slow mode
252
+ * SPEED_3X : Fast mode
253
+ *
254
+ * This function does not check for the presence of a C65/C64DX in C64 mode,
255
+ * make sure you use 'detect_c65();' before using.
256
+ */
257
+
258
+ unsigned char detect_c65 (void);
259
+
260
+ /* Check for the presence of a C65/C64DX in C64 mode.
261
+ *
262
+ * Possible return values:
263
+ * 0x00 : C65/C64DX in C64 mode not present
264
+ * 0x01 : C65/C64DX in C64 mode present
265
+ */
266
+
267
+
268
+ /* C64 Turbo Master cartridge */
269
+
270
+ unsigned char __fastcall__ set_turbomaster_speed (unsigned char speed);
271
+
272
+ /* Set the speed of the Turbo Master cartridge, using SPEED_SLOW will switch to
273
+ * 1 Mhz mode, SPEED_4X or SPEED_FAST will switch to 4 Mhz mode.
274
+ *
275
+ * Note that any value higher or equal to SPEED_4X will switch to 4 Mhz mode,
276
+ * any value lower than SPEED_4X will switch to 1 Mhz mode.
277
+ *
278
+ * This function will return the actual speed the CPU is at after trying
279
+ * to set the requested speed, if the speed is different it might indicate
280
+ * that the hardware switch has locked the speed.
281
+ *
282
+ * This function does not check for the presence of a Turbo Master cartridge,
283
+ * make sure you use 'detect_turbomaster();' before using.
284
+ */
285
+
286
+ unsigned char get_turbomaster_speed (void);
287
+
288
+ /* Get the speed of the Turbo Master cartridge.
289
+ *
290
+ * Possible return values:
291
+ * SPEED_SLOW : 1 Mhz mode
292
+ * SPEED_4X : 4 Mhz mode
293
+ *
294
+ * This function does not check for the presence of a Turbo Master cartridge,
295
+ * make sure you use 'detect_turbomaster();' before using.
296
+ */
297
+
298
+ unsigned char detect_turbomaster (void);
299
+
300
+ /* Check for the presence of a C64 Turbo Master cartridge.
301
+ *
302
+ * Possible return values:
303
+ * 0x00 : C64 Turbo Master cartridge not present
304
+ * 0x01 : C64 Turbo Master cartridge present
305
+ */
306
+
307
+ unsigned char __fastcall__ set_iigs_speed (unsigned char speed);
308
+
309
+ /* Set the speed of the Apple IIgs CPU.
310
+ *
311
+ * Possible values:
312
+ * SPEED_SLOW : 1 Mhz mode
313
+ * SPEED_FAST : Fast mode (2.8MHz or more, depending on the presence of
314
+ * an accelerator)
315
+ *
316
+ * Any other value will be interpreted as SPEED_FAST.
317
+ */
318
+
319
+ unsigned char get_iigs_speed (void);
320
+
321
+ /* Get the speed of the Apple IIgs CPU.
322
+ *
323
+ * Possible return values:
324
+ * SPEED_SLOW : 1 Mhz mode
325
+ * SPEED_FAST : Fast mode (2.8MHz or more, depending on the presence of
326
+ * an accelerator)
327
+ */
328
+
329
+ unsigned char detect_iigs (void);
330
+
331
+ /* Check whether we are running on an Apple IIgs.
332
+ *
333
+ * Possible return values:
334
+ * 0x00 : No
335
+ * 0x01 : Yes
336
+ */
337
+
338
+ /* End of accelerator.h */
339
+ #endif
package/include/agat.h ADDED
@@ -0,0 +1,76 @@
1
+ #ifndef _AGAT_H
2
+ #define _AGAT_H
3
+
4
+ /* Check for errors */
5
+ #if !defined(__AGAT__)
6
+ # error This module may only be used when compiling for the Agat!
7
+ #endif
8
+
9
+
10
+ /*****************************************************************************/
11
+ /* Data */
12
+ /*****************************************************************************/
13
+
14
+
15
+
16
+ /* Color defines */
17
+ #define COLOR_BLACK 0x00
18
+ #define COLOR_RED 0x01
19
+ #define COLOR_GREEN 0x02
20
+ #define COLOR_YELLOW 0x03
21
+ #define COLOR_BLUE 0x04
22
+ #define COLOR_MAGENTA 0x05
23
+ #define COLOR_CYAN 0x06
24
+ #define COLOR_WHITE 0x07
25
+
26
+ /* Characters codes */
27
+ #define CH_CTRL_C 0x03
28
+ #define CH_ENTER 0x0D
29
+ #define CH_ESC 0x1B
30
+ #define CH_CURS_LEFT 0x08
31
+ #define CH_CURS_RIGHT 0x15
32
+ #define CH_CURS_UP 0x19
33
+ #define CH_CURS_DOWN 0x1A
34
+ #define CH_ESC 0x1B
35
+ #define CH_HLINE 0x1B
36
+ #define CH_VLINE 0x5C
37
+ #define CH_ULCORNER 0x10
38
+ #define CH_URCORNER 0x12
39
+ #define CH_LLCORNER 0x1D
40
+ #define CH_LRCORNER 0x1F
41
+
42
+ /* Masks for joy_read */
43
+ #define JOY_UP_MASK 0x10
44
+ #define JOY_DOWN_MASK 0x20
45
+ #define JOY_LEFT_MASK 0x04
46
+ #define JOY_RIGHT_MASK 0x08
47
+ #define JOY_BTN_1_MASK 0x40
48
+ #define JOY_BTN_2_MASK 0x80
49
+
50
+ /* Return codes for get_ostype */
51
+ #define AGAT_UNKNOWN 0x00
52
+ #define AGAT_7 0x10 /* Agat 7 */
53
+ #define AGAT_9 0x20 /* Agat 9 */
54
+
55
+
56
+ /*****************************************************************************/
57
+ /* Code */
58
+ /*****************************************************************************/
59
+
60
+ unsigned char get_ostype (void);
61
+ /* Get the machine type. Returns one of the AGAT_xxx codes. */
62
+
63
+ void rebootafterexit (void);
64
+ /* Reboot machine after program termination has completed. */
65
+
66
+ /* The following #defines will cause the matching functions calls in conio.h
67
+ ** to be overlaid by macros with the same names, saving the function call
68
+ ** overhead.
69
+ */
70
+ #define _bgcolor(color) COLOR_BLACK
71
+ #define _bordercolor(color) COLOR_BLACK
72
+
73
+ /* End of agat.h */
74
+
75
+
76
+ #endif