fcdev-cc65 0.0.0-stage → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/asminc/_file.inc +27 -0
- package/asminc/_heap.inc +35 -0
- package/asminc/accelerator.inc +80 -0
- package/asminc/agat.inc +39 -0
- package/asminc/apple2.inc +95 -0
- package/asminc/apple2.mac +54 -0
- package/asminc/ascii_charmap.inc +287 -0
- package/asminc/atari.inc +1169 -0
- package/asminc/atari.mac +65 -0
- package/asminc/atari2600.inc +7 -0
- package/asminc/atari2600_riot.inc +20 -0
- package/asminc/atari2600_tia.inc +69 -0
- package/asminc/atari5200.inc +133 -0
- package/asminc/atari7800.inc +14 -0
- package/asminc/atari7800_maria.inc +39 -0
- package/asminc/atari7800_riot.inc +20 -0
- package/asminc/atari7800_tia.inc +69 -0
- package/asminc/atari_antic.inc +95 -0
- package/asminc/atari_atascii_charmap.inc +301 -0
- package/asminc/atari_gtia.inc +119 -0
- package/asminc/atari_pokey.inc +43 -0
- package/asminc/atari_screen_charmap.inc +303 -0
- package/asminc/atmos.inc +117 -0
- package/asminc/c128.inc +224 -0
- package/asminc/c16.inc +9 -0
- package/asminc/c64.inc +219 -0
- package/asminc/c65.inc +239 -0
- package/asminc/cbm.mac +56 -0
- package/asminc/cbm510.inc +200 -0
- package/asminc/cbm610.inc +121 -0
- package/asminc/cbm_filetype.inc +34 -0
- package/asminc/cbm_kernal.inc +248 -0
- package/asminc/cbm_petscii_charmap.inc +291 -0
- package/asminc/cbm_screen_charmap.inc +305 -0
- package/asminc/cpu.mac +4 -0
- package/asminc/creativision.inc +66 -0
- package/asminc/ctype.inc +31 -0
- package/asminc/ctype_common.inc +91 -0
- package/asminc/ctypetable.inc +48 -0
- package/asminc/cx16.inc +574 -0
- package/asminc/em-error.inc +49 -0
- package/asminc/em-kernel.inc +106 -0
- package/asminc/errno.inc +37 -0
- package/asminc/fcntl.inc +21 -0
- package/asminc/gamate.inc +64 -0
- package/asminc/generic.mac +53 -0
- package/asminc/get_tv.inc +22 -0
- package/asminc/joy-error.inc +44 -0
- package/asminc/joy-kernel.inc +83 -0
- package/asminc/kim1.inc +31 -0
- package/asminc/longbranch.mac +88 -0
- package/asminc/lynx.inc +460 -0
- package/asminc/mega65.inc +239 -0
- package/asminc/modload.inc +78 -0
- package/asminc/module.mac +13 -0
- package/asminc/mouse-kernel.inc +184 -0
- package/asminc/nes.inc +93 -0
- package/asminc/o65.inc +150 -0
- package/asminc/opcodes.inc +514 -0
- package/asminc/pce.inc +93 -0
- package/asminc/pet.inc +100 -0
- package/asminc/plus4.inc +86 -0
- package/asminc/rp6502.inc +98 -0
- package/asminc/ser-error.inc +55 -0
- package/asminc/ser-kernel.inc +162 -0
- package/asminc/signal.inc +57 -0
- package/asminc/sim65.inc +75 -0
- package/asminc/smc.inc +267 -0
- package/asminc/stat.inc +64 -0
- package/asminc/statvfs.inc +46 -0
- package/asminc/stdio.inc +74 -0
- package/asminc/supervision.inc +75 -0
- package/asminc/sym1.inc +186 -0
- package/asminc/telestrat.inc +546 -0
- package/asminc/tgi-error.inc +52 -0
- package/asminc/tgi-kernel.inc +233 -0
- package/asminc/tgi-vectorfont.inc +70 -0
- package/asminc/time.inc +74 -0
- package/asminc/utsname.inc +46 -0
- package/asminc/vic20.inc +119 -0
- package/asminc/zeropage.inc +40 -0
- package/bin/ar65.exe +0 -0
- package/bin/ca65.exe +0 -0
- package/bin/cc65.exe +0 -0
- package/bin/da65.exe +0 -0
- package/bin/ld65.exe +0 -0
- package/cfg/module.cfg +21 -0
- package/cfg/nes.cfg +62 -0
- package/cfg/none.cfg +37 -0
- package/include/6502.h +140 -0
- package/include/_6522.h +68 -0
- package/include/_6525.h +62 -0
- package/include/_6526.h +71 -0
- package/include/_6545.h +53 -0
- package/include/_6551.h +55 -0
- package/include/_antic.h +254 -0
- package/include/_atari5200os.h +94 -0
- package/include/_atarios.h +661 -0
- package/include/_gtia.h +281 -0
- package/include/_heap.h +60 -0
- package/include/_maria.h +63 -0
- package/include/_mikey.h +264 -0
- package/include/_pbi.h +63 -0
- package/include/_pia.h +52 -0
- package/include/_pokey.h +220 -0
- package/include/_riot.h +26 -0
- package/include/_sid.h +68 -0
- package/include/_suzy.h +336 -0
- package/include/_ted.h +86 -0
- package/include/_tia.h +100 -0
- package/include/_vdc.h +53 -0
- package/include/_vic.h +67 -0
- package/include/_vic2.h +192 -0
- package/include/_vic3.h +188 -0
- package/include/accelerator.h +339 -0
- package/include/agat.h +76 -0
- package/include/apple2.h +358 -0
- package/include/apple2_filetype.h +324 -0
- package/include/apple2enh.h +67 -0
- package/include/arpa/inet.h +81 -0
- package/include/ascii_charmap.h +295 -0
- package/include/assert.h +59 -0
- package/include/atari.h +554 -0
- package/include/atari2600.h +32 -0
- package/include/atari5200.h +100 -0
- package/include/atari7800.h +67 -0
- package/include/atari_atascii_charmap.h +304 -0
- package/include/atari_screen_charmap.h +310 -0
- package/include/atmos.h +189 -0
- package/include/c128.h +175 -0
- package/include/c16.h +60 -0
- package/include/c64.h +175 -0
- package/include/c65.h +120 -0
- package/include/cbm.h +321 -0
- package/include/cbm264.h +165 -0
- package/include/cbm510.h +168 -0
- package/include/cbm610.h +153 -0
- package/include/cbm_filetype.h +108 -0
- package/include/cbm_petscii_charmap.h +297 -0
- package/include/cbm_screen_charmap.h +311 -0
- package/include/cc65.h +109 -0
- package/include/conio.h +248 -0
- package/include/creativision.h +78 -0
- package/include/ctype.h +88 -0
- package/include/cx16.h +420 -0
- package/include/dbg.h +124 -0
- package/include/device.h +72 -0
- package/include/dio.h +113 -0
- package/include/dirent.h +151 -0
- package/include/em/em-kernel.h +77 -0
- package/include/em.h +135 -0
- package/include/errno.h +135 -0
- package/include/fcntl.h +75 -0
- package/include/gamate.h +209 -0
- package/include/geos/gconst.h +69 -0
- package/include/geos/gdisk.h +79 -0
- package/include/geos/gdlgbox.h +110 -0
- package/include/geos/gfile.h +72 -0
- package/include/geos/ggraph.h +180 -0
- package/include/geos/gmemory.h +30 -0
- package/include/geos/gmenu.h +53 -0
- package/include/geos/gprocess.h +22 -0
- package/include/geos/gsprite.h +96 -0
- package/include/geos/gstruct.h +174 -0
- package/include/geos/gsym.h +340 -0
- package/include/geos/gsys.h +54 -0
- package/include/geos.h +109 -0
- package/include/inttypes.h +237 -0
- package/include/iso646.h +60 -0
- package/include/joystick/joy-kernel.h +84 -0
- package/include/joystick.h +109 -0
- package/include/kim1.h +73 -0
- package/include/limits.h +87 -0
- package/include/locale.h +83 -0
- package/include/lynx.h +144 -0
- package/include/lz4.h +43 -0
- package/include/lzsa.h +56 -0
- package/include/mega65.h +120 -0
- package/include/modload.h +103 -0
- package/include/mouse/mouse-kernel.h +67 -0
- package/include/mouse.h +220 -0
- package/include/nes.h +203 -0
- package/include/o65.h +178 -0
- package/include/osic1p.h +66 -0
- package/include/pce.h +110 -0
- package/include/peekpoke.h +58 -0
- package/include/pen.h +78 -0
- package/include/pet.h +113 -0
- package/include/plus4.h +63 -0
- package/include/rp6502.h +266 -0
- package/include/serial.h +180 -0
- package/include/setjmp.h +55 -0
- package/include/signal.h +74 -0
- package/include/sim65.h +136 -0
- package/include/stdarg.h +57 -0
- package/include/stdbool.h +53 -0
- package/include/stddef.h +66 -0
- package/include/stdint.h +144 -0
- package/include/stdio.h +166 -0
- package/include/stdlib.h +174 -0
- package/include/string.h +106 -0
- package/include/supervision.h +137 -0
- package/include/sym1.h +165 -0
- package/include/sys/stat.h +94 -0
- package/include/sys/statvfs.h +74 -0
- package/include/sys/types.h +102 -0
- package/include/sys/utsname.h +97 -0
- package/include/target.h +77 -0
- package/include/telestrat.h +129 -0
- package/include/tgi/tgi-error.h +64 -0
- package/include/tgi/tgi-kernel.h +75 -0
- package/include/tgi/tgi-vectorfont.h +90 -0
- package/include/tgi.h +286 -0
- package/include/time.h +143 -0
- package/include/unistd.h +103 -0
- package/include/vic20.h +141 -0
- package/include/zlib.h +175 -0
- package/include/zx02.h +44 -0
- package/lib/nes.lib +0 -0
- package/lib/none.lib +0 -0
- package/manifest.json +227 -0
- package/package.json +19 -4
- package/README.md +0 -3
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* statvfs.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* statvfs(3) definition */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 2023 Colin Leroy-Mira */
|
|
10
|
+
/* EMail: colin@colino.net */
|
|
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 _STATVFS_H
|
|
35
|
+
#define _STATVFS_H
|
|
36
|
+
|
|
37
|
+
#include <sys/types.h>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/*****************************************************************************/
|
|
42
|
+
/* Data */
|
|
43
|
+
/*****************************************************************************/
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
struct statvfs {
|
|
48
|
+
unsigned long f_bsize;
|
|
49
|
+
unsigned long f_frsize;
|
|
50
|
+
fsblkcnt_t f_blocks;
|
|
51
|
+
fsblkcnt_t f_bfree;
|
|
52
|
+
fsblkcnt_t f_bavail;
|
|
53
|
+
fsfilcnt_t f_files;
|
|
54
|
+
fsfilcnt_t f_ffree;
|
|
55
|
+
fsfilcnt_t f_favail;
|
|
56
|
+
unsigned long f_fsid;
|
|
57
|
+
unsigned long f_flag;
|
|
58
|
+
unsigned long f_namemax;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/*****************************************************************************/
|
|
64
|
+
/* Code */
|
|
65
|
+
/*****************************************************************************/
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
int __fastcall__ statvfs (const char* pathname, struct statvfs* buf);
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/* End of statvfs.h */
|
|
74
|
+
#endif
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* types.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Primitive system data types for cc65 */
|
|
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 _TYPES_H
|
|
37
|
+
#define _TYPES_H
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/*****************************************************************************/
|
|
42
|
+
/* Data */
|
|
43
|
+
/*****************************************************************************/
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/* off_t is also defined in unistd.h */
|
|
48
|
+
#ifndef _HAVE_off_t
|
|
49
|
+
#define _HAVE_off_t
|
|
50
|
+
typedef long int off_t;
|
|
51
|
+
#endif
|
|
52
|
+
|
|
53
|
+
#ifndef _HAVE_dev_t
|
|
54
|
+
#define _HAVE_dev_t
|
|
55
|
+
typedef unsigned long int dev_t;
|
|
56
|
+
#endif
|
|
57
|
+
|
|
58
|
+
#ifndef _HAVE_ino_t
|
|
59
|
+
#define _HAVE_ino_t
|
|
60
|
+
typedef unsigned long int ino_t;
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
#ifndef _HAVE_nlink_t
|
|
64
|
+
#define _HAVE_nlink_t
|
|
65
|
+
typedef unsigned long int nlink_t;
|
|
66
|
+
#endif
|
|
67
|
+
|
|
68
|
+
#ifndef _HAVE_uid_t
|
|
69
|
+
#define _HAVE_uid_t
|
|
70
|
+
typedef unsigned char uid_t;
|
|
71
|
+
#endif
|
|
72
|
+
|
|
73
|
+
#ifndef _HAVE_gid_t
|
|
74
|
+
#define _HAVE_gid_t
|
|
75
|
+
typedef unsigned char gid_t;
|
|
76
|
+
#endif
|
|
77
|
+
|
|
78
|
+
#ifndef _HAVE_mode_t
|
|
79
|
+
#define _HAVE_mode_t
|
|
80
|
+
typedef unsigned char mode_t;
|
|
81
|
+
#endif
|
|
82
|
+
|
|
83
|
+
#ifndef _HAVE_fsblkcnt_t
|
|
84
|
+
#define _HAVE_fsblkcnt_t
|
|
85
|
+
typedef unsigned long int fsblkcnt_t;
|
|
86
|
+
#endif
|
|
87
|
+
|
|
88
|
+
#ifndef _HAVE_fsfilcnt_t
|
|
89
|
+
#define _HAVE_fsfilcnt_t
|
|
90
|
+
typedef unsigned long int fsfilcnt_t;
|
|
91
|
+
#endif
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/*****************************************************************************/
|
|
96
|
+
/* Code */
|
|
97
|
+
/*****************************************************************************/
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/* End of types.h */
|
|
102
|
+
#endif
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* utsname.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Return system information */
|
|
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 _UTSNAME_H
|
|
37
|
+
#define _UTSNAME_H
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/*****************************************************************************/
|
|
42
|
+
/* Data */
|
|
43
|
+
/*****************************************************************************/
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/*
|
|
48
|
+
** Suggested field contents:
|
|
49
|
+
**
|
|
50
|
+
** sysname
|
|
51
|
+
** Should contain the name of the underlying operating system, or "cc65"
|
|
52
|
+
** if the program runs on the bare machine.
|
|
53
|
+
**
|
|
54
|
+
** nodename
|
|
55
|
+
** Is empty or may be defined by the implementor.
|
|
56
|
+
**
|
|
57
|
+
** release
|
|
58
|
+
** Contains the operating system release or the major/minor cc65 version
|
|
59
|
+
** if sysname contains "cc65".
|
|
60
|
+
**
|
|
61
|
+
** version
|
|
62
|
+
** Contains the operating system version or the cc65 patch version if
|
|
63
|
+
** sysname contains "cc65".
|
|
64
|
+
**
|
|
65
|
+
** machine
|
|
66
|
+
** Contains the complete name of the machine, like "Commodore 64",
|
|
67
|
+
** "Oric Atmos" or similar.
|
|
68
|
+
**
|
|
69
|
+
** Beware: The library sources written in assembler have knowledge about this
|
|
70
|
+
** struct!
|
|
71
|
+
*/
|
|
72
|
+
struct utsname {
|
|
73
|
+
char sysname[17];
|
|
74
|
+
char nodename[9];
|
|
75
|
+
char release[9];
|
|
76
|
+
char version[9];
|
|
77
|
+
char machine[25];
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/*****************************************************************************/
|
|
83
|
+
/* Code */
|
|
84
|
+
/*****************************************************************************/
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
int __fastcall__ uname (struct utsname* buf);
|
|
89
|
+
/* Return system information */
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/* End of utsname.h */
|
|
94
|
+
#endif
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
package/include/target.h
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* target.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Target specific definitions */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* This software is provided 'as-is', without any expressed or implied */
|
|
10
|
+
/* warranty. In no event will the authors be held liable for any damages */
|
|
11
|
+
/* arising from the use of this software. */
|
|
12
|
+
/* */
|
|
13
|
+
/* Permission is granted to anyone to use this software for any purpose, */
|
|
14
|
+
/* including commercial applications, and to alter it and redistribute it */
|
|
15
|
+
/* freely, subject to the following restrictions: */
|
|
16
|
+
/* */
|
|
17
|
+
/* 1. The origin of this software must not be misrepresented; you must not */
|
|
18
|
+
/* claim that you wrote the original software. If you use this software */
|
|
19
|
+
/* in a product, an acknowledgment in the product documentation would be */
|
|
20
|
+
/* appreciated but is not required. */
|
|
21
|
+
/* 2. Altered source versions must be plainly marked as such, and must not */
|
|
22
|
+
/* be misrepresented as being the original software. */
|
|
23
|
+
/* 3. This notice may not be removed or altered from any source */
|
|
24
|
+
/* distribution. */
|
|
25
|
+
/* */
|
|
26
|
+
/*****************************************************************************/
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
#ifndef _TARGET_H
|
|
31
|
+
#define _TARGET_H
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/* Include the correct target specific file */
|
|
36
|
+
#if defined(__APPLE2ENH__)
|
|
37
|
+
# include <apple2enh.h>
|
|
38
|
+
#elif defined(__APPLE2__)
|
|
39
|
+
# include <apple2.h>
|
|
40
|
+
#elif defined(__AGAT__)
|
|
41
|
+
# include <agat.h>
|
|
42
|
+
#elif defined(__ATARI__)
|
|
43
|
+
# include <atari.h>
|
|
44
|
+
#elif defined(__ATARI2600__)
|
|
45
|
+
# include <atari2600.h>
|
|
46
|
+
#elif defined(__ATARI5200__)
|
|
47
|
+
# include <atari5200.h>
|
|
48
|
+
#elif defined(__ATARI7800__)
|
|
49
|
+
# include <atari7800.h>
|
|
50
|
+
#elif defined(__ATMOS__)
|
|
51
|
+
# include <atmos.h>
|
|
52
|
+
#elif defined(__CBM__)
|
|
53
|
+
# include <cbm.h>
|
|
54
|
+
#elif defined(__CREATIVISION__)
|
|
55
|
+
# include <creativision.h>
|
|
56
|
+
#elif defined(__GAMATE__)
|
|
57
|
+
# include <gamate.h>
|
|
58
|
+
#elif defined(__GEOS__)
|
|
59
|
+
# include <geos.h>
|
|
60
|
+
#elif defined(__LYNX__)
|
|
61
|
+
# include <lynx.h>
|
|
62
|
+
#elif defined(__NES__)
|
|
63
|
+
# include <nes.h>
|
|
64
|
+
#elif defined(__OSIC1P__)
|
|
65
|
+
# include <osic1p.h>
|
|
66
|
+
#elif defined(__PCE__)
|
|
67
|
+
# include <pce.h>
|
|
68
|
+
#elif defined(__SUPERVISION__)
|
|
69
|
+
# include <supervision.h>
|
|
70
|
+
#elif defined(__TELESTRAT__)
|
|
71
|
+
# include <telestrat.h>
|
|
72
|
+
#endif
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/* End of target.h */
|
|
77
|
+
#endif
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* telestrat.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Oric Telestrat system-specific definitions */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 2017 Debrune Jérome, <jede@oric.org> */
|
|
10
|
+
/* */
|
|
11
|
+
/* */
|
|
12
|
+
/* This software is provided 'as-is', without any expressed or implied */
|
|
13
|
+
/* warranty. In no event will the authors be held liable for any damages */
|
|
14
|
+
/* arising from the use of this software. */
|
|
15
|
+
/* */
|
|
16
|
+
/* Permission is granted to anyone to use this software for any purpose, */
|
|
17
|
+
/* including commercial applications, and to alter it and redistribute it */
|
|
18
|
+
/* freely, subject to the following restrictions: */
|
|
19
|
+
/* */
|
|
20
|
+
/* 1. The origin of this software must not be misrepresented; you must not */
|
|
21
|
+
/* claim that you wrote the original software. If you use this software */
|
|
22
|
+
/* in a product, an acknowledgment in the product documentation would be */
|
|
23
|
+
/* appreciated but is not required. */
|
|
24
|
+
/* 2. Altered source versions must be plainly marked as such, and must not */
|
|
25
|
+
/* be misrepresented as being the original software. */
|
|
26
|
+
/* 3. This notice may not be removed or altered from any source */
|
|
27
|
+
/* distribution. */
|
|
28
|
+
/* */
|
|
29
|
+
/*****************************************************************************/
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
/* Color defines */
|
|
35
|
+
#define COLOR_BLACK 0x00
|
|
36
|
+
#define COLOR_RED 0x01
|
|
37
|
+
#define COLOR_GREEN 0x02
|
|
38
|
+
#define COLOR_YELLOW 0x03
|
|
39
|
+
#define COLOR_BLUE 0x04
|
|
40
|
+
#define COLOR_MAGENTA 0x05
|
|
41
|
+
#define COLOR_CYAN 0x06
|
|
42
|
+
#define COLOR_WHITE 0x07
|
|
43
|
+
|
|
44
|
+
/* TGI color defines */
|
|
45
|
+
/* White and red are swapped, so that the pallete
|
|
46
|
+
** driver is compatible with black-and-white drivers.
|
|
47
|
+
*/
|
|
48
|
+
#define TGI_COLOR_BLACK COLOR_BLACK
|
|
49
|
+
#define TGI_COLOR_WHITE 1
|
|
50
|
+
#define TGI_COLOR_GREEN COLOR_GREEN
|
|
51
|
+
#define TGI_COLOR_YELLOW COLOR_YELLOW
|
|
52
|
+
#define TGI_COLOR_BLUE COLOR_BLUE
|
|
53
|
+
#define TGI_COLOR_MAGENTA COLOR_MAGENTA
|
|
54
|
+
#define TGI_COLOR_CYAN COLOR_CYAN
|
|
55
|
+
#define TGI_COLOR_RED 7
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/* Define hardware */
|
|
59
|
+
#include <_6522.h>
|
|
60
|
+
#define VIA (*(struct __6522*)0x300)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/* These are defined to be FUNCT + NumberKey */
|
|
65
|
+
#define CH_F1 0xB1
|
|
66
|
+
#define CH_F2 0xB2
|
|
67
|
+
#define CH_F3 0xB3
|
|
68
|
+
#define CH_F4 0xB4
|
|
69
|
+
#define CH_F5 0xB5
|
|
70
|
+
#define CH_F6 0xB6
|
|
71
|
+
#define CH_F7 0xB7
|
|
72
|
+
#define CH_F8 0xB8
|
|
73
|
+
#define CH_F9 0xB9
|
|
74
|
+
#define CH_F10 0xB0
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
/* Character codes */
|
|
79
|
+
#define CH_ULCORNER '+'
|
|
80
|
+
#define CH_URCORNER '+'
|
|
81
|
+
#define CH_LLCORNER '+'
|
|
82
|
+
#define CH_LRCORNER '+'
|
|
83
|
+
#define CH_TTEE '+'
|
|
84
|
+
#define CH_BTEE '+'
|
|
85
|
+
#define CH_LTEE '+'
|
|
86
|
+
#define CH_RTEE '+'
|
|
87
|
+
#define CH_CROSS '+'
|
|
88
|
+
#define CH_HLINE '-'
|
|
89
|
+
#define CH_VLINE '|'
|
|
90
|
+
#define CH_CURS_UP 11
|
|
91
|
+
#define CH_CURS_DOWN 10
|
|
92
|
+
#define CH_CURS_LEFT 8
|
|
93
|
+
#define CH_CURS_RIGHT 9
|
|
94
|
+
#define CH_DEL 127
|
|
95
|
+
#define CH_ENTER 13
|
|
96
|
+
#define CH_STOP 3
|
|
97
|
+
#define CH_LIRA 95
|
|
98
|
+
#define CH_ESC 27
|
|
99
|
+
|
|
100
|
+
/* Masks for joy_read */
|
|
101
|
+
#define JOY_UP_MASK 0x10
|
|
102
|
+
#define JOY_DOWN_MASK 0x08
|
|
103
|
+
#define JOY_LEFT_MASK 0x02
|
|
104
|
+
#define JOY_RIGHT_MASK 0x01
|
|
105
|
+
#define JOY_BTN_1_MASK 0x04
|
|
106
|
+
|
|
107
|
+
#define JOY_FIRE_MASK JOY_BTN_1_MASK
|
|
108
|
+
#define JOY_FIRE(v) ((v) & JOY_FIRE_MASK)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/* The addresses of the static drivers */
|
|
112
|
+
extern void telestrat_joy[]; /* Referred to by joy_static_stddrv[] */
|
|
113
|
+
extern void telestrat_228_200_3_tgi[];
|
|
114
|
+
extern void telestrat_240_200_2_tgi[]; /* Referred to by tgi_static_stddrv[] */
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
void oups();
|
|
118
|
+
void ping();
|
|
119
|
+
void zap();
|
|
120
|
+
void shoot();
|
|
121
|
+
void explode();
|
|
122
|
+
|
|
123
|
+
void kbdclick1();
|
|
124
|
+
|
|
125
|
+
/* The following #defines will cause the matching functions calls in conio.h
|
|
126
|
+
** to be overlaid by macros with the same names, saving the function call
|
|
127
|
+
** overhead.
|
|
128
|
+
*/
|
|
129
|
+
#define _bordercolor(color) COLOR_BLACK
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* tgi-error.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* TGI error codes */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 2002-2012, 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 _TGI_ERROR_H
|
|
37
|
+
#define _TGI_ERROR_H
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/*****************************************************************************/
|
|
42
|
+
/* Data */
|
|
43
|
+
/*****************************************************************************/
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
#define TGI_ERR_OK 0 /* No error */
|
|
48
|
+
#define TGI_ERR_NO_DRIVER 1 /* No driver available */
|
|
49
|
+
#define TGI_ERR_CANNOT_LOAD 2 /* Error loading driver or font */
|
|
50
|
+
#define TGI_ERR_INV_DRIVER 3 /* Invalid driver */
|
|
51
|
+
#define TGI_ERR_INV_MODE 4 /* Mode not supported by driver */
|
|
52
|
+
#define TGI_ERR_INV_ARG 5 /* Invalid function argument */
|
|
53
|
+
#define TGI_ERR_INV_FUNC 6 /* Function not supported */
|
|
54
|
+
#define TGI_ERR_INV_FONT 7 /* Font file is invalid */
|
|
55
|
+
#define TGI_ERR_NO_RES 8 /* Out of resources */
|
|
56
|
+
#define TGI_ERR_INSTALLED 9 /* A driver is already installed */
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/* End of tgi-error.h */
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* tgi-kernel.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* TGI kernel interface */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 2002-2012, 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 _TGI_KERNEL_H
|
|
37
|
+
#define _TGI_KERNEL_H
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/*****************************************************************************/
|
|
42
|
+
/* Data */
|
|
43
|
+
/*****************************************************************************/
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/* TGI kernel variables */
|
|
48
|
+
extern void* tgi_drv; /* Pointer to driver */
|
|
49
|
+
extern unsigned char tgi_error; /* Last error code */
|
|
50
|
+
extern unsigned char tgi_gmode; /* Flag: Graphics mode active */
|
|
51
|
+
extern int tgi_curx; /* Current drawing cursor X */
|
|
52
|
+
extern int tgi_cury; /* Current drawing cursor Y */
|
|
53
|
+
extern unsigned char tgi_color; /* Current drawing color */
|
|
54
|
+
extern unsigned char tgi_font; /* Current font type */
|
|
55
|
+
extern unsigned tgi_xres; /* X resolution of the current mode */
|
|
56
|
+
extern unsigned tgi_yres; /* Y resolution of the current mode */
|
|
57
|
+
extern unsigned char tgi_colorcount; /* Number of available colors */
|
|
58
|
+
extern unsigned char tgi_pagecount; /* Number of available screens */
|
|
59
|
+
extern unsigned char tgi_fontwidth; /* System font width in pixels */
|
|
60
|
+
extern unsigned char tgi_fontheight; /* System font height in pixels */
|
|
61
|
+
extern unsigned tgi_aspectratio; /* Aspect ratio as fixed point 8.8 */
|
|
62
|
+
extern unsigned char tgi_flags; /* TGI driver flags */
|
|
63
|
+
extern unsigned tgi_textscalew[2]; /* Vector/bitmap font scale 8.8 */
|
|
64
|
+
extern unsigned tgi_textscaleh[2]; /* Vector/bitmap font scale 8.8 */
|
|
65
|
+
extern unsigned tgi_charwidth; /* Width of scaled bitmap font */
|
|
66
|
+
extern unsigned tgi_charheight; /* Height of scaled bitmap font */
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/* End of tgi-kernel.h */
|
|
71
|
+
#endif
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|