Home » Archimedes archive » Acorn User » AU 1996-12 B.adf » Regulars_2 » StarInfo/Clifford/!Macros/KeyMaps/PCKeysSrc
StarInfo/Clifford/!Macros/KeyMaps/PCKeysSrc
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1996-12 B.adf » Regulars_2 |
Filename: | StarInfo/Clifford/!Macros/KeyMaps/PCKeysSrc |
Read OK: | ✔ |
File size: | 0232 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10DIM code% 256 20 30P%=code% 40[ opt 0 50 FNkey ("#", &33) 60 FNkey ("End", &35) 70 FNkey ("\", &4D) 71 equb 0 80] 90 100SYS "OS_File", 10, "PCKeyboard", &ffd, , code%, P% 110END 120 130 140REM key$ is the name used to refer to the key 141 150REM key_code% is the internal key number, see PRM 1-156 for Acorn keyboard 160REM layout. The PC keyboard used by the Risc PC differs slightly, hence this 161REM file. 180 190DEF FNkey(key$, key_code%) 200[ opt 0 210 equb LEN(key$) 220 equb key_code% 230 equs key$ 240] 250=0
� code% 256 P%=code% ([ opt 0 2 �key ("#", &33) < �key ("End", &35) F �key ("\", &4D) G equb 0 P] Z d5ș "OS_File", 10, "PCKeyboard", &ffd, , code%, P% n� x � �/� key$ is the name used to refer to the key � �L� key_code% is the internal key number, see PRM 1-156 for Acorn keyboard �N� layout. The PC keyboard used by the Risc PC differs slightly, hence this �� file. � �� �key(key$, key_code%) �[ opt 0 � equb �(key$) � equb key_code% � equs key$ �] �=0 �
00000000 0d 00 0a 0f de 20 63 6f 64 65 25 20 32 35 36 0d |..... code% 256.| 00000010 00 14 04 0d 00 1e 0c 50 25 3d 63 6f 64 65 25 0d |.......P%=code%.| 00000020 00 28 11 5b 20 20 20 6f 70 74 20 20 20 20 20 30 |.(.[ opt 0| 00000030 0d 00 32 19 20 20 20 20 a4 6b 65 79 20 20 20 28 |..2. .key (| 00000040 22 23 22 2c 20 26 33 33 29 0d 00 3c 1b 20 20 20 |"#", &33)..<. | 00000050 20 a4 6b 65 79 20 20 20 28 22 45 6e 64 22 2c 20 | .key ("End", | 00000060 26 33 35 29 0d 00 46 19 20 20 20 20 a4 6b 65 79 |&35)..F. .key| 00000070 20 20 20 28 22 5c 22 2c 20 26 34 44 29 0d 00 47 | ("\", &4D)..G| 00000080 11 20 20 20 20 65 71 75 62 20 20 20 20 30 0d 00 |. equb 0..| 00000090 50 05 5d 0d 00 5a 04 0d 00 64 35 c8 99 20 22 4f |P.]..Z...d5.. "O| 000000a0 53 5f 46 69 6c 65 22 2c 20 31 30 2c 20 22 50 43 |S_File", 10, "PC| 000000b0 4b 65 79 62 6f 61 72 64 22 2c 20 26 66 66 64 2c |Keyboard", &ffd,| 000000c0 20 2c 20 63 6f 64 65 25 2c 20 50 25 0d 00 6e 05 | , code%, P%..n.| 000000d0 e0 0d 00 78 04 0d 00 82 04 0d 00 8c 2f f4 20 6b |...x......../. k| 000000e0 65 79 24 20 69 73 20 74 68 65 20 6e 61 6d 65 20 |ey$ is the name | 000000f0 75 73 65 64 20 74 6f 20 72 65 66 65 72 20 74 6f |used to refer to| 00000100 20 74 68 65 20 6b 65 79 0d 00 8d 04 0d 00 96 4c | the key.......L| 00000110 f4 20 6b 65 79 5f 63 6f 64 65 25 20 69 73 20 74 |. key_code% is t| 00000120 68 65 20 69 6e 74 65 72 6e 61 6c 20 6b 65 79 20 |he internal key | 00000130 6e 75 6d 62 65 72 2c 20 73 65 65 20 50 52 4d 20 |number, see PRM | 00000140 31 2d 31 35 36 20 66 6f 72 20 41 63 6f 72 6e 20 |1-156 for Acorn | 00000150 6b 65 79 62 6f 61 72 64 0d 00 a0 4e f4 20 6c 61 |keyboard...N. la| 00000160 79 6f 75 74 2e 20 54 68 65 20 50 43 20 6b 65 79 |yout. The PC key| 00000170 62 6f 61 72 64 20 75 73 65 64 20 62 79 20 74 68 |board used by th| 00000180 65 20 52 69 73 63 20 50 43 20 64 69 66 66 65 72 |e Risc PC differ| 00000190 73 20 73 6c 69 67 68 74 6c 79 2c 20 68 65 6e 63 |s slightly, henc| 000001a0 65 20 74 68 69 73 0d 00 a1 0b f4 20 66 69 6c 65 |e this..... file| 000001b0 2e 0d 00 b4 04 0d 00 be 1b dd 20 a4 6b 65 79 28 |.......... .key(| 000001c0 6b 65 79 24 2c 20 6b 65 79 5f 63 6f 64 65 25 29 |key$, key_code%)| 000001d0 0d 00 c8 11 5b 20 20 20 6f 70 74 20 20 20 20 20 |....[ opt | 000001e0 30 0d 00 d2 17 20 20 20 20 65 71 75 62 20 20 20 |0.... equb | 000001f0 20 a9 28 6b 65 79 24 29 0d 00 dc 19 20 20 20 20 | .(key$).... | 00000200 65 71 75 62 20 20 20 20 6b 65 79 5f 63 6f 64 65 |equb key_code| 00000210 25 0d 00 e6 14 20 20 20 20 65 71 75 73 20 20 20 |%.... equs | 00000220 20 6b 65 79 24 0d 00 f0 05 5d 0d 00 fa 06 3d 30 | key$....]....=0| 00000230 0d ff |..| 00000232