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
|
@@ -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
|