Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_27.ADF » P/MOUSEY

P/MOUSEY

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 » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_27.ADF
Filename: P/MOUSEY
Read OK:
File size: 0183 bytes
Load address: FFFF0E00
Exec address: FFFF802B
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
   10REM Test mouse displayer
   20MODE7:VDU23,1,0;0;0;0;
   30ONERROROSCLI"FX2,0":END
   40REMSet up keyboard repeat rate
   50*FX12,3
   60REM 1200 buad
   70*FX7,4
   80*FX8,4
   90REM RS423 input only
  100*FX2,1
  110REPEAT:PROCbinary(GET):PRINT'"Place:   ";:FORK%=0TO3:PROChex(GET):NEXT:PRINT'"Adval:   ";ADVAL(&FE)" ";:UNTIL0
  120:
  130DEFPROCbinary(A%)
  140F%=128:PRINTTAB(0,0);"Buttons: ";
  150REPEAT:PRINT;SGN(A% AND F%);:F%=F%DIV2:UNTIL F%=0:ENDPROC
  160:
  170DEFPROChex(A%)
  180IFA%<16 THENPRINT;"0";
  190PRINT;~A%;:ENDPROC

� Test mouse displayer
�7:�23,1,0;0;0;0;
�"FX2,0":�
( �Set up keyboard repeat rate
2*FX12,3
<� 1200 buad
F
*FX7,4
P
*FX8,4
Z� RS423 input only
d
*FX2,1
nM�:�binary(�):�'"Place:   ";:�K%=0�3:�hex(�):�:�'"Adval:   ";�(&FE)" ";:�0
x:
���binary(A%)
�F%=128:�0,0);"Buttons: ";
�$�:�;�(A% � F%);:F%=F%�2:� F%=0:�
�:
�
��hex(A%)
��A%<16 ��;"0";
��;~A%;:�
�
00000000  0d 00 0a 1a f4 20 54 65  73 74 20 6d 6f 75 73 65  |..... Test mouse|
00000010  20 64 69 73 70 6c 61 79  65 72 0d 00 14 15 eb 37  | displayer.....7|
00000020  3a ef 32 33 2c 31 2c 30  3b 30 3b 30 3b 30 3b 0d  |:.23,1,0;0;0;0;.|
00000030  00 1e 10 ee 85 ff 22 46  58 32 2c 30 22 3a e0 0d  |......"FX2,0":..|
00000040  00 28 20 f4 53 65 74 20  75 70 20 6b 65 79 62 6f  |.( .Set up keybo|
00000050  61 72 64 20 72 65 70 65  61 74 20 72 61 74 65 0d  |ard repeat rate.|
00000060  00 32 0b 2a 46 58 31 32  2c 33 0d 00 3c 0f f4 20  |.2.*FX12,3..<.. |
00000070  31 32 30 30 20 62 75 61  64 0d 00 46 0a 2a 46 58  |1200 buad..F.*FX|
00000080  37 2c 34 0d 00 50 0a 2a  46 58 38 2c 34 0d 00 5a  |7,4..P.*FX8,4..Z|
00000090  16 f4 20 52 53 34 32 33  20 69 6e 70 75 74 20 6f  |.. RS423 input o|
000000a0  6e 6c 79 0d 00 64 0a 2a  46 58 32 2c 31 0d 00 6e  |nly..d.*FX2,1..n|
000000b0  4d f5 3a f2 62 69 6e 61  72 79 28 a5 29 3a f1 27  |M.:.binary(.):.'|
000000c0  22 50 6c 61 63 65 3a 20  20 20 22 3b 3a e3 4b 25  |"Place:   ";:.K%|
000000d0  3d 30 b8 33 3a f2 68 65  78 28 a5 29 3a ed 3a f1  |=0.3:.hex(.):.:.|
000000e0  27 22 41 64 76 61 6c 3a  20 20 20 22 3b 96 28 26  |'"Adval:   ";.(&|
000000f0  46 45 29 22 20 22 3b 3a  fd 30 0d 00 78 05 3a 0d  |FE)" ";:.0..x.:.|
00000100  00 82 10 dd f2 62 69 6e  61 72 79 28 41 25 29 0d  |.....binary(A%).|
00000110  00 8c 1e 46 25 3d 31 32  38 3a f1 8a 30 2c 30 29  |...F%=128:..0,0)|
00000120  3b 22 42 75 74 74 6f 6e  73 3a 20 22 3b 0d 00 96  |;"Buttons: ";...|
00000130  24 f5 3a f1 3b b4 28 41  25 20 80 20 46 25 29 3b  |$.:.;.(A% . F%);|
00000140  3a 46 25 3d 46 25 81 32  3a fd 20 46 25 3d 30 3a  |:F%=F%.2:. F%=0:|
00000150  e1 0d 00 a0 05 3a 0d 00  aa 0d dd f2 68 65 78 28  |.....:......hex(|
00000160  41 25 29 0d 00 b4 12 e7  41 25 3c 31 36 20 8c f1  |A%).....A%<16 ..|
00000170  3b 22 30 22 3b 0d 00 be  0c f1 3b 7e 41 25 3b 3a  |;"0";.....;~A%;:|
00000180  e1 0d ff                                          |...|
00000183
P/MOUSEY.m0
P/MOUSEY.m1
P/MOUSEY.m2
P/MOUSEY.m4
P/MOUSEY.m5