Home » Archimedes archive » Acorn User » AU 1997-06 B.adf » Extras » RiscUtils/!RuInstall/Install/User_Area/Demo's/!SpeedTest/Intro

RiscUtils/!RuInstall/Install/User_Area/Demo's/!SpeedTest/Intro

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 1997-06 B.adf » Extras
Filename: RiscUtils/!RuInstall/Install/User_Area/Demo's/!SpeedTest/Intro
Read OK:
File size: 04EC bytes
Load address: 0000
Exec address: 0000
File contents
   10MODE 15
   20ON
   30PRINT "This program is designed to show the difference in speed and output, "
   40PRINT "between the various versions of the Check_KeyBoardState command "
   50PRINT "(see !RISCutils's !Run file) and the Check_KeyBoardNumber command. "
   60PRINT
   70PRINT "If you are testing to find the speed for a particular key,"
   80PRINT "(note, hold only 1 key) hold it it down now and let go only"
   90PRINT "when told. Press any mouse button to start testing :"
  100PRINT "--------------------------------------------------------------------"
  110A=200:Y=25
  120PRINTTAB(0,12) " Command used + version :     Time (in Centiseconds)  Time (in Centiseconds)"
  130PRINTTAB(0,13) "                              taken to carry out      taken to carry out"
  140PRINTTAB(0,14) "                              40 commands :           1 command:"
  150RECTANGLE 0,340+Y,1025+A,280
  160LINE 645+A,340+Y,645+A,620+Y
  170LINE 265+A,340+Y,265+A,620+Y
  180
  190
  200LINE 0,500+Y,1025+A,500+Y
  210PRINTTAB(0,6)
  220*SET OLDALIAS$ <ALIAS$CHECK_KEYBOARDSTATE>
  230
  240REPEAT:MOUSE X,Y,B:UNTIL B<>0
  250
  260PRINTTAB(0,8) "Now testing :- Please note the Check_KeyBoardNumber command gives a "
  270PRINTTAB(0,9) "-256 output when no key's are being pressed, and also when it does"
  280PRINTTAB(0,10) "not recognise the key being pressed. E.g. the Shift, and Ctrl keys."
  290LINE 720,705,850,705
  300
  310PRINTTAB(0,15)

