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,121 @@
1
+ ;
2
+ ; Zero page variables and I/O definitions for the CBM 610
3
+ ;
4
+ ; Taken from a kernal disassembly done by myself in 1987.
5
+ ;
6
+ ; 1998-09-28, Ullrich von Bassewitz
7
+ ; 2014-04-02, Greg King
8
+
9
+
10
+ ; ---------------------------------------------------------------------------
11
+ ; Zeropage stuff
12
+
13
+ ExecReg := $00 ; Controls execution memory bank
14
+ IndReg := $01 ; Controls indirect indexed load-store bank
15
+
16
+ TXTPTR := $85 ; Far pointer into BASIC source code
17
+ FNAM := $90 ; Far pointer to LOAD/SAVE file-name
18
+ FNAM_SEG := $92
19
+ STATUS := $9C ; Kernal I/O completion status
20
+ FNAM_LEN := $9D ; Holds length of file-name
21
+
22
+ ; ---------------------------------------------------------------------------
23
+ ; Screen size
24
+
25
+ XSIZE = 80
26
+ YSIZE = 25
27
+
28
+ ; ---------------------------------------------------------------------------
29
+ ; I/O definitions
30
+
31
+
32
+ ; I/O $d800: CRTC 6545
33
+
34
+ .struct CRTC
35
+ ADDR .byte
36
+ DATA .byte
37
+ .endstruct
38
+
39
+
40
+ ; I/O $db00: CIA 6526, Inter Process Communication
41
+ ;
42
+ ; IPCcia = $db00
43
+
44
+ .struct CIA
45
+ PRA .byte
46
+ PRB .byte
47
+ DDRA .byte
48
+ DDRB .byte
49
+ .union
50
+ .struct
51
+ TALO .byte
52
+ TAHI .byte
53
+ .endstruct
54
+ TA .word
55
+ .endunion
56
+ .union
57
+ .struct
58
+ TBLO .byte
59
+ TBHI .byte
60
+ .endstruct
61
+ TB .word
62
+ .endunion
63
+ TOD10 .byte
64
+ TODSEC .byte
65
+ TODMIN .byte
66
+ TODHR .byte
67
+ SDR .byte
68
+ ICR .byte
69
+ CRA .byte
70
+ CRB .byte
71
+ .endstruct
72
+
73
+
74
+ ; I/O $dc00: CIA 6526
75
+ ;
76
+ ; cia = $dc00
77
+
78
+
79
+ ; I/O $dd00: ACIA 6551
80
+ ;
81
+ ; acia = $dd00
82
+
83
+ .struct ACIA
84
+ DATA .byte
85
+ STATUS .byte
86
+ CMD .byte
87
+ CTRL .BYTE
88
+ .endstruct
89
+
90
+
91
+ ; I/O $de00: Triport #1 6525
92
+ ;
93
+ ; tpi1 = $de00
94
+
95
+ .struct TPI
96
+ PRA .byte
97
+ PRB .byte
98
+ .union
99
+ PRC .byte
100
+ INT .byte
101
+ .endunion
102
+ DDRA .byte
103
+ DDRB .byte
104
+ .union
105
+ DDRC .byte
106
+ IMR .byte
107
+ .endunion
108
+ CR .byte
109
+ AIR .byte
110
+ .endstruct
111
+
112
+
113
+ ; I/O $df00: Triport #2 6525
114
+
115
+ ; tpi2 = $df00
116
+
117
+
118
+ ;-----------------------------------------------------------------------------
119
+
120
+ BASIC_BUF := $FA5E ; Bank 1 location of command-line
121
+ BASIC_BUF_LEN = 162 ; Maximum length of command-line
@@ -0,0 +1,34 @@
1
+ ;
2
+ ; Definitions for CBM file types. From cbm.h
3
+ ;
4
+ ; Ullrich von Bassewitz, 2012-06-03
5
+ ;
6
+
7
+ ; Define bitmapped constants for the table entries
8
+
9
+ .enum
10
+ CBM_T_REG = $10 ; Bit set for regular files
11
+ CBM_T_SEQ = $10 ; Sequential file
12
+ CBM_T_PRG = $11 ; Program file
13
+ CBM_T_USR = $12 ; User file
14
+ CBM_T_REL = $13 ; Relative file
15
+ CBM_T_VRP = $14 ; Vorpal fast-loadable format
16
+ CBM_T_DEL = $00 ; Deleted file
17
+ CBM_T_CBM = $01 ; 1581 sub-partition
18
+ CBM_T_DIR = $02 ; IDE64 and CMD sub-directory
19
+ CBM_T_LNK = $03 ; IDE64 soft-link
20
+ CBM_T_OTHER = $04 ; File-type not recognized
21
+ CBM_T_HEADER = $05 ; Disk header / title
22
+ .endenum
23
+
24
+
25
+ ; The following function maps the start character for a file type to
26
+ ; one of the file types above. Note: 'd' will always mapped to CBM_T_DEL.
27
+ ; The calling function has to look at the following character to determine
28
+ ; if the file type is actually CBM_T_DIR.
29
+ ;
30
+ ; unsigned char __fastcall__ _cbm_filetype (unsigned char c);
31
+
32
+ .global __cbm_filetype
33
+
34
+
@@ -0,0 +1,248 @@
1
+ ;
2
+ ; Olli Savia <ops@iki.fi>
3
+ ; Greg King
4
+ ;
5
+ ; Commodore-compatibles Kernal functions
6
+ ;
7
+
8
+ .if .def(__CX16__)
9
+ ; CX16 extended jump table
10
+ KBDBUF_PEEK := $FEBD
11
+ KBDBUF_GET_MODIFIERS := $FEC0
12
+ KBDBUF_PUT := $FEC3
13
+ I2C_READ_BYTE := $FEC6
14
+ I2C_WRITE_BYTE := $FEC9
15
+ CX_MONITOR := $FECC
16
+ ENTROPY_GET := $FECF
17
+ CONSOLE_SET_PAGE_MSG := $FED5
18
+ CONSOLE_PUT_IMAGE := $FED8
19
+ CONSOLE_INIT := $FEDB
20
+ CONSOLE_PUT_CHAR := $FEDE
21
+ CONSOLE_GET_CHAR := $FEE1
22
+ MEMORY_FILL := $FEE4
23
+ MEMORY_COPY := $FEE7
24
+ MEMORY_CRC := $FEEA
25
+ MEMORY_DECOMPRESS := $FEED
26
+ SPRITE_SET_IMAGE := $FEF0
27
+ SPRITE_SET_POSITION := $FEF3
28
+ FB_INIT := $FEF6
29
+ FB_GET_INFO := $FEF9
30
+ FB_SET_PALETTE := $FEFC
31
+ FB_CURSOR_POSITION := $FEFF
32
+ FB_CURSOR_NEXT_LINE := $FF02
33
+ FB_GET_PIXEL := $FF05
34
+ FB_GET_PIXELS := $FF08
35
+ FB_SET_PIXEL := $FF0B
36
+ FB_SET_PIXELS := $FF0E
37
+ FB_SET_8_PIXELS := $FF11
38
+ FB_SET_8_PIXELS_OPAQUE := $FF14
39
+ FB_FILL_PIXELS := $FF17
40
+ FB_FILTER_PIXELS := $FF1A
41
+ FB_MOVE_PIXELS := $FF1D
42
+ GRAPH_INIT := $FF20
43
+ GRAPH_CLEAR := $FF23
44
+ GRAPH_SET_WINDOW := $FF26
45
+ GRAPH_SET_COLORS := $FF29
46
+ GRAPH_DRAW_LINE := $FF2C
47
+ GRAPH_DRAW_RECT := $FF2F
48
+ GRAPH_MOVE_RECT := $FF32
49
+ GRAPH_DRAW_OVAL := $FF35
50
+ GRAPH_DRAW_IMAGE := $FF38
51
+ GRAPH_SET_FONT := $FF3B
52
+ GRAPH_GET_CHAR_SIZE := $FF3E
53
+ GRAPH_PUT_CHAR := $FF41
54
+ MULTI_ACPTR := $FF44
55
+ RESTORE_BASIC := $FF47
56
+ CLOCK_SET_DATE_TIME := $FF4D
57
+ CLOCK_GET_DATE_TIME := $FF50
58
+ JOYSTICK_SCAN := $FF53
59
+ JOYSTICK_GET := $FF56
60
+ SCREEN_MODE := $FF5F
61
+ SCREEN_SET_CHARSET := $FF62
62
+ MOUSE_CONFIG := $FF68
63
+ MOUSE_GET := $FF6B
64
+ .endif
65
+
66
+ .if .def (__MEGA65__)
67
+ ; extended C65 jump table
68
+
69
+ ; memory before $ff3b is all $ff in mega65 ROM?
70
+ ; VERSIONQ := $FF2F
71
+ ; RESET_RUN := $FF32
72
+ ; CURSOR := $FF35
73
+
74
+ SAVEFL := $FF3B
75
+ GETIO := $FF41
76
+ GETLFS := $FF44
77
+ KEYLOCKS := $FF47
78
+ ADDKEY := $FF4A
79
+ .endif
80
+
81
+ .if .def(__C65__) || .def (__MEGA65__)
82
+ CURSOR := $E030 ; in editor ROM
83
+
84
+ SPIN_SPOUT := $FF4D
85
+ CLSALL := $FF50
86
+ C64MODE := $FF53
87
+ MonitorCall := $FF56
88
+ BOOT_SYS := $FF59
89
+ PHOENIX := $FF5C
90
+ LKUPLA := $FF5F
91
+ LKUPSA := $FF62
92
+ SWAPPER := $FF65
93
+ PFKEY := $FF68
94
+ SETBNK := $FF6B
95
+ JSRFAR := $FF6E
96
+ JMPFAR := $FF71
97
+ LDA_FAR := $FF74
98
+ STA_FAR := $FF77
99
+ CMP_FAR := $FF7A
100
+ PRIMM := $FF7D
101
+ .endif
102
+
103
+ .if .def(__C128__)
104
+ ; C128 extended jump table
105
+ C64MODE := $FF4D
106
+ SWAPPER := $FF5F
107
+ SETBNK := $FF68
108
+ .endif
109
+
110
+ .if .def(__C128__) || .def(__CX16__)
111
+ ; Extended jump table
112
+ CLSALL := $FF4A
113
+ LKUPLA := $FF59
114
+ LKUPSA := $FF5C
115
+ PFKEY := $FF65
116
+ JSRFAR := $FF6E
117
+ INDFET := $FF74
118
+ INDSTA := $FF77
119
+ INDCMP := $FF7A
120
+ PRIMM := $FF7D
121
+ .endif
122
+
123
+ .if .def(__C64__) || .def(__C128__) || .def(__C16__) || .def(__CX16__) || .def(__C65__) || .def (__MEGA65__)
124
+ CINT := $FF81
125
+ IOINIT := $FF84
126
+ RAMTAS := $FF87
127
+ .elseif .def(__VIC20__)
128
+ CINT := $E518 ; No entries are in the Kernal jump table of the VIC-20 for these three (3) functions.
129
+ IOINIT := $FDF9 ; The entries for these functions have been set to point directly to the functions
130
+ RAMTAS := $FD8D ; in the Kernal, to maintain compatibility with the other Commodore platforms.
131
+ .elseif .def(__CBM510__) || .def(__CBM610__)
132
+ IOINIT := $FF7B
133
+ CINT := $FF7E
134
+ .endif
135
+
136
+ .if .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__) || .def(__CX16__) || .def(__C65__) || .def (__MEGA65__)
137
+ RESTOR := $FF8A
138
+ VECTOR := $FF8D
139
+ .elseif .def(__CBM510__) || .def(__CBM610__)
140
+ VECTOR := $FF84
141
+ RESTOR := $FF87
142
+ .endif
143
+
144
+ .if .def(__CBM510__) || .def(__CBM610__) || .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__) || .def(__CX16__)
145
+ SETMSG := $FF90
146
+ SECOND := $FF93
147
+ TKSA := $FF96
148
+ MEMTOP := $FF99
149
+ MEMBOT := $FF9C
150
+ SCNKEY := $FF9F
151
+ SETTMO := $FFA2
152
+ .elseif .def(__C65__) || .def (__MEGA65__)
153
+ SETMSG := $FF90
154
+ SECOND := $FF93
155
+ TKSA := $FF96
156
+ MEMTOP := $FF99
157
+ MEMBOT := $FF9C
158
+ SCNKEY := $FF9F
159
+ MONEXIT := $FFA2
160
+ .endif
161
+
162
+ .if .def(__CBM510__) || .def(__CBM610__) || .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__) || .def(__CX16__) || .def(__C65__) || .def(__MEGA65__)
163
+ ACPTR := $FFA5
164
+ CIOUT := $FFA8
165
+ UNTLK := $FFAB
166
+ UNLSN := $FFAE
167
+ LISTEN := $FFB1
168
+ TALK := $FFB4
169
+ READST := $FFB7
170
+ SETLFS := $FFBA
171
+ SETNAM := $FFBD
172
+ OPEN := $FFC0
173
+ CLOSE := $FFC3
174
+ .endif
175
+
176
+ ; Available on all platforms including PET
177
+ CHKIN := $FFC6
178
+ CKOUT := $FFC9
179
+ CHKOUT := $FFC9
180
+ CLRCH := $FFCC
181
+ CLRCHN := $FFCC
182
+ BASIN := $FFCF
183
+ CHRIN := $FFCF
184
+ BSOUT := $FFD2
185
+ CHROUT := $FFD2
186
+
187
+ .if .def(__CBM510__) || .def(__CBM610__) || .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__) || .def(__CX16__) || .def(__C65__) || .def(__MEGA65__)
188
+ LOAD := $FFD5
189
+ SAVE := $FFD8
190
+ SETTIM := $FFDB
191
+ RDTIM := $FFDE
192
+ .endif
193
+
194
+ ; Available on all platforms including PET
195
+ STOP := $FFE1
196
+ GETIN := $FFE4
197
+ CLALL := $FFE7
198
+
199
+ .if .def(__C65__) || .def(__MEGA65__)
200
+ ScanStopKey := $FFEA
201
+ .else
202
+ UDTIM := $FFEA
203
+ .endif
204
+
205
+ .if .def(__CBM510__) || .def(__CBM610__) || .def(__VIC20__) || .def(__C64__) || .def(__C128__) || .def(__C16__) || .def(__CX16__) || .def(__C65__) || .def(__MEGA65__)
206
+ SCREEN := $FFED
207
+ PLOT := $FFF0
208
+ IOBASE := $FFF3
209
+ .endif
210
+
211
+ ; ---------------------------------------------------------------------------
212
+ ; Kernal routines, direct entries
213
+ ;
214
+ ; Unlike the above, these are not standard functions with entries in the jump
215
+ ; table. They do not exist in all Kernals, and where they do the entry point is
216
+ ; specific to that particular machine and possibly even Kernal version.
217
+ ;
218
+ ; This list is not comprehensive: missing items for particular machines
219
+ ; should be added as needed.
220
+ ;
221
+ ; UPDCRAMPTR: Updates the color RAM pointer to match the screen RAM pointer.
222
+ ;
223
+
224
+ .if .def(__VIC20__)
225
+ CLRSCR := $E55F
226
+ KBDREAD := $E5CF
227
+ UPDCRAMPTR := $EAB2
228
+ .elseif .def(__C64__)
229
+ CLRSCR := $E544 ; Clear the screen
230
+ KBDREAD := $E5B4 ; Get Character From Keyboard Buffer
231
+ NMIEXIT := $FEBC
232
+ UPDCRAMPTR := $EA24 ; Update color ram pointer
233
+ .elseif .def(__C128__)
234
+ CLRSCR := $C142
235
+ KBDREAD := $C006
236
+ NMIEXIT := $FF33
237
+ NEWLINE := $C363
238
+ PRINT := $C322
239
+ CURS_SET := $CD57
240
+ CURS_ON := $CD6F
241
+ CURS_OFF := $CD9F
242
+ .elseif .def(__C16__)
243
+ CLRSCR := $D88B
244
+ KBDREAD := $D8C1
245
+ .elseif .def(__C65__) || .def(__MEGA65__)
246
+ ; CLRSCR := $E0EC ; ???
247
+ KBDREAD := $E006
248
+ .endif
@@ -0,0 +1,291 @@
1
+ ;/*****************************************************************************/
2
+ ;/* */
3
+ ;/* cbm_petscii_charmap.inc */
4
+ ;/* */
5
+ ;/* CBM system standard string mapping ISO-8859-1 -> PetSCII */
6
+ ;/* */
7
+ ;/* */
8
+ ;/* 2019-03-10, Greg King */
9
+ ;/* */
10
+ ;/* This software is provided "as-is", without any expressed or implied */
11
+ ;/* warranty. In no event will the authors be held liable for any damages */
12
+ ;/* arising from the use of this software. */
13
+ ;/* */
14
+ ;/* Permission is granted to anyone to use this software for any purpose, */
15
+ ;/* including commercial applications, and to alter it and redistribute it */
16
+ ;/* freely, subject to the following restrictions: */
17
+ ;/* */
18
+ ;/* 1. The origin of this software must not be misrepresented; you must not */
19
+ ;/* claim that you wrote the original software. If you use this software */
20
+ ;/* in a product, an acknowledgment in the product documentation would be */
21
+ ;/* appreciated, but is not required. */
22
+ ;/* 2. Altered source versions must be plainly marked as such, and must not */
23
+ ;/* be misrepresented as being the original software. */
24
+ ;/* 3. This notice must not be removed or altered from any source */
25
+ ;/* distribution. */
26
+ ;/* */
27
+ ;/*****************************************************************************/
28
+
29
+ .charmap $00, $00
30
+ .charmap $01, $01
31
+ .charmap $02, $02
32
+ .charmap $03, $03
33
+ .charmap $04, $04
34
+ .charmap $05, $05
35
+ .charmap $06, $06
36
+ .charmap $07, $07
37
+ .charmap $08, $14
38
+ .charmap $09, $09
39
+ .charmap $0A, $0D
40
+ .charmap $0B, $11
41
+ .charmap $0C, $93
42
+ .charmap $0D, $0A
43
+ .charmap $0E, $0E
44
+ .charmap $0F, $0F
45
+ .charmap $10, $10
46
+ .charmap $11, $0B
47
+ .charmap $12, $12
48
+ .charmap $13, $13
49
+ .charmap $14, $08
50
+ .charmap $15, $15
51
+ .charmap $16, $16
52
+ .charmap $17, $17
53
+ .charmap $18, $18
54
+ .charmap $19, $19
55
+ .charmap $1A, $1A
56
+ .charmap $1B, $1B
57
+ .charmap $1C, $1C
58
+ .charmap $1D, $1D
59
+ .charmap $1E, $1E
60
+ .charmap $1F, $1F
61
+
62
+ .charmap $20, $20
63
+ .charmap $21, $21
64
+ .charmap $22, $22
65
+ .charmap $23, $23
66
+ .charmap $24, $24
67
+ .charmap $25, $25
68
+ .charmap $26, $26
69
+ .charmap $27, $27
70
+ .charmap $28, $28
71
+ .charmap $29, $29
72
+ .charmap $2A, $2A
73
+ .charmap $2B, $2B
74
+ .charmap $2C, $2C
75
+ .charmap $2D, $2D
76
+ .charmap $2E, $2E
77
+ .charmap $2F, $2F
78
+ .charmap $30, $30
79
+ .charmap $31, $31
80
+ .charmap $32, $32
81
+ .charmap $33, $33
82
+ .charmap $34, $34
83
+ .charmap $35, $35
84
+ .charmap $36, $36
85
+ .charmap $37, $37
86
+ .charmap $38, $38
87
+ .charmap $39, $39
88
+ .charmap $3A, $3A
89
+ .charmap $3B, $3B
90
+ .charmap $3C, $3C
91
+ .charmap $3D, $3D
92
+ .charmap $3E, $3E
93
+ .charmap $3F, $3F
94
+
95
+ .charmap $40, $40
96
+ .charmap $41, $C1
97
+ .charmap $42, $C2
98
+ .charmap $43, $C3
99
+ .charmap $44, $C4
100
+ .charmap $45, $C5
101
+ .charmap $46, $C6
102
+ .charmap $47, $C7
103
+ .charmap $48, $C8
104
+ .charmap $49, $C9
105
+ .charmap $4A, $CA
106
+ .charmap $4B, $CB
107
+ .charmap $4C, $CC
108
+ .charmap $4D, $CD
109
+ .charmap $4E, $CE
110
+ .charmap $4F, $CF
111
+ .charmap $50, $D0
112
+ .charmap $51, $D1
113
+ .charmap $52, $D2
114
+ .charmap $53, $D3
115
+ .charmap $54, $D4
116
+ .charmap $55, $D5
117
+ .charmap $56, $D6
118
+ .charmap $57, $D7
119
+ .charmap $58, $D8
120
+ .charmap $59, $D9
121
+ .charmap $5A, $DA
122
+ .charmap $5B, $5B
123
+ .charmap $5C, $BF
124
+ .charmap $5D, $5D
125
+ .charmap $5E, $5E
126
+ .charmap $5F, $A4
127
+
128
+ .charmap $60, $AD
129
+ .charmap $61, $41
130
+ .charmap $62, $42
131
+ .charmap $63, $43
132
+ .charmap $64, $44
133
+ .charmap $65, $45
134
+ .charmap $66, $46
135
+ .charmap $67, $47
136
+ .charmap $68, $48
137
+ .charmap $69, $49
138
+ .charmap $6A, $4A
139
+ .charmap $6B, $4B
140
+ .charmap $6C, $4C
141
+ .charmap $6D, $4D
142
+ .charmap $6E, $4E
143
+ .charmap $6F, $4F
144
+ .charmap $70, $50
145
+ .charmap $71, $51
146
+ .charmap $72, $52
147
+ .charmap $73, $53
148
+ .charmap $74, $54
149
+ .charmap $75, $55
150
+ .charmap $76, $56
151
+ .charmap $77, $57
152
+ .charmap $78, $58
153
+ .charmap $79, $59
154
+ .charmap $7A, $5A
155
+ .charmap $7B, $B3
156
+ .charmap $7C, $DD
157
+ .charmap $7D, $AB
158
+ .charmap $7E, $B1
159
+ .charmap $7F, $DF
160
+
161
+ .charmap $80, $80
162
+ .charmap $81, $81
163
+ .charmap $82, $82
164
+ .charmap $83, $83
165
+ .charmap $84, $84
166
+ .charmap $85, $85
167
+ .charmap $86, $86
168
+ .charmap $87, $87
169
+ .charmap $88, $88
170
+ .charmap $89, $89
171
+ .charmap $8A, $8A
172
+ .charmap $8B, $8B
173
+ .charmap $8C, $8C
174
+ .charmap $8D, $8D
175
+ .charmap $8E, $8E
176
+ .charmap $8F, $8F
177
+ .charmap $90, $90
178
+ .charmap $91, $91
179
+ .charmap $92, $92
180
+ .charmap $93, $0C
181
+ .charmap $94, $94
182
+ .charmap $95, $95
183
+ .charmap $96, $96
184
+ .charmap $97, $97
185
+ .charmap $98, $98
186
+ .charmap $99, $99
187
+ .charmap $9A, $9A
188
+ .charmap $9B, $9B
189
+ .charmap $9C, $9C
190
+ .charmap $9D, $9D
191
+ .charmap $9E, $9E
192
+ .charmap $9F, $9F
193
+
194
+ .charmap $A0, $A0
195
+ .charmap $A1, $A1
196
+ .charmap $A2, $A2
197
+ .charmap $A3, $A3
198
+ .charmap $A4, $A4
199
+ .charmap $A5, $A5
200
+ .charmap $A6, $A6
201
+ .charmap $A7, $A7
202
+ .charmap $A8, $A8
203
+ .charmap $A9, $A9
204
+ .charmap $AA, $AA
205
+ .charmap $AB, $AB
206
+ .charmap $AC, $AC
207
+ .charmap $AD, $AD
208
+ .charmap $AE, $AE
209
+ .charmap $AF, $AF
210
+ .charmap $B0, $B0
211
+ .charmap $B1, $B1
212
+ .charmap $B2, $B2
213
+ .charmap $B3, $B3
214
+ .charmap $B4, $B4
215
+ .charmap $B5, $B5
216
+ .charmap $B6, $B6
217
+ .charmap $B7, $B7
218
+ .charmap $B8, $B8
219
+ .charmap $B9, $B9
220
+ .charmap $BA, $BA
221
+ .charmap $BB, $BB
222
+ .charmap $BC, $BC
223
+ .charmap $BD, $BD
224
+ .charmap $BE, $BE
225
+ .charmap $BF, $BF
226
+
227
+ .charmap $C0, $60
228
+ .charmap $C1, $61
229
+ .charmap $C2, $62
230
+ .charmap $C3, $63
231
+ .charmap $C4, $64
232
+ .charmap $C5, $65
233
+ .charmap $C6, $66
234
+ .charmap $C7, $67
235
+ .charmap $C8, $68
236
+ .charmap $C9, $69
237
+ .charmap $CA, $6A
238
+ .charmap $CB, $6B
239
+ .charmap $CC, $6C
240
+ .charmap $CD, $6D
241
+ .charmap $CE, $6E
242
+ .charmap $CF, $6F
243
+ .charmap $D0, $70
244
+ .charmap $D1, $71
245
+ .charmap $D2, $72
246
+ .charmap $D3, $73
247
+ .charmap $D4, $74
248
+ .charmap $D5, $75
249
+ .charmap $D6, $76
250
+ .charmap $D7, $77
251
+ .charmap $D8, $78
252
+ .charmap $D9, $79
253
+ .charmap $DA, $7A
254
+ .charmap $DB, $7B
255
+ .charmap $DC, $7C
256
+ .charmap $DD, $7D
257
+ .charmap $DE, $7E
258
+ .charmap $DF, $7F
259
+
260
+ .charmap $E0, $E0
261
+ .charmap $E1, $E1
262
+ .charmap $E2, $E2
263
+ .charmap $E3, $E3
264
+ .charmap $E4, $E4
265
+ .charmap $E5, $E5
266
+ .charmap $E6, $E6
267
+ .charmap $E7, $E7
268
+ .charmap $E8, $E8
269
+ .charmap $E9, $E9
270
+ .charmap $EA, $EA
271
+ .charmap $EB, $EB
272
+ .charmap $EC, $EC
273
+ .charmap $ED, $ED
274
+ .charmap $EE, $EE
275
+ .charmap $EF, $EF
276
+ .charmap $F0, $F0
277
+ .charmap $F1, $F1
278
+ .charmap $F2, $F2
279
+ .charmap $F3, $F3
280
+ .charmap $F4, $F4
281
+ .charmap $F5, $F5
282
+ .charmap $F6, $F6
283
+ .charmap $F7, $F7
284
+ .charmap $F8, $F8
285
+ .charmap $F9, $F9
286
+ .charmap $FA, $FA
287
+ .charmap $FB, $FB
288
+ .charmap $FC, $FC
289
+ .charmap $FD, $FD
290
+ .charmap $FE, $FE
291
+ .charmap $FF, $FF