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.
- package/LICENSE +17 -0
- package/asminc/_file.inc +27 -0
- package/asminc/_heap.inc +35 -0
- package/asminc/accelerator.inc +80 -0
- package/asminc/agat.inc +39 -0
- package/asminc/apple2.inc +95 -0
- package/asminc/apple2.mac +54 -0
- package/asminc/ascii_charmap.inc +287 -0
- package/asminc/atari.inc +1169 -0
- package/asminc/atari.mac +65 -0
- package/asminc/atari2600.inc +7 -0
- package/asminc/atari2600_riot.inc +20 -0
- package/asminc/atari2600_tia.inc +69 -0
- package/asminc/atari5200.inc +133 -0
- package/asminc/atari7800.inc +14 -0
- package/asminc/atari7800_maria.inc +39 -0
- package/asminc/atari7800_riot.inc +20 -0
- package/asminc/atari7800_tia.inc +69 -0
- package/asminc/atari_antic.inc +95 -0
- package/asminc/atari_atascii_charmap.inc +301 -0
- package/asminc/atari_gtia.inc +119 -0
- package/asminc/atari_pokey.inc +43 -0
- package/asminc/atari_screen_charmap.inc +303 -0
- package/asminc/atmos.inc +117 -0
- package/asminc/c128.inc +224 -0
- package/asminc/c16.inc +9 -0
- package/asminc/c64.inc +219 -0
- package/asminc/c65.inc +239 -0
- package/asminc/cbm.mac +56 -0
- package/asminc/cbm510.inc +200 -0
- package/asminc/cbm610.inc +121 -0
- package/asminc/cbm_filetype.inc +34 -0
- package/asminc/cbm_kernal.inc +248 -0
- package/asminc/cbm_petscii_charmap.inc +291 -0
- package/asminc/cbm_screen_charmap.inc +305 -0
- package/asminc/cpu.mac +4 -0
- package/asminc/creativision.inc +66 -0
- package/asminc/ctype.inc +31 -0
- package/asminc/ctype_common.inc +91 -0
- package/asminc/ctypetable.inc +48 -0
- package/asminc/cx16.inc +574 -0
- package/asminc/em-error.inc +49 -0
- package/asminc/em-kernel.inc +106 -0
- package/asminc/errno.inc +37 -0
- package/asminc/fcntl.inc +21 -0
- package/asminc/gamate.inc +64 -0
- package/asminc/generic.mac +53 -0
- package/asminc/get_tv.inc +22 -0
- package/asminc/joy-error.inc +44 -0
- package/asminc/joy-kernel.inc +83 -0
- package/asminc/kim1.inc +31 -0
- package/asminc/longbranch.mac +88 -0
- package/asminc/lynx.inc +460 -0
- package/asminc/mega65.inc +239 -0
- package/asminc/modload.inc +78 -0
- package/asminc/module.mac +13 -0
- package/asminc/mouse-kernel.inc +184 -0
- package/asminc/nes.inc +93 -0
- package/asminc/o65.inc +150 -0
- package/asminc/opcodes.inc +514 -0
- package/asminc/pce.inc +93 -0
- package/asminc/pet.inc +100 -0
- package/asminc/plus4.inc +86 -0
- package/asminc/rp6502.inc +98 -0
- package/asminc/ser-error.inc +55 -0
- package/asminc/ser-kernel.inc +162 -0
- package/asminc/signal.inc +57 -0
- package/asminc/sim65.inc +75 -0
- package/asminc/smc.inc +267 -0
- package/asminc/stat.inc +64 -0
- package/asminc/statvfs.inc +46 -0
- package/asminc/stdio.inc +74 -0
- package/asminc/supervision.inc +75 -0
- package/asminc/sym1.inc +186 -0
- package/asminc/telestrat.inc +546 -0
- package/asminc/tgi-error.inc +52 -0
- package/asminc/tgi-kernel.inc +233 -0
- package/asminc/tgi-vectorfont.inc +70 -0
- package/asminc/time.inc +74 -0
- package/asminc/utsname.inc +46 -0
- package/asminc/vic20.inc +119 -0
- package/asminc/zeropage.inc +40 -0
- package/bin/ar65.exe +0 -0
- package/bin/ca65.exe +0 -0
- package/bin/cc65.exe +0 -0
- package/bin/da65.exe +0 -0
- package/bin/ld65.exe +0 -0
- package/cfg/module.cfg +21 -0
- package/cfg/nes.cfg +62 -0
- package/cfg/none.cfg +37 -0
- package/include/6502.h +140 -0
- package/include/_6522.h +68 -0
- package/include/_6525.h +62 -0
- package/include/_6526.h +71 -0
- package/include/_6545.h +53 -0
- package/include/_6551.h +55 -0
- package/include/_antic.h +254 -0
- package/include/_atari5200os.h +94 -0
- package/include/_atarios.h +661 -0
- package/include/_gtia.h +281 -0
- package/include/_heap.h +60 -0
- package/include/_maria.h +63 -0
- package/include/_mikey.h +264 -0
- package/include/_pbi.h +63 -0
- package/include/_pia.h +52 -0
- package/include/_pokey.h +220 -0
- package/include/_riot.h +26 -0
- package/include/_sid.h +68 -0
- package/include/_suzy.h +336 -0
- package/include/_ted.h +86 -0
- package/include/_tia.h +100 -0
- package/include/_vdc.h +53 -0
- package/include/_vic.h +67 -0
- package/include/_vic2.h +192 -0
- package/include/_vic3.h +188 -0
- package/include/accelerator.h +339 -0
- package/include/agat.h +76 -0
- package/include/apple2.h +358 -0
- package/include/apple2_filetype.h +324 -0
- package/include/apple2enh.h +67 -0
- package/include/arpa/inet.h +81 -0
- package/include/ascii_charmap.h +295 -0
- package/include/assert.h +59 -0
- package/include/atari.h +554 -0
- package/include/atari2600.h +32 -0
- package/include/atari5200.h +100 -0
- package/include/atari7800.h +67 -0
- package/include/atari_atascii_charmap.h +304 -0
- package/include/atari_screen_charmap.h +310 -0
- package/include/atmos.h +189 -0
- package/include/c128.h +175 -0
- package/include/c16.h +60 -0
- package/include/c64.h +175 -0
- package/include/c65.h +120 -0
- package/include/cbm.h +321 -0
- package/include/cbm264.h +165 -0
- package/include/cbm510.h +168 -0
- package/include/cbm610.h +153 -0
- package/include/cbm_filetype.h +108 -0
- package/include/cbm_petscii_charmap.h +297 -0
- package/include/cbm_screen_charmap.h +311 -0
- package/include/cc65.h +109 -0
- package/include/conio.h +248 -0
- package/include/creativision.h +78 -0
- package/include/ctype.h +88 -0
- package/include/cx16.h +420 -0
- package/include/dbg.h +124 -0
- package/include/device.h +72 -0
- package/include/dio.h +113 -0
- package/include/dirent.h +151 -0
- package/include/em/em-kernel.h +77 -0
- package/include/em.h +135 -0
- package/include/errno.h +135 -0
- package/include/fcntl.h +75 -0
- package/include/gamate.h +209 -0
- package/include/geos/gconst.h +69 -0
- package/include/geos/gdisk.h +79 -0
- package/include/geos/gdlgbox.h +110 -0
- package/include/geos/gfile.h +72 -0
- package/include/geos/ggraph.h +180 -0
- package/include/geos/gmemory.h +30 -0
- package/include/geos/gmenu.h +53 -0
- package/include/geos/gprocess.h +22 -0
- package/include/geos/gsprite.h +96 -0
- package/include/geos/gstruct.h +174 -0
- package/include/geos/gsym.h +340 -0
- package/include/geos/gsys.h +54 -0
- package/include/geos.h +109 -0
- package/include/inttypes.h +237 -0
- package/include/iso646.h +60 -0
- package/include/joystick/joy-kernel.h +84 -0
- package/include/joystick.h +109 -0
- package/include/kim1.h +73 -0
- package/include/limits.h +87 -0
- package/include/locale.h +83 -0
- package/include/lynx.h +144 -0
- package/include/lz4.h +43 -0
- package/include/lzsa.h +56 -0
- package/include/mega65.h +120 -0
- package/include/modload.h +103 -0
- package/include/mouse/mouse-kernel.h +67 -0
- package/include/mouse.h +220 -0
- package/include/nes.h +203 -0
- package/include/o65.h +178 -0
- package/include/osic1p.h +66 -0
- package/include/pce.h +110 -0
- package/include/peekpoke.h +58 -0
- package/include/pen.h +78 -0
- package/include/pet.h +113 -0
- package/include/plus4.h +63 -0
- package/include/rp6502.h +266 -0
- package/include/serial.h +180 -0
- package/include/setjmp.h +55 -0
- package/include/signal.h +74 -0
- package/include/sim65.h +136 -0
- package/include/stdarg.h +57 -0
- package/include/stdbool.h +53 -0
- package/include/stddef.h +66 -0
- package/include/stdint.h +144 -0
- package/include/stdio.h +166 -0
- package/include/stdlib.h +174 -0
- package/include/string.h +106 -0
- package/include/supervision.h +137 -0
- package/include/sym1.h +165 -0
- package/include/sys/stat.h +94 -0
- package/include/sys/statvfs.h +74 -0
- package/include/sys/types.h +102 -0
- package/include/sys/utsname.h +97 -0
- package/include/target.h +77 -0
- package/include/telestrat.h +129 -0
- package/include/tgi/tgi-error.h +64 -0
- package/include/tgi/tgi-kernel.h +75 -0
- package/include/tgi/tgi-vectorfont.h +90 -0
- package/include/tgi.h +286 -0
- package/include/time.h +143 -0
- package/include/unistd.h +103 -0
- package/include/vic20.h +141 -0
- package/include/zlib.h +175 -0
- package/include/zx02.h +44 -0
- package/lib/nes.lib +0 -0
- package/lib/none.lib +0 -0
- package/manifest.json +227 -0
- package/package.json +19 -4
- package/README.md +0 -3
package/include/cbm510.h
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* cbm510.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* System-specific definitions for the CBM5x0 / P500 */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 2001-2013, 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 _CBM510_H
|
|
37
|
+
#define _CBM510_H
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/* Check for errors */
|
|
42
|
+
#if !defined(__CBM510__)
|
|
43
|
+
# error This module may only be used when compiling for the CBM 510!
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/*****************************************************************************/
|
|
49
|
+
/* Data */
|
|
50
|
+
/*****************************************************************************/
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/* Additional key defines */
|
|
55
|
+
#define CH_F1 224
|
|
56
|
+
#define CH_F2 225
|
|
57
|
+
#define CH_F3 226
|
|
58
|
+
#define CH_F4 227
|
|
59
|
+
#define CH_F5 228
|
|
60
|
+
#define CH_F6 229
|
|
61
|
+
#define CH_F7 230
|
|
62
|
+
#define CH_F8 231
|
|
63
|
+
#define CH_F9 232
|
|
64
|
+
#define CH_F10 233
|
|
65
|
+
#define CH_F11 234
|
|
66
|
+
#define CH_F12 235
|
|
67
|
+
#define CH_F13 236
|
|
68
|
+
#define CH_F14 237
|
|
69
|
+
#define CH_F15 238
|
|
70
|
+
#define CH_F16 239
|
|
71
|
+
#define CH_F17 240
|
|
72
|
+
#define CH_F18 241
|
|
73
|
+
#define CH_F19 242
|
|
74
|
+
#define CH_F20 243
|
|
75
|
+
|
|
76
|
+
/* Color defines */
|
|
77
|
+
#define COLOR_BLACK 0x00
|
|
78
|
+
#define COLOR_WHITE 0x01
|
|
79
|
+
#define COLOR_RED 0x02
|
|
80
|
+
#define COLOR_CYAN 0x03
|
|
81
|
+
#define COLOR_PURPLE 0x04
|
|
82
|
+
#define COLOR_GREEN 0x05
|
|
83
|
+
#define COLOR_BLUE 0x06
|
|
84
|
+
#define COLOR_YELLOW 0x07
|
|
85
|
+
#define COLOR_ORANGE 0x08
|
|
86
|
+
#define COLOR_BROWN 0x09
|
|
87
|
+
#define COLOR_LIGHTRED 0x0A
|
|
88
|
+
#define COLOR_GRAY1 0x0B
|
|
89
|
+
#define COLOR_GRAY2 0x0C
|
|
90
|
+
#define COLOR_LIGHTGREEN 0x0D
|
|
91
|
+
#define COLOR_LIGHTBLUE 0x0E
|
|
92
|
+
#define COLOR_GRAY3 0x0F
|
|
93
|
+
|
|
94
|
+
/* Masks for joy_read */
|
|
95
|
+
#define JOY_UP_MASK 0x01
|
|
96
|
+
#define JOY_DOWN_MASK 0x02
|
|
97
|
+
#define JOY_LEFT_MASK 0x04
|
|
98
|
+
#define JOY_RIGHT_MASK 0x08
|
|
99
|
+
#define JOY_BTN_1_MASK 0x10
|
|
100
|
+
|
|
101
|
+
/* Define hardware */
|
|
102
|
+
#include <_vic2.h>
|
|
103
|
+
#define VIC (*(struct __vic2*)0xD800)
|
|
104
|
+
|
|
105
|
+
#include <_sid.h>
|
|
106
|
+
#define SID (*(struct __sid*)0xDA00)
|
|
107
|
+
|
|
108
|
+
#include <_6526.h>
|
|
109
|
+
#define CIA2 (*(struct __6526*)0xDC00)
|
|
110
|
+
|
|
111
|
+
#include <_6551.h>
|
|
112
|
+
#define ACIA (*(struct __6551*)0xDD00)
|
|
113
|
+
|
|
114
|
+
#include <_6525.h>
|
|
115
|
+
#define TPI1 (*(struct __6525*)0xDE00)
|
|
116
|
+
#define TPI2 (*(struct __6525*)0xDF00)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
/*****************************************************************************/
|
|
121
|
+
/* Variables */
|
|
122
|
+
/*****************************************************************************/
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
/* The addresses of the static drivers */
|
|
127
|
+
extern void cbm510_inkwl_mou[];
|
|
128
|
+
extern void cbm510_joy_mou[]; /* Referred to by mouse_static_stddrv[] */
|
|
129
|
+
extern void cbm510_ram_emd[];
|
|
130
|
+
extern void cbm510_std_joy[]; /* Referred to by joy_static_stddrv[] */
|
|
131
|
+
extern void cbm510_std_ser[]; /* Referred to by ser_static_stddrv[] */
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
/*****************************************************************************/
|
|
136
|
+
/* Code */
|
|
137
|
+
/*****************************************************************************/
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/* Special routines to read/write bytes and words in the system bank */
|
|
142
|
+
unsigned char __fastcall__ peekbsys (unsigned addr);
|
|
143
|
+
unsigned __fastcall__ peekwsys (unsigned addr);
|
|
144
|
+
void __fastcall__ pokebsys (unsigned addr, unsigned char val);
|
|
145
|
+
void __fastcall__ pokewsys (unsigned addr, unsigned val);
|
|
146
|
+
|
|
147
|
+
#if defined(__OPT_i__) && (__OPT_i__ >= 600)
|
|
148
|
+
#define peekbsys(addr) \
|
|
149
|
+
__AX__ = (addr), \
|
|
150
|
+
__asm__ ("sta ptr1"), \
|
|
151
|
+
__asm__ ("stx ptr1+1"), \
|
|
152
|
+
__asm__ ("ldx $01"), \
|
|
153
|
+
__asm__ ("lda #$0F"), \
|
|
154
|
+
__asm__ ("sta $01"), \
|
|
155
|
+
__asm__ ("ldy #$00"), \
|
|
156
|
+
__asm__ ("lda (ptr1),y"), \
|
|
157
|
+
__asm__ ("stx $01"), \
|
|
158
|
+
__asm__ ("ldx #$00"), \
|
|
159
|
+
__AX__
|
|
160
|
+
#endif
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
/* End of cbm510.h */
|
|
165
|
+
#endif
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
package/include/cbm610.h
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* cbm610.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* CBM610 system specific definitions */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 1998-2009, 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 _CBM610_H
|
|
37
|
+
#define _CBM610_H
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/* Check for errors */
|
|
42
|
+
#if !defined(__CBM610__)
|
|
43
|
+
# error This module may only be used when compiling for the CBM 610!
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/*****************************************************************************/
|
|
49
|
+
/* Data */
|
|
50
|
+
/*****************************************************************************/
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/* Additional key defines */
|
|
55
|
+
#define CH_F1 224
|
|
56
|
+
#define CH_F2 225
|
|
57
|
+
#define CH_F3 226
|
|
58
|
+
#define CH_F4 227
|
|
59
|
+
#define CH_F5 228
|
|
60
|
+
#define CH_F6 229
|
|
61
|
+
#define CH_F7 230
|
|
62
|
+
#define CH_F8 231
|
|
63
|
+
#define CH_F9 232
|
|
64
|
+
#define CH_F10 233
|
|
65
|
+
#define CH_F11 234
|
|
66
|
+
#define CH_F12 235
|
|
67
|
+
#define CH_F13 236
|
|
68
|
+
#define CH_F14 237
|
|
69
|
+
#define CH_F15 238
|
|
70
|
+
#define CH_F16 239
|
|
71
|
+
#define CH_F17 240
|
|
72
|
+
#define CH_F18 241
|
|
73
|
+
#define CH_F19 242
|
|
74
|
+
#define CH_F20 243
|
|
75
|
+
|
|
76
|
+
/* Color defines */
|
|
77
|
+
#define COLOR_BLACK 0x00
|
|
78
|
+
#define COLOR_WHITE 0x01
|
|
79
|
+
|
|
80
|
+
/* Define hardware */
|
|
81
|
+
#include <_6545.h>
|
|
82
|
+
#define CRTC (*(struct __6545)0xD800)
|
|
83
|
+
|
|
84
|
+
#include <_sid.h>
|
|
85
|
+
#define SID (*(struct __sid*)0xDA00)
|
|
86
|
+
|
|
87
|
+
#include <_6526.h>
|
|
88
|
+
#define CIA1 (*(struct __6526*)0xDB00)
|
|
89
|
+
#define CIA2 (*(struct __6526*)0xDC00)
|
|
90
|
+
|
|
91
|
+
#include <_6551.h>
|
|
92
|
+
#define ACIA (*(struct __6551*)0xDD00)
|
|
93
|
+
|
|
94
|
+
#include <_6525.h>
|
|
95
|
+
#define TPI1 (*(struct __6525*)0xDE00)
|
|
96
|
+
#define TPI2 (*(struct __6525*)0xDF00)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
/*****************************************************************************/
|
|
101
|
+
/* Variables */
|
|
102
|
+
/*****************************************************************************/
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/* The addresses of the static drivers */
|
|
107
|
+
extern void cbm610_ram_emd[];
|
|
108
|
+
extern void cbm610_std_ser[]; /* Referred to by ser_static_stddrv[] */
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/*****************************************************************************/
|
|
113
|
+
/* Code */
|
|
114
|
+
/*****************************************************************************/
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/* Special routines to read/write bytes and words in the system bank */
|
|
119
|
+
unsigned char __fastcall__ peekbsys (unsigned addr);
|
|
120
|
+
unsigned __fastcall__ peekwsys (unsigned addr);
|
|
121
|
+
void __fastcall__ pokebsys (unsigned addr, unsigned char val);
|
|
122
|
+
void __fastcall__ pokewsys (unsigned addr, unsigned val);
|
|
123
|
+
|
|
124
|
+
#if defined(__OPT_i__) && (__OPT_i__ >= 600)
|
|
125
|
+
#define peekbsys(addr) \
|
|
126
|
+
__AX__ = (addr), \
|
|
127
|
+
__asm__ ("sta ptr1"), \
|
|
128
|
+
__asm__ ("stx ptr1+1"), \
|
|
129
|
+
__asm__ ("ldx $01"), \
|
|
130
|
+
__asm__ ("lda #$0F"), \
|
|
131
|
+
__asm__ ("sta $01"), \
|
|
132
|
+
__asm__ ("ldy #$00"), \
|
|
133
|
+
__asm__ ("lda (ptr1),y"), \
|
|
134
|
+
__asm__ ("stx $01"), \
|
|
135
|
+
__asm__ ("ldx #$00"), \
|
|
136
|
+
__AX__
|
|
137
|
+
#endif
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/* The following #defines will cause the matching functions calls in conio.h
|
|
142
|
+
** to be overlaid by macros with the same names, saving the function call
|
|
143
|
+
** overhead.
|
|
144
|
+
*/
|
|
145
|
+
#define _textcolor(color) COLOR_WHITE
|
|
146
|
+
#define _bgcolor(color) COLOR_BLACK
|
|
147
|
+
#define _bordercolor(color) COLOR_BLACK
|
|
148
|
+
#define _cpeekcolor(color) COLOR_WHITE
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
/* End of cbm610.h */
|
|
153
|
+
#endif
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*****************************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* cbm_filetype.h */
|
|
4
|
+
/* */
|
|
5
|
+
/* Definitions for CBM file types */
|
|
6
|
+
/* */
|
|
7
|
+
/* */
|
|
8
|
+
/* */
|
|
9
|
+
/* (C) 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 _CBM_FILETYPE_H
|
|
37
|
+
#define _CBM_FILETYPE_H
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/* Check for errors */
|
|
42
|
+
#if !defined(__CBM__)
|
|
43
|
+
# error This module may be used only when compiling for CBM machines!
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/*****************************************************************************/
|
|
49
|
+
/* Definitions */
|
|
50
|
+
/*****************************************************************************/
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/* CBM FILE TYPES. The definitions are used within standard headers, so we
|
|
55
|
+
** be careful with identifiers in the user name space.
|
|
56
|
+
** "Regular" files have a special bit set so it's easier to pick them out.
|
|
57
|
+
*/
|
|
58
|
+
#define _CBM_T_REG 0x10U /* Bit set for regular files */
|
|
59
|
+
#define _CBM_T_SEQ 0x10U
|
|
60
|
+
#define _CBM_T_PRG 0x11U
|
|
61
|
+
#define _CBM_T_USR 0x12U
|
|
62
|
+
#define _CBM_T_REL 0x13U
|
|
63
|
+
#define _CBM_T_VRP 0x14U /* Vorpal fast-loadable format */
|
|
64
|
+
#define _CBM_T_DEL 0x00U
|
|
65
|
+
#define _CBM_T_CBM 0x01U /* 1581 sub-partition */
|
|
66
|
+
#define _CBM_T_DIR 0x02U /* IDE64 and CMD sub-directory */
|
|
67
|
+
#define _CBM_T_LNK 0x03U /* IDE64 soft-link */
|
|
68
|
+
#define _CBM_T_OTHER 0x04U /* File-type not recognized */
|
|
69
|
+
#define _CBM_T_HEADER 0x05U /* Disk header / title */
|
|
70
|
+
|
|
71
|
+
#if __CC65_STD__ == __CC65_STD_CC65__
|
|
72
|
+
/* Allow for names without leading underscores */
|
|
73
|
+
#define CBM_T_DEL _CBM_T_DEL
|
|
74
|
+
#define CBM_T_SEQ _CBM_T_SEQ
|
|
75
|
+
#define CBM_T_PRG _CBM_T_PRG
|
|
76
|
+
#define CBM_T_USR _CBM_T_USR
|
|
77
|
+
#define CBM_T_REL _CBM_T_REL
|
|
78
|
+
#define CBM_T_CBM _CBM_T_CBM
|
|
79
|
+
#define CBM_T_DIR _CBM_T_DIR
|
|
80
|
+
#define CBM_T_LNK _CBM_T_LNK
|
|
81
|
+
#define CBM_T_VRP _CBM_T_VRP
|
|
82
|
+
#define CBM_T_OTHER _CBM_T_OTHER
|
|
83
|
+
#define CBM_T_HEADER _CBM_T_HEADER
|
|
84
|
+
#endif
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/*****************************************************************************/
|
|
89
|
+
/* Code */
|
|
90
|
+
/*****************************************************************************/
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
unsigned char __fastcall__ _cbm_filetype (unsigned char c);
|
|
95
|
+
/* Map the start character for a file type to one of the file types above.
|
|
96
|
+
** Note: 'd' will always mapped to CBM_T_DEL. The calling function has to
|
|
97
|
+
** look at the following character to determine if the file type is actually
|
|
98
|
+
** CBM_T_DIR.
|
|
99
|
+
** This is a function used by the implementation. There is usually no need
|
|
100
|
+
** to call it from user code.
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/* End of cbm_filetype.h */
|
|
106
|
+
#endif
|
|
107
|
+
|
|
108
|
+
|