� 15
�
M� "This program is designed to show the difference in speed and output, "
(H� "between the various versions of the Check_KeyBoardState command "
2K� "(see !RISCutils's !Run file) and the Check_KeyBoardNumber command. "
<�
FB� "If you are testing to find the speed for a particular key,"
PC� "(note, hold only 1 key) hold it it down now and let go only"
Z<� "when told. Press any mouse button to start testing :"
dL� "--------------------------------------------------------------------"
nA=200:Y=25
xZ�0,12) " Command used + version :     Time (in Centiseconds)  Time (in Centiseconds)"
�V�0,13) "                              taken to carry out      taken to carry out"
�N�0,14) "                              40 commands :           1 command:"
�ȓ 0,340+Y,1025+A,280
�� 645+A,340+Y,645+A,620+Y
�� 265+A,340+Y,265+A,620+Y
�
�
�� 0,500+Y,1025+A,500+Y
�
�0,6)
�.*SET OLDALIAS$ <ALIAS$CHECK_KEYBOARDSTATE>
�
��:ȗ X,Y,B:� B<>0
�
Q�0,8) "Now testing :- Please note the Check_KeyBoardNumber command gives a "
O�0,9) "-256 output when no key's are being pressed, and also when it does"
Q�0,10) "not recognise the key being pressed. E.g. the Shift, and Ctrl keys."
"� 720,705,850,705
,
6�0,15)
�
00000000  0d 00 0a 08 eb 20 31 35  0d 00 14 05 ee 0d 00 1e  |..... 15........|
00000010  4d f1 20 22 54 68 69 73  20 70 72 6f 67 72 61 6d  |M. "This program|
00000020  20 69 73 20 64 65 73 69  67 6e 65 64 20 74 6f 20  | is designed to |
00000030  73 68 6f 77 20 74 68 65  20 64 69 66 66 65 72 65  |show the differe|
00000040  6e 63 65 20 69 6e 20 73  70 65 65 64 20 61 6e 64  |nce in speed and|
00000050  20 6f 75 74 70 75 74 2c  20 22 0d 00 28 48 f1 20  | output, "..(H. |
00000060  22 62 65 74 77 65 65 6e  20 74 68 65 20 76 61 72  |"between the var|
00000070  69 6f 75 73 20 76 65 72  73 69 6f 6e 73 20 6f 66  |ious versions of|
00000080  20 74 68 65 20 43 68 65  63 6b 5f 4b 65 79 42 6f  | the Check_KeyBo|
00000090  61 72 64 53 74 61 74 65  20 63 6f 6d 6d 61 6e 64  |ardState command|
000000a0  20 22 0d 00 32 4b f1 20  22 28 73 65 65 20 21 52  | "..2K. "(see !R|
000000b0  49 53 43 75 74 69 6c 73  27 73 20 21 52 75 6e 20  |ISCutils's !Run |
000000c0  66 69 6c 65 29 20 61 6e  64 20 74 68 65 20 43 68  |file) and the Ch|
000000d0  65 63 6b 5f 4b 65 79 42  6f 61 72 64 4e 75 6d 62  |eck_KeyBoardNumb|
000000e0  65 72 20 63 6f 6d 6d 61  6e 64 2e 20 22 0d 00 3c  |er command. "..<|
000000f0  05 f1 0d 00 46 42 f1 20  22 49 66 20 79 6f 75 20  |....FB. "If you |
00000100  61 72 65 20 74 65 73 74  69 6e 67 20 74 6f 20 66  |are testing to f|
00000110  69 6e 64 20 74 68 65 20  73 70 65 65 64 20 66 6f  |ind the speed fo|
00000120  72 20 61 20 70 61 72 74  69 63 75 6c 61 72 20 6b  |r a particular k|
00000130  65 79 2c 22 0d 00 50 43  f1 20 22 28 6e 6f 74 65  |ey,"..PC. "(note|
00000140  2c 20 68 6f 6c 64 20 6f  6e 6c 79 20 31 20 6b 65  |, hold only 1 ke|
00000150  79 29 20 68 6f 6c 64 20  69 74 20 69 74 20 64 6f  |y) hold it it do|
00000160  77 6e 20 6e 6f 77 20 61  6e 64 20 6c 65 74 20 67  |wn now and let g|
00000170  6f 20 6f 6e 6c 79 22 0d  00 5a 3c f1 20 22 77 68  |o only"..Z<. "wh|
00000180  65 6e 20 74 6f 6c 64 2e  20 50 72 65 73 73 20 61  |en told. Press a|
00000190  6e 79 20 6d 6f 75 73 65  20 62 75 74 74 6f 6e 20  |ny mouse button |
000001a0  74 6f 20 73 74 61 72 74  20 74 65 73 74 69 6e 67  |to start testing|
000001b0  20 3a 22 0d 00 64 4c f1  20 22 2d 2d 2d 2d 2d 2d  | :"..dL. "------|
000001c0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
000001f0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 22 0d  |--------------".|
00000200  00 6e 0e 41 3d 32 30 30  3a 59 3d 32 35 0d 00 78  |.n.A=200:Y=25..x|
00000210  5a f1 8a 30 2c 31 32 29  20 22 20 43 6f 6d 6d 61  |Z..0,12) " Comma|
00000220  6e 64 20 75 73 65 64 20  2b 20 76 65 72 73 69 6f  |nd used + versio|
00000230  6e 20 3a 20 20 20 20 20  54 69 6d 65 20 28 69 6e  |n :     Time (in|
00000240  20 43 65 6e 74 69 73 65  63 6f 6e 64 73 29 20 20  | Centiseconds)  |
00000250  54 69 6d 65 20 28 69 6e  20 43 65 6e 74 69 73 65  |Time (in Centise|
00000260  63 6f 6e 64 73 29 22 0d  00 82 56 f1 8a 30 2c 31  |conds)"...V..0,1|
00000270  33 29 20 22 20 20 20 20  20 20 20 20 20 20 20 20  |3) "            |
00000280  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000290  20 20 74 61 6b 65 6e 20  74 6f 20 63 61 72 72 79  |  taken to carry|
000002a0  20 6f 75 74 20 20 20 20  20 20 74 61 6b 65 6e 20  | out      taken |
000002b0  74 6f 20 63 61 72 72 79  20 6f 75 74 22 0d 00 8c  |to carry out"...|
000002c0  4e f1 8a 30 2c 31 34 29  20 22 20 20 20 20 20 20  |N..0,14) "      |
000002d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000002e0  20 20 20 20 20 20 20 20  34 30 20 63 6f 6d 6d 61  |        40 comma|
000002f0  6e 64 73 20 3a 20 20 20  20 20 20 20 20 20 20 20  |nds :           |
00000300  31 20 63 6f 6d 6d 61 6e  64 3a 22 0d 00 96 19 c8  |1 command:".....|
00000310  93 20 30 2c 33 34 30 2b  59 2c 31 30 32 35 2b 41  |. 0,340+Y,1025+A|
00000320  2c 32 38 30 0d 00 a0 1d  86 20 36 34 35 2b 41 2c  |,280..... 645+A,|
00000330  33 34 30 2b 59 2c 36 34  35 2b 41 2c 36 32 30 2b  |340+Y,645+A,620+|
00000340  59 0d 00 aa 1d 86 20 32  36 35 2b 41 2c 33 34 30  |Y..... 265+A,340|
00000350  2b 59 2c 32 36 35 2b 41  2c 36 32 30 2b 59 0d 00  |+Y,265+A,620+Y..|
00000360  b4 04 0d 00 be 04 0d 00  c8 1a 86 20 30 2c 35 30  |........... 0,50|
00000370  30 2b 59 2c 31 30 32 35  2b 41 2c 35 30 30 2b 59  |0+Y,1025+A,500+Y|
00000380  0d 00 d2 0a f1 8a 30 2c  36 29 0d 00 dc 2e 2a 53  |......0,6)....*S|
00000390  45 54 20 4f 4c 44 41 4c  49 41 53 24 20 3c 41 4c  |ET OLDALIAS$ <AL|
000003a0  49 41 53 24 43 48 45 43  4b 5f 4b 45 59 42 4f 41  |IAS$CHECK_KEYBOA|
000003b0  52 44 53 54 41 54 45 3e  0d 00 e6 04 0d 00 f0 15  |RDSTATE>........|
000003c0  f5 3a c8 97 20 58 2c 59  2c 42 3a fd 20 42 3c 3e  |.:.. X,Y,B:. B<>|
000003d0  30 0d 00 fa 04 0d 01 04  51 f1 8a 30 2c 38 29 20  |0.......Q..0,8) |
000003e0  22 4e 6f 77 20 74 65 73  74 69 6e 67 20 3a 2d 20  |"Now testing :- |
000003f0  50 6c 65 61 73 65 20 6e  6f 74 65 20 74 68 65 20  |Please note the |
00000400  43 68 65 63 6b 5f 4b 65  79 42 6f 61 72 64 4e 75  |Check_KeyBoardNu|
00000410  6d 62 65 72 20 63 6f 6d  6d 61 6e 64 20 67 69 76  |mber command giv|
00000420  65 73 20 61 20 22 0d 01  0e 4f f1 8a 30 2c 39 29  |es a "...O..0,9)|
00000430  20 22 2d 32 35 36 20 6f  75 74 70 75 74 20 77 68  | "-256 output wh|
00000440  65 6e 20 6e 6f 20 6b 65  79 27 73 20 61 72 65 20  |en no key's are |
00000450  62 65 69 6e 67 20 70 72  65 73 73 65 64 2c 20 61  |being pressed, a|
00000460  6e 64 20 61 6c 73 6f 20  77 68 65 6e 20 69 74 20  |nd also when it |
00000470  64 6f 65 73 22 0d 01 18  51 f1 8a 30 2c 31 30 29  |does"...Q..0,10)|
00000480  20 22 6e 6f 74 20 72 65  63 6f 67 6e 69 73 65 20  | "not recognise |
00000490  74 68 65 20 6b 65 79 20  62 65 69 6e 67 20 70 72  |the key being pr|
000004a0  65 73 73 65 64 2e 20 45  2e 67 2e 20 74 68 65 20  |essed. E.g. the |
000004b0  53 68 69 66 74 2c 20 61  6e 64 20 43 74 72 6c 20  |Shift, and Ctrl |
000004c0  6b 65 79 73 2e 22 0d 01  22 15 86 20 37 32 30 2c  |keys."..".. 720,|
000004d0  37 30 35 2c 38 35 30 2c  37 30 35 0d 01 2c 04 0d  |705,850,705..,..|
000004e0  01 36 0b f1 8a 30 2c 31  35 29 0d ff              |.6...0,15)..|
000004ec