feat: place per-machine variants at their declared paths

This commit is contained in:
Abdessamad Derraz committed 2026-08-11 09:19:25 +02:00
1 parent eea4d4254f
commit 4e0458dc83
51 files changed
+3727 -220

No files matched your search

File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
+391
View File
@@ -0,0 +1,391 @@
# VICE keyboard mapping file
#
# A Keyboard map is read in as patch to the current map.
#
# File format:
# - comment lines start with '#'
# - keyword lines start with '!keyword'
# - normal lines have 'keysym/scancode row column shiftflag'
#
# Keywords and their lines are:
# '!CLEAR' clear whole table
# '!INCLUDE filename' read file as mapping file
# '!LSHIFT row col' left shift keyboard row/column
# '!RSHIFT row col' right shift keyboard row/column
# '!VSHIFT shiftkey' virtual shift key (RSHIFT or LSHIFT)
# '!SHIFTL shiftkey' shift lock key (RSHIFT or LSHIFT)
# for emulated keyboards that have only one shift key, set both LSHIFT
# and RSHIFT to the same row/col and use RSHIFT for VSHIFT and SHIFTL.
# '!LCTRL row col' left control keyboard row/column
# '!VCTRL ctrlkey' virtual control key (LCTRL)
# '!LCBM row col' left CBM keyboard row/column
# '!VCBM cbmkey' virtual CBM key (LCBM)
# '!UNDEF keysym' remove keysym from table
#
# Shiftflag can have these values, flags can be ORed to combine them:
# 0x0000 0 key is not shifted for this keysym/scancode
# 0x0001 1 key is combined with shift for this keysym/scancode
# 0x0002 2 key is left shift on emulated machine
# 0x0004 4 key is right shift on emulated machine (use only this one
# for emulated keyboards that have only one shift key)
# 0x0008 8 key can be shifted or not with this keysym/scancode
# 0x0010 16 deshift key for this keysym/scancode
# 0x0020 32 another definition for this keysym/scancode follows
# 0x0040 64 key is shift-lock on emulated machine
# 0x0080 128 shift modifier required on host
# 0x0100 256 key is used for an alternative keyboard mapping, e.g. C64 mode in x128
# 0x0200 512 alt-r (alt-gr) modifier required on host
# 0x0400 1024 ctrl modifier required on host
# 0x0800 2048 key is combined with cbm for this keysym/scancode
# 0x1000 4096 key is combined with ctrl for this keysym/scancode
# 0x2000 8192 key is (left) cbm on emulated machine
# 0x4000 16384 key is (left) ctrl on emulated machine
#
# Negative row values:
# 'keysym -1 n' joystick keymap A, direction n
# 'keysym -2 n' joystick keymap B, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key (x128)
# 'keysym -4 1' CAPS (ASCII/DIN) key (x128)
# 'keysym -5 n' joyport keypad, key n (not supported in x128)
#
# Joystick direction values:
# 0 Fire
# 1 South/West
# 2 South
# 3 South/East
# 4 West
# 5 East
# 6 North/West
# 7 North
# 8 North/East
#
# Joyport keypad key layout:
# --------------------------
# | 0 | 1 | 2 | 3 | 4 |
# --------------------------
# | 5 | 6 | 7 | 8 | 9 |
# --------------------------
# | 10 | 11 | 12 | 13 | 14 |
# --------------------------
# | 15 | 16 | 17 | 18 | 19 |
# --------------------------
#
# When a bigger spaced key is used,
# it uses the upper left most key value.
# Symbolic Mapping, US Layout, C128, GTK
# C128 Keyboard matrix
#
# +-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0|Bit 1|Bit 2|Bit 3|Bit 4|Bit 5|Bit 6|Bit 7|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0| DEL |Retrn|C_L/R| F7 | F1 | F3 | F5 |C_U/D|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 1| 3 # | W | A | 4 $ | Z | S | E | S_L |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 2| 5 % | R | D | 6 & | C | F | T | X |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 3| 7 ' | Y | G | 8 ( | B | H | U | V |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 4| 9 ) | I | J | 0 | M | K | O | N |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 5| + | P | L | - | . > | : [ | @ | , < |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 6|POUND| * | ; ] | HOME| S_R | = | A_UP| / ? |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 7| 1 ! |A_LFT| CTRL| 2 " |SPACE| C= | Q | R/S |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
#
# +-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0|Bit 1|Bit 2|Bit 3|Bit 4|Bit 5|Bit 6|Bit 7|
# +------+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 8 |HELP | KP 8| KP 5| TAB | KP 2| KP 4| KP 7| KP 1|
# +------+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 9 | ESC | KP +| KP -| LF |KP CR| KP 6| KP 9| KP 3|
# +------+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 10| ALT | KP 0| KP .|A.UP |A.DWN|A.LFT|A.RGT|NOSCR|
# +------+-----+-----+-----+-----+-----+-----+-----+-----+
# C128 Keyboard layout:
#
# ESC TAB ALT CAPS HELP L/F 40/80 NOSCRL up down left right F1/2 F3/4 F5/6 F7/8
#
# arrow 1! 2" 3# 4$ 5% 6& 7' 8( 9) 0 + - pound clr del 7 8 9 +
# ctrl q w e r t y u i o p @ * ^ restore 4 5 6 -
# r/s SL a s d f g h j k l :[ ;] = return 1 2 3 enter
# CBM LSHFT z x c v b n m ,< .> /? RSHFT u/d l/r 0 .
# SPACE
!CLEAR
!LSHIFT 1 7
!RSHIFT 6 4
!VSHIFT RSHIFT
!SHIFTL LSHIFT
!LCBM 7 5
!VCBM LCBM
!LCTRL 7 2
!VCTRL LCTRL
# Emulated keys that can't be mapped symbolically are:
# (Functionrow)
# ESC (-> F9)
# TAB ( -> F10)
# ALT (-> F11 NOTE can't be mapped to real Alt or it would break the menus/hotkeys)
# CAPS LOCK ( -> F12 soft toggle)
# HELP (-> end)
# LINE FEED (-> Page Down)
# 40/80 Display (-> keypad divide soft toggle)
# NO SCROLL (-> keypad multiply)
# (row0)
# arrow left (-> tilde ~)
# pound ( -> backslash)
# (row1)
# arrow up (-> circumflex accent ^)
# restore (-> page up)
# (row2)
# run/stop (-> escape)
# (row3)
# commodore (-> tab)
# Emulated keys that are mapped more than once:
# (row0)
# apostrophe (-> apostrophe [under " ] AND grave [under ~ ] )
# INST/DEL (-> Backspace AND Delete AND Insert)
# (row1)
# arrow up (-> tilde ~ AND circumflex accent ^ [shift-6 on US KB])
#####################
# |Bit 0| DEL |Retrn|C_L/R| F7 | F1 | F3 | F5 |C_U/D|
# INST/DEL (all 3 below)
BackSpace 0 0 8
Delete 0 0 8
Insert 0 0 1
Return 0 1 8
# alternative set (c64 mode)
Right 0 2 0x108
Left 0 2 0x101
F7 0 3 8
F8 0 3 1
F1 0 4 8
F2 0 4 1
F3 0 5 8
F4 0 5 1
F5 0 6 8
F6 0 6 1
# alternative set (c64 mode)
Down 0 7 0x108
Up 0 7 0x101
#####################
# |Bit 1| 3 # | W | A | 4 $ | Z | S | E | S_L |
numbersign 1 0 1
dollar 1 3 1
Shift_L 1 7 2
# shift lock
Caps_Lock 1 7 64
#####################
# |Bit 2| 5 % | R | D | 6 & | C | F | T | X |
percent 2 0 1
ampersand 2 3 1
#####################
# |Bit 3| 7 ' | Y | G | 8 ( | B | H | U | V |
# Note the duplicate mapping of both ' (shift =) and ` (with ~ on us keyboards on top left)
apostrophe 3 0 1
grave 3 0 1
parenleft 3 3 1
#####################
# |Bit 4| 9 ) | I | J | 0 | M | K | O | N |
parenright 4 0 1
#####################
# |Bit 5| + | P | L | - | . > | : [ | @ | , < |
plus 5 0 16
minus 5 3 0
period 5 4 0
greater 5 4 1
colon 5 5 16
bracketleft 5 5 1
# underscore -> CBM+@
underscore 5 6 0x810
at 5 6 16
comma 5 7 0
less 5 7 1
#####################
# |Bit 6|POUND| * | ; ] | HOME| S_R | = | A_UP| / ? |
sterling 6 0 0
backslash 6 0 0
bar 6 0 8
asterisk 6 1 16
semicolon 6 2 0
bracketright 6 2 1
Home 6 3 8
Shift_R 6 4 4
equal 6 5 0
# Shift-6 on us keyboard > A_UP
asciicircum 6 6 16
slash 6 7 0
question 6 7 1
#####################
# |Bit 7| 1 ! |A_LFT| CTRL| 2 " |SPACE| C= | Q | R/S |
exclam 7 0 1
# tilde -> arrow left
asciitilde 7 1 16
Control_L 7 2 16384 /* Control_L = CTRL */
quotedbl 7 3 1
space 7 4 8
Tab 7 5 8192 /* Tab = CBM */
ISO_Left_Tab 7 5 8192 /* Shift + Tab = CBM */
Escape 7 7 8
#####################
# Numbers, letters
0 4 3 8
1 7 0 8
2 7 3 8
3 1 0 8
4 1 3 8
5 2 0 8
6 2 3 8
7 3 0 8
8 3 3 8
9 4 0 8
A 1 2 1
B 3 4 1
C 2 4 1
D 2 2 1
E 1 6 1
F 2 5 1
G 3 2 1
H 3 5 1
I 4 1 1
J 4 2 1
K 4 5 1
L 5 2 1
M 4 4 1
N 4 7 1
O 4 6 1
P 5 1 1
Q 7 6 1
R 2 1 1
S 1 5 1
T 2 6 1
U 3 6 1
V 3 7 1
W 1 1 1
X 2 7 1
Y 3 1 1
Z 1 4 1
a 1 2 8
b 3 4 8
c 2 4 8
d 2 2 8
e 1 6 8
f 2 5 8
g 3 2 8
h 3 5 8
i 4 1 8
j 4 2 8
k 4 5 8
l 5 2 8
m 4 4 8
n 4 7 8
o 4 6 8
p 5 1 8
q 7 6 8
r 2 1 8
s 1 5 8
t 2 6 8
u 3 6 8
v 3 7 8
w 1 1 8
x 2 7 8
y 3 1 8
z 1 4 8
# Numeric keypad
KP_0 10 1 8
KP_1 8 7 8
KP_2 8 4 8
KP_3 9 7 8
KP_4 8 5 8
KP_5 8 2 8
KP_6 9 5 8
KP_7 8 6 8
KP_8 8 1 8
KP_9 9 6 8
# If you got here because you think the keypad enter mapping is wrongly
# pressing normal keyboard return key in the emulated machine, then you
# have hit an upstream GTK3 Windows bug.
# The mapping below is correct, GTK3 behaviour on Windows is wrong.
# See https://vice-emu.pokefinder.org/index.php/Upstream_bugs
KP_Enter 9 4 8
KP_Subtract 9 2 8
KP_Separator 10 2 8
KP_Decimal 10 2 8
KP_Add 9 1 8
# escape - tab - alt - (caps lock)
# help - linefeed - (40/80) - no scroll
# note: its really hard to map all these keys reasonable without sacrificing
# the symbolic mapping of f1-f7 keys. the above keys are mapped to
# first block: f9, f10, f11, f12
# second block: end, page down, kp /, kp *
# escape
F9 9 0 8
# tab
F10 8 3 8
# alt
F11 10 0 8
# CAPS (ASCII/DIN) key
F12 -4 1
# help
End 8 0 8
# lf
Page_Down 9 3 8
# 40/80 column key
KP_Divide -4 0
# no scroll
KP_Multiply 10 7 8
# duplicate the cursor keys (c128 mode)
Up 10 3 8
Left 10 5 8
Right 10 6 8
Down 10 4 8
# Restore key mapping
Page_Up -3 0
Prior -3 1
# Dead keys support for those using US-International keyboard layout.
dead_acute 3 0 1 # '
dead_grave 3 0 1 # '
dead_circumflex 6 6 16 # A_UP
dead_tilde 6 6 16 # A_UP
dead_perispomeni 7 1 16 # A_UP
dead_diaeresis 7 3 1 # "
+56
View File
@@ -0,0 +1,56 @@
#
# VICE Palette file
#
# Syntax:
# Red Green Blue
#
# TYPE:VICII
# NAME:Pepto (PAL)
# Black
00 00 00
# White
FF FF FF
# Red
68 37 2b
# Cyan
70 a4 b2
# Purple
6f 3d 86
# Green
58 8d 43
# Blue
35 28 79
# Yellow
b8 c7 6f
# Orange
6f 4f 25
# Brown
43 39 00
# Light Red
9a 67 59
# Dark Gray
44 44 44
# Medium Gray
6c 6c 6c
# Light Green
9a d2 84
# Light Blue
6c 5e b5
# Light Gray
95 95 95
File renamed without changes.
+319
View File
@@ -0,0 +1,319 @@
# VICE keyboard mapping file
#
# A Keyboard map is read in as patch to the current map.
#
# File format:
# - comment lines start with '#'
# - keyword lines start with '!keyword'
# - normal lines have 'keysym/scancode row column shiftflag'
#
# Keywords and their lines are:
# '!CLEAR' clear whole table
# '!INCLUDE filename' read file as mapping file
# '!LSHIFT row col' left shift keyboard row/column
# '!RSHIFT row col' right shift keyboard row/column
# '!VSHIFT shiftkey' virtual shift key (RSHIFT or LSHIFT)
# '!SHIFTL shiftkey' shift lock key (RSHIFT or LSHIFT)
# for emulated keyboards that have only one shift key, set both LSHIFT
# and RSHIFT to the same row/col and use RSHIFT for VSHIFT and SHIFTL.
# '!LCTRL row col' left control keyboard row/column
# '!VCTRL ctrlkey' virtual control key (LCTRL)
# '!LCBM row col' left CBM keyboard row/column
# '!VCBM cbmkey' virtual CBM key (LCBM)
# '!UNDEF keysym' remove keysym from table
#
# Shiftflag can have these values, flags can be ORed to combine them:
# 0x0000 0 key is not shifted for this keysym/scancode
# 0x0001 1 key is combined with shift for this keysym/scancode
# 0x0002 2 key is left shift on emulated machine
# 0x0004 4 key is right shift on emulated machine (use only this one
# for emulated keyboards that have only one shift key)
# 0x0008 8 key can be shifted or not with this keysym/scancode
# 0x0010 16 deshift key for this keysym/scancode
# 0x0020 32 another definition for this keysym/scancode follows
# 0x0040 64 key is shift-lock on emulated machine
# 0x0080 128 shift modifier required on host
# 0x0100 256 key is used for an alternative keyboard mapping, e.g. C64 mode in x128
# 0x0200 512 alt-r (alt-gr) modifier required on host
# 0x0400 1024 ctrl modifier required on host
# 0x0800 2048 key is combined with cbm for this keysym/scancode
# 0x1000 4096 key is combined with ctrl for this keysym/scancode
# 0x2000 8192 key is (left) cbm on emulated machine
# 0x4000 16384 key is (left) ctrl on emulated machine
#
# Negative row values:
# 'keysym -1 n' joystick keymap A, direction n
# 'keysym -2 n' joystick keymap B, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key (x128)
# 'keysym -4 1' CAPS (ASCII/DIN) key (x128)
# 'keysym -5 n' joyport keypad, key n (not supported in x128)
#
# Joystick direction values:
# 0 Fire
# 1 South/West
# 2 South
# 3 South/East
# 4 West
# 5 East
# 6 North/West
# 7 North
# 8 North/East
#
# Joyport keypad key layout:
# --------------------------
# | 0 | 1 | 2 | 3 | 4 |
# --------------------------
# | 5 | 6 | 7 | 8 | 9 |
# --------------------------
# | 10 | 11 | 12 | 13 | 14 |
# --------------------------
# | 15 | 16 | 17 | 18 | 19 |
# --------------------------
#
# When a bigger spaced key is used,
# it uses the upper left most key value.
# Symbolic Mapping, US Layout, C64, GTK
# C64 keyboard matrix:
#
# +-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0|Bit 1|Bit 2|Bit 3|Bit 4|Bit 5|Bit 6|Bit 7|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0| DEL |Retrn|C_L/R| F7 | F1 | F3 | F5 |C_U/D|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 1| 3 # | W | A | 4 $ | Z | S | E | S_L |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 2| 5 % | R | D | 6 & | C | F | T | X |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 3| 7 ' | Y | G | 8 ( | B | H | U | V |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 4| 9 ) | I | J | 0 | M | K | O | N |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 5| + | P | L | - | . > | : [ | @ | , < |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 6|POUND| * | ; ] | HOME| S_R | = | A_UP| / ? |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 7| 1 ! |A_LFT| CTRL| 2 " |SPACE| C= | Q | R/S |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# C64 Keyboard layout:
#
# arrow 1! 2" 3# 4$ 5% 6& 7' 8( 9) 0 + - pound clr del f1/f2
# ctrl q w e r t y u i o p @ * ^ restore f3/f4
# r/s SL a s d f g h j k l :[ ;] = return f5/f6
# CBM LS z x c v b n m ,< .> /? RS u/d l/r f7/f8
# space
!CLEAR
!LSHIFT 1 7
!RSHIFT 6 4
!VSHIFT RSHIFT
!SHIFTL LSHIFT
!LCBM 7 5
!VCBM LCBM
!LCTRL 7 2
!VCTRL LCTRL
#####################
# |Bit 0| DEL |Retrn|C_L/R| F7 | F1 | F3 | F5 |C_U/D|
BackSpace 0 0 8
Delete 0 0 8
Insert 0 0 1
Return 0 1 8
Right 0 2 8
KP_F4 0 2 8
Left 0 2 1
F7 0 3 8
F8 0 3 1
F1 0 4 8
KP_F1 0 4 8
F2 0 4 1
KP_F2 0 5 8
F3 0 5 8
F4 0 5 1
F5 0 6 8
KP_F3 0 6 8
F6 0 6 1
Down 0 7 8
Up 0 7 1
#####################
# |Bit 1| 3 # | W | A | 4 $ | Z | S | E | S_L |
numbersign 1 0 1
dollar 1 3 1
Shift_L 1 7 2
# shift lock
Caps_Lock 1 7 64
#####################
# |Bit 2| 5 % | R | D | 6 & | C | F | T | X |
percent 2 0 1
ampersand 2 3 1
#####################
# |Bit 3| 7 ' | Y | G | 8 ( | B | H | U | V |
apostrophe 3 0 1
grave 3 0 1
parenleft 3 3 1
#####################
# |Bit 4| 9 ) | I | J | 0 | M | K | O | N |
parenright 4 0 1
#####################
# |Bit 5| + | P | L | - | . > | : [ | @ | , < |
plus 5 0 16
minus 5 3 0
period 5 4 0
greater 5 4 1
colon 5 5 16
bracketleft 5 5 1
at 5 6 16
# underscore -> underscore (@+cbm)
underscore 5 6 0x810
comma 5 7 0
less 5 7 1
#####################
# |Bit 6|POUND| * | ; ] | HOME| S_R | = | A_UP| / ? |
sterling 6 0 0
backslash 6 0 0
bar 6 0 8
asterisk 6 1 16
semicolon 6 2 0
bracketright 6 2 1
Home 6 3 8
Shift_R 6 4 4
equal 6 5 0
# Page down -> Arrow Up
asciicircum 6 6 16
Page_Down 6 6 8
slash 6 7 0
question 6 7 1
#####################
# |Bit 7| 1 ! |A_LFT| CTRL| 2 " |SPACE| C= | Q | R/S |
exclam 7 0 1
# tilde -> arrow left
asciitilde 7 1 16
End 7 1 0
Control_L 7 2 16392 /* Control_L = CTRL */
quotedbl 7 3 1
space 7 4 8
Tab 7 5 8200 /* Tab = CBM */
ISO_Left_Tab 7 5 8200 /* Shift + Tab = CBM */
Escape 7 7 8
#####################
# letters and numbers
0 4 3 0
1 7 0 0
2 7 3 0
3 1 0 0
4 1 3 0
5 2 0 0
6 2 3 0
7 3 0 0
8 3 3 0
9 4 0 0
A 1 2 8
B 3 4 8
C 2 4 8
D 2 2 8
E 1 6 8
F 2 5 8
G 3 2 8
H 3 5 8
I 4 1 8
J 4 2 8
K 4 5 8
L 5 2 8
M 4 4 8
N 4 7 8
O 4 6 8
P 5 1 8
Q 7 6 8
R 2 1 8
S 1 5 8
T 2 6 8
U 3 6 8
V 3 7 8
W 1 1 8
X 2 7 8
Y 3 1 8
Z 1 4 8
a 1 2 8
b 3 4 8
c 2 4 8
d 2 2 8
e 1 6 8
f 2 5 8
g 3 2 8
h 3 5 8
i 4 1 8
j 4 2 8
k 4 5 8
l 5 2 8
m 4 4 8
n 4 7 8
o 4 6 8
p 5 1 8
q 7 6 8
r 2 1 8
s 1 5 8
t 2 6 8
u 3 6 8
v 3 7 8
w 1 1 8
x 2 7 8
y 3 1 8
z 1 4 8
# Restore key mappings
Page_Up -3 0
Prior -3 1
# Dead keys support for those using US-International keyboard layout.
dead_acute 3 0 1 # '
dead_grave 3 0 1 # '
dead_circumflex 6 6 16 # A_UP
dead_tilde 6 6 16 # A_UP
dead_perispomeni 7 1 16 # Arrow Left
dead_diaeresis 7 3 1 # "
#
# joyport attached keypad
#
Num_Lock -5 0
KP_7 -5 1
KP_8 -5 2
KP_9 -5 3
KP_Divide -5 4
Scroll_Lock -5 5
KP_4 -5 6
KP_5 -5 7
KP_6 -5 8
KP_Multiply -5 9
Sys_Req -5 10
KP_1 -5 11
KP_2 -5 12
KP_3 -5 13
KP_Subtract -5 14
Print -5 15
KP_0 -5 16
KP_Delete -5 17
KP_Enter -5 18
KP_Add -5 19
+58
View File
@@ -0,0 +1,58 @@
#
# VICE Palette file
#
# Syntax:
# Red Green Blue
#
# TYPE:VICII
# NAME:Pepto (PAL)
# this palette was calculated for PAL according to http://www.pepto.de/projects/colorvic/
# Black
00 00 00
# White
FF FF FF
# Red
68 37 2b
# Cyan
70 a4 b2
# Purple
6f 3d 86
# Green
58 8d 43
# Blue
35 28 79
# Yellow
b8 c7 6f
# Orange
6f 4f 25
# Brown
43 39 00
# Light Red
9a 67 59
# Dark Gray
44 44 44
# Medium Gray
6c 6c 6c
# Light Green
9a d2 84
# Light Blue
6c 5e b5
# Light Gray
95 95 95
+319
View File
@@ -0,0 +1,319 @@
# VICE keyboard mapping file
#
# A Keyboard map is read in as patch to the current map.
#
# File format:
# - comment lines start with '#'
# - keyword lines start with '!keyword'
# - normal lines have 'keysym/scancode row column shiftflag'
#
# Keywords and their lines are:
# '!CLEAR' clear whole table
# '!INCLUDE filename' read file as mapping file
# '!LSHIFT row col' left shift keyboard row/column
# '!RSHIFT row col' right shift keyboard row/column
# '!VSHIFT shiftkey' virtual shift key (RSHIFT or LSHIFT)
# '!SHIFTL shiftkey' shift lock key (RSHIFT or LSHIFT)
# for emulated keyboards that have only one shift key, set both LSHIFT
# and RSHIFT to the same row/col and use RSHIFT for VSHIFT and SHIFTL.
# '!LCTRL row col' left control keyboard row/column
# '!VCTRL ctrlkey' virtual control key (LCTRL)
# '!LCBM row col' left CBM keyboard row/column
# '!VCBM cbmkey' virtual CBM key (LCBM)
# '!UNDEF keysym' remove keysym from table
#
# Shiftflag can have these values, flags can be ORed to combine them:
# 0x0000 0 key is not shifted for this keysym/scancode
# 0x0001 1 key is combined with shift for this keysym/scancode
# 0x0002 2 key is left shift on emulated machine
# 0x0004 4 key is right shift on emulated machine (use only this one
# for emulated keyboards that have only one shift key)
# 0x0008 8 key can be shifted or not with this keysym/scancode
# 0x0010 16 deshift key for this keysym/scancode
# 0x0020 32 another definition for this keysym/scancode follows
# 0x0040 64 key is shift-lock on emulated machine
# 0x0080 128 shift modifier required on host
# 0x0100 256 key is used for an alternative keyboard mapping, e.g. C64 mode in x128
# 0x0200 512 alt-r (alt-gr) modifier required on host
# 0x0400 1024 ctrl modifier required on host
# 0x0800 2048 key is combined with cbm for this keysym/scancode
# 0x1000 4096 key is combined with ctrl for this keysym/scancode
# 0x2000 8192 key is (left) cbm on emulated machine
# 0x4000 16384 key is (left) ctrl on emulated machine
#
# Negative row values:
# 'keysym -1 n' joystick keymap A, direction n
# 'keysym -2 n' joystick keymap B, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key (x128)
# 'keysym -4 1' CAPS (ASCII/DIN) key (x128)
# 'keysym -5 n' joyport keypad, key n (not supported in x128)
#
# Joystick direction values:
# 0 Fire
# 1 South/West
# 2 South
# 3 South/East
# 4 West
# 5 East
# 6 North/West
# 7 North
# 8 North/East
#
# Joyport keypad key layout:
# --------------------------
# | 0 | 1 | 2 | 3 | 4 |
# --------------------------
# | 5 | 6 | 7 | 8 | 9 |
# --------------------------
# | 10 | 11 | 12 | 13 | 14 |
# --------------------------
# | 15 | 16 | 17 | 18 | 19 |
# --------------------------
#
# When a bigger spaced key is used,
# it uses the upper left most key value.
# Symbolic Mapping, US Layout, C64, GTK
# C64 keyboard matrix:
#
# +-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0|Bit 1|Bit 2|Bit 3|Bit 4|Bit 5|Bit 6|Bit 7|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0| DEL |Retrn|C_L/R| F7 | F1 | F3 | F5 |C_U/D|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 1| 3 # | W | A | 4 $ | Z | S | E | S_L |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 2| 5 % | R | D | 6 & | C | F | T | X |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 3| 7 ' | Y | G | 8 ( | B | H | U | V |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 4| 9 ) | I | J | 0 | M | K | O | N |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 5| + | P | L | - | . > | : [ | @ | , < |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 6|POUND| * | ; ] | HOME| S_R | = | A_UP| / ? |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 7| 1 ! |A_LFT| CTRL| 2 " |SPACE| C= | Q | R/S |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# C64 Keyboard layout:
#
# arrow 1! 2" 3# 4$ 5% 6& 7' 8( 9) 0 + - pound clr del f1/f2
# ctrl q w e r t y u i o p @ * ^ restore f3/f4
# r/s SL a s d f g h j k l :[ ;] = return f5/f6
# CBM LS z x c v b n m ,< .> /? RS u/d l/r f7/f8
# space
!CLEAR
!LSHIFT 1 7
!RSHIFT 6 4
!VSHIFT RSHIFT
!SHIFTL LSHIFT
!LCBM 7 5
!VCBM LCBM
!LCTRL 7 2
!VCTRL LCTRL
#####################
# |Bit 0| DEL |Retrn|C_L/R| F7 | F1 | F3 | F5 |C_U/D|
BackSpace 0 0 8
Delete 0 0 8
Insert 0 0 1
Return 0 1 8
Right 0 2 8
KP_F4 0 2 8
Left 0 2 1
F7 0 3 8
F8 0 3 1
F1 0 4 8
KP_F1 0 4 8
F2 0 4 1
KP_F2 0 5 8
F3 0 5 8
F4 0 5 1
F5 0 6 8
KP_F3 0 6 8
F6 0 6 1
Down 0 7 8
Up 0 7 1
#####################
# |Bit 1| 3 # | W | A | 4 $ | Z | S | E | S_L |
numbersign 1 0 1
dollar 1 3 1
Shift_L 1 7 2
# shift lock
Caps_Lock 1 7 64
#####################
# |Bit 2| 5 % | R | D | 6 & | C | F | T | X |
percent 2 0 1
ampersand 2 3 1
#####################
# |Bit 3| 7 ' | Y | G | 8 ( | B | H | U | V |
apostrophe 3 0 1
grave 3 0 1
parenleft 3 3 1
#####################
# |Bit 4| 9 ) | I | J | 0 | M | K | O | N |
parenright 4 0 1
#####################
# |Bit 5| + | P | L | - | . > | : [ | @ | , < |
plus 5 0 16
minus 5 3 0
period 5 4 0
greater 5 4 1
colon 5 5 16
bracketleft 5 5 1
at 5 6 16
# underscore -> underscore (@+cbm)
underscore 5 6 0x810
comma 5 7 0
less 5 7 1
#####################
# |Bit 6|POUND| * | ; ] | HOME| S_R | = | A_UP| / ? |
sterling 6 0 0
backslash 6 0 0
bar 6 0 8
asterisk 6 1 16
semicolon 6 2 0
bracketright 6 2 1
Home 6 3 8
Shift_R 6 4 4
equal 6 5 0
# Page down -> Arrow Up
asciicircum 6 6 16
Page_Down 6 6 8
slash 6 7 0
question 6 7 1
#####################
# |Bit 7| 1 ! |A_LFT| CTRL| 2 " |SPACE| C= | Q | R/S |
exclam 7 0 1
# tilde -> arrow left
asciitilde 7 1 16
End 7 1 0
Control_L 7 2 16392 /* Control_L = CTRL */
quotedbl 7 3 1
space 7 4 8
Tab 7 5 8200 /* Tab = CBM */
ISO_Left_Tab 7 5 8200 /* Shift + Tab = CBM */
Escape 7 7 8
#####################
# letters and numbers
0 4 3 0
1 7 0 0
2 7 3 0
3 1 0 0
4 1 3 0
5 2 0 0
6 2 3 0
7 3 0 0
8 3 3 0
9 4 0 0
A 1 2 8
B 3 4 8
C 2 4 8
D 2 2 8
E 1 6 8
F 2 5 8
G 3 2 8
H 3 5 8
I 4 1 8
J 4 2 8
K 4 5 8
L 5 2 8
M 4 4 8
N 4 7 8
O 4 6 8
P 5 1 8
Q 7 6 8
R 2 1 8
S 1 5 8
T 2 6 8
U 3 6 8
V 3 7 8
W 1 1 8
X 2 7 8
Y 3 1 8
Z 1 4 8
a 1 2 8
b 3 4 8
c 2 4 8
d 2 2 8
e 1 6 8
f 2 5 8
g 3 2 8
h 3 5 8
i 4 1 8
j 4 2 8
k 4 5 8
l 5 2 8
m 4 4 8
n 4 7 8
o 4 6 8
p 5 1 8
q 7 6 8
r 2 1 8
s 1 5 8
t 2 6 8
u 3 6 8
v 3 7 8
w 1 1 8
x 2 7 8
y 3 1 8
z 1 4 8
# Restore key mappings
Page_Up -3 0
Prior -3 1
# Dead keys support for those using US-International keyboard layout.
dead_acute 3 0 1 # '
dead_grave 3 0 1 # '
dead_circumflex 6 6 16 # A_UP
dead_tilde 6 6 16 # A_UP
dead_perispomeni 7 1 16 # Arrow Left
dead_diaeresis 7 3 1 # "
#
# joyport attached keypad
#
Num_Lock -5 0
KP_7 -5 1
KP_8 -5 2
KP_9 -5 3
KP_Divide -5 4
Scroll_Lock -5 5
KP_4 -5 6
KP_5 -5 7
KP_6 -5 8
KP_Multiply -5 9
Sys_Req -5 10
KP_1 -5 11
KP_2 -5 12
KP_3 -5 13
KP_Subtract -5 14
Print -5 15
KP_0 -5 16
KP_Delete -5 17
KP_Enter -5 18
KP_Add -5 19
File renamed without changes.
+14
View File
@@ -0,0 +1,14 @@
#
# VICE Palette file
#
# Syntax:
# Red Green Blue
#
# NAME:Green
# TYPE:Crtc
# Background
00 00 00
# Foreground
00 FF 00
+352
View File
@@ -0,0 +1,352 @@
# VICE keyboard mapping file
#
# A Keyboard map is read in as patch to the current map.
#
# File format:
# - comment lines start with '#'
# - keyword lines start with '!keyword'
# - normal lines have 'keysym/scancode row column shiftflag'
#
# Keywords and their lines are:
# '!CLEAR' clear whole table
# '!INCLUDE filename' read file as mapping file
# '!LSHIFT row col' left shift keyboard row/column
# '!RSHIFT row col' right shift keyboard row/column
# '!VSHIFT shiftkey' virtual shift key (RSHIFT or LSHIFT)
# '!SHIFTL shiftkey' shift lock key (RSHIFT or LSHIFT)
# for emulated keyboards that have only one shift key, set both LSHIFT
# and RSHIFT to the same row/col and use RSHIFT for VSHIFT and SHIFTL.
# '!LCTRL row col' left control keyboard row/column
# '!VCTRL ctrlkey' virtual control key (LCTRL)
# '!LCBM row col' left CBM keyboard row/column
# '!VCBM cbmkey' virtual CBM key (LCBM)
# '!UNDEF keysym' remove keysym from table
#
# Shiftflag can have these values, flags can be ORed to combine them:
# 0x0000 0 key is not shifted for this keysym/scancode
# 0x0001 1 key is combined with shift for this keysym/scancode
# 0x0002 2 key is left shift on emulated machine
# 0x0004 4 key is right shift on emulated machine (use only this one
# for emulated keyboards that have only one shift key)
# 0x0008 8 key can be shifted or not with this keysym/scancode
# 0x0010 16 deshift key for this keysym/scancode
# 0x0020 32 another definition for this keysym/scancode follows
# 0x0040 64 key is shift-lock on emulated machine
# 0x0080 128 shift modifier required on host
# 0x0100 256 key is used for an alternative keyboard mapping, e.g. C64 mode in x128
# 0x0200 512 alt-r (alt-gr) modifier required on host
# 0x0400 1024 ctrl modifier required on host
# 0x0800 2048 key is combined with cbm for this keysym/scancode
# 0x1000 4096 key is combined with ctrl for this keysym/scancode
# 0x2000 8192 key is (left) cbm on emulated machine
# 0x4000 16384 key is (left) ctrl on emulated machine
#
# Negative row values:
# 'keysym -1 n' joystick keymap A, direction n
# 'keysym -2 n' joystick keymap B, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key (x128)
# 'keysym -4 1' CAPS (ASCII/DIN) key (x128)
# 'keysym -5 n' joyport keypad, key n (not supported in x128)
#
# Joystick direction values:
# 0 Fire
# 1 South/West
# 2 South
# 3 South/East
# 4 West
# 5 East
# 6 North/West
# 7 North
# 8 North/East
#
# Joyport keypad key layout:
# --------------------------
# | 0 | 1 | 2 | 3 | 4 |
# --------------------------
# | 5 | 6 | 7 | 8 | 9 |
# --------------------------
# | 10 | 11 | 12 | 13 | 14 |
# --------------------------
# | 15 | 16 | 17 | 18 | 19 |
# --------------------------
#
# When a bigger spaced key is used,
# it uses the upper left most key value.
# Symbolic Mapping, US Layout, CBM2, GTK
# Commodore cbm2 keyboard matrix:
#
# references:
# http://www.zimmers.net/anonftp/pub/cbm/b/documents/de/keyboard-matrix.gif
# http://www.zimmers.net/anonftp/pub/cbm/b/documents/keymap-us.gif
# http://www.zimmers.net/anonftp/pub/cbm/schematics/computers/b/p500-keyboard.txt
# http://www.floodgap.com/retrobits/ckb/secret/cbm-610-keyboard.jpg
#
# Keys starting with 'KP' are on the number pad. Both shifts and shift lock
# are in parallel at one point in matrix.
#
# 0 1 2 3 4 5
# +--------+--------+--------+--------+--------+--------+
# 0 | F9 | 9 ( | O | L | ; : | / ? |
# +--------+--------+--------+--------+--------+--------+
# 1 | F10 | 0 ) | - | P | [ | ' " |
# +--------+--------+--------+--------+--------+--------+
# 2 | c.down | = + |<- pound| ] | return | pi |
# +--------+--------+--------+--------+--------+--------+
# 3 | c.up | c.left | c.right|del ins | CBM |########|
# +--------+--------+--------+--------+--------+--------+
# 4 |home/clr|KP ? |KP 7 |KP 4 |KP 1 |KP 0 |
# +--------+--------+--------+--------+--------+--------+
# 5 |rvs/off |KP CE |KP 8 |KP 5 |KP 2 |KP . |
# +--------+--------+--------+--------+--------+--------+
# 6 | graph |KP * |KP 9 |KP 6 |KP 3 |KP 00 |
# +--------+--------+--------+--------+--------+--------+
# 7 |run/stop|KP / |KP - |KP + |KP enter|########|
# +--------+--------+--------+--------+--------+--------+
# 8 | F1 | escape | TAB |########| Shift | CTRL |
# +--------+--------+--------+--------+--------+--------+
# 9 | F2 | 1 ! | Q | A | Z |########|
# +--------+--------+--------+--------+--------+--------+
#10 | F3 | 2 @ | W | S | X | C |
# +--------+--------+--------+--------+--------+--------+
#11 | F4 | 3 # | E | D | F | V |
# +--------+--------+--------+--------+--------+--------+
#12 | F5 | 4 $ | R | T | G | B |
# +--------+--------+--------+--------+--------+--------+
#13 | F6 | 5 % | 6 ^ | Y | H | N |
# +--------+--------+--------+--------+--------+--------+
#14 | F7 | 7 & | U | J | M | space |
# +--------+--------+--------+--------+--------+--------+
#15 | F8 | 8 * | I | K | , < | . > |
# +--------+--------+--------+--------+--------+--------+
# CBM2 Keyboard layout:
#
# F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 down up left right clr rvs graph r/s
#
# ESC 1! 2@ 3# 4$ 5% 6^ 7& 8* 9( 0) - =+ arrow/pound del ? CE * /
# TAB q w e r t y u i o p [ ] return 7 8 9 -
# SL a s d f g h j k l ;: '" pi 4 5 6 +
# LS z x c v b n m ,< .> /? RS CBM 1 2 3
# CTRL SPACE 0 . 00 enter
!CLEAR
!LSHIFT 8 4
!RSHIFT 8 4
!VSHIFT RSHIFT
!SHIFTL RSHIFT
!LCBM 3 4
!VCBM LCBM
!LCTRL 8 5
!VCTRL LCTRL
#Escape 7 0 8 /* Escape -> Run/Stop */
Escape 8 1 8 /* Escape -> ESC */
F11 2 5 8 /* F11 -> pi */
Tab 8 2 8
KP_Tab 8 2 8
ISO_Left_Tab 8 2 1
Control_L 8 5 16384 /* left ctrl -> CTRL */
Control_R 3 4 8192 /* right ctrl -> CBM */
Shift_L 8 4 4
Shift_R 8 4 4
Caps_Lock 8 4 64 /* Caps Lock -> Shift-Lock */
Down 2 0 8
Right 3 2 8
Left 3 1 0
Up 3 0 0
#Insert 3 3 1
#Delete 3 3 0
Insert 6 5 8 /* insert -> kp 00 */
Delete 5 1 0 /* delete -> kp CE */
Home 4 0 8
End 5 0 8 /* End -> RVS OFF */
#Page_Up 8 1 8 /* Page up -> ESC */
#Prior 8 1 8 /* Page up -> ESC */
#F12 8 1 8 /* F12 -> ESC */
Page_Up 7 0 8 /* Page up -> Run/Stop */
Prior 7 0 8 /* Page up -> Run/Stop */
F12 7 0 8 /* F12 -> Run/Stop */
Next 6 0 8
# top row, no shift
grave 1 5 16 /* ` -> */
dead_grave 1 5 16 /* US-Int. dead key support */
minus 1 2 0
equal 2 1 0
BackSpace 3 3 8
# top row, with shift
asciitilde 2 2 16 /* ~ -> arrow left */
dead_tilde 2 2 16 /* US-Int. dead key support */
dead_perispomeni 2 2 16 /* US-Int. dead key support */
exclam 9 1 1
at 10 1 1
numbersign 11 1 1
dollar 12 1 1
percent 13 1 1
asciicircum 13 2 8
dead_circumflex 13 2 8 /* US-Int. dead key support */
ampersand 14 1 1
asterisk 15 1 1
parenleft 0 1 1
parenright 1 1 1
underscore 2 2 16
plus 2 1 1
# 2nd row, no shift
bracketleft 1 4 0
bracketright 2 3 0
backslash 2 2 0 /* \ -> pound */
# 2nd row, with shift
bar 2 2 1 /* | -> arrow left */
# 3rd row, no shift
semicolon 0 4 0
apostrophe 1 5 0
dead_acute 1 5 0 /* US-Int. dead key support */
Return 2 4 0
# 3rd row, with shift
colon 0 4 1
quotedbl 1 5 1
dead_diaeresis 1 5 1 /* US-Int. dead key support */
# 4th row, no shift
comma 15 4 0
period 15 5 0
question 0 5 0x21
slash 0 5 0x20
slash 4 1 0x0400 /* ctrl+/ -> KP ? + shift */
question 4 1 0x0401 /* ctrl+/ -> KP ? + shift */
# 4th row, with shift
less 15 4 1
greater 15 5 1
#question 4 1 0
space 14 5 8
#Clear 4 0 1
0 1 1 0
1 9 1 0
2 10 1 0
3 11 1 0
4 12 1 0
5 13 1 0
6 13 2 0
7 14 1 0
8 15 1 0
9 0 1 0
a 9 3 0
b 12 5 0
c 10 5 0
d 11 3 0
e 11 2 0
f 11 4 0
g 12 4 0
h 13 4 0
i 15 2 0
j 14 3 0
k 15 3 0
l 0 3 0
m 14 4 0
n 13 5 0
o 0 2 0
p 1 3 0
q 9 2 0
r 12 2 0
s 10 3 0
t 12 3 0
u 14 2 0
v 11 5 0
w 10 2 0
x 10 4 0
y 13 3 0
z 9 4 0
W 10 2 1
A 9 3 1
Z 9 4 1
S 10 3 1
E 11 2 1
R 12 2 1
D 11 3 1
C 10 5 1
F 11 4 1
T 12 3 1
X 10 4 1
Y 13 3 1
G 12 4 1
B 12 5 1
H 13 4 1
U 14 2 1
V 11 5 1
I 15 2 1
J 14 3 1
M 14 4 1
K 15 3 1
O 0 2 1
N 13 5 1
P 1 3 1
L 0 3 1
Q 9 2 1
F1 8 0 8
F2 9 0 8
F3 10 0 8
F4 11 0 8
F5 12 0 8
F6 13 0 8
F7 14 0 8
F8 15 0 8
F9 0 0 8
F10 1 0 8
# numeric keypad
KP_0 4 5 8
KP_Insert 4 5 8 /* KP 0 -> KP 0 + Shift */
KP_1 4 4 8
KP_End 4 4 8 /* KP 1 -> KP 1 + Shift */
KP_2 5 4 8
KP_Down 5 4 8 /* KP 2 -> KP 2 + Shift */
KP_3 6 4 8
KP_Next 6 4 8 /* KP 3 -> KP 3 + Shift */
KP_4 4 3 8
KP_Left 4 3 8 /* KP 4 -> KP 4 + Shift */
KP_5 5 3 8
KP_Begin 5 3 8 /* KP 5 -> KP 5 + Shift */
KP_6 6 3 8
KP_Right 6 3 8 /* KP 6 -> KP 6 + Shift */
KP_7 4 2 8
KP_Home 4 2 8 /* KP 7 -> KP 7 + Shift */
KP_8 5 2 8
KP_Up 5 2 8 /* KP 8 -> KP 8 + Shift */
KP_9 6 2 8
KP_Page_Up 6 2 8 /* KP 9 -> KP 9 + Shift */
# Seperator and Decimal are really the same thing for all practical purposes
KP_Separator 5 5 8
KP_Decimal 5 5 8
KP_Delete 5 5 8 /* KP , -> KP , + Shift */
KP_Divide 7 1 8
KP_Multiply 6 1 8
KP_Subtract 7 2 8
KP_Add 7 3 8
KP_Enter 7 4 8
+58
View File
@@ -0,0 +1,58 @@
#
# VICE Palette file
#
# Syntax:
# Red Green Blue
#
# TYPE:VICII
# NAME:Pepto (PAL)
# this palette was calculated for PAL according to http://www.pepto.de/projects/colorvic/
# Black
00 00 00
# White
FF FF FF
# Red
68 37 2b
# Cyan
70 a4 b2
# Purple
6f 3d 86
# Green
58 8d 43
# Blue
35 28 79
# Yellow
b8 c7 6f
# Orange
6f 4f 25
# Brown
43 39 00
# Light Red
9a 67 59
# Dark Gray
44 44 44
# Medium Gray
6c 6c 6c
# Light Green
9a d2 84
# Light Blue
6c 5e b5
# Light Gray
95 95 95
+16
View File
@@ -0,0 +1,16 @@
#
# VICE Palette file
#
# Syntax:
# Red Green Blue
#
# NAME:Green
# TYPE:Crtc
# green screens use P1 phosphor (528nm)
# Background
00 00 00
# Foreground
41 FF 00
+360
View File
@@ -0,0 +1,360 @@
# VICE keyboard mapping file
#
# A Keyboard map is read in as patch to the current map.
#
# File format:
# - comment lines start with '#'
# - keyword lines start with '!keyword'
# - normal lines have 'keysym/scancode row column shiftflag'
#
# Keywords and their lines are:
# '!CLEAR' clear whole table
# '!INCLUDE filename' read file as mapping file
# '!LSHIFT row col' left shift keyboard row/column
# '!RSHIFT row col' right shift keyboard row/column
# '!VSHIFT shiftkey' virtual shift key (RSHIFT or LSHIFT)
# '!SHIFTL shiftkey' shift lock key (RSHIFT or LSHIFT)
# for emulated keyboards that have only one shift key, set both LSHIFT
# and RSHIFT to the same row/col and use RSHIFT for VSHIFT and SHIFTL.
# '!LCTRL row col' left control keyboard row/column
# '!VCTRL ctrlkey' virtual control key (LCTRL)
# '!LCBM row col' left CBM keyboard row/column
# '!VCBM cbmkey' virtual CBM key (LCBM)
# '!UNDEF keysym' remove keysym from table
#
# Shiftflag can have these values, flags can be ORed to combine them:
# 0x0000 0 key is not shifted for this keysym/scancode
# 0x0001 1 key is combined with shift for this keysym/scancode
# 0x0002 2 key is left shift on emulated machine
# 0x0004 4 key is right shift on emulated machine (use only this one
# for emulated keyboards that have only one shift key)
# 0x0008 8 key can be shifted or not with this keysym/scancode
# 0x0010 16 deshift key for this keysym/scancode
# 0x0020 32 another definition for this keysym/scancode follows
# 0x0040 64 key is shift-lock on emulated machine
# 0x0080 128 shift modifier required on host
# 0x0100 256 key is used for an alternative keyboard mapping, e.g. C64 mode in x128
# 0x0200 512 alt-r (alt-gr) modifier required on host
# 0x0400 1024 ctrl modifier required on host
# 0x0800 2048 key is combined with cbm for this keysym/scancode
# 0x1000 4096 key is combined with ctrl for this keysym/scancode
# 0x2000 8192 key is (left) cbm on emulated machine
# 0x4000 16384 key is (left) ctrl on emulated machine
#
# Negative row values:
# 'keysym -1 n' joystick keymap A, direction n
# 'keysym -2 n' joystick keymap B, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key (x128)
# 'keysym -4 1' CAPS (ASCII/DIN) key (x128)
# 'keysym -5 n' joyport keypad, key n (not supported in x128)
#
# Joystick direction values:
# 0 Fire
# 1 South/West
# 2 South
# 3 South/East
# 4 West
# 5 East
# 6 North/West
# 7 North
# 8 North/East
#
# Joyport keypad key layout:
# --------------------------
# | 0 | 1 | 2 | 3 | 4 |
# --------------------------
# | 5 | 6 | 7 | 8 | 9 |
# --------------------------
# | 10 | 11 | 12 | 13 | 14 |
# --------------------------
# | 15 | 16 | 17 | 18 | 19 |
# --------------------------
#
# When a bigger spaced key is used,
# it uses the upper left most key value.
# this is a PET business (uk) keyboard mapping (Symbolic, US Layout, PET, GTK)
# 2001, 3032 and 4032 use graphics keyboard
# 4032B, 8032 and up use business keyboard
#
# http://www.6502.org/users/andre/petindex/keyboards.html
# Business (UK) keyboard matrix:
#
# Keys starting with 'KP' are on the number pad.
#
# 0 1 2 3 4 5 6 7
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 0 | 2 " | 5 % | 8 ( | - = | KP8 |crsr rgt| ^N |--------|
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 1 | 1 ! | 4 $ | 7 ' | 0 | KP7 | ^ |--------| KP9 |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 2 | escape | s | f | h | ] | k | ; + | KP5 |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 3 | a | d | g | j | return | l | @ | KP6 |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 4 | tab | w | r | y | \ | i | p | del |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 5 | q | e | t | u |crsr dwn| o | [ | KP4 |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 6 |l shift | c | b | . > | KP. | ^Y |r shift | KP3 |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 7 | z | v | n | , < | KP0 | ^O | repeat | KP2 |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 8 | RVS | x | space | m | home | ^U | / ? | KP1 |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 9 | <-- | 3 # | 6 & | 9 ) |runstop | : * |--------| ^V |
# +--------+--------+--------+--------+--------+--------+--------+--------+
#
# ^N = both shifts + 2
# ^Y = left shift + TAB + I
# ^O = Z + A + L
# ^U = RVS + A + L
# ^V = TAB + <- + DEL
#
# Business (US) matrix (differences to UK)
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 2 | | | | | ; + | | \ | |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 3 | | | | | | | [ | |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 4 | | | | | @ | | | |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 5 | | | | | | | ] | |
# +--------+--------+--------+--------+--------+--------+--------+--------+
#
# uk -> us
# ] ;
# [ ]
# \ @
# ; \
# @ [
#
# uk business layout:
#
# aleft 1! 2" 3# 4$ 5% 6& 7' 8( 9) 0 :* -= ^ l/r r/s 7 8 9
# tab q w e r t y u i o p [ \ u/d del 4 5 6
# esc SL a s d f g h j k l ;+ @ ] return 1 2 3
# rvs LS z x c v b n m ,< .> /? RS rpt clr 0 .
#
# us business layout:
#
# aleft 1! 2" 3# 4$ 5% 6& 7' 8( 9) 0 :* -= ^ l/r r/s 7 8 9
# tab q w e r t y u i o p ] @ u/d del 4 5 6
# esc SL a s d f g h j k l \ [ ;+ return 1 2 3
# rvs LS z x c v b n m ,< .> /? RS rpt clr 0 .
!CLEAR
!LSHIFT 6 0
!RSHIFT 6 6
!VSHIFT LSHIFT
!SHIFTL LSHIFT
#!LCBM 0 0
#!VCBM LCBM
#!LCTRL 0 0
#!VCTRL LCTRL
# left shift
# key is left shift
Shift_L 6 0 2
# shift lock
# key is (left) shift-lock
Caps_Lock 6 0 64
Shift_R 6 6 4
Control_L 9 4 8
# shift lock
# key is (left) shift-lock
Caps_Lock 6 0 64
0 1 3 0
1 1 0 0
2 0 0 0
3 9 1 0
4 1 1 0
5 0 1 0
6 9 2 0
7 1 2 0
8 0 2 0
9 9 3 0
a 3 0 0
b 6 2 0
c 6 1 0
d 3 1 0
e 5 1 0
f 2 2 0
g 3 2 0
h 2 3 0
i 4 5 0
j 3 3 0
k 2 5 0
l 3 5 0
m 8 3 0
n 7 2 0
o 5 5 0
p 4 6 0
q 5 0 0
r 4 2 0
s 2 1 0
t 5 2 0
u 5 3 0
v 7 1 0
w 4 1 0
x 8 1 0
y 4 3 0
z 7 0 0
A 3 0 1
B 6 2 1
C 6 1 1
D 3 1 1
E 5 1 1
F 2 2 1
G 3 2 1
H 2 3 1
I 4 5 1
J 3 3 1
K 2 5 1
L 3 5 1
M 8 3 1
N 7 2 1
O 5 5 1
P 4 6 1
Q 5 0 1
R 4 2 1
S 2 1 1
T 5 2 1
U 5 3 1
V 7 1 1
W 4 1 1
X 8 1 1
Y 4 3 1
Z 7 0 1
space 8 2 8
Return 3 4 8
#Escape 2 0 8 # ESC
Escape 9 4 8 # run/stop
F1 2 0 8 # ESC
F2 8 0 8 # revers off
# first row
grave 1 2 1 # '
asciitilde 9 0 16 # arrow left
exclam 1 0 1 # 1 !
at 3 6 0 # 2 @
numbersign 9 1 1 # 3 #
dollar 1 1 1 # 4 $
percent 0 1 1 # 5 %
asciicircum 1 5 0 # 6 ^
ampersand 9 2 1 # 7 &
asterisk 9 5 1 # 8 *
parenleft 0 2 1 # 9 (
parenright 9 3 1 # 0 )
minus 0 3 0 # -
underscore 3 6 1 # shift+@
equal 0 3 1 # = (shift+-)
plus 2 6 1 # + (shift+;)
BackSpace 4 7 8
# second row
Tab 4 0 8
ISO_Left_Tab 4 0 1
bracketleft 5 6 0 # [
braceleft 5 6 1 # shift [, { for SuperPET
bracketright 2 4 0 # ]
braceright 2 4 1 # shift ], } for SuperPET
backslash 4 4 0
bar 4 4 1 # shift \ for SuperPET
# third row
colon 9 5 16
semicolon 2 6 0
quotedbl 0 0 1
apostrophe 1 2 1
# fourth row
comma 7 3 0
less 7 3 1
period 6 3 0
greater 6 3 1
slash 8 6 0
question 8 6 1
# Dead keys support for those using US-International keyboard layout.
dead_grave 1 2 1 # '
dead_perispomeni 9 0 16 # arrow left
dead_tilde 9 0 16 # arrow left
dead_circumflex 1 5 0 # ^
dead_diaeresis 0 0 1 # "
dead_acute 1 2 1
Delete 4 7 0
Insert 4 7 1
Home 8 4 8
#End
Page_Up 8 0 8 # revers off
Page_Down 7 6 8 # repeat
# cursor keys
Left 0 5 1
Right 0 5 8
Up 5 4 1
Down 5 4 8
# keypad
KP_0 7 4 8
KP_1 8 7 8
KP_2 7 7 8
KP_3 6 7 8
KP_4 5 7 8
KP_5 2 7 8
KP_6 3 7 8
KP_7 1 4 8
KP_8 0 4 8
KP_9 1 7 8
KP_Separator 7 3 0
KP_Multiply 9 5 1
KP_Divide 8 6 0
KP_Add 2 6 1
KP_Subtract 0 3 0
KP_Enter 3 4 8
KP_Decimal 6 4 0
#
# Joystick 2
#
# Commented out: due to the keymap loading *after* vicerc any keyset settings
# in vicerc are overruled by this.
# see https://sourceforge.net/p/vice-emu/bugs/1797/
#
# w -2 6
# e -2 7
# r -2 8
# s -2 4
# f -2 5
# x -2 1
# c -2 2
# v -2 3
# space -2 0
+354
View File
@@ -0,0 +1,354 @@
# VICE keyboard mapping file
#
# A Keyboard map is read in as patch to the current map.
#
# File format:
# - comment lines start with '#'
# - keyword lines start with '!keyword'
# - normal lines have 'keysym/scancode row column shiftflag'
#
# Keywords and their lines are:
# '!CLEAR' clear whole table
# '!INCLUDE filename' read file as mapping file
# '!LSHIFT row col' left shift keyboard row/column
# '!RSHIFT row col' right shift keyboard row/column
# '!VSHIFT shiftkey' virtual shift key (RSHIFT or LSHIFT)
# '!SHIFTL shiftkey' shift lock key (RSHIFT or LSHIFT)
# for emulated keyboards that have only one shift key, set both LSHIFT
# and RSHIFT to the same row/col and use RSHIFT for VSHIFT and SHIFTL.
# '!LCTRL row col' left control keyboard row/column
# '!VCTRL ctrlkey' virtual control key (LCTRL)
# '!LCBM row col' left CBM keyboard row/column
# '!VCBM cbmkey' virtual CBM key (LCBM)
# '!UNDEF keysym' remove keysym from table
#
# Shiftflag can have these values, flags can be ORed to combine them:
# 0x0000 0 key is not shifted for this keysym/scancode
# 0x0001 1 key is combined with shift for this keysym/scancode
# 0x0002 2 key is left shift on emulated machine
# 0x0004 4 key is right shift on emulated machine (use only this one
# for emulated keyboards that have only one shift key)
# 0x0008 8 key can be shifted or not with this keysym/scancode
# 0x0010 16 deshift key for this keysym/scancode
# 0x0020 32 another definition for this keysym/scancode follows
# 0x0040 64 key is shift-lock on emulated machine
# 0x0080 128 shift modifier required on host
# 0x0100 256 key is used for an alternative keyboard mapping, e.g. C64 mode in x128
# 0x0200 512 alt-r (alt-gr) modifier required on host
# 0x0400 1024 ctrl modifier required on host
# 0x0800 2048 key is combined with cbm for this keysym/scancode
# 0x1000 4096 key is combined with ctrl for this keysym/scancode
# 0x2000 8192 key is (left) cbm on emulated machine
# 0x4000 16384 key is (left) ctrl on emulated machine
#
# Negative row values:
# 'keysym -1 n' joystick keymap A, direction n
# 'keysym -2 n' joystick keymap B, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key (x128)
# 'keysym -4 1' CAPS (ASCII/DIN) key (x128)
# 'keysym -5 n' joyport keypad, key n (not supported in x128)
#
# Joystick direction values:
# 0 Fire
# 1 South/West
# 2 South
# 3 South/East
# 4 West
# 5 East
# 6 North/West
# 7 North
# 8 North/East
#
# Joyport keypad key layout:
# --------------------------
# | 0 | 1 | 2 | 3 | 4 |
# --------------------------
# | 5 | 6 | 7 | 8 | 9 |
# --------------------------
# | 10 | 11 | 12 | 13 | 14 |
# --------------------------
# | 15 | 16 | 17 | 18 | 19 |
# --------------------------
#
# When a bigger spaced key is used,
# it uses the upper left most key value.
# Symbolic Mapping, US Layout, Plus4, GTK
# Commodore 16/116/Plus-4 keyboard matrix:
#
# 0 1 2 3 4 5 6 7
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 0 |INST/DEL|RETURN |POUND |F7/HELP |F4/F1 |F5/F2 |F6/F3 |@ |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 1 |3 # |W |A |4 $ |Z |S |E | SHIFTs |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 2 |5 % |R |D |6 & |C |F |T |X |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 3 |7 ' |Y |G |8 ( |B |H |U |V |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 4 |9 ) |I |J |0 ^ |M |K |O |N |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 5 |DOWN |P |L |UP |. > |: [ |- |, < |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 6 |LEFT |* |; ] |RIGHT |ESC |= |+ |/ ? |
# +--------+--------+--------+--------+--------+--------+--------+--------+
# 7 |1 ! |CLR/HOME| CTRLs |2 " |SPACE |CBM |Q |RUN/STOP|
# +--------+--------+--------+--------+--------+--------+--------+--------+
# C16 keyboard layout:
#
# ESC 1! 2" 3# 4$ 5% 6& 7' 8( 9) 0^ left right up down del f1/f4
# CTRL q w e r t y u i o p @ + - clr f2/f5
# r/s SL a s d f g h j k l :[ ;] * return f3/f6
# CBM LS z x c v b n m ,< .> /? RS pound =/pi help/f7
# space
#
# Plus4 keyboard layout:
#
# F1/4 F2/5 F3/6 Help/F7
#
# ESC 1! 2" 3# 4$ 5% 6& 7' 8( 9) 0^ + - =/pi clr del
# CTRL q w e r t y u i o p @ pound * ctrl
# r/s SL a s d f g h j k l :[ ;] return
# CBM LS z x c v b n m ,< .> /? RS up
# space left right
# down
# C116 keyboard layout:
#
# F1/4 F2/5 F3/6 Help/F7 home/clr del/inst
#
# ESC 1! 2" 3# 4$ 5% 6& 7' 8( 9) 0^ + - *
# CTRL q w e r t y u i o p @ return
# r/s £ a s d f g h j k l :[ ;] =/pi up
# CBM LS z x c v b n m ,< .> /? RS left right
# space down
#
!CLEAR
!LSHIFT 1 7
!RSHIFT 1 7
!VSHIFT RSHIFT
!SHIFTL RSHIFT
!LCBM 7 5
!VCBM LCBM
!LCTRL 7 2
!VCTRL LCTRL
# Keys that aren't mapped symbolically:
#
# accent grave
# tilde
# arrow-left (<- `)
# Pi (<- ~)
# Pound Sterling (<- \)
# Clear (<- Shift+Home)
# Run/Stop (<- End)
# C= (<- Tab)
# Extra keys:
#
# Inst+Shift (<- Insert)
# Del (<- Delete)
# £ (<- PgUp)
#####################
# Tab = CBM
Tab 7 5 8200
# Shift + Tab = Shift-CBM
ISO_Left_Tab 7 5 8200
# Control_L = Control
Control_L 7 2 16392
# Backspace = Inst/Del
BackSpace 0 0 8
# Caps Lock = Shift Lock
Caps_Lock 1 7 64
Delete 0 0 8
Insert 0 0 1
Down 5 0 8
# End -> Run/Stop
End 7 7 8
Escape 6 4 8
F1 0 4 8
F2 0 5 8
F3 0 6 8
F4 0 4 1
F5 0 5 1
F6 0 6 1
F7 0 3 1
# F8 = HELP
F8 0 3 8
# Home = Clear/Home
Home 7 1 8
#Insert 0 0 1
Left 6 0 8
Return 0 1 8
Right 6 3 8
Shift_L 1 7 4
Shift_R 1 7 4
Caps_Lock 1 7 64
Up 5 3 8
# PgUp = Pound Sterling
Page_Up 0 2 8
ampersand 2 3 1
apostrophe 3 0 1
#asciicircum 4 3 1
asterisk 6 1 16
# @ sign
at 0 7 16
# \ = Pound Sterling
backslash 0 2 8
# | = Shift-minus
bar 5 6 1
# { -> CBM-W graphic
braceleft 1 1 2064
# } -> CBM-Q graphic
braceright 7 6 2064
bracketleft 5 5 1
bracketright 6 2 1
colon 5 5 16
comma 5 7 8
dollar 1 3 1
equal 6 5 8
End 6 5 1
# page down -> arrow up
# page down+shift -> pi
# arrow up - 0
Page_Down 4 3 0x021
# = , arrow left, pi
Page_Down 6 5 0x890
exclam 7 0 1
# ~(+shift) -> left-arrow
asciitilde 6 5 0x1
# ~(+shift) -> left-arrow
dead_perispomeni 6 5 1
dead_tilde 6 5 1
# ` -> '
grave 3 0 1
# ` -> '
dead_grave 3 0 1
greater 5 4 1
less 5 7 1
minus 5 6 8
numbersign 1 0 1
parenleft 3 3 1
parenright 4 0 1
percent 2 0 1
period 5 4 8
plus 6 6 16
question 6 7 1
quotedbl 7 3 1
semicolon 6 2 8
slash 6 7 0
space 7 4 8
sterling 0 2 8
# underscore -> CBM-@ graphic
underscore 0 7 2064
# Dead keys support for those using US-International keyboard layout.
dead_acute 3 0 1 # '
dead_circumflex 4 3 8 # arrow up
dead_diaeresis 7 3 1 # "
0 4 3 8
1 7 0 8
2 7 3 8
3 1 0 8
4 1 3 8
5 2 0 8
6 2 3 8
7 3 0 0
8 3 3 8
9 4 0 8
A 1 2 8
B 3 4 8
C 2 4 8
D 2 2 8
E 1 6 8
F 2 5 8
G 3 2 8
H 3 5 8
I 4 1 8
J 4 2 8
K 4 5 8
L 5 2 8
M 4 4 8
N 4 7 8
O 4 6 8
P 5 1 8
Q 7 6 8
R 2 1 8
S 1 5 8
T 2 6 8
U 3 6 8
V 3 7 8
W 1 1 8
X 2 7 8
Y 3 1 8
Z 1 4 8
a 1 2 8
b 3 4 8
c 2 4 8
d 2 2 8
e 1 6 8
f 2 5 8
g 3 2 8
h 3 5 8
i 4 1 8
j 4 2 8
k 4 5 8
l 5 2 8
m 4 4 8
n 4 7 8
o 4 6 8
p 5 1 8
q 7 6 8
r 2 1 8
s 1 5 8
t 2 6 8
u 3 6 8
v 3 7 8
w 1 1 8
x 2 7 8
y 3 1 8
z 1 4 8
# Restore-key mappings
#Page_Up -3 0
#Prior -3 1
Page_Up 6 4 8
F12 6 4 8
#
# joyport attached keypad
#
Num_Lock -5 0
KP_7 -5 1
KP_8 -5 2
KP_9 -5 3
KP_Divide -5 4
Scroll_Lock -5 5
KP_4 -5 6
KP_5 -5 7
KP_6 -5 8
KP_Multiply -5 9
Sys_Req -5 10
KP_1 -5 11
KP_2 -5 12
KP_3 -5 13
KP_Subtract -5 14
Print -5 15
KP_0 -5 16
KP_Delete -5 17
KP_Enter -5 18
KP_Add -5 19
File renamed without changes.
+319
View File
@@ -0,0 +1,319 @@
# VICE keyboard mapping file
#
# A Keyboard map is read in as patch to the current map.
#
# File format:
# - comment lines start with '#'
# - keyword lines start with '!keyword'
# - normal lines have 'keysym/scancode row column shiftflag'
#
# Keywords and their lines are:
# '!CLEAR' clear whole table
# '!INCLUDE filename' read file as mapping file
# '!LSHIFT row col' left shift keyboard row/column
# '!RSHIFT row col' right shift keyboard row/column
# '!VSHIFT shiftkey' virtual shift key (RSHIFT or LSHIFT)
# '!SHIFTL shiftkey' shift lock key (RSHIFT or LSHIFT)
# for emulated keyboards that have only one shift key, set both LSHIFT
# and RSHIFT to the same row/col and use RSHIFT for VSHIFT and SHIFTL.
# '!LCTRL row col' left control keyboard row/column
# '!VCTRL ctrlkey' virtual control key (LCTRL)
# '!LCBM row col' left CBM keyboard row/column
# '!VCBM cbmkey' virtual CBM key (LCBM)
# '!UNDEF keysym' remove keysym from table
#
# Shiftflag can have these values, flags can be ORed to combine them:
# 0x0000 0 key is not shifted for this keysym/scancode
# 0x0001 1 key is combined with shift for this keysym/scancode
# 0x0002 2 key is left shift on emulated machine
# 0x0004 4 key is right shift on emulated machine (use only this one
# for emulated keyboards that have only one shift key)
# 0x0008 8 key can be shifted or not with this keysym/scancode
# 0x0010 16 deshift key for this keysym/scancode
# 0x0020 32 another definition for this keysym/scancode follows
# 0x0040 64 key is shift-lock on emulated machine
# 0x0080 128 shift modifier required on host
# 0x0100 256 key is used for an alternative keyboard mapping, e.g. C64 mode in x128
# 0x0200 512 alt-r (alt-gr) modifier required on host
# 0x0400 1024 ctrl modifier required on host
# 0x0800 2048 key is combined with cbm for this keysym/scancode
# 0x1000 4096 key is combined with ctrl for this keysym/scancode
# 0x2000 8192 key is (left) cbm on emulated machine
# 0x4000 16384 key is (left) ctrl on emulated machine
#
# Negative row values:
# 'keysym -1 n' joystick keymap A, direction n
# 'keysym -2 n' joystick keymap B, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key (x128)
# 'keysym -4 1' CAPS (ASCII/DIN) key (x128)
# 'keysym -5 n' joyport keypad, key n (not supported in x128)
#
# Joystick direction values:
# 0 Fire
# 1 South/West
# 2 South
# 3 South/East
# 4 West
# 5 East
# 6 North/West
# 7 North
# 8 North/East
#
# Joyport keypad key layout:
# --------------------------
# | 0 | 1 | 2 | 3 | 4 |
# --------------------------
# | 5 | 6 | 7 | 8 | 9 |
# --------------------------
# | 10 | 11 | 12 | 13 | 14 |
# --------------------------
# | 15 | 16 | 17 | 18 | 19 |
# --------------------------
#
# When a bigger spaced key is used,
# it uses the upper left most key value.
# Symbolic Mapping, US Layout, C64, GTK
# C64 keyboard matrix:
#
# +-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0|Bit 1|Bit 2|Bit 3|Bit 4|Bit 5|Bit 6|Bit 7|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0| DEL |Retrn|C_L/R| F7 | F1 | F3 | F5 |C_U/D|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 1| 3 # | W | A | 4 $ | Z | S | E | S_L |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 2| 5 % | R | D | 6 & | C | F | T | X |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 3| 7 ' | Y | G | 8 ( | B | H | U | V |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 4| 9 ) | I | J | 0 | M | K | O | N |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 5| + | P | L | - | . > | : [ | @ | , < |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 6|POUND| * | ; ] | HOME| S_R | = | A_UP| / ? |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 7| 1 ! |A_LFT| CTRL| 2 " |SPACE| C= | Q | R/S |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# C64 Keyboard layout:
#
# arrow 1! 2" 3# 4$ 5% 6& 7' 8( 9) 0 + - pound clr del f1/f2
# ctrl q w e r t y u i o p @ * ^ restore f3/f4
# r/s SL a s d f g h j k l :[ ;] = return f5/f6
# CBM LS z x c v b n m ,< .> /? RS u/d l/r f7/f8
# space
!CLEAR
!LSHIFT 1 7
!RSHIFT 6 4
!VSHIFT RSHIFT
!SHIFTL LSHIFT
!LCBM 7 5
!VCBM LCBM
!LCTRL 7 2
!VCTRL LCTRL
#####################
# |Bit 0| DEL |Retrn|C_L/R| F7 | F1 | F3 | F5 |C_U/D|
BackSpace 0 0 8
Delete 0 0 8
Insert 0 0 1
Return 0 1 8
Right 0 2 8
KP_F4 0 2 8
Left 0 2 1
F7 0 3 8
F8 0 3 1
F1 0 4 8
KP_F1 0 4 8
F2 0 4 1
KP_F2 0 5 8
F3 0 5 8
F4 0 5 1
F5 0 6 8
KP_F3 0 6 8
F6 0 6 1
Down 0 7 8
Up 0 7 1
#####################
# |Bit 1| 3 # | W | A | 4 $ | Z | S | E | S_L |
numbersign 1 0 1
dollar 1 3 1
Shift_L 1 7 2
# shift lock
Caps_Lock 1 7 64
#####################
# |Bit 2| 5 % | R | D | 6 & | C | F | T | X |
percent 2 0 1
ampersand 2 3 1
#####################
# |Bit 3| 7 ' | Y | G | 8 ( | B | H | U | V |
apostrophe 3 0 1
grave 3 0 1
parenleft 3 3 1
#####################
# |Bit 4| 9 ) | I | J | 0 | M | K | O | N |
parenright 4 0 1
#####################
# |Bit 5| + | P | L | - | . > | : [ | @ | , < |
plus 5 0 16
minus 5 3 0
period 5 4 0
greater 5 4 1
colon 5 5 16
bracketleft 5 5 1
at 5 6 16
# underscore -> underscore (@+cbm)
underscore 5 6 0x810
comma 5 7 0
less 5 7 1
#####################
# |Bit 6|POUND| * | ; ] | HOME| S_R | = | A_UP| / ? |
sterling 6 0 0
backslash 6 0 0
bar 6 0 8
asterisk 6 1 16
semicolon 6 2 0
bracketright 6 2 1
Home 6 3 8
Shift_R 6 4 4
equal 6 5 0
# Page down -> Arrow Up
asciicircum 6 6 16
Page_Down 6 6 8
slash 6 7 0
question 6 7 1
#####################
# |Bit 7| 1 ! |A_LFT| CTRL| 2 " |SPACE| C= | Q | R/S |
exclam 7 0 1
# tilde -> arrow left
asciitilde 7 1 16
End 7 1 0
Control_L 7 2 16392 /* Control_L = CTRL */
quotedbl 7 3 1
space 7 4 8
Tab 7 5 8200 /* Tab = CBM */
ISO_Left_Tab 7 5 8200 /* Shift + Tab = CBM */
Escape 7 7 8
#####################
# letters and numbers
0 4 3 0
1 7 0 0
2 7 3 0
3 1 0 0
4 1 3 0
5 2 0 0
6 2 3 0
7 3 0 0
8 3 3 0
9 4 0 0
A 1 2 8
B 3 4 8
C 2 4 8
D 2 2 8
E 1 6 8
F 2 5 8
G 3 2 8
H 3 5 8
I 4 1 8
J 4 2 8
K 4 5 8
L 5 2 8
M 4 4 8
N 4 7 8
O 4 6 8
P 5 1 8
Q 7 6 8
R 2 1 8
S 1 5 8
T 2 6 8
U 3 6 8
V 3 7 8
W 1 1 8
X 2 7 8
Y 3 1 8
Z 1 4 8
a 1 2 8
b 3 4 8
c 2 4 8
d 2 2 8
e 1 6 8
f 2 5 8
g 3 2 8
h 3 5 8
i 4 1 8
j 4 2 8
k 4 5 8
l 5 2 8
m 4 4 8
n 4 7 8
o 4 6 8
p 5 1 8
q 7 6 8
r 2 1 8
s 1 5 8
t 2 6 8
u 3 6 8
v 3 7 8
w 1 1 8
x 2 7 8
y 3 1 8
z 1 4 8
# Restore key mappings
Page_Up -3 0
Prior -3 1
# Dead keys support for those using US-International keyboard layout.
dead_acute 3 0 1 # '
dead_grave 3 0 1 # '
dead_circumflex 6 6 16 # A_UP
dead_tilde 6 6 16 # A_UP
dead_perispomeni 7 1 16 # Arrow Left
dead_diaeresis 7 3 1 # "
#
# joyport attached keypad
#
Num_Lock -5 0
KP_7 -5 1
KP_8 -5 2
KP_9 -5 3
KP_Divide -5 4
Scroll_Lock -5 5
KP_4 -5 6
KP_5 -5 7
KP_6 -5 8
KP_Multiply -5 9
Sys_Req -5 10
KP_1 -5 11
KP_2 -5 12
KP_3 -5 13
KP_Subtract -5 14
Print -5 15
KP_0 -5 16
KP_Delete -5 17
KP_Enter -5 18
KP_Add -5 19
+56
View File
@@ -0,0 +1,56 @@
#
# VICE Palette file
#
# Syntax:
# Red Green Blue
#
# TYPE:VICII
# NAME:Pepto (PAL)
# Black
00 00 00
# White
FF FF FF
# Red
68 37 2b
# Cyan
70 a4 b2
# Purple
6f 3d 86
# Green
58 8d 43
# Blue
35 28 79
# Yellow
b8 c7 6f
# Orange
6f 4f 25
# Brown
43 39 00
# Light Red
9a 67 59
# Dark Gray
44 44 44
# Medium Gray
6c 6c 6c
# Light Green
9a d2 84
# Light Blue
6c 5e b5
# Light Gray
95 95 95
+333
View File
@@ -0,0 +1,333 @@
# VICE keyboard mapping file
#
# A Keyboard map is read in as patch to the current map.
#
# File format:
# - comment lines start with '#'
# - keyword lines start with '!keyword'
# - normal lines have 'keysym/scancode row column shiftflag'
#
# Keywords and their lines are:
# '!CLEAR' clear whole table
# '!INCLUDE filename' read file as mapping file
# '!LSHIFT row col' left shift keyboard row/column
# '!RSHIFT row col' right shift keyboard row/column
# '!VSHIFT shiftkey' virtual shift key (RSHIFT or LSHIFT)
# '!SHIFTL shiftkey' shift lock key (RSHIFT or LSHIFT)
# for emulated keyboards that have only one shift key, set both LSHIFT
# and RSHIFT to the same row/col and use RSHIFT for VSHIFT and SHIFTL.
# '!LCTRL row col' left control keyboard row/column
# '!VCTRL ctrlkey' virtual control key (LCTRL)
# '!LCBM row col' left CBM keyboard row/column
# '!VCBM cbmkey' virtual CBM key (LCBM)
# '!UNDEF keysym' remove keysym from table
#
# Shiftflag can have these values, flags can be ORed to combine them:
# 0x0000 0 key is not shifted for this keysym/scancode
# 0x0001 1 key is combined with shift for this keysym/scancode
# 0x0002 2 key is left shift on emulated machine
# 0x0004 4 key is right shift on emulated machine (use only this one
# for emulated keyboards that have only one shift key)
# 0x0008 8 key can be shifted or not with this keysym/scancode
# 0x0010 16 deshift key for this keysym/scancode
# 0x0020 32 another definition for this keysym/scancode follows
# 0x0040 64 key is shift-lock on emulated machine
# 0x0080 128 shift modifier required on host
# 0x0100 256 key is used for an alternative keyboard mapping, e.g. C64 mode in x128
# 0x0200 512 alt-r (alt-gr) modifier required on host
# 0x0400 1024 ctrl modifier required on host
# 0x0800 2048 key is combined with cbm for this keysym/scancode
# 0x1000 4096 key is combined with ctrl for this keysym/scancode
# 0x2000 8192 key is (left) cbm on emulated machine
# 0x4000 16384 key is (left) ctrl on emulated machine
#
# Negative row values:
# 'keysym -1 n' joystick keymap A, direction n
# 'keysym -2 n' joystick keymap B, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key (x128)
# 'keysym -4 1' CAPS (ASCII/DIN) key (x128)
# 'keysym -5 n' joyport keypad, key n (not supported in x128)
#
# Joystick direction values:
# 0 Fire
# 1 South/West
# 2 South
# 3 South/East
# 4 West
# 5 East
# 6 North/West
# 7 North
# 8 North/East
#
# Joyport keypad key layout:
# --------------------------
# | 0 | 1 | 2 | 3 | 4 |
# --------------------------
# | 5 | 6 | 7 | 8 | 9 |
# --------------------------
# | 10 | 11 | 12 | 13 | 14 |
# --------------------------
# | 15 | 16 | 17 | 18 | 19 |
# --------------------------
#
# When a bigger spaced key is used,
# it uses the upper left most key value.
# Symbolic Mapping, US Layout, VIC20, GTK
# VIC20 Keyboard matrix
#
# +-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0|Bit 1|Bit 2|Bit 3|Bit 4|Bit 5|Bit 6|Bit 7|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 0| 1 ! |A_LFT| CTRL| R/S |SPACE| C= | Q | 2 " |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 1| 3 # | W | A | S_L | Z | S | E | 4 $ |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 2| 5 % | R | D | X | C | F | T | 6 & |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 3| 7 ' | Y | G | V | B | H | U | 8 ( |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 4| 9 ) | I | J | N | M | K | O | 0 |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 5| + | P | L | , < | . > | : [ | @ | - |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 6|POUND| * | ; ] | / ? | S_R | = | A_UP| HOME|
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# |Bit 7| DEL |Retrn|C_L/R|C_U/D| F1 | F3 | F5 | F7 |
# +-----+-----+-----+-----+-----+-----+-----+-----+-----+
# to convert from C64 to VIC20:
# change rows 7 -> 0, 0 -> 7
# change columns 7 -> 3, 3 -> 7
# VIC20 Keyboard layout:
#
# arrow 1! 2" 3# 4$ 5% 6& 7' 8( 9) 0 + - pound clr del f1/f2
# ctrl q w e r t y u i o p @ * ^ restore f3/f4
# r/s SL a s d f g h j k l :[ ;] = return f5/f6
# CBM LS z x c v b n m ,< .> /? RS u/d l/r f7/f8
# space
!CLEAR
!LSHIFT 1 3
!RSHIFT 6 4
!VSHIFT RSHIFT
!SHIFTL LSHIFT
!LCBM 0 5
!VCBM LCBM
!LCTRL 0 2
!VCTRL LCTRL
#####################
# |Bit 0| 1 ! |A_LFT| CTRL| R/S |SPACE| C= | Q | 2 " |
exclam 0 0 1
# Tilde -> Arrow Left
asciitilde 0 1 16
End 0 1 8
# Tab = CBM
Tab 0 5 8200
# Shift + Tab = CBM
ISO_Left_Tab 0 5 8200
# Escape = run/stop
Escape 0 3 8
Help 0 3 8
space 0 4 8
# Control_L = CTRL
Control_L 0 2 16392
quotedbl 0 7 1
#####################
# |Bit 1| 3 # | W | A | S_L | Z | S | E | 4 $ |
numbersign 1 0 1
# left shift
# key is left shift
Shift_L 1 3 2
# shift lock
# key is (left) shift-lock
Caps_Lock 1 3 64
dollar 1 7 1
#####################
# |Bit 2| 5 % | R | D | X | C | F | T | 6 & |
percent 2 0 1
ampersand 2 7 1
#####################
# |Bit 3| 7 ' | Y | G | V | B | H | U | 8 ( |
apostrophe 3 0 1
grave 3 0 1
parenleft 3 7 1
#####################
# |Bit 4| 9 ) | I | J | N | M | K | O | 0 |
parenright 4 0 1
#####################
# |Bit 5| + | P | L | , < | . > | : [ | @ | - |
plus 5 0 16
comma 5 3 0
less 5 3 1
period 5 4 0
greater 5 4 1
colon 5 5 16
bracketleft 5 5 1
# underscore = CBM+@
underscore 5 6 0x810
at 5 6 16
minus 5 7 0
#####################
# |Bit 6|POUND| * | ; ] | / ? | S_R | = | A_UP| HOME|
sterling 6 0 0
bar 6 0 8
backslash 6 0 0
asterisk 6 1 16
semicolon 6 2 0
bracketright 6 2 1
slash 6 3 0
question 6 3 1
Shift_R 6 4 4
equal 6 5 0
# Page down -> Arrow Up
asciicircum 6 6 16
Page_Down 6 6 8
Home 6 7 8
Find 6 7 8
#####################
# |Bit 7| DEL |Retrn|C_L/R|C_U/D| F1 | F3 | F5 | F7 |
BackSpace 7 0 8
Delete 7 0 8
Insert 7 0 1
Return 7 1 8
Linefeed 7 1 1
Right 7 2 8
Left 7 2 1
KP_F4 7 2 8
Up 7 3 1
Down 7 3 8
F1 7 4 8
KP_F1 7 4 8
F2 7 4 1
F3 7 5 8
KP_F2 7 5 8
F4 7 5 1
F5 7 6 8
KP_F3 7 6 8
F6 7 6 1
F7 7 7 8
F8 7 7 1
#####################
# letters and numbers
0 4 7 0
1 0 0 0
2 0 7 0
3 1 0 0
4 1 7 0
5 2 0 0
6 2 7 0
7 3 0 0
8 3 7 0
9 4 0 0
w 1 1 8
a 1 2 8
z 1 4 8
s 1 5 8
e 1 6 8
p 5 1 8
l 5 2 8
r 2 1 8
d 2 2 8
c 2 4 8
f 2 5 8
t 2 6 8
x 2 3 8
y 3 1 8
g 3 2 8
b 3 4 8
h 3 5 8
u 3 6 8
v 3 3 8
i 4 1 8
j 4 2 8
m 4 4 8
k 4 5 8
o 4 6 8
n 4 3 8
q 0 6 8
W 1 1 1
A 1 2 1
Z 1 4 1
S 1 5 1
E 1 6 1
R 2 1 1
D 2 2 1
C 2 4 1
F 2 5 1
T 2 6 1
X 2 3 1
Y 3 1 1
G 3 2 1
B 3 4 1
H 3 5 1
U 3 6 1
V 3 3 1
I 4 1 1
J 4 2 1
M 4 4 1
K 4 5 1
O 4 6 1
N 4 3 1
P 5 1 1
L 5 2 1
Q 0 6 1
# Restore key mappings
Page_Up -3 0
Prior -3 1
# Dead keys support for those using US-International keyboard layout.
dead_acute 3 0 1 # '
dead_grave 3 0 1 # '
dead_circumflex 6 6 16 # A_UP
dead_tilde 6 6 16 # A_UP
dead_perispomeni 0 1 16 # Arrow Left
dead_diaeresis 0 7 1 # "
#
# joyport attached keypad
#
Num_Lock -5 0
KP_7 -5 1
KP_8 -5 2
KP_9 -5 3
KP_Divide -5 4
Scroll_Lock -5 5
KP_4 -5 6
KP_5 -5 7
KP_6 -5 8
KP_Multiply -5 9
Sys_Req -5 10
KP_1 -5 11
KP_2 -5 12
KP_3 -5 13
KP_Subtract -5 14
Print -5 15
KP_0 -5 16
KP_Delete -5 17
KP_Enter -5 18
KP_Add -5 19
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+722 -220
View File
File diff suppressed because it is too large. Load diff