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
package/cfg/nes.cfg ADDED
@@ -0,0 +1,62 @@
1
+ SYMBOLS {
2
+ __STACKSIZE__: type = weak, value = $0300; # 3 pages stack
3
+ }
4
+ MEMORY {
5
+ ZP: file = "", start = $0002, size = $001A, type = rw, define = yes;
6
+
7
+ # INES Cartridge Header
8
+ HEADER: file = %O, start = $0000, size = $0010, fill = yes;
9
+
10
+ # 2 16K ROM Banks
11
+ # - startup
12
+ # - code
13
+ # - rodata
14
+ # - data (load)
15
+ ROM0: file = %O, start = $8000, size = $7FFA, fill = yes, define = yes;
16
+
17
+ # Hardware Vectors at End of 2nd 8K ROM
18
+ ROMV: file = %O, start = $FFFA, size = $0006, fill = yes;
19
+
20
+ # 1 8k CHR Bank
21
+ ROM2: file = %O, start = $0000, size = $2000, fill = yes;
22
+
23
+ # standard 2k SRAM (-zeropage)
24
+ # $0100-$0200 cpu stack
25
+ # $0200-$0500 3 pages for ppu memory write buffer
26
+ # $0500-$0800 3 pages for cc65 parameter stack
27
+ SRAM: file = "", start = $0500, size = __STACKSIZE__, define = yes;
28
+
29
+ # additional 8K SRAM Bank
30
+ # - data (run)
31
+ # - bss
32
+ # - heap
33
+ RAM: file = "", start = $6000, size = $2000, define = yes;
34
+ }
35
+ SEGMENTS {
36
+ ZEROPAGE: load = ZP, type = zp;
37
+ HEADER: load = HEADER, type = ro;
38
+ STARTUP: load = ROM0, type = ro, define = yes;
39
+ LOWCODE: load = ROM0, type = ro, optional = yes;
40
+ ONCE: load = ROM0, type = ro, optional = yes;
41
+ CODE: load = ROM0, type = ro, define = yes;
42
+ RODATA: load = ROM0, type = ro, define = yes;
43
+ DATA: load = ROM0, run = RAM, type = rw, define = yes;
44
+ VECTORS: load = ROMV, type = rw;
45
+ CHARS: load = ROM2, type = rw;
46
+ BSS: load = RAM, type = bss, define = yes;
47
+ }
48
+ FEATURES {
49
+ CONDES: type = constructor,
50
+ label = __CONSTRUCTOR_TABLE__,
51
+ count = __CONSTRUCTOR_COUNT__,
52
+ segment = ONCE;
53
+ CONDES: type = destructor,
54
+ label = __DESTRUCTOR_TABLE__,
55
+ count = __DESTRUCTOR_COUNT__,
56
+ segment = RODATA;
57
+ CONDES: type = interruptor,
58
+ label = __INTERRUPTOR_TABLE__,
59
+ count = __INTERRUPTOR_COUNT__,
60
+ segment = RODATA,
61
+ import = __CALLIRQ__;
62
+ }
package/cfg/none.cfg ADDED
@@ -0,0 +1,37 @@
1
+ FEATURES {
2
+ STARTADDRESS: default = $1000;
3
+ }
4
+ SYMBOLS {
5
+ __STACKSIZE__: type = weak, value = $0800; # 2k stack
6
+ __STACKSTART__: type = weak, value = $8000;
7
+ __ZPSTART__: type = weak, value = $0080;
8
+ }
9
+ MEMORY {
10
+ ZP: file = "", define = yes, start = __ZPSTART__, size = $001F;
11
+ MAIN: file = %O, start = %S, size = __STACKSTART__ - __STACKSIZE__ - %S;
12
+ }
13
+ SEGMENTS {
14
+ ZEROPAGE: load = ZP, type = zp;
15
+ STARTUP: load = MAIN, type = ro, optional = yes;
16
+ LOWCODE: load = MAIN, type = ro, optional = yes;
17
+ ONCE: load = MAIN, type = ro, optional = yes;
18
+ CODE: load = MAIN, type = rw;
19
+ RODATA: load = MAIN, type = rw;
20
+ DATA: load = MAIN, type = rw;
21
+ BSS: load = MAIN, type = bss, define = yes;
22
+ }
23
+ FEATURES {
24
+ CONDES: type = constructor,
25
+ label = __CONSTRUCTOR_TABLE__,
26
+ count = __CONSTRUCTOR_COUNT__,
27
+ segment = ONCE;
28
+ CONDES: type = destructor,
29
+ label = __DESTRUCTOR_TABLE__,
30
+ count = __DESTRUCTOR_COUNT__,
31
+ segment = RODATA;
32
+ CONDES: type = interruptor,
33
+ label = __INTERRUPTOR_TABLE__,
34
+ count = __INTERRUPTOR_COUNT__,
35
+ segment = RODATA,
36
+ import = __CALLIRQ__;
37
+ }
package/include/6502.h ADDED
@@ -0,0 +1,140 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* 6502.h */
4
+ /* */
5
+ /* 6502 specific declarations */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 1998-2012, Ullrich von Bassewitz */
10
+ /* Roemerstrasse 52 */
11
+ /* D-70794 Filderstadt */
12
+ /* EMail: uz@cc65.org */
13
+ /* */
14
+ /* */
15
+ /* This software is provided 'as-is', without any expressed or implied */
16
+ /* warranty. In no event will the authors be held liable for any damages */
17
+ /* arising from the use of this software. */
18
+ /* */
19
+ /* Permission is granted to anyone to use this software for any purpose, */
20
+ /* including commercial applications, and to alter it and redistribute it */
21
+ /* freely, subject to the following restrictions: */
22
+ /* */
23
+ /* 1. The origin of this software must not be misrepresented; you must not */
24
+ /* claim that you wrote the original software. If you use this software */
25
+ /* in a product, an acknowledgment in the product documentation would be */
26
+ /* appreciated but is not required. */
27
+ /* 2. Altered source versions must be plainly marked as such, and must not */
28
+ /* be misrepresented as being the original software. */
29
+ /* 3. This notice may not be removed or altered from any source */
30
+ /* distribution. */
31
+ /* */
32
+ /*****************************************************************************/
33
+
34
+
35
+
36
+ #ifndef _6502_H
37
+ #define _6502_H
38
+
39
+
40
+
41
+ /* We need size_t */
42
+ #ifndef _HAVE_size_t
43
+ #define _HAVE_size_t
44
+ typedef unsigned size_t;
45
+ #endif
46
+
47
+
48
+
49
+ /* Possible returns of getcpu() */
50
+ #define CPU_6502 0
51
+ #define CPU_65C02 1
52
+ #define CPU_65816 2
53
+ #define CPU_4510 3
54
+ #define CPU_65SC02 4
55
+ #define CPU_65CE02 5
56
+ #define CPU_HUC6280 6
57
+ #define CPU_2A0x 7
58
+ #define CPU_45GS02 8
59
+
60
+ unsigned char getcpu (void);
61
+ /* Detect the CPU the program is running on */
62
+
63
+
64
+
65
+ /* Macros for CPU instructions */
66
+ #define BRK() __asm__ ("brk")
67
+ #define CLI() __asm__ ("cli")
68
+ #define SEI() __asm__ ("sei")
69
+
70
+
71
+
72
+ /* Struct that holds the registers for the sys function */
73
+ struct regs {
74
+ unsigned char a; /* A register value */
75
+ unsigned char x; /* X register value */
76
+ unsigned char y; /* Y register value */
77
+ unsigned char flags; /* Flags value */
78
+ unsigned pc; /* Program counter */
79
+ };
80
+
81
+ /* Defines for the flags in the regs structure */
82
+ #define F6502_N 0x80 /* N flag */
83
+ #define F6502_V 0x40 /* V flag */
84
+ #define F6502_B 0x10 /* B flag */
85
+ #define F6502_D 0x08 /* D flag */
86
+ #define F6502_I 0x04 /* I flag */
87
+ #define F6502_Z 0x02 /* Z flag */
88
+ #define F6502_C 0x01 /* C flag */
89
+
90
+ /* Function to call any machine language subroutine. All registers in the
91
+ ** regs structure are passed into the routine and the results are passed
92
+ ** out. The B flag is ignored on input. The called routine must end with
93
+ ** an RTS.
94
+ */
95
+ void __fastcall__ _sys (struct regs* r);
96
+
97
+
98
+
99
+ /* Set and reset the break vector. The given user function is called if
100
+ ** a break occurs. The values of the registers may be read from the brk_...
101
+ ** variables. The value in brk_pc will point to the address that contains
102
+ ** the brk instruction.
103
+ ** The set_brk function will install an exit handler that will reset the
104
+ ** vector if the program ends.
105
+ */
106
+
107
+ extern unsigned char brk_a; /* A register value */
108
+ extern unsigned char brk_x; /* X register value */
109
+ extern unsigned char brk_y; /* Y register value */
110
+ extern unsigned char brk_sr; /* Status register */
111
+ extern unsigned brk_pc; /* PC value */
112
+
113
+ typedef void (*brk_handler) (void);
114
+ /* Type of the break handler */
115
+
116
+ void __fastcall__ set_brk (brk_handler f);
117
+ /* Set the break vector to the given address */
118
+
119
+ void reset_brk (void);
120
+ /* Reset the break vector to the original value */
121
+
122
+
123
+
124
+ /* Possible returns for irq_handler() */
125
+ #define IRQ_NOT_HANDLED 0
126
+ #define IRQ_HANDLED 1
127
+
128
+ typedef unsigned char (*irq_handler) (void);
129
+ /* Type of the C level interrupt request handler */
130
+
131
+ void __fastcall__ set_irq (irq_handler f, void *stack_addr, size_t stack_size);
132
+ /* Set the C level interrupt request vector to the given address */
133
+
134
+ void reset_irq (void);
135
+ /* Reset the C level interrupt request vector */
136
+
137
+
138
+
139
+ /* End of 6502.h */
140
+ #endif
@@ -0,0 +1,68 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* _6522.h */
4
+ /* */
5
+ /* Internal include file, do not use directly */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 2004 Stefan Haubenthal <polluks@sdf.lonestar.org> */
10
+ /* */
11
+ /* */
12
+ /* This software is provided 'as-is', without any expressed or implied */
13
+ /* warranty. In no event will the authors be held liable for any damages */
14
+ /* arising from the use of this software. */
15
+ /* */
16
+ /* Permission is granted to anyone to use this software for any purpose, */
17
+ /* including commercial applications, and to alter it and redistribute it */
18
+ /* freely, subject to the following restrictions: */
19
+ /* */
20
+ /* 1. The origin of this software must not be misrepresented; you must not */
21
+ /* claim that you wrote the original software. If you use this software */
22
+ /* in a product, an acknowledgment in the product documentation would be */
23
+ /* appreciated but is not required. */
24
+ /* 2. Altered source versions must be plainly marked as such, and must not */
25
+ /* be misrepresented as being the original software. */
26
+ /* 3. This notice may not be removed or altered from any source */
27
+ /* distribution. */
28
+ /* */
29
+ /*****************************************************************************/
30
+
31
+
32
+
33
+ #ifndef __VIA_H
34
+ #define __VIA_H
35
+
36
+
37
+
38
+ /* Define a structure with the 6522 register offsets.
39
+ ** NOTE: The timer registers are not declared as 16 bit registers, because
40
+ ** the order in which the two 8 bit halves are written is important, and
41
+ ** the compiler doesn't guarantee any order when writing 16 bit values.
42
+ */
43
+ struct __6522 {
44
+ unsigned char prb; /* Port register B */
45
+ unsigned char pra; /* Port register A */
46
+ unsigned char ddrb; /* Data direction register B */
47
+ unsigned char ddra; /* Data direction register A */
48
+ unsigned char t1_lo; /* Timer 1, low byte */
49
+ unsigned char t1_hi; /* Timer 1, high byte */
50
+ unsigned char t1l_lo; /* Timer 1 latch, low byte */
51
+ unsigned char t1l_hi; /* Timer 1 latch, high byte */
52
+ unsigned char t2_lo; /* Timer 2, low byte */
53
+ unsigned char t2_hi; /* Timer 2, high byte */
54
+ unsigned char sr; /* Shift register */
55
+ unsigned char acr; /* Auxiliary control register */
56
+ unsigned char pcr; /* Peripheral control register */
57
+ unsigned char ifr; /* Interrupt flag register */
58
+ unsigned char ier; /* Interrupt enable register */
59
+ unsigned char pra2; /* Port register A w/o handshake */
60
+ };
61
+
62
+
63
+
64
+ /* End of _6522.h */
65
+ #endif
66
+
67
+
68
+
@@ -0,0 +1,62 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* _6525.h */
4
+ /* */
5
+ /* Internal include file, do not use directly */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 1998-2000 Ullrich von Bassewitz */
10
+ /* Wacholderweg 14 */
11
+ /* D-70597 Stuttgart */
12
+ /* EMail: uz@musoftware.de */
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 __6525_H
37
+ #define __6525_H
38
+
39
+
40
+
41
+ /* Define a structure with the 6525 register offsets. The shadow registers
42
+ ** (if port C is unused) are currently not implemented, we would need a
43
+ ** union to do that, however that would introduce an additional name.
44
+ */
45
+ struct __6525 {
46
+ unsigned char pra; /* Port register A */
47
+ unsigned char prb; /* Port register B */
48
+ unsigned char prc; /* Port register C */
49
+ unsigned char ddra; /* Data direction register A */
50
+ unsigned char ddrb; /* Data direction register B */
51
+ unsigned char ddrc; /* Data direction register C */
52
+ unsigned char cr; /* Control register */
53
+ unsigned char air; /* Active interrupt register */
54
+ };
55
+
56
+
57
+
58
+ /* End of _6525.h */
59
+ #endif
60
+
61
+
62
+
@@ -0,0 +1,71 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* _6526.h */
4
+ /* */
5
+ /* Internal include file, do not use directly */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 1998-2000 Ullrich von Bassewitz */
10
+ /* Wacholderweg 14 */
11
+ /* D-70597 Stuttgart */
12
+ /* EMail: uz@musoftware.de */
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 __6526_H
37
+ #define __6526_H
38
+
39
+
40
+
41
+ /* Define a structure with the 6526 register offsets.
42
+ ** NOTE: The timer registers are not declared as 16 bit registers, because
43
+ ** the order in which the two 8 bit halves are written is important, and
44
+ ** the compiler doesn't guarantee any order when writing 16 bit values.
45
+ */
46
+ struct __6526 {
47
+ unsigned char pra; /* Port register A */
48
+ unsigned char prb; /* Port register B */
49
+ unsigned char ddra; /* Data direction register A */
50
+ unsigned char ddrb; /* Data direction register B */
51
+ unsigned char ta_lo; /* Timer A, low byte */
52
+ unsigned char ta_hi; /* Timer A, high byte */
53
+ unsigned char tb_lo; /* Timer B, low byte */
54
+ unsigned char tb_hi; /* Timer B, high byte */
55
+ unsigned char tod_10; /* TOD, 1/10 sec. */
56
+ unsigned char tod_sec; /* TOD, seconds */
57
+ unsigned char tod_min; /* TOD, minutes */
58
+ unsigned char tod_hour; /* TOD, hours */
59
+ unsigned char sdr; /* Serial data register */
60
+ unsigned char icr; /* Interrupt control register */
61
+ unsigned char cra; /* Control register A */
62
+ unsigned char crb; /* Control register B */
63
+ };
64
+
65
+
66
+
67
+ /* End of _6526.h */
68
+ #endif
69
+
70
+
71
+
@@ -0,0 +1,53 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* _6545.h */
4
+ /* */
5
+ /* Internal include file, do not use directly */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 1998-2000 Ullrich von Bassewitz */
10
+ /* Wacholderweg 14 */
11
+ /* D-70597 Stuttgart */
12
+ /* EMail: uz@musoftware.de */
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 __6545_H
37
+ #define __6545_H
38
+
39
+
40
+
41
+ /* Define a structure with the 6545 register offsets */
42
+ struct __6545 {
43
+ unsigned char ctrl; /* Control register */
44
+ unsigned char data; /* Data register */
45
+ };
46
+
47
+
48
+
49
+ /* End of _6545.h */
50
+ #endif
51
+
52
+
53
+
@@ -0,0 +1,55 @@
1
+ /*****************************************************************************/
2
+ /* */
3
+ /* _6551.h */
4
+ /* */
5
+ /* Internal include file, do not use directly */
6
+ /* */
7
+ /* */
8
+ /* */
9
+ /* (C) 1998-2000 Ullrich von Bassewitz */
10
+ /* Wacholderweg 14 */
11
+ /* D-70597 Stuttgart */
12
+ /* EMail: uz@musoftware.de */
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 __6551_H
37
+ #define __6551_H
38
+
39
+
40
+
41
+ /* Define a structure with the 6551 register offsets */
42
+ struct __6551 {
43
+ unsigned char data; /* Data register */
44
+ unsigned char status; /* Status register */
45
+ unsigned char cmd; /* Command register */
46
+ unsigned char ctrl; /* Control register */
47
+ };
48
+
49
+
50
+
51
+ /* End of _6551.h */
52
+ #endif
53
+
54
+
55
+