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.
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
package/include/cc65.h ADDED
@@ -0,0 +1,109 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* cc65.h */
4
+ /* */
5
+ /* Target independent but cc65 specific utility functions */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 2009-2011, 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 _CC65_H
37
+ #define _CC65_H
38
+
39
+
40
+
41
+ /*****************************************************************************/
42
+ /* Code */
43
+ /*****************************************************************************/
44
+
45
+
46
+
47
+ long __fastcall__ idiv32by16r16 (long rhs, int lhs);
48
+ /* Divide a 32 bit signed value by a 16 bit signed value yielding a 16
49
+ ** bit result and a 16 bit remainder. The former is returned in the lower 16
50
+ ** bit of the result, the latter in the upper. If you don't need the
51
+ ** remainder, just assign (or cast) to an int.
52
+ */
53
+
54
+ unsigned long __fastcall__ udiv32by16r16 (unsigned long rhs, unsigned lhs);
55
+ /* Divide a 32 bit unsigned value by a 16 bit unsigned value yielding a 16
56
+ ** bit result and a 16 bit remainder. The former is returned in the lower 16
57
+ ** bit of the result, the latter in the upper. If you don't need the
58
+ ** remainder, just assign (or cast) to an unsigned.
59
+ */
60
+
61
+ int __fastcall__ imul8x8r16 (signed char lhs, signed char rhs);
62
+ /* Multiply two signed 8 bit to yield an signed 16 bit result */
63
+
64
+ long __fastcall__ imul16x16r32 (int lhs, int rhs);
65
+ /* Multiply two signed 16 bit to yield a signed 32 bit result */
66
+
67
+ unsigned __fastcall__ umul8x8r16 (unsigned char lhs, unsigned char rhs);
68
+ /* Multiply two unsigned 8 bit to yield an unsigned 16 bit result */
69
+
70
+ unsigned long __fastcall__ umul16x8r32 (unsigned lhs, unsigned char rhs);
71
+ /* Multiply an unsigned 16 bit by an unsigned 8 bit number yielding a 24
72
+ ** bit unsigned result that is extended to 32 bits for easier handling from C.
73
+ */
74
+
75
+ unsigned long __fastcall__ umul16x16r32 (unsigned lhs, unsigned rhs);
76
+ /* Multiply two unsigned 16 bit to yield an unsigned 32 bit result */
77
+
78
+ unsigned int __fastcall__ mul20 (unsigned char value);
79
+ /* Multiply an 8 bit unsigned value by 20 and return the 16 bit unsigned
80
+ ** result
81
+ */
82
+
83
+ unsigned int __fastcall__ mul40 (unsigned char value);
84
+ /* Multiply an 8 bit unsigned value by 40 and return the 16 bit unsigned
85
+ ** result
86
+ */
87
+
88
+ int __fastcall__ _sin (unsigned x);
89
+ /* Return the sine of the argument, which must be in range 0..360. The result
90
+ ** is in 8.8 fixed point format, which means that 1.0 = $100 and -1.0 = $FF00.
91
+ */
92
+
93
+ int __fastcall__ _cos (unsigned x);
94
+ /* Return the cosine of the argument, which must be in range 0..360. The result
95
+ ** is in 8.8 fixed point format, which means that 1.0 = $100 and -1.0 = $FF00.
96
+ */
97
+
98
+ unsigned char doesclrscrafterexit (void);
99
+ /* Indicates whether the screen automatically be cleared after program
100
+ ** termination.
101
+ */
102
+
103
+
104
+
105
+ /* End of cc65.h */
106
+ #endif
107
+
108
+
109
+
@@ -0,0 +1,248 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* conio.h */
4
+ /* */
5
+ /* Direct console I/O */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 1998-2007 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
+ /*
37
+ ** This is the direct console interface for cc65. I do not like the function
38
+ ** names very much, but the first version started as a rewrite of Borland's
39
+ ** conio, and, even if the interface has changed, the names did not.
40
+ **
41
+ ** The interface does direct screen I/O, so it is fast enough for most
42
+ ** programs. I did not implement text windows, since many applications do
43
+ ** not need them and should not pay for the additional overhead. It should
44
+ ** be easy to add text windows on a higher level if needed,
45
+ **
46
+ ** Most routines do not check the parameters. This may be unfortunate but is
47
+ ** also related to speed. The coordinates are always 0/0 based.
48
+ */
49
+
50
+
51
+
52
+ #ifndef _CONIO_H
53
+ #define _CONIO_H
54
+
55
+
56
+
57
+ #include <stdarg.h>
58
+ #include <target.h>
59
+
60
+
61
+
62
+ /*****************************************************************************/
63
+ /* Functions */
64
+ /*****************************************************************************/
65
+
66
+
67
+
68
+ void clrscr (void);
69
+ /* Clear the whole screen and put the cursor into the top left corner */
70
+
71
+ unsigned char kbhit (void);
72
+ /* Return true if there's a key waiting, return false if not */
73
+
74
+ void __fastcall__ gotox (unsigned char x);
75
+ /* Set the cursor to the specified X position, leave the Y position untouched */
76
+
77
+ void __fastcall__ gotoy (unsigned char y);
78
+ /* Set the cursor to the specified Y position, leave the X position untouched */
79
+
80
+ void __fastcall__ gotoxy (unsigned char x, unsigned char y);
81
+ /* Set the cursor to the specified position */
82
+
83
+ unsigned char wherex (void);
84
+ /* Return the X position of the cursor */
85
+
86
+ unsigned char wherey (void);
87
+ /* Return the Y position of the cursor */
88
+
89
+ void __fastcall__ cputc (char c);
90
+ /* Output one character at the current cursor position */
91
+
92
+ void __fastcall__ cputcxy (unsigned char x, unsigned char y, char c);
93
+ /* Same as "gotoxy (x, y); cputc (c);" */
94
+
95
+ void __fastcall__ cputs (const char* s);
96
+ /* Output a NUL-terminated string at the current cursor position */
97
+
98
+ void __fastcall__ cputsxy (unsigned char x, unsigned char y, const char* s);
99
+ /* Same as "gotoxy (x, y); puts (s);" */
100
+
101
+ int cprintf (const char* format, ...);
102
+ /* Like printf(), but uses direct screen output */
103
+
104
+ int __fastcall__ vcprintf (const char* format, va_list ap);
105
+ /* Like vprintf(), but uses direct screen output */
106
+
107
+ char cgetc (void);
108
+ /* Return a character from the keyboard. If there is no character available,
109
+ ** the function waits until the user does press a key. If cursor is set to
110
+ ** 1 (see below), a blinking cursor is displayed while waiting.
111
+ */
112
+
113
+ char* __fastcall__ cgets (char* buffer, int size);
114
+ /* Get a string of characters directly from the console. The function returns
115
+ ** when size - 1 characters or either CR/LF are read. Note the parameters are
116
+ ** more aligned with stdio fgets() as opposed to the quirky "standard" conio
117
+ ** cgets(). Besides providing saner parameters, the function also echoes CRLF
118
+ ** when either CR/LF are read but does NOT append either in the buffer. This is
119
+ ** to correspond to stdio fgets() which echoes CRLF, but prevents a "gotcha"
120
+ ** where the buffer might not be able to accommodate both CR and LF at the end.
121
+ **
122
+ ** param: buffer - where to save the input, must be non-NULL
123
+ ** param: size - size of the buffer, must be > 1
124
+ ** return: buffer if successful, NULL on error
125
+ ** author: Russell-S-Harper
126
+ */
127
+
128
+ int cscanf (const char* format, ...);
129
+ /* Like scanf(), but uses direct keyboard input */
130
+
131
+ int __fastcall__ vcscanf (const char* format, va_list ap);
132
+ /* Like vscanf(), but uses direct keyboard input */
133
+
134
+ char cpeekc (void);
135
+ /* Return the character from the current cursor position */
136
+
137
+ unsigned char cpeekcolor (void);
138
+ /* Return the color from the current cursor position */
139
+
140
+ unsigned char cpeekrevers (void);
141
+ /* Return the reverse attribute from the current cursor position.
142
+ ** If the character is reversed, then return 1; return 0 otherwise.
143
+ */
144
+
145
+ void __fastcall__ cpeeks (char* s, unsigned int length);
146
+ /* Return a string of the characters that start at the current cursor position.
147
+ ** Put the string into the buffer to which "s" points. The string will have
148
+ ** "length" characters, then will be '\0'-terminated.
149
+ */
150
+
151
+ unsigned char __fastcall__ cursor (unsigned char onoff);
152
+ /* If onoff is 1, a cursor is displayed when waiting for keyboard input. If
153
+ ** onoff is 0, the cursor is hidden when waiting for keyboard input. The
154
+ ** function returns the old cursor setting.
155
+ */
156
+
157
+ unsigned char __fastcall__ revers (unsigned char onoff);
158
+ /* Enable/disable reverse character display. This may not be supported by
159
+ ** the output device. Return the old setting.
160
+ */
161
+
162
+ unsigned char __fastcall__ textcolor (unsigned char color);
163
+ /* Set the color for text output. The old color setting is returned. */
164
+
165
+ unsigned char __fastcall__ bgcolor (unsigned char color);
166
+ /* Set the color for the background. The old color setting is returned. */
167
+
168
+ unsigned char __fastcall__ bordercolor (unsigned char color);
169
+ /* Set the color for the border. The old color setting is returned. */
170
+
171
+ void __fastcall__ chline (unsigned char length);
172
+ /* Output a horizontal line with the given length starting at the current
173
+ ** cursor position.
174
+ */
175
+
176
+ void __fastcall__ chlinexy (unsigned char x, unsigned char y, unsigned char length);
177
+ /* Same as "gotoxy (x, y); chline (length);" */
178
+
179
+ void __fastcall__ cvline (unsigned char length);
180
+ /* Output a vertical line with the given length at the current cursor
181
+ ** position.
182
+ */
183
+
184
+ void __fastcall__ cvlinexy (unsigned char x, unsigned char y, unsigned char length);
185
+ /* Same as "gotoxy (x, y); cvline (length);" */
186
+
187
+ void __fastcall__ cclear (unsigned char length);
188
+ /* Clear part of a line (write length spaces). */
189
+
190
+ void __fastcall__ cclearxy (unsigned char x, unsigned char y, unsigned char length);
191
+ /* Same as "gotoxy (x, y); cclear (length);" */
192
+
193
+ void __fastcall__ screensize (unsigned char* x, unsigned char* y);
194
+ /* Return the current screen size. */
195
+
196
+ void __fastcall__ cputhex8 (unsigned char val);
197
+ void __fastcall__ cputhex16 (unsigned val);
198
+ /* These shouldn't be here... */
199
+
200
+
201
+
202
+ /*****************************************************************************/
203
+ /* Macros */
204
+ /*****************************************************************************/
205
+
206
+
207
+
208
+ /* On some platforms, functions are not available or are dummys. To suppress
209
+ ** the call to these functions completely, the platform header files may
210
+ ** define macros for these functions that start with an underline. If such a
211
+ ** macro exists, a new macro is defined here, that expands to the one with the
212
+ ** underline. The reason for this two stepped approach is that it is sometimes
213
+ ** necessary to take the address of the function, which is not possible when
214
+ ** using a macro. Since the function prototype is still present, #undefining
215
+ ** the macro will give access to the actual function.
216
+ */
217
+
218
+ #ifdef _textcolor
219
+ # define textcolor(color) _textcolor(color)
220
+ #endif
221
+ #ifdef _bgcolor
222
+ # define bgcolor(color) _bgcolor(color)
223
+ #endif
224
+ #ifdef _bordercolor
225
+ # define bordercolor(color) _bordercolor(color)
226
+ #endif
227
+ #ifdef _cpeekcolor
228
+ # define cpeekcolor() _cpeekcolor()
229
+ #endif
230
+ #ifdef _cpeekrevers
231
+ # define cpeekrevers() _cpeekrevers()
232
+ #endif
233
+
234
+ #ifdef _chline
235
+ # define chline(len) _chline(len)
236
+ #endif
237
+ #ifdef _cvline
238
+ # define cvline(len) _cvline(len)
239
+ #endif
240
+ #ifdef _chlinexy
241
+ # define chlinexy(x, y, len) _chlinexy(x, y, len)
242
+ #endif
243
+ #ifdef _cvlinexy
244
+ # define cvlinexy(x, y, len) _cvlinexy(x, y, len)
245
+ #endif
246
+
247
+ /* End of conio.h */
248
+ #endif
@@ -0,0 +1,78 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* creativision.h */
4
+ /* */
5
+ /* Creativision system specific definitions */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 2013 cvemu */
10
+ /* (C) 2017 Christian Groessler <chris@groessler.org> */
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
+ #ifndef _CVISION_H
33
+ #define _CVISION_H
34
+
35
+ /* Character codes */
36
+ #define CH_VLINE 33
37
+ #define CH_HLINE 34
38
+ #define CH_ULCORNER 35
39
+ #define CH_URCORNER 36
40
+ #define CH_LLCORNER 37
41
+ #define CH_LRCORNER 38
42
+
43
+ /* Masks for joy_read */
44
+ #define JOY_UP_MASK 0x10
45
+ #define JOY_DOWN_MASK 0x04
46
+ #define JOY_LEFT_MASK 0x20
47
+ #define JOY_RIGHT_MASK 0x08
48
+ #define JOY_BTN_1_MASK 0x01
49
+ #define JOY_BTN_2_MASK 0x02
50
+
51
+ /* no support for dynamically loadable drivers */
52
+ #define DYN_DRV 0
53
+
54
+ /* Colours - from TMS9918 */
55
+ #define COLOR_TRANSPARENT 0
56
+ #define COLOR_BLACK 1
57
+ #define COLOR_MED_GREEN 2
58
+ #define COLOR_LIGHT_GREEN 3
59
+ #define COLOR_DARK_BLUE 4
60
+ #define COLOR_LIGHT_BLUE 5
61
+ #define COLOR_DARK_RED 6
62
+ #define COLOR_CYAN 7
63
+ #define COLOR_MED_RED 8
64
+ #define COLOR_LIGHT_RED 9
65
+ #define COLOR_DARK_YELLOW 10
66
+ #define COLOR_LIGHT_YELLOW 11
67
+ #define COLOR_DARK_GREEN 12
68
+ #define COLOR_MAGENTA 13
69
+ #define COLOR_GREY 14
70
+ #define COLOR_WHITE 15
71
+
72
+ /* Protos */
73
+ void __fastcall__ psg_outb (unsigned char b);
74
+ void __fastcall__ psg_delay (unsigned char b);
75
+ void psg_silence (void);
76
+ void __fastcall__ bios_playsound (const void *a, unsigned char b);
77
+
78
+ #endif /* #ifndef _CVISION_H */
@@ -0,0 +1,88 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* ctype.h */
4
+ /* */
5
+ /* Character handling */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 1998-2013, 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 _CTYPE_H
37
+ #define _CTYPE_H
38
+
39
+ /* Bits used to specify character classes */
40
+ #define _CT_LOWER 0x01 /* 0 - Lower case char */
41
+ #define _CT_UPPER 0x02 /* 1 - Upper case char */
42
+ #define _CT_DIGIT 0x04 /* 2 - Numeric digit */
43
+ #define _CT_XDIGIT 0x08 /* 3 - Hex digit (both lower and upper) */
44
+ #define _CT_CNTRL 0x10 /* 4 - Control character */
45
+ #define _CT_SPACE 0x20 /* 5 - The space character itself */
46
+ #define _CT_OTHER_WS 0x40 /* 6 - Other whitespace ('\f', '\n', '\r', '\t', and '\v') */
47
+ #define _CT_SPACE_TAB 0x80 /* 7 - Space or tab character */
48
+
49
+ /* Bit combinations */
50
+ #define _CT_ALNUM (_CT_LOWER | _CT_UPPER | _CT_DIGIT)
51
+ #define _CT_ALPHA (_CT_LOWER | _CT_UPPER)
52
+ #define _CT_NOT_GRAPH (_CT_CNTRL | _CT_SPACE)
53
+ #define _CT_NOT_PRINT (_CT_CNTRL)
54
+ #define _CT_NOT_PUNCT (_CT_SPACE | _CT_CNTRL | _CT_DIGIT | _CT_UPPER | _CT_LOWER)
55
+ #define _CT_WS (_CT_SPACE | _CT_OTHER_WS)
56
+
57
+ /* Character classification functions */
58
+ int __fastcall__ isalnum (int c);
59
+ int __fastcall__ isalpha (int c);
60
+ #if __CC65_STD__ >= __CC65_STD_CC65__
61
+ int __fastcall__ isascii (int c); /* non standard */
62
+ #endif
63
+ int __fastcall__ iscntrl (int c);
64
+ int __fastcall__ isdigit (int c);
65
+ int __fastcall__ isgraph (int c);
66
+ int __fastcall__ islower (int c);
67
+ int __fastcall__ isprint (int c);
68
+ int __fastcall__ ispunct (int c);
69
+ int __fastcall__ isspace (int c);
70
+ int __fastcall__ isupper (int c);
71
+ int __fastcall__ isxdigit (int c);
72
+ #if __CC65_STD__ >= __CC65_STD_C99__
73
+ int __fastcall__ isblank (int c); /* New in C99 */
74
+ #endif
75
+
76
+ int __fastcall__ toupper (int c); /* Always external */
77
+ int __fastcall__ tolower (int c); /* Always external */
78
+
79
+ #if __CC65_STD__ >= __CC65_STD_CC65__
80
+ unsigned char __fastcall__ toascii (unsigned char c); /* non standard */
81
+ /* Convert a target-specific character to ASCII. */
82
+ #endif
83
+
84
+ /* End of ctype.h */
85
+ #endif
86
+
87
+
88
+