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
@@ -0,0 +1,546 @@
1
+ ;
2
+ ; Oric TELEMON definition
3
+ ; TELEMON 2.4 & Orix
4
+ ; For Orix check http://orix.oric.org
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 = 11 ; Maximum length of file-name
16
+
17
+ ; ---------------------------------------------------------------------------
18
+ ; I/O Identifier
19
+ ; Theses identifers are used for channel management
20
+ ;
21
+
22
+ XKBD = $80 ; Keyboard
23
+ XRSE = $83 ; RS232 in
24
+ XSCR = $88 ; Screen
25
+ XRSS = $90 ; RS232 out
26
+
27
+ ; ---------------------------------------------------------------------------
28
+ ; Zero page
29
+
30
+ ; ---------------------------------------------------------------------------
31
+ ; Page 00
32
+ RES := $00
33
+ RESB := $02
34
+
35
+ DECDEB := $04
36
+ DECFIN := $06
37
+ DECCIB := $08
38
+ DECTRV := $0A
39
+
40
+ TR0 := $0C
41
+ TR1 := $0D
42
+ TR2 := $0E
43
+ TR3 := $0F
44
+ TR4 := $10
45
+ TR5 := $11
46
+ TR6 := $12
47
+ TR7 := $13
48
+
49
+ DEFAFF := $14
50
+
51
+ IRQSVA := $21 ; Used to save A when a BRK call occurs
52
+ IRQSVX := $22 ; Used to save X when a BRK call occurs
53
+ IRQSVY := $23 ; Used to save Y when a BRK call occurs
54
+ IRQSVP := $24 ; Used to save P when a BRK call occurs
55
+
56
+ ADSCR := $26
57
+ SCRNB := $28 ; Id of the current window
58
+
59
+ ADKBD := $2A ; Address ASCII conversion table
60
+
61
+
62
+ PTR_READ_DEST := $2C ; Used for XFREAD and XWRITE only in Orix
63
+
64
+ ADCLK := $40 ; Address for clock display
65
+ TIMEUS := $42
66
+ TIMEUD := $44 ; Counter clock (1/10 of a second)
67
+
68
+
69
+ HRSX := $46
70
+ HRSY := $47
71
+
72
+ XLPRBI := $48 ; Printer flag (b7)
73
+
74
+ HRSX40 := $49
75
+ HRSX6 := $4A
76
+
77
+ ADHRS := $4B ; Hires screen address (word)
78
+
79
+ HRS1 := $4D
80
+ HRS2 := $4F
81
+ HRS3 := $51
82
+ HRS4 := $53
83
+ HRS5 := $55
84
+
85
+ HRSFB := $57
86
+
87
+ VABKP1 := $58
88
+
89
+ ; RS232T
90
+ ; b0-b3 : speed
91
+ ; 1111 => 19200 bps (please note that telestrat can't handle this speed without stopping all IRQ except ACIA's one)
92
+ ; 1100 => 9600 bps (default from TELEMON)
93
+ ; 1110 => 4800 bps
94
+ ; 1010 => 2400 bps
95
+ ; 1000 => 1200 bps
96
+ ; 0111 => 600 bps
97
+ ; 0110 => 300 bps
98
+ ; 0101 => 150 bps
99
+ ; 0010 => 75 bps
100
+
101
+ ; b4 : 0 external clock, 1 internal clock
102
+ ; b6-b5 : 00 8 bits
103
+ ; 01 7 bits
104
+ ; 10 6 bits
105
+ ; 11 5 bits
106
+ ; b7 : 0 a stop
107
+
108
+ RS232T := $59
109
+
110
+ ; RS232C
111
+ ; b0-b3 : 0
112
+ ; b4 : 1 if echo
113
+ ; b5 : 1 if parity
114
+ ; b7-b6 : 00 in/out parity odd
115
+ ; : 01 on/out parity even
116
+ ; : 10 parity sent, answer not tested
117
+ ; : 11 SPACE SENT, reception not tested
118
+
119
+ RS232C := $5A
120
+ INDRS := $5B
121
+
122
+ ; Float and integer management
123
+ ACC1E := $60
124
+ ACC1M := $61
125
+ ACC1S := $65
126
+ ACC1EX := $66
127
+ ACC1J := $67
128
+ ACC2E := $68
129
+ ACC2M := $69
130
+ ACC2S := $6D
131
+ ACCPS := $6E
132
+ ACC3 := $6F
133
+
134
+ ACC4E := $73
135
+ ACC4M := $74
136
+
137
+
138
+ FLDT0 := $74
139
+ FLDT1 := $75
140
+ FLDT2 := $76
141
+ FLSVY := $77
142
+ FLTR0 := $7D
143
+ FLTR1 := $7E
144
+
145
+ ; Menu management
146
+ MENDDY := $62
147
+ MENDFY := $63
148
+ MENX := $64
149
+ MENDY := $66
150
+ FLGMEN := $68
151
+ ADMEN := $69
152
+
153
+ FLSGN := $8A
154
+ FLINT := $88
155
+ FLSVS := $89
156
+ FLERR := $8B
157
+
158
+ VARLNG := $8C
159
+ VARAPL := $D0
160
+
161
+ ; ---------------------------------------------------------------------------
162
+ ; Low memory
163
+ IRQVec := $02FB ; "fast" interrupt vector
164
+
165
+ ; ---------------------------------------------------------------------------
166
+ ; I/O locations
167
+
168
+ ; 6522
169
+ .struct VIA ; Versatile Interface Adapter
170
+ .res $0300
171
+ PRB .byte ; Port Register B
172
+ PRA .byte ; Port Register A
173
+ DDRB .byte ; Data Direction Register B
174
+ DDRA .byte ; Data Direction Register A
175
+ T1 .word ; Timer 1
176
+ T1L .word ; Timer 1 Latch
177
+ T2 .word ; Timer 2
178
+ SR .byte ; Shift Register
179
+ ACR .byte ; Auxiliary Control Register
180
+ PCR .byte ; Peripheral Control Register
181
+ IFR .byte ; Interrupt Flags Register
182
+ IER .byte ; Interrupt Enable Register
183
+ PRA2 .byte ; Port Register A without handshaking
184
+ .endstruct
185
+
186
+
187
+ .struct VIA2 ; Versatile Interface Adapter
188
+ .res $0320
189
+ PRB .byte ; Port Register B
190
+ PRA .byte ; Port Register A
191
+ DDRB .byte ; Data Direction Register B
192
+ DDRA .byte ; Data Direction Register A
193
+ T1 .word ; Timer 1
194
+ T1L .word ; Timer 1 Latch
195
+ T2 .word ; Timer 2
196
+ SR .byte ; Shift Register
197
+ ACR .byte ; Auxiliary Control Register
198
+ PCR .byte ; Peripheral Control Register
199
+ IFR .byte ; Interrupt Flags Register
200
+ IER .byte ; Interrupt Enable Register
201
+ PRA2 .byte ; Port Register A without handshaking
202
+ .endstruct
203
+
204
+ ; 6551
205
+ .struct ACIA ; Asynchronous Communications Interface Adapter
206
+ .res $031C
207
+ DATA .byte
208
+ STATUS .byte
209
+ CMD .byte ; Command register
210
+ CTRL .byte ; Control register
211
+ .endstruct
212
+
213
+ SCREEN := $BB80
214
+
215
+
216
+ ; ---------------------------------------------------------------------------
217
+ ; ROM entries
218
+
219
+ ; TELEMON primitives (2.4 & 3.x)
220
+
221
+ ; all values are used to call bank 7 of telestrat cardridge. It works with 'brk value'
222
+ XOP0 = $00 ; Open device on channel 0
223
+ XOP1 = $01 ; Open device on channel 1
224
+ XOP2 = $02 ; Open device on channel 2
225
+ XOP3 = $03 ; Open device on channel 3
226
+
227
+ XCL0 = $04 ; Close channel 0
228
+ XCL1 = $05 ; Close channel 1
229
+ XCL2 = $06 ; Close channel 2
230
+ XCL3 = $07 ; Close channel 3
231
+
232
+ XRD0 = $08
233
+ XRDW0 = $0C
234
+
235
+ XWR0 = $10 ; Write a char in channel 0
236
+ XWR1 = $11 ; Write a char in channel 1
237
+ XWR2 = $12 ; Write a char in channel 2
238
+ XWR3 = $13 ; Write a char in channel 3
239
+
240
+ XWSTR0 = $14 ; Write a string in text mode channel 0
241
+ XWSTR1 = $15 ; Write a string in text mode channel 1
242
+ XWSTR2 = $16 ; Write a string in text mode channel 2
243
+ XWSTR3 = $17 ; Write a string in text mode channel 3
244
+
245
+ XDECAL = $18
246
+
247
+ XTEXT = $19
248
+ XHIRES = $1A
249
+ XEFFHI = $1B ; Clear hires screen
250
+ XFILLM = $1C
251
+ XMINMA = $1F
252
+ XVARS = $24 ; Only in Orix, in TELEMON 2.4, it's XNOMFI ($24)
253
+ XCRLF = $25 ; Jump a line and return to the beginning of the line
254
+ XDECAY = $26
255
+ XFREAD = $27 ; Only in Orix
256
+ XBINDX = $28 ; Convert a number into hex and displays on channel 0
257
+ XDECIM = $29
258
+ XHEXA = $2A ; Convert a number into hex
259
+
260
+ XMAINARGS = $2C ; Only available for Orix
261
+
262
+ XEDT = $2D ; Launch editor
263
+ XINSER = $2E
264
+ XGETARGV = $2E ; Only available for Orix
265
+
266
+ XSCELG = $2F ; Search a line in editor mode
267
+ XOPEN = $30 ; Only in Orix
268
+ XECRPR = $33 ; Displays prompt
269
+ XCOSCR = $34 ; Switch off cursor
270
+ XCSSCR = $35 ; Switch on cursor
271
+ XSCRSE = $36
272
+ XSCROH = $37 ; Scroll up text screen
273
+ XSCROB = $38 ; Scroll down text screen
274
+ XSCRNE = $39 ; Load charset from rom to ram
275
+ XCLOSE = $3A ; Only in Orix close file
276
+ XFWRITE = $3B ; Only in Orix write file
277
+
278
+ ; Clock primitive
279
+ XRECLK = $3C ; Reset clock
280
+ XCLCL = $3D ; Close clock
281
+ XWRCLK = $3E ; Displays clock in the address in A & Y registers
282
+
283
+ XFSEEK = $3F ; Only in Orix
284
+
285
+ ; Sound primitives
286
+ XSONPS = $40 ; Send data to PSG register (14 values)
287
+ XOUPS = $42 ; Send Oups sound into PSG
288
+ XPLAY = $43 ; Play a sound
289
+ XSOUND = $44
290
+ XMUSIC = $45
291
+ XZAP = $46 ; Send Zap sound to PSG
292
+ XSHOOT = $47
293
+
294
+ ; Path Management
295
+ XGETCWD = $48 ; Get current CWD
296
+ XPUTCWD = $49 ; Chdir
297
+
298
+ ; File management
299
+ XMKDIR = $4B ; Create a folder. Only available in Orix
300
+
301
+ XHCHRS = $4C ; Hard copy hires
302
+
303
+ ; File management
304
+ XRM = $4D ; Remove a folder or a file. Only available in Orix
305
+
306
+ XFWR = $4E ; Put a char on the first screen. Only available in Orix
307
+
308
+ ; Keyboard primitives
309
+ XALLKB = $50 ; Read Keyboard, and populate KBDCOL
310
+ XKBDAS = $51 ; Ascii conversion
311
+ XGOKBD = $52 ; Swap keyboard type (Qwerty, French ...)
312
+
313
+ ; Buffer management
314
+ XECRBU = $54 ; Write A or AY in the buffer
315
+ XLISBU = $55 ; Read A or AY in the buffer
316
+ XTSTBU = $56
317
+ XVIDBU = $57 ; Flush the buffer
318
+ XINIBU = $58 ; Initialize the buffer X
319
+ XDEFBU = $59 ; Reset all value of the buffer
320
+ XBUSY = $5A ; Test if the buffer is empty
321
+
322
+ XMALLOC = $5B ; Only in Orix
323
+
324
+ ; RS232 primitives
325
+ XSDUMP = $5C ; RS232 input dump
326
+ XCONSO = $5D ; Swap screen into RS232 terminal
327
+ XSLOAD = $5E ; Read a file from RS232
328
+ XSSAVE = $5F ; Write a file to RS232
329
+
330
+ ; Minitel primitives
331
+ XMLOAD = $60 ; Read a file from Minitel
332
+ XMSAVE = $61 ; Write a file to Minitel
333
+
334
+ XFREE = $62 ; Only in Orix
335
+
336
+ XEXEC = $63 ; Only in Orix
337
+
338
+ ; Next Minitel primitives
339
+ XWCXFI = $63 ; Wait connection
340
+ XLIGNE = $64 ;
341
+ XDECON = $65 ; Minitel disconnection
342
+ XMOUT = $66 ; Send a byte to minitel (from A)
343
+
344
+ XSOUT = $67 ; Send accumulator value (A) to RS232, available in TELEMON 2.4 : if RS232 buffer is full, the Oric Telestrat freezes
345
+
346
+ XHRSSE = $8C ; Set hires position cursor
347
+ XDRAWA = $8D ; Draw a line absolute
348
+ XDRAWR = $8E ; Draw a line (relative)
349
+ XCIRCL = $8F ; Draw a circle
350
+ XCURSE = $90 ; Plot a pixel
351
+ XCURMO = $91 ; Move to x,y pos in Hires
352
+ XPAPER = $92
353
+ XINK = $93
354
+ XBOX = $94 ; Draw a box
355
+ XABOX = $95
356
+ XFILL = $96
357
+ XCHAR = $97 ; Display a char on the screen in Hires
358
+ XSCHAR = $98 ; Draw a string in hires
359
+ XEXPLO = $9C ; Send Explode sound to PSG
360
+ XPING = $9D ; Send Ping sound to PSG
361
+
362
+ ; ---------------------------------------------------------------------------
363
+ ; ROM entries variables
364
+
365
+ PWD_PTR = $00
366
+
367
+ ; ---------------------------------------------------------------------------
368
+ ;
369
+ BUFTRV := $100
370
+
371
+
372
+ ; ---------------------------------------------------------------------------
373
+ ; Page $200
374
+ BNKST := $200 ; Used to store signature of 8 bank (length : 8 bytes)
375
+ TABDRV := $208
376
+
377
+ DRVDEF := $20C
378
+ FLGTEL := $20D
379
+ KOROM := $20E ; Used to compute the size of all rom bank. The result is store here. The value is in KB
380
+ KORAM := $20F ; Used to compute the size of all ram bank. The result is store here. The value is in KB
381
+ ; Time management
382
+ TIMED := $210 ; Clock (1/10 of seconds)
383
+ TIMES := $211
384
+ TIMEM := $212
385
+ TIMEH := $213
386
+ FLGCLK := $214
387
+ FLGCLK_FLAG := $215
388
+ FLGCUR := $216 ; Cursor management flag
389
+ ; screens position managements
390
+
391
+ FLGCUR_STATE := $217 ; Cursor state flag
392
+
393
+ ADSCRL := $218
394
+ ADSCRH := $21C
395
+ SCRX := $220
396
+ SCRY := $224
397
+
398
+ SCRDX := $228
399
+ SCRFX := $22C
400
+ SCRDY := $230
401
+ SCRFY := $234
402
+ SCRBAL := $238
403
+ SCRBAH := $23C
404
+ SCRCT := $240
405
+ SCRCF := $244
406
+ FLGSCR := $248
407
+ CURSCR := $24C
408
+
409
+ HARD_COPY_HIRES := $250 ; Hard copy vector
410
+
411
+ SCRTXT := $256
412
+ SCRHIR := $25C
413
+ SCRTRA := $262 ; 6 bytes lenfth
414
+
415
+ ; Keyboard management
416
+ KBDCOL := $268 ; 8 bytes length
417
+ KBDFLG_KEY := $270 ; 0 if no key pressed
418
+ KBDVRR := $272
419
+
420
+ KBDVRL := $273
421
+ FLGKBD := $275
422
+ KBDFCT := $276
423
+ KBDSHT := $278
424
+
425
+ KBDKEY := $279
426
+ KBDCTC := $27E
427
+ LPRX := $286
428
+ LPRY := $287
429
+ LPRFX := $288
430
+ LPRFY := $289
431
+ FLGLPR := $28A
432
+
433
+ ; Joysticks management
434
+ FLGJCK := $28C
435
+ JCGVAL := $28D
436
+ JCDVAL := $28E
437
+ JCKTAB := $29D
438
+
439
+
440
+ HRSPAT := $2AA ; Hires pattern : it's used to draw pattern for a line or a circle
441
+ HRSERR := $2AB
442
+
443
+ IOTAB0 := $2AE
444
+ IOTAB1 := $2B2
445
+ IOTAB2 := $2B6
446
+ IOTAB3 := $2BA
447
+ ADIOB := $2BE ; 48 bytes length
448
+ FLGRST := $2EE
449
+ CSRND := $2EF
450
+ VNMI := $2F4
451
+ ADIODB_VECTOR := $2f7 ; 3 bytes length
452
+
453
+ IRQVECTOR := $2FA
454
+ VAPLIC := $2FD
455
+
456
+ ; ---------------------------------------------------------------------------
457
+ ; Page $400
458
+ EXBNK := $40C
459
+ VEXBNK := $414
460
+ BNKCIB := $417
461
+
462
+ ; ---------------------------------------------------------------------------
463
+ ; Page $500
464
+
465
+ DRIVE := $500
466
+ ERRNB := $512
467
+ SAVES := $513
468
+ BUFNOM := $517
469
+ VSALO0 := $528
470
+ VSALO1 := $529
471
+ FTYPE := $52C ; File type
472
+ DESALO := $52D
473
+ FISALO := $52F
474
+ EXSALO := $531
475
+ EXTDEF := $55D ; Default extension. At the start of telemon, it's set to ".COM"
476
+ BUFEDT := $590 ; Buffer edition
477
+
478
+ MAX_BUFEDT_LENGTH=110
479
+
480
+ ; ---------------------------------------------------------------------------
481
+ ; Hardware
482
+ CH376_DATA := $340
483
+ CH376_COMMAND := $341
484
+
485
+ ; RAM overlays buffer
486
+ BUFBUF := $c080
487
+
488
+ ; ---------------------------------------------------------------------------
489
+ ; Stratsed vectors
490
+ ; Stratsed is the main OS for Telestrat
491
+ XMERGE := $FF0E
492
+ XFST := $FF11
493
+ XSPUT := $FF14
494
+ XSTAKE := $FF17
495
+ XTAKE := $FF20
496
+ XOPENS := $FF1A ; XOPEN from Stratsed
497
+ XCLOSES := $FF1D ; XCLOSE from Stratsed
498
+ XPUT := $FF23
499
+ XREWIN := $FF29
500
+ XJUMP := $FF2C
501
+ XLGBUF := $FF2F
502
+ XERVEC := $FF32
503
+ XESAVE := $FF35
504
+ XCOPY := $FF38
505
+ XDNAME := $FF3B
506
+ XSTATU := $FF3E
507
+ XUPDAT := $FF41
508
+ XFORMA := $FF44
509
+ XDELBK := $FF4A
510
+ XDELN := $FF4D
511
+ XPROT := $FF50
512
+ XUNPRO := $FF53
513
+ XDIRN := $FF56
514
+ XBKP := $FF59
515
+ XINITI := $FF5C
516
+ XERREU := $FF5F
517
+ XLOAD := $FF62
518
+ XDEFSA := $FF65
519
+ XDEFLO := $FF68
520
+ XSAVE := $FF6B
521
+ XNOMDE := $FF6E
522
+ XCREAY := $FF71
523
+ XDETSE := $FF74
524
+ XLIBSE := $FF77
525
+ XTRVCA := $FF7A
526
+ XTRVNM := $FF7D
527
+ XTRVNX := $FF80
528
+ XBUCA := $FF86
529
+ XVBUF1 := $FF89
530
+ XSVSEC := $FF8C
531
+ XSAY := $FF8F
532
+ XSBUF1 := $FF92
533
+ XSBUF2 := $FF95
534
+ XSBUF3 := $FF98
535
+ XSCAT := $FF9B
536
+ XPRSEC := $FFA1
537
+ XPBUF1 := $FFA4
538
+ XPMAP := $FFA7
539
+ XRWTS := $FFAA
540
+
541
+ ; ---------------------------------------------------------------------------
542
+ ; MACRO
543
+
544
+ .macro BRK_TELEMON value
545
+ .byte $00,value
546
+ .endmacro
@@ -0,0 +1,52 @@
1
+ ;*****************************************************************************/
2
+ ;* */
3
+ ;* tgi-error.inc */
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
+ ; Error constants
37
+ .enum
38
+ TGI_ERR_OK ; No error
39
+ TGI_ERR_NO_DRIVER ; No driver available
40
+ TGI_ERR_CANNOT_LOAD ; Error loading driver or font
41
+ TGI_ERR_INV_DRIVER ; Invalid driver
42
+ TGI_ERR_INV_MODE ; Mode not supported by driver
43
+ TGI_ERR_INV_ARG ; Invalid function argument
44
+ TGI_ERR_INV_FUNC ; Function not supported
45
+ TGI_ERR_INV_FONT ; Font file is invalid
46
+ TGI_ERR_NO_RES ; Out of resources (memory, handles, ...)
47
+ TGI_ERR_UNKNOWN ; Unknown error
48
+ TGI_ERR_INSTALLED ; A driver is already installed
49
+
50
+ TGI_ERR_COUNT ; Special: Number of error messages
51
+ .endenum
52
+