Home » Archimedes archive » Acorn Computing » 1995 02.adf » 9502 » BodyBuild/Keyboard1

BodyBuild/Keyboard1

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 Computing » 1995 02.adf » 9502
Filename: BodyBuild/Keyboard1
Read OK:
File size: 016B bytes
Load address: 0000
Exec address: 0000
File contents
   10REM>Keyboard1
   20REM BODY BUILD KEYBOARD
   30PRINT"Body Build Keyboard TEST"
   40PRINT"by Mike Cook"
   50PROC_INT
   60REPEAT
   70K%=99
   80FOR A%=0 TO 48
   90B%=FNKin(A%)
  100IF (B% AND &80)=0 THEN PRINT TAB(15,18);B%;SPC(3): K%=B%
  110NEXT
  120IF K%=99 THEN PRINT TAB(15,18)SPC(6)
  130UNTIL FALSE
  140
  150DEF FNKin(N%)
  160SYS"OS_Byte",151,&60,N%
  170SYS"OS_Byte",150,&60 TO ,,N%
  180=N% AND &BF
  190
  200DEF PROC_INT
  210SYS"OS_Byte",151,&62,&3F
  220ENDPROC
�>Keyboard1
� BODY BUILD KEYBOARD
�"Body Build Keyboard TEST"
(�"by Mike Cook"
2	�_INT
<�
F	K%=99
P� A%=0 � 48
ZB%=�Kin(A%)
d-� (B% � &80)=0 � � �15,18);B%;�(3): K%=B%
n�
x� K%=99 � � �15,18)�(6)
�� �
�
�� �Kin(N%)
�ș"OS_Byte",151,&60,N%
�ș"OS_Byte",150,&60 � ,,N%
�
=N% � &BF
�
�� �_INT
�ș"OS_Byte",151,&62,&3F
��
�
00000000  0d 00 0a 0f f4 3e 4b 65  79 62 6f 61 72 64 31 0d  |.....>Keyboard1.|
00000010  00 14 19 f4 20 42 4f 44  59 20 42 55 49 4c 44 20  |.... BODY BUILD |
00000020  4b 45 59 42 4f 41 52 44  0d 00 1e 1f f1 22 42 6f  |KEYBOARD....."Bo|
00000030  64 79 20 42 75 69 6c 64  20 4b 65 79 62 6f 61 72  |dy Build Keyboar|
00000040  64 20 54 45 53 54 22 0d  00 28 13 f1 22 62 79 20  |d TEST"..(.."by |
00000050  4d 69 6b 65 20 43 6f 6f  6b 22 0d 00 32 09 f2 5f  |Mike Cook"..2.._|
00000060  49 4e 54 0d 00 3c 05 f5  0d 00 46 09 4b 25 3d 39  |INT..<....F.K%=9|
00000070  39 0d 00 50 0f e3 20 41  25 3d 30 20 b8 20 34 38  |9..P.. A%=0 . 48|
00000080  0d 00 5a 0f 42 25 3d a4  4b 69 6e 28 41 25 29 0d  |..Z.B%=.Kin(A%).|
00000090  00 64 2d e7 20 28 42 25  20 80 20 26 38 30 29 3d  |.d-. (B% . &80)=|
000000a0  30 20 8c 20 f1 20 8a 31  35 2c 31 38 29 3b 42 25  |0 . . .15,18);B%|
000000b0  3b 89 28 33 29 3a 20 4b  25 3d 42 25 0d 00 6e 05  |;.(3): K%=B%..n.|
000000c0  ed 0d 00 78 1b e7 20 4b  25 3d 39 39 20 8c 20 f1  |...x.. K%=99 . .|
000000d0  20 8a 31 35 2c 31 38 29  89 28 36 29 0d 00 82 07  | .15,18).(6)....|
000000e0  fd 20 a3 0d 00 8c 04 0d  00 96 0e dd 20 a4 4b 69  |. .......... .Ki|
000000f0  6e 28 4e 25 29 0d 00 a0  1a c8 99 22 4f 53 5f 42  |n(N%)......"OS_B|
00000100  79 74 65 22 2c 31 35 31  2c 26 36 30 2c 4e 25 0d  |yte",151,&60,N%.|
00000110  00 aa 1e c8 99 22 4f 53  5f 42 79 74 65 22 2c 31  |....."OS_Byte",1|
00000120  35 30 2c 26 36 30 20 b8  20 2c 2c 4e 25 0d 00 b4  |50,&60 . ,,N%...|
00000130  0d 3d 4e 25 20 80 20 26  42 46 0d 00 be 04 0d 00  |.=N% . &BF......|
00000140  c8 0b dd 20 f2 5f 49 4e  54 0d 00 d2 1b c8 99 22  |... ._INT......"|
00000150  4f 53 5f 42 79 74 65 22  2c 31 35 31 2c 26 36 32  |OS_Byte",151,&62|
00000160  2c 26 33 46 0d 00 dc 05  e1 0d ff                 |,&3F.......|
0000016b