Skip to content

Commit 0ac0bc1

Browse files
authored
built-in timing settings
1 parent 52aed33 commit 0ac0bc1

File tree

5 files changed

+2864
-2555
lines changed

5 files changed

+2864
-2555
lines changed

Source/Firmware/c64screen.h

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,71 @@
1-
/*
2-
3-
{_______ {_ {______
4-
{__ {_ __ {__
5-
{__ {_ {__ {__
6-
{__ {__ {__ {__
7-
{______ {__ {__ {__
8-
{__ {__ {__ {__
9-
{_________ {______________ Expansion Unit
10-
11-
RADExp - A framework for DMA interfacing with Commodore C64/C128 computers using a Raspberry Pi Zero 2 or 3A+/3B+
12-
Copyright (c) 2022 Carsten Dachsbacher <[email protected]>
13-
14-
This program is free software: you can redistribute it and/or modify
15-
it under the terms of the GNU General Public License as published by
16-
the Free Software Foundation, either version 3 of the License, or
17-
(at your option) any later version.
18-
19-
This program is distributed in the hope that it will be useful,
20-
but WITHOUT ANY WARRANTY; without even the implied warranty of
21-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22-
GNU General Public License for more details.
23-
24-
You should have received a copy of the GNU General Public License
25-
along with this program. If not, see <http://www.gnu.org/licenses/>.
26-
27-
*/
28-
#ifndef _c64screen_h
29-
#define _c64screen_h
30-
31-
#define VK_F1 133
32-
#define VK_F2 137
33-
#define VK_F3 134
34-
#define VK_F4 138
35-
#define VK_F5 135
36-
#define VK_F6 139
37-
#define VK_F7 136
38-
#define VK_F8 140
39-
40-
#define VK_ESC 95
41-
#define VK_DELETE 20
42-
#define VK_RETURN 13
43-
#define VK_SHIFT_RETURN 141
44-
#define VK_COMMODORE_RETURN 142
45-
#define VK_MOUNT 205
46-
#define VK_MOUNT_START 77
47-
48-
49-
#define VK_LEFT 157
50-
#define VK_RIGHT 29
51-
#define VK_UP 145
52-
#define VK_DOWN 17
53-
#define VK_HOME 19
54-
#define VK_S 83
55-
56-
#define SHIFT_L 1
57-
#define VK_STOP 2
58-
#define VK_CMD 3
59-
#define VK_COMMODORE 4
60-
#define VK_SPACE 32
61-
#define SHIFT_R 6
62-
#define VK_CTRL 7
63-
#define VK_BACK 8
64-
65-
extern u8 c64screen[ 40 * 25 + 1024 * 4 ];
66-
extern u8 c64color[ 40 * 25 + 1024 * 4 ];
67-
68-
extern void clearC64();
69-
extern void printC64( u32 x, u32 y, const char *t, u8 color, u8 flag = 0, u32 convert = 0, u32 maxL = 40 );
70-
71-
#endif
1+
/*
2+
3+
{_______ {_ {______
4+
{__ {_ __ {__
5+
{__ {_ {__ {__
6+
{__ {__ {__ {__
7+
{______ {__ {__ {__
8+
{__ {__ {__ {__
9+
{_________ {______________ Expansion Unit
10+
11+
RADExp - A framework for DMA interfacing with Commodore C64/C128 computers using a Raspberry Pi Zero 2 or 3A+/3B+
12+
Copyright (c) 2022 Carsten Dachsbacher <[email protected]>
13+
14+
This program is free software: you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation, either version 3 of the License, or
17+
(at your option) any later version.
18+
19+
This program is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
24+
You should have received a copy of the GNU General Public License
25+
along with this program. If not, see <http://www.gnu.org/licenses/>.
26+
27+
*/
28+
#ifndef _c64screen_h
29+
#define _c64screen_h
30+
31+
#define VK_F1 133
32+
#define VK_F2 137
33+
#define VK_F3 134
34+
#define VK_F4 138
35+
#define VK_F5 135
36+
#define VK_F6 139
37+
#define VK_F7 136
38+
#define VK_F8 140
39+
40+
#define VK_ESC 95
41+
#define VK_DELETE 20
42+
#define VK_RETURN 13
43+
#define VK_SHIFT_RETURN 141
44+
#define VK_COMMODORE_RETURN 142
45+
#define VK_MOUNT 205
46+
#define VK_MOUNT_START 77
47+
48+
49+
#define VK_LEFT 157
50+
#define VK_RIGHT 29
51+
#define VK_UP 145
52+
#define VK_DOWN 17
53+
#define VK_HOME 19
54+
#define VK_S 83
55+
56+
#define VK_SHIFT_L 1
57+
#define VK_STOP 2
58+
#define VK_CMD 3
59+
#define VK_COMMODORE 4
60+
#define VK_SPACE 32
61+
#define VK_SHIFT_R 6
62+
#define VK_CTRL 7
63+
#define VK_BACK 8
64+
65+
extern u8 c64screen[ 40 * 25 + 1024 * 4 ];
66+
extern u8 c64color[ 40 * 25 + 1024 * 4 ];
67+
68+
extern void clearC64();
69+
extern void printC64( u32 x, u32 y, const char *t, u8 color, u8 flag = 0, u32 convert = 0, u32 maxL = 40 );
70+
71+
#endif

0 commit comments

Comments
 (0)