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,65 @@
1
+ ; Convert characters to screen codes
2
+
3
+ ; Helper macro that converts and outputs one character
4
+ .macro _scrcode char
5
+ .if (char >= 0) .and (char <= 31)
6
+ .byte (char + 64)
7
+ .elseif (char >= 32) .and (char <= 95)
8
+ .byte (char - 32)
9
+ .elseif (char >= 96) .and (char <= 127)
10
+ .byte char
11
+ .elseif (char >= 128) .and (char <= 159)
12
+ .byte (char + 64)
13
+ .elseif (char >= 160) .and (char <= 223)
14
+ .byte (char - 32)
15
+ .elseif (char >= 224) .and (char <= 255)
16
+ .byte char
17
+ .else
18
+ .error "scrcode: Character constant out of range"
19
+ .endif
20
+ .endmacro
21
+
22
+ .macro scrcode arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9
23
+
24
+ ; Bail out if next argument is empty
25
+ .if .blank (arg1)
26
+ .exitmacro
27
+ .endif
28
+
29
+ ; Check for a string
30
+ .if .match ({arg1}, "")
31
+
32
+ ; Walk over all string chars
33
+ .repeat .strlen (arg1), i
34
+ _scrcode {.strat (arg1, i)}
35
+ .endrepeat
36
+
37
+ ; Check for a number
38
+ .elseif .match (.left (1, {arg1}), 0)
39
+
40
+ ; Just output the number
41
+ _scrcode arg1
42
+
43
+ ; Check for a character
44
+ .elseif .match (.left (1, {arg1}), 'a')
45
+
46
+ ; Just output the character
47
+ _scrcode arg1
48
+
49
+ ; Check for an identifier
50
+ .elseif .match (.left (1, {arg1}), identifier)
51
+
52
+ ; Just output the identifier
53
+ _scrcode arg1
54
+
55
+ ; Anything else is an error
56
+ .else
57
+
58
+ .error "scrcode: invalid argument type"
59
+
60
+ .endif
61
+
62
+ ; Call the macro recursively with the remaining args
63
+ scrcode arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9
64
+ .endmacro
65
+
@@ -0,0 +1,7 @@
1
+ ; Atari 2600 TIA & RIOT read / write registers
2
+ ;
3
+ ; Florent Flament (contact@florentflament.com), 2017
4
+
5
+ ; TIA & RIOT registers mapping
6
+ .include "atari2600_tia.inc"
7
+ .include "atari2600_riot.inc"
@@ -0,0 +1,20 @@
1
+ ; Atari 2600 RIOT read / write registers
2
+ ;
3
+ ; Source: DASM - vcs.h
4
+ ; Details available in: Stella Programmer's Guide by Steve Wright
5
+ ;
6
+ ; Florent Flament (contact@florentflament.com), 2017
7
+
8
+ ; Read registers
9
+ SWCHA := $0280
10
+ SWACNT := $0281
11
+ SWCHB := $0282
12
+ SWBCNT := $0283
13
+ INTIM := $0284
14
+ TIMINT := $0285
15
+
16
+ ; Write registers
17
+ TIM1T := $0294
18
+ TIM8T := $0295
19
+ TIM64T := $0296
20
+ T1024T := $0297
@@ -0,0 +1,69 @@
1
+ ; Atari 2600 TIA read / write registers
2
+ ;
3
+ ; Source: DASM - vcs.h
4
+ ; Details available in: Stella Programmer's Guide by Steve Wright
5
+ ;
6
+ ; Florent Flament (contact@florentflament.com), 2017
7
+
8
+ ; Read registers
9
+ VSYNC := $00
10
+ VBLANK := $01
11
+ WSYNC := $02
12
+ RSYNC := $03
13
+ NUSIZ0 := $04
14
+ NUSIZ1 := $05
15
+ COLUP0 := $06
16
+ COLUP1 := $07
17
+ COLUPF := $08
18
+ COLUBK := $09
19
+ CTRLPF := $0A
20
+ REFP0 := $0B
21
+ REFP1 := $0C
22
+ PF0 := $0D
23
+ PF1 := $0E
24
+ PF2 := $0F
25
+ RESP0 := $10
26
+ RESP1 := $11
27
+ RESM0 := $12
28
+ RESM1 := $13
29
+ RESBL := $14
30
+ AUDC0 := $15
31
+ AUDC1 := $16
32
+ AUDF0 := $17
33
+ AUDF1 := $18
34
+ AUDV0 := $19
35
+ AUDV1 := $1A
36
+ GRP0 := $1B
37
+ GRP1 := $1C
38
+ ENAM0 := $1D
39
+ ENAM1 := $1E
40
+ ENABL := $1F
41
+ HMP0 := $20
42
+ HMP1 := $21
43
+ HMM0 := $22
44
+ HMM1 := $23
45
+ HMBL := $24
46
+ VDELP0 := $25
47
+ VDELP1 := $26
48
+ VDELBL := $27
49
+ RESMP0 := $28
50
+ RESMP1 := $29
51
+ HMOVE := $2A
52
+ HMCLR := $2B
53
+ CXCLR := $2C
54
+
55
+ ; Write registers
56
+ CXM0P := $00
57
+ CXM1P := $01
58
+ CXP0FB := $02
59
+ CXP1FB := $03
60
+ CXM0FB := $04
61
+ CXM1FB := $05
62
+ CXBLPF := $06
63
+ CXPPMM := $07
64
+ INPT0 := $08
65
+ INPT1 := $09
66
+ INPT2 := $0A
67
+ INPT3 := $0B
68
+ INPT4 := $0C
69
+ INPT5 := $0D
@@ -0,0 +1,133 @@
1
+ ;-------------------------------------------------------------------------
2
+ ; Atari 5200 System Equates
3
+ ; by Christian Groessler <chris@groessler.org>
4
+ ; taken from EQUATES.INC from Atari Inc.
5
+ ;-------------------------------------------------------------------------
6
+
7
+ ;-------------------------------------------------------------------------
8
+ ; ATASCII CHARACTER DEFS
9
+ ;-------------------------------------------------------------------------
10
+
11
+ ATEOL = $9B ; END-OF-LINE, used by CONIO
12
+
13
+ ;-------------------------------------------------------------------------
14
+ ; CONIO CHARACTER DEFS
15
+ ;-------------------------------------------------------------------------
16
+
17
+ CH_ULCORNER = $0B ; '+' sign
18
+ CH_URCORNER = $0B
19
+ CH_LLCORNER = $0B
20
+ CH_LRCORNER = $0B
21
+ CH_HLINE = $0D ; dash
22
+ CH_VLINE = $01 ; exclamation mark
23
+
24
+ ;-------------------------------------------------------------------------
25
+ ; Zero Page
26
+ ;-------------------------------------------------------------------------
27
+
28
+ POKMSK = $00 ; Mask for Pokey IRQ enable
29
+ RTCLOK = $01 ; 60 hz. clock
30
+ JUMP = $01
31
+ CRITIC = $03 ; Critical section
32
+ ATRACT = $04 ; Attract Mode
33
+
34
+ SDLSTL = $05 ; DLISTL Shadow
35
+ SDLSTH = $06 ; DLISTH "
36
+ SDMCTL = $07 ; DMACTL "
37
+
38
+ PCOLR0 = $08 ; COLPM0 Shadow
39
+ PCOLR1 = $09 ; COLPM1 "
40
+ PCOLR2 = $0A ; COLPM2 "
41
+ PCOLR3 = $0B ; COLPM3 "
42
+
43
+ COLOR0 = $0C ; COLPF0 Shadow
44
+ COLOR1 = $0D ; COLPF1 "
45
+ COLOR2 = $0E ; COLPF2 "
46
+ COLOR3 = $0F ; COLPF3 "
47
+ COLOR4 = $10 ; COLBK "
48
+
49
+ PADDL0 = $11 ; POT0 Shadow
50
+ PADDL1 = $12 ; POT1 "
51
+ PADDL2 = $13 ; POT2 "
52
+ PADDL3 = $14 ; POT3 "
53
+ PADDL4 = $15 ; POT4 "
54
+ PADDL5 = $16 ; POT5 "
55
+ PADDL6 = $17 ; POT6 "
56
+ PADDL7 = $18 ; POT7 "
57
+
58
+ ; cc65 runtime zero page variables
59
+
60
+ ROWCRS_5200 = $19
61
+ COLCRS_5200 = $1A
62
+ SAVMSC = $1B ; pointer to screen memory (conio)
63
+
64
+ ;-------------------------------------------------------------------------
65
+ ; Page #2
66
+ ;-------------------------------------------------------------------------
67
+
68
+ ;Interrupt Vectors
69
+
70
+ VIMIRQ = $0200 ; Immediate IRQ
71
+ ; Preset $FC03 (SYSIRQ)
72
+ VVBLKI = $0202 ; Vblank immediate
73
+ ; Preset $FCB8 (SYSVBL)
74
+ VVBLKD = $0204 ; Vblank deferred
75
+ ; Preset $FCB2 (XITVBL)
76
+ VDSLST = $0206 ; Display List
77
+ ; Preset $FEA1 (OSDLI)
78
+ VKYBDI = $0208 ; Keyboard immediate
79
+ ; Preset $FD02 (SYSKBD)
80
+ VKYBDF = $020A ; Deferred Keyboard
81
+ ; Preset $FCB2 (XITVBL)
82
+ VTRIGR = $020C ; Soft Trigger
83
+ VBRKOP = $020E ; BRK Opcode
84
+ VSERIN = $0210 ; Serial in Ready
85
+ VSEROR = $0212 ; Serial Out Ready
86
+ VSEROC = $0214 ; Serial Output complete
87
+ VTIMR1 = $0216 ; Pokey Timer 1
88
+ VTIMR2 = $0218 ; Pokey Timer 2
89
+ VTIMR4 = $021A ; Pokey Timer 4
90
+
91
+
92
+
93
+ ;-------------------------------------------------------------------------
94
+ ; CTIA/GTIA Address Equates
95
+ ;-------------------------------------------------------------------------
96
+
97
+ GTIA = $C000 ; CTIA/GTIA area
98
+ .include "atari_gtia.inc"
99
+
100
+ ;-------------------------------------------------------------------------
101
+ ; ANTIC Address Equates
102
+ ;-------------------------------------------------------------------------
103
+
104
+ ANTIC = $D400 ; ANTIC area
105
+ .include "atari_antic.inc"
106
+
107
+ ;-------------------------------------------------------------------------
108
+ ; POKEY Address Equates
109
+ ;-------------------------------------------------------------------------
110
+
111
+ POKEY = $E800 ; POKEY area
112
+ .include "atari_pokey.inc"
113
+
114
+ ;-------------------------------------------------------------------------
115
+ ; conio color defines
116
+ ;-------------------------------------------------------------------------
117
+
118
+ COLOR_WHITE = 0
119
+ COLOR_RED = 1
120
+ COLOR_GREEN = 2
121
+ COLOR_BLACK = 3
122
+
123
+ ;-------------------------------------------------------------------------
124
+ ; Cartridge Parameters
125
+ ;-------------------------------------------------------------------------
126
+
127
+ CARTNM = $BFE8 ; Cartridge Name Area
128
+ COPYD = $BFFC ; Copyright Decade in Cart
129
+ COPYR = $BFFD ; Copyright Year in Cart
130
+ ; $FF=Diagnostic Cart
131
+ GOCART = $BFFE ; Cartridge Start Vector
132
+
133
+ CHRORG = $F800 ; Character Generator Base
@@ -0,0 +1,14 @@
1
+ ; Atari 7800 TIA & RIOT read / write registers
2
+ ;
3
+ ; Karri Kaksonen (karri@sipo.fi), 2022
4
+
5
+ ; TIA, RIOT & MARIA registers mapping
6
+ .include "atari7800_tia.inc"
7
+ .include "atari7800_riot.inc"
8
+ .include "atari7800_maria.inc"
9
+
10
+ ; constants for the conio implementation
11
+ mono_charsperline = 40
12
+ charsperline = 20
13
+ screenrows = 28
14
+
@@ -0,0 +1,39 @@
1
+ ; Atari 7800 MARIA read / write registers
2
+ ;
3
+
4
+ ; Read registers
5
+ BKGRND := $20
6
+ P0C1 := $21
7
+ P0C2 := $22
8
+ P0C3 := $23
9
+ MWSYNC := $24
10
+ P1C1 := $25
11
+ P1C2 := $26
12
+ P1C3 := $27
13
+ MSTAT := $28
14
+ P2C1 := $29
15
+ P2C2 := $2A
16
+ P2C3 := $2B
17
+ DPPH := $2C
18
+ P3C1 := $2D
19
+ P3C2 := $2E
20
+ P3C3 := $2F
21
+ DPPL := $30
22
+ P4C1 := $31
23
+ P4C2 := $32
24
+ P4C3 := $33
25
+ CHBASE := $34
26
+ P5C1 := $35
27
+ P5C2 := $36
28
+ P5C3 := $37
29
+ OFFSET := $38
30
+ P6C1 := $39
31
+ P6C2 := $3A
32
+ P6C3 := $3B
33
+ CTRL := $3C
34
+ P7C1 := $3D
35
+ P7C2 := $3E
36
+ P7C3 := $3F
37
+
38
+ ; Write registers
39
+
@@ -0,0 +1,20 @@
1
+ ; Atari 7800 RIOT read / write registers
2
+ ;
3
+ ; Source: DASM - vcs.h
4
+ ; Details available in: Stella Programmer's Guide by Steve Wright
5
+ ;
6
+ ; Florent Flament (contact@florentflament.com), 2017
7
+
8
+ ; Read registers
9
+ SWCHA := $0280
10
+ CTLSWA := $0281
11
+ SWCHB := $0282
12
+ CTLSWB := $0283
13
+ INTIM := $0284
14
+ TIMINT := $0285
15
+
16
+ ; Write registers
17
+ TIM1T := $0294
18
+ TIM8T := $0295
19
+ TIM64T := $0296
20
+ T1024T := $0297
@@ -0,0 +1,69 @@
1
+ ; Atari 7800 TIA read / write registers
2
+ ;
3
+ ; Source: DASM - vcs.h
4
+ ; Details available in: Stella Programmer's Guide by Steve Wright
5
+ ;
6
+ ; Florent Flament (contact@florentflament.com), 2017
7
+
8
+ ; Read registers
9
+ VSYNC := $00
10
+ VBLANK := $01
11
+ WSYNC := $02
12
+ RSYNC := $03
13
+ NUSIZ0 := $04
14
+ NUSIZ1 := $05
15
+ COLUP0 := $06
16
+ COLUP1 := $07
17
+ COLUPF := $08
18
+ COLUBK := $09
19
+ CTRLPF := $0A
20
+ REFP0 := $0B
21
+ REFP1 := $0C
22
+ PF0 := $0D
23
+ PF1 := $0E
24
+ PF2 := $0F
25
+ RESP0 := $10
26
+ RESP1 := $11
27
+ RESM0 := $12
28
+ RESM1 := $13
29
+ RESBL := $14
30
+ AUDC0 := $15
31
+ AUDC1 := $16
32
+ AUDF0 := $17
33
+ AUDF1 := $18
34
+ AUDV0 := $19
35
+ AUDV1 := $1A
36
+ GRP0 := $1B
37
+ GRP1 := $1C
38
+ ENAM0 := $1D
39
+ ENAM1 := $1E
40
+ ENABL := $1F
41
+ HMP0 := $20
42
+ HMP1 := $21
43
+ HMM0 := $22
44
+ HMM1 := $23
45
+ HMBL := $24
46
+ VDELP0 := $25
47
+ VDELP1 := $26
48
+ VDELBL := $27
49
+ RESMP0 := $28
50
+ RESMP1 := $29
51
+ HMOVE := $2A
52
+ HMCLR := $2B
53
+ CXCLR := $2C
54
+
55
+ ; Write registers
56
+ CXM0P := $00
57
+ CXM1P := $01
58
+ CXP0FB := $02
59
+ CXP1FB := $03
60
+ CXM0FB := $04
61
+ CXM1FB := $05
62
+ CXBLPF := $06
63
+ CXPPMM := $07
64
+ INPT0 := $08
65
+ INPT1 := $09
66
+ INPT2 := $0A
67
+ INPT3 := $0B
68
+ INPT4 := $0C
69
+ INPT5 := $0D
@@ -0,0 +1,95 @@
1
+ ;-------------------------------------------------------------------------
2
+ ; ANTIC Address Equates
3
+ ;-------------------------------------------------------------------------
4
+
5
+ ; Read Addresses
6
+
7
+ VCOUNT = ANTIC + $0B ;vertical line counter
8
+ PENH = ANTIC + $0C ;light pen horizontal position
9
+ PENV = ANTIC + $0D ;light pen vertical position
10
+ NMIST = ANTIC + $0F ;NMI interrupt status
11
+
12
+ ; Write Addresses
13
+
14
+ DMACTL = ANTIC + $00 ;DMA control
15
+ CHACTL = ANTIC + $01 ;character control
16
+ DLISTL = ANTIC + $02 ;low display list address
17
+ DLISTH = ANTIC + $03 ;high display list address
18
+ HSCROL = ANTIC + $04 ;horizontal scroll
19
+ VSCROL = ANTIC + $05 ;vertical scroll
20
+ PMBASE = ANTIC + $07 ;player-missile base address
21
+ CHBASE = ANTIC + $09 ;character base address
22
+ WSYNC = ANTIC + $0A ;wait for HBLANK synchronization
23
+ NMIEN = ANTIC + $0E ;NMI enable
24
+ NMIRES = ANTIC + $0F ;NMI interrupt reset
25
+
26
+
27
+ ;-------------------------------------------------------------------------
28
+ ; Antic opcodes
29
+ ;-------------------------------------------------------------------------
30
+
31
+ ; usage example:
32
+ ;
33
+ ; ScreenDL:
34
+ ; .byte DL_BLK8
35
+ ; .byte DL_BLK8
36
+ ; .byte DL_CHR40x8x1 | DL_LMS | DL_DLI
37
+ ; .word ScreenAlignment
38
+ ; .byte DL_BLK1 | DL_DLI
39
+ ; .byte DL_MAP320x1x1 | DL_LMS
40
+ ; .word Screen
41
+ ;
42
+ ; .repeat 99
43
+ ; .byte DL_MAP320x1x1
44
+ ; .endrepeat
45
+ ; .byte DL_MAP320x1x1 | DL_LMS
46
+ ; .word Screen + 40 * 100 ; 100 lines a 40 byte, 'Screen' has to be aligned correctly!
47
+ ; .repeat 92
48
+ ; .byte DL_MAP320x1x1
49
+ ; .endrepeat
50
+ ;
51
+ ; .byte DL_JVB
52
+
53
+ ; absolute instructions (non mode lines)
54
+
55
+ DL_JMP = 1
56
+ DL_JVB = 65
57
+
58
+ ; DL_BLKn display n empty lines (just background)
59
+
60
+ DL_BLK1 = 0
61
+ DL_BLK2 = 16
62
+ DL_BLK3 = 32
63
+ DL_BLK4 = 48
64
+ DL_BLK5 = 64
65
+ DL_BLK6 = 80
66
+ DL_BLK7 = 96
67
+ DL_BLK8 = 112
68
+
69
+ ; absolute instructions (mode lines)
70
+
71
+ DL_CHR40x8x1 = 2 ; monochrome, 40 character & 8 scanlines per mode line (GR. 0)
72
+ DL_CHR40x10x1 = 3 ; monochrome, 40 character & 10 scanlines per mode line
73
+ DL_CHR40x8x4 = 4 ; colour, 40 character & 8 scanlines per mode line (GR. 12)
74
+ DL_CHR40x16x4 = 5 ; colour, 40 character & 16 scanlines per mode line (GR. 13)
75
+ DL_CHR20x8x2 = 6 ; colour (duochrome per character), 20 character & 8 scanlines per mode line (GR. 1)
76
+ DL_CHR20x16x2 = 7 ; colour (duochrome per character), 20 character & 16 scanlines per mode line (GR. 2)
77
+
78
+ DL_MAP40x8x4 = 8 ; colour, 40 pixel & 8 scanlines per mode line (GR. 3)
79
+ DL_MAP80x4x2 = 9 ; 'duochrome', 80 pixel & 4 scanlines per mode line (GR.4)
80
+ DL_MAP80x4x4 = 10 ; colour, 80 pixel & 4 scanlines per mode line (GR.5)
81
+ DL_MAP160x2x2 = 11 ; 'duochrome', 160 pixel & 2 scanlines per mode line (GR.6)
82
+ DL_MAP160x1x2 = 12 ; 'duochrome', 160 pixel & 1 scanline per mode line (GR.14)
83
+ DL_MAP160x2x4 = 13 ; 4 colours, 160 pixel & 2 scanlines per mode line (GR.7)
84
+ DL_MAP160x1x4 = 14 ; 4 colours, 160 pixel & 1 scanline per mode line (GR.15)
85
+ DL_MAP320x1x1 = 15 ; monochrome, 320 pixel & 1 scanline per mode line (GR.8)
86
+
87
+ ; modifiers on mode lines...
88
+
89
+ DL_HSCROL = 16
90
+ DL_VSCROL = 32
91
+ DL_LMS = 64
92
+
93
+ ; general modifier...
94
+
95
+ DL_DLI = 128