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,303 @@
1
+ ;/*****************************************************************************/
2
+ ;/* */
3
+ ;/* atari_screen_charmap.inc */
4
+ ;/* */
5
+ ;/* Atari system internal string mapping ISO-8859-1 -> Internal/Screen-Code */
6
+ ;/* */
7
+ ;/* */
8
+ ;/* */
9
+ ;/* C 2016 Christian Krueger */
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
+ .charmap $00, $40
32
+ .charmap $01, $41
33
+ .charmap $02, $42
34
+ .charmap $03, $43
35
+ .charmap $04, $44
36
+ .charmap $05, $45
37
+ .charmap $06, $46
38
+ .charmap $07, $FD
39
+ .charmap $08, $48
40
+ .charmap $09, $7F
41
+ .charmap $0A, $DB
42
+ .charmap $0B, $4B
43
+ .charmap $0C, $7D
44
+ .charmap $0D, $4D
45
+ .charmap $0E, $4E
46
+ .charmap $0F, $4F
47
+
48
+ .charmap $10, $50
49
+ .charmap $11, $51
50
+ .charmap $12, $52
51
+ .charmap $13, $53
52
+ .charmap $14, $54
53
+ .charmap $15, $55
54
+ .charmap $16, $56
55
+ .charmap $17, $57
56
+ .charmap $18, $58
57
+ .charmap $19, $59
58
+ .charmap $1A, $5A
59
+ .charmap $1B, $5B
60
+ .charmap $1C, $5C
61
+ .charmap $1D, $5D
62
+ .charmap $1E, $5E
63
+ .charmap $1F, $5F
64
+
65
+ .charmap $20, $00
66
+
67
+ .charmap $21, $01
68
+ .charmap $22, $02
69
+ .charmap $23, $03
70
+ .charmap $24, $04
71
+ .charmap $25, $05
72
+ .charmap $26, $06
73
+ .charmap $27, $07
74
+ .charmap $28, $08
75
+ .charmap $29, $09
76
+ .charmap $2A, $0A
77
+ .charmap $2B, $0B
78
+ .charmap $2C, $0C
79
+ .charmap $2D, $0D
80
+ .charmap $2E, $0E
81
+ .charmap $2F, $0F
82
+
83
+ .charmap $30, $10
84
+ .charmap $31, $11
85
+ .charmap $32, $12
86
+ .charmap $33, $13
87
+ .charmap $34, $14
88
+ .charmap $35, $15
89
+ .charmap $36, $16
90
+ .charmap $37, $17
91
+ .charmap $38, $18
92
+ .charmap $39, $19
93
+ .charmap $3A, $1A
94
+ .charmap $3B, $1B
95
+ .charmap $3C, $1C
96
+ .charmap $3D, $1D
97
+ .charmap $3E, $1E
98
+ .charmap $3F, $1F
99
+
100
+ .charmap $40, $20
101
+ .charmap $41, $21
102
+ .charmap $42, $22
103
+ .charmap $43, $23
104
+ .charmap $44, $24
105
+ .charmap $45, $25
106
+ .charmap $46, $26
107
+ .charmap $47, $27
108
+ .charmap $48, $28
109
+ .charmap $49, $29
110
+ .charmap $4A, $2A
111
+ .charmap $4B, $2B
112
+ .charmap $4C, $2C
113
+ .charmap $4D, $2D
114
+ .charmap $4E, $2E
115
+ .charmap $4F, $2F
116
+
117
+ .charmap $50, $30
118
+ .charmap $51, $31
119
+ .charmap $52, $32
120
+ .charmap $53, $33
121
+ .charmap $54, $34
122
+ .charmap $55, $35
123
+ .charmap $56, $36
124
+ .charmap $57, $37
125
+ .charmap $58, $38
126
+ .charmap $59, $39
127
+ .charmap $5A, $3A
128
+ .charmap $5B, $3B
129
+ .charmap $5C, $3C
130
+ .charmap $5D, $3D
131
+ .charmap $5E, $3E
132
+ .charmap $5F, $3F
133
+
134
+ .charmap $60, $60
135
+ .charmap $61, $61
136
+ .charmap $62, $62
137
+ .charmap $63, $63
138
+ .charmap $64, $64
139
+ .charmap $65, $65
140
+ .charmap $66, $66
141
+ .charmap $67, $67
142
+ .charmap $68, $68
143
+ .charmap $69, $69
144
+ .charmap $6A, $6A
145
+ .charmap $6B, $6B
146
+ .charmap $6C, $6C
147
+ .charmap $6D, $6D
148
+ .charmap $6E, $6E
149
+ .charmap $6F, $6F
150
+
151
+ .charmap $70, $70
152
+ .charmap $71, $71
153
+ .charmap $72, $72
154
+ .charmap $73, $73
155
+ .charmap $74, $74
156
+ .charmap $75, $75
157
+ .charmap $76, $76
158
+ .charmap $77, $77
159
+ .charmap $78, $78
160
+ .charmap $79, $79
161
+ .charmap $7A, $7A
162
+ .charmap $7B, $7B
163
+ .charmap $7C, $7C
164
+ .charmap $7D, $7D
165
+ .charmap $7E, $7E
166
+ .charmap $7F, $7F
167
+
168
+ .charmap $80, $C0
169
+ .charmap $81, $C1
170
+ .charmap $82, $C2
171
+ .charmap $83, $C3
172
+ .charmap $84, $C4
173
+ .charmap $85, $C5
174
+ .charmap $86, $C6
175
+ .charmap $87, $C7
176
+ .charmap $88, $C8
177
+ .charmap $89, $C9
178
+ .charmap $8A, $CA
179
+ .charmap $8B, $CB
180
+ .charmap $8C, $CC
181
+ .charmap $8D, $CD
182
+ .charmap $8E, $CE
183
+ .charmap $8F, $CF
184
+
185
+ .charmap $90, $D0
186
+ .charmap $91, $D1
187
+ .charmap $92, $D2
188
+ .charmap $93, $D3
189
+ .charmap $94, $D4
190
+ .charmap $95, $D5
191
+ .charmap $96, $D6
192
+ .charmap $97, $D7
193
+ .charmap $98, $D8
194
+ .charmap $99, $D9
195
+ .charmap $9A, $DA
196
+ .charmap $9B, $DB
197
+ .charmap $9C, $DC
198
+ .charmap $9D, $DD
199
+ .charmap $9E, $DE
200
+ .charmap $9F, $DF
201
+
202
+ .charmap $A0, $80
203
+ .charmap $A1, $81
204
+ .charmap $A2, $82
205
+ .charmap $A3, $83
206
+ .charmap $A4, $84
207
+ .charmap $A5, $85
208
+ .charmap $A6, $86
209
+ .charmap $A7, $87
210
+ .charmap $A8, $88
211
+ .charmap $A9, $89
212
+ .charmap $AA, $8A
213
+ .charmap $AB, $8B
214
+ .charmap $AC, $8C
215
+ .charmap $AD, $8D
216
+ .charmap $AE, $8E
217
+ .charmap $AF, $8F
218
+
219
+ .charmap $B0, $90
220
+ .charmap $B1, $91
221
+ .charmap $B2, $92
222
+ .charmap $B3, $93
223
+ .charmap $B4, $94
224
+ .charmap $B5, $95
225
+ .charmap $B6, $96
226
+ .charmap $B7, $97
227
+ .charmap $B8, $98
228
+ .charmap $B9, $99
229
+ .charmap $BA, $9A
230
+ .charmap $BB, $9B
231
+ .charmap $BC, $9C
232
+ .charmap $BD, $9D
233
+ .charmap $BE, $9E
234
+ .charmap $BF, $9F
235
+
236
+ .charmap $C0, $A0
237
+ .charmap $C1, $A1
238
+ .charmap $C2, $A2
239
+ .charmap $C3, $A3
240
+ .charmap $C4, $A4
241
+ .charmap $C5, $A5
242
+ .charmap $C6, $A6
243
+ .charmap $C7, $A7
244
+ .charmap $C8, $A8
245
+ .charmap $C9, $A9
246
+ .charmap $CA, $AA
247
+ .charmap $CB, $AB
248
+ .charmap $CC, $AC
249
+ .charmap $CD, $AD
250
+ .charmap $CE, $AE
251
+ .charmap $CF, $AF
252
+
253
+ .charmap $D0, $B0
254
+ .charmap $D1, $B1
255
+ .charmap $D2, $B2
256
+ .charmap $D3, $B3
257
+ .charmap $D4, $B4
258
+ .charmap $D5, $B5
259
+ .charmap $D6, $B6
260
+ .charmap $D7, $B7
261
+ .charmap $D8, $B8
262
+ .charmap $D9, $B9
263
+ .charmap $DA, $BA
264
+ .charmap $DB, $BB
265
+ .charmap $DC, $BC
266
+ .charmap $DD, $BD
267
+ .charmap $DE, $BE
268
+ .charmap $DF, $BF
269
+
270
+ .charmap $E0, $E0
271
+ .charmap $E1, $E1
272
+ .charmap $E2, $E2
273
+ .charmap $E3, $E3
274
+ .charmap $E4, $E4
275
+ .charmap $E5, $E5
276
+ .charmap $E6, $E6
277
+ .charmap $E7, $E7
278
+ .charmap $E8, $E8
279
+ .charmap $E9, $E9
280
+ .charmap $EA, $EA
281
+ .charmap $EB, $EB
282
+ .charmap $EC, $EC
283
+ .charmap $ED, $ED
284
+ .charmap $EE, $EE
285
+ .charmap $EF, $EF
286
+
287
+ .charmap $F0, $F0
288
+ .charmap $F1, $F1
289
+ .charmap $F2, $F2
290
+ .charmap $F3, $F3
291
+ .charmap $F4, $F4
292
+ .charmap $F5, $F5
293
+ .charmap $F6, $F6
294
+ .charmap $F7, $F7
295
+ .charmap $F8, $F8
296
+ .charmap $F9, $F9
297
+ .charmap $FA, $FA
298
+ .charmap $FB, $FB
299
+ .charmap $FC, $FC
300
+ .charmap $FD, $FD
301
+ .charmap $FE, $FE
302
+ .charmap $FF, $FF
303
+
@@ -0,0 +1,117 @@
1
+ ;
2
+ ; Oric Atmos definitions
3
+ ; BASIC 1.1 addresses
4
+ ;
5
+
6
+
7
+ ; ---------------------------------------------------------------------------
8
+ ; Constants
9
+
10
+ SCREEN_XSIZE = 40 ; screen columns
11
+ SCREEN_YSIZE = 28 ; screen rows
12
+
13
+ FUNCTKEY = $A5
14
+
15
+ FNAME_LEN = 16 ; maximum length of file-name
16
+
17
+
18
+ ; ---------------------------------------------------------------------------
19
+ ; Zero page
20
+
21
+ SCRPTR := $12
22
+ BASIC_BUF := $35
23
+ CHARGOT := $E8
24
+ TXTPTR := $E9
25
+
26
+
27
+ ; ---------------------------------------------------------------------------
28
+ ; Low memory
29
+
30
+ MODEKEY := $0209
31
+ CAPSLOCK := $020C ; $7F = not locked, $FF = locked
32
+ PATTERN := $0213
33
+ IRQVec := $0245 ; "fast" interrupt vector
34
+ JOINFLAG := $025A ; 0 = don't joiu, $4A = join BASIC programs
35
+ VERIFYFLAG := $025B ; 0 = load, 1 = verify
36
+ CURS_Y := $0268
37
+ CURS_X := $0269
38
+ STATUS := $026A
39
+ BACKGRND := $026B
40
+ FOREGRND := $026C
41
+ TIMER3 := $0276
42
+ CFILE_NAME := $027F
43
+ CFOUND_NAME := $0293
44
+ FILESTART := $02A9
45
+ FILEEND := $02AB
46
+ AUTORUN := $02AD ; $00 = only load, $C7 = autorun
47
+ LANGFLAG := $02AE ; $00 = BASIC, $80 = machine code
48
+ LOADERR := $02B1
49
+ KEYBUF := $02DF
50
+ PARMERR := $02E0
51
+ PARAM1 := $02E1 ; & $02E2
52
+ PARAM2 := $02E3 ; & $02E4
53
+ PARAM3 := $02E5 ; & $02E6
54
+ BANGVEC := $02F5
55
+
56
+
57
+ ; ---------------------------------------------------------------------------
58
+ ; I/O locations
59
+
60
+ ; 6522
61
+ .struct VIA ; Versatile Interface Adapter
62
+ .res $0300
63
+ PRB .byte ; Port Register B
64
+ PRA .byte ; Port Register A
65
+ DDRB .byte ; Data Direction Register B
66
+ DDRA .byte ; Data Direction Register A
67
+ T1 .word ; Timer 1
68
+ T1L .word ; Timer 1 Latch
69
+ T2 .word ; Timer 2
70
+ SR .byte ; Shift Register
71
+ ACR .byte ; Auxiliary Control Register
72
+ PCR .byte ; Peripheral Control Register
73
+ IFR .byte ; Interrupt Flags Register
74
+ IER .byte ; Interrupt Enable Register
75
+ PRA2 .byte ; Port Register A without handshaking
76
+ .endstruct
77
+
78
+ ; 6551
79
+ .struct ACIA ; Asynchronous Communications Interface Adapter
80
+ .res $031C
81
+ DATA .byte
82
+ STATUS .byte
83
+ CMD .byte ; Command register
84
+ CTRL .byte ; Control register
85
+ .endstruct
86
+
87
+ SCREEN := $BB80
88
+
89
+
90
+ ; ---------------------------------------------------------------------------
91
+ ; ROM entries
92
+
93
+ GETLINE := $C592
94
+ TEXT := $EC21
95
+ HIRES := $EC33
96
+ CURSET := $F0C8
97
+ CURMOV := $F0FD
98
+ DRAW := $F110
99
+ CHAR := $F12D
100
+ POINT := $F1C8
101
+ PAPER := $F204
102
+ INK := $F210
103
+ PRINT := $F77C
104
+
105
+ ; Sound Effects
106
+ PING := $FA9F
107
+ PING1 := $FA85
108
+ SHOOT := $FAB5
109
+ SHOOT1 := $FA9B
110
+ EXPLODE := $FACB
111
+ EXPLODE1 := $FAB1
112
+ ZAP := $FAE1
113
+ ZAP1 := $FAC7
114
+ TICK := $FB14
115
+ TICK1 := $FAFA
116
+ TOCK := $FB2A
117
+ TOCK1 := $FB10
@@ -0,0 +1,224 @@
1
+ ;
2
+ ; C128 generic definitions. Stolen from Elite128
3
+ ;
4
+
5
+
6
+ ; ---------------------------------------------------------------------------
7
+ ; Zero page, Commodore stuff
8
+
9
+ TXTPTR := $3D ; Pointer into BASIC source code
10
+ STATUS := $90 ; Kernal I/O completion status
11
+ TIME := $A0 ; 60HZ clock
12
+ FNAM_LEN := $B7 ; Length of filename
13
+ SECADR := $B9 ; Secondary address
14
+ DEVNUM := $BA ; Device number
15
+ FNAM := $BB ; Address of filename
16
+ FNAM_BANK := $C7 ; Bank for filename
17
+ KEY_COUNT := $D0 ; Number of keys in input buffer
18
+ FKEY_COUNT := $D1 ; Characters for function key
19
+ MODE := $D7 ; 40-/80-column mode (bit 7: 80 columns)
20
+ GRAPHM := $D8 ; Graphics mode flags (bits 5-7)
21
+ CHARDIS := $D9 ; Bit 2 shadow for location $01
22
+ CURS_X := $EC ; Cursor column
23
+ CURS_Y := $EB ; Cursor row
24
+ SCREEN_PTR := $E0 ; Pointer to current char in text screen
25
+ CRAM_PTR := $E2 ; Pointer to current char in color RAM
26
+
27
+ CHARCOLOR := $F1
28
+ RVS := $F3 ; Reverse output flag
29
+ SCROLL := $F8 ; Disable scrolling flag
30
+
31
+ BASIC_BUF := $0200 ; Location of command-line
32
+ BASIC_BUF_LEN = 162 ; Maximum length of command-line
33
+
34
+ FETCH := $02A2 ; Fetch subroutine in RAM
35
+ FETVEC := $02AA ; Vector patch location for FETCH
36
+ STASH := $02AF ; Stash routine in RAM
37
+ STAVEC := $02B9 ; Vector patch location for STASH
38
+ IRQInd := $02FD ; JMP $0000 -- used as indirect IRQ vector
39
+ PALFLAG := $0A03 ; $FF=PAL, $00=NTSC
40
+ INIT_STATUS := $0A04 ; Flags: Reset/Restore initiation status
41
+ VM2 := $0A2D ; VIC-IIe shadow for $D018 -- graphics mode
42
+ FKEY_LEN := $1000 ; Function key lengths
43
+ FKEY_TEXT := $100A ; Function key texts
44
+
45
+ KBDREPEAT := $028a
46
+ KBDREPEATRATE := $028b
47
+ KBDREPEATDELAY := $028c
48
+
49
+ ; ---------------------------------------------------------------------------
50
+ ; Vectors
51
+
52
+ IRQVec := $0314
53
+ BRKVec := $0316
54
+ NMIVec := $0318
55
+ KeyStoreVec := $033C
56
+
57
+ ; ---------------------------------------------------------------------------
58
+ ; I/O: VIC
59
+
60
+ VIC := $D000
61
+ VIC_SPR0_X := $D000
62
+ VIC_SPR0_Y := $D001
63
+ VIC_SPR1_X := $D002
64
+ VIC_SPR1_Y := $D003
65
+ VIC_SPR2_X := $D004
66
+ VIC_SPR2_Y := $D005
67
+ VIC_SPR3_X := $D006
68
+ VIC_SPR3_Y := $D007
69
+ VIC_SPR4_X := $D008
70
+ VIC_SPR4_Y := $D009
71
+ VIC_SPR5_X := $D00A
72
+ VIC_SPR5_Y := $D00B
73
+ VIC_SPR6_X := $D00C
74
+ VIC_SPR6_Y := $D00D
75
+ VIC_SPR7_X := $D00E
76
+ VIC_SPR7_Y := $D00F
77
+ VIC_SPR_HI_X := $D010
78
+ VIC_SPR_ENA := $D015
79
+ VIC_SPR_EXP_Y := $D017
80
+ VIC_SPR_EXP_X := $D01D
81
+ VIC_SPR_MCOLOR := $D01C
82
+ VIC_SPR_BG_PRIO := $D01B
83
+
84
+ VIC_SPR_MCOLOR0 := $D025
85
+ VIC_SPR_MCOLOR1 := $D026
86
+
87
+ VIC_SPR0_COLOR := $D027
88
+ VIC_SPR1_COLOR := $D028
89
+ VIC_SPR2_COLOR := $D029
90
+ VIC_SPR3_COLOR := $D02A
91
+ VIC_SPR4_COLOR := $D02B
92
+ VIC_SPR5_COLOR := $D02C
93
+ VIC_SPR6_COLOR := $D02D
94
+ VIC_SPR7_COLOR := $D02E
95
+
96
+ VIC_CTRL1 := $D011
97
+ VIC_CTRL2 := $D016
98
+
99
+ VIC_HLINE := $D012
100
+
101
+ VIC_LPEN_X := $D013
102
+ VIC_LPEN_Y := $D014
103
+
104
+ VIC_VIDEO_ADR := $D018
105
+
106
+ VIC_IRR := $D019 ; Interrupt request register
107
+ VIC_IMR := $D01A ; Interrupt mask register
108
+
109
+ VIC_BORDERCOLOR := $D020
110
+ VIC_BG_COLOR0 := $D021
111
+ VIC_BG_COLOR1 := $D022
112
+ VIC_BG_COLOR2 := $D023
113
+ VIC_BG_COLOR3 := $D024
114
+
115
+ ; 128 stuff:
116
+ VIC_KBD_128 := $D02F ; Extended kbd bits (visible in 64 mode)
117
+ VIC_CLK_128 := $D030 ; Clock rate register (visible in 64 mode)
118
+
119
+
120
+ ; ---------------------------------------------------------------------------
121
+ ; I/O: SID
122
+
123
+ SID := $D400
124
+ SID_S1Lo := $D400
125
+ SID_S1Hi := $D401
126
+ SID_PB1Lo := $D402
127
+ SID_PB1Hi := $D403
128
+ SID_Ctl1 := $D404
129
+ SID_AD1 := $D405
130
+ SID_SUR1 := $D406
131
+
132
+ SID_S2Lo := $D407
133
+ SID_S2Hi := $D408
134
+ SID_PB2Lo := $D409
135
+ SID_PB2Hi := $D40A
136
+ SID_Ctl2 := $D40B
137
+ SID_AD2 := $D40C
138
+ SID_SUR2 := $D40D
139
+
140
+ SID_S3Lo := $D40E
141
+ SID_S3Hi := $D40F
142
+ SID_PB3Lo := $D410
143
+ SID_PB3Hi := $D411
144
+ SID_Ctl3 := $D412
145
+ SID_AD3 := $D413
146
+ SID_SUR3 := $D414
147
+
148
+ SID_FltLo := $D415
149
+ SID_FltHi := $D416
150
+ SID_FltCtl := $D417
151
+ SID_Amp := $D418
152
+ SID_ADConv1 := $D419
153
+ SID_ADConv2 := $D41A
154
+ SID_Noise := $D41B
155
+ SID_Read3 := $D41C
156
+
157
+ ; ---------------------------------------------------------------------------
158
+ ; I/O: VDC (128 only)
159
+
160
+ VDC_INDEX := $D600 ; register address port
161
+ VDC_DATA := $D601 ; data port
162
+
163
+ ; Registers
164
+ VDC_DATA_HI = 18 ; video RAM address (big endian)
165
+ VDC_DATA_LO = 19
166
+ VDC_CSET = 28
167
+ VDC_RAM_RW = 31 ; RAM port
168
+
169
+ ; ---------------------------------------------------------------------------
170
+ ; I/O: Complex Interface Adapters
171
+
172
+ CIA1 := $DC00
173
+ CIA1_PRA := $DC00 ; Port A
174
+ CIA1_PRB := $DC01 ; Port B
175
+ CIA1_DDRA := $DC02 ; Data direction register for port A
176
+ CIA1_DDRB := $DC03 ; Data direction register for port B
177
+ CIA1_TA := $DC04 ; 16-bit timer A
178
+ CIA1_TB := $DC06 ; 16-bit timer B
179
+ CIA1_TOD10 := $DC08 ; Time-of-day tenths of a second
180
+ CIA1_TODSEC := $DC09 ; Time-of-day seconds
181
+ CIA1_TODMIN := $DC0A ; Time-of-day minutes
182
+ CIA1_TODHR := $DC0B ; Time-of-day hours
183
+ CIA1_SDR := $DC0C ; Serial data register
184
+ CIA1_ICR := $DC0D ; Interrupt control register
185
+ CIA1_CRA := $DC0E ; Control register for timer A
186
+ CIA1_CRB := $DC0F ; Control register for timer B
187
+
188
+ CIA2 := $DD00
189
+ CIA2_PRA := $DD00
190
+ CIA2_PRB := $DD01
191
+ CIA2_DDRA := $DD02
192
+ CIA2_DDRB := $DD03
193
+ CIA2_TA := $DD04
194
+ CIA2_TB := $DD06
195
+ CIA2_TOD10 := $DD08
196
+ CIA2_TODSEC := $DD09
197
+ CIA2_TODMIN := $DD0A
198
+ CIA2_TODHR := $DD0B
199
+ CIA2_SDR := $DD0C
200
+ CIA2_ICR := $DD0D
201
+ CIA2_CRA := $DD0E
202
+ CIA2_CRB := $DD0F
203
+
204
+ ; ---------------------------------------------------------------------------
205
+ ; I/O: MMU
206
+
207
+ MMU_CR := $FF00
208
+ MMU_CFG_CC65 := %00001110 ; Bank 0 with kernal ROM
209
+ MMU_CFG_RAM0 := %00111111 ; Bank 0 full RAM
210
+ MMU_CFG_RAM1 := %01111111 ; Bank 1 full RAM
211
+ MMU_CFG_RAM2 := %10111111 ; Bank 2 full RAM
212
+ MMU_CFG_RAM3 := %11111111 ; Bank 3 full RAM
213
+ MMU_CFG_IFROM := %01010111 ; Bank 1 with Internal Function RAM/ROM
214
+ MMU_CFG_EFROM := %01101011 ; Bank 1 with External Function RAM/ROM
215
+
216
+ ; ---------------------------------------------------------------------------
217
+ ; Super CPU
218
+
219
+ SCPU_VIC_Bank1 := $D075
220
+ SCPU_Slow := $D07A
221
+ SCPU_Fast := $D07B
222
+ SCPU_EnableRegs := $D07E
223
+ SCPU_DisableRegs:= $D07F
224
+ SCPU_Detect := $D0BC
package/asminc/c16.inc ADDED
@@ -0,0 +1,9 @@
1
+ ;
2
+ ; C16 generic definitions.
3
+ ;
4
+ ; The C16 and Plus/4 are identical, so just include the Plus/4 include file.
5
+
6
+
7
+ .include "plus4.inc"
8
+
9
+