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

P/+MOUSE1

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/+MOUSE1
Read OK:
File size: 099E bytes
Load address: 2B204556
Exec address: 53554F4D
File contents
�..>......*.......*.......*.......*.......*.......*.......*.......*.......*.<
                   6 Bollinbrook road, 
                    MACCLESFIELD, 
                     Cheshire. 
                      SK10 3DJ. 
 
Dear Mike Bellis, 
                 All the mice I have  ever seen for the BBC B and Master 
series were user prort jobs.It is  possible however to connect a serial 
mouse to the RS423 port,and by  altering the 5 pin BBC plug a little  you
can fool the mouse into thinking  it is connected to a 9 pin PC. 

   The next challenge is to work out  what the numbers it sends do.That is 
where I am stuck - the hardware was  the easy part. 

   I have isolated the button status  byte so I can at least tell which 
buttons are pressed,and the remaining  4 bytes of the packet of 5 either 
toggle between 00 for still of 01 or  FF in hex. 

   The 5 byte packet is thus: 
 1.Button status (low 3 bits=buttons) 
 2.X1 
 3.Y1 
 4.X2 
 5.Y2 
 
   The adapter plug you'll need to  make,as most serial mice come with 9 
pin sockets on is: 

 Pin1 -> CONNECT TO PIN 4 
 Pin2 -> (A) DATA IN 
 Pin3 -> (B) DATA OUT 
 Pin4 -> CONNECT TO PIN 8 
 Pin5 -> (C) GND 
 Pin6 -> NC 
 Pin7 -> (D) RTS 
 Pin8 -> (E) CTS 
 Pin9 -> NC 

   I hope this is right as I can   never remember which way round the 
plug is printed on P504 of the user  guide. 

   Sorry I didn't have time to draw a  fancy diagram,but I have sent you
the  BASIC software to read it.Perhaps  machine code would allow us to see 
some bytes tha BASIC is too slow to  read.The Acorn RISC PC returned
values  other than 00,01,FF which is why I  question BASIC. 

   Let me know how you get on,if you  need a cheap experimental mouse to 
work as a guinea pig try: 

  CCL Computers 
  Tele 01274 664110 

They accept switch over the phone and  the BRAND NEW serial mouse I am 
experimenting on cost `3.30 + VAT +  P&P from them. 

              R.P.Sprowson. 
 
----------------------------------------------------------
MOUSEY 
====== 
Plug serial mouse into RS423 port. 
Run the program. 
Move the mouse to initialise the 
display. 
Puzzle about how on earth to write a  
mouse driver. 
Click a few buttons on the mouse and 
watch the bits toggling on the top of 
the screen. 
Write the software and submit it to 
EUG! 
    
Happy computing, 
                R.P.Sprowson. 
 
NOW THIS IS INTERESTING. I JUST HOPE THAT SOME EUG MEMBERS WILL TRY 
THIS OUT AND SEND IN THEIR RESULTS FOR ALL TO READ.
00000000  81 2e 2e 3e 2e 2e 2e 2e  2e 2e 2a 2e 2e 2e 2e 2e  |...>......*.....|
00000010  2e 2e 2a 2e 2e 2e 2e 2e  2e 2e 2a 2e 2e 2e 2e 2e  |..*.......*.....|
*
00000040  2e 2e 2a 2e 2e 2e 2e 2e  2e 2e 2a 2e 3c 0d 20 20  |..*.......*.<.  |
00000050  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000060  20 36 20 42 6f 6c 6c 69  6e 62 72 6f 6f 6b 20 72  | 6 Bollinbrook r|
00000070  6f 61 64 2c 20 0d 20 20  20 20 20 20 20 20 20 20  |oad, .          |
00000080  20 20 20 20 20 20 20 20  20 20 4d 41 43 43 4c 45  |          MACCLE|
00000090  53 46 49 45 4c 44 2c 20  0d 20 20 20 20 20 20 20  |SFIELD, .       |
000000a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 43 68  |              Ch|
000000b0  65 73 68 69 72 65 2e 20  0d 20 20 20 20 20 20 20  |eshire. .       |
000000c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 53  |               S|
000000d0  4b 31 30 20 33 44 4a 2e  20 0d 20 0d 44 65 61 72  |K10 3DJ. . .Dear|
000000e0  20 4d 69 6b 65 20 42 65  6c 6c 69 73 2c 20 0d 20  | Mike Bellis, . |
000000f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000100  41 6c 6c 20 74 68 65 20  6d 69 63 65 20 49 20 68  |All the mice I h|
00000110  61 76 65 20 20 65 76 65  72 20 73 65 65 6e 20 66  |ave  ever seen f|
00000120  6f 72 20 74 68 65 20 42  42 43 20 42 20 61 6e 64  |or the BBC B and|
00000130  20 4d 61 73 74 65 72 20  0d 73 65 72 69 65 73 20  | Master .series |
00000140  77 65 72 65 20 75 73 65  72 20 70 72 6f 72 74 20  |were user prort |
00000150  6a 6f 62 73 2e 49 74 20  69 73 20 20 70 6f 73 73  |jobs.It is  poss|
00000160  69 62 6c 65 20 68 6f 77  65 76 65 72 20 74 6f 20  |ible however to |
00000170  63 6f 6e 6e 65 63 74 20  61 20 73 65 72 69 61 6c  |connect a serial|
00000180  20 0d 6d 6f 75 73 65 20  74 6f 20 74 68 65 20 52  | .mouse to the R|
00000190  53 34 32 33 20 70 6f 72  74 2c 61 6e 64 20 62 79  |S423 port,and by|
000001a0  20 20 61 6c 74 65 72 69  6e 67 20 74 68 65 20 35  |  altering the 5|
000001b0  20 70 69 6e 20 42 42 43  20 70 6c 75 67 20 61 20  | pin BBC plug a |
000001c0  6c 69 74 74 6c 65 20 20  79 6f 75 0d 63 61 6e 20  |little  you.can |
000001d0  66 6f 6f 6c 20 74 68 65  20 6d 6f 75 73 65 20 69  |fool the mouse i|
000001e0  6e 74 6f 20 74 68 69 6e  6b 69 6e 67 20 20 69 74  |nto thinking  it|
000001f0  20 69 73 20 63 6f 6e 6e  65 63 74 65 64 20 74 6f  | is connected to|
00000200  20 61 20 39 20 70 69 6e  20 50 43 2e 20 0d 0d 20  | a 9 pin PC. .. |
00000210  20 20 54 68 65 20 6e 65  78 74 20 63 68 61 6c 6c  |  The next chall|
00000220  65 6e 67 65 20 69 73 20  74 6f 20 77 6f 72 6b 20  |enge is to work |
00000230  6f 75 74 20 20 77 68 61  74 20 74 68 65 20 6e 75  |out  what the nu|
00000240  6d 62 65 72 73 20 69 74  20 73 65 6e 64 73 20 64  |mbers it sends d|
00000250  6f 2e 54 68 61 74 20 69  73 20 0d 77 68 65 72 65  |o.That is .where|
00000260  20 49 20 61 6d 20 73 74  75 63 6b 20 2d 20 74 68  | I am stuck - th|
00000270  65 20 68 61 72 64 77 61  72 65 20 77 61 73 20 20  |e hardware was  |
00000280  74 68 65 20 65 61 73 79  20 70 61 72 74 2e 20 0d  |the easy part. .|
00000290  0d 20 20 20 49 20 68 61  76 65 20 69 73 6f 6c 61  |.   I have isola|
000002a0  74 65 64 20 74 68 65 20  62 75 74 74 6f 6e 20 73  |ted the button s|
000002b0  74 61 74 75 73 20 20 62  79 74 65 20 73 6f 20 49  |tatus  byte so I|
000002c0  20 63 61 6e 20 61 74 20  6c 65 61 73 74 20 74 65  | can at least te|
000002d0  6c 6c 20 77 68 69 63 68  20 0d 62 75 74 74 6f 6e  |ll which .button|
000002e0  73 20 61 72 65 20 70 72  65 73 73 65 64 2c 61 6e  |s are pressed,an|
000002f0  64 20 74 68 65 20 72 65  6d 61 69 6e 69 6e 67 20  |d the remaining |
00000300  20 34 20 62 79 74 65 73  20 6f 66 20 74 68 65 20  | 4 bytes of the |
00000310  70 61 63 6b 65 74 20 6f  66 20 35 20 65 69 74 68  |packet of 5 eith|
00000320  65 72 20 0d 74 6f 67 67  6c 65 20 62 65 74 77 65  |er .toggle betwe|
00000330  65 6e 20 30 30 20 66 6f  72 20 73 74 69 6c 6c 20  |en 00 for still |
00000340  6f 66 20 30 31 20 6f 72  20 20 46 46 20 69 6e 20  |of 01 or  FF in |
00000350  68 65 78 2e 20 0d 0d 20  20 20 54 68 65 20 35 20  |hex. ..   The 5 |
00000360  62 79 74 65 20 70 61 63  6b 65 74 20 69 73 20 74  |byte packet is t|
00000370  68 75 73 3a 20 0d 20 31  2e 42 75 74 74 6f 6e 20  |hus: . 1.Button |
00000380  73 74 61 74 75 73 20 28  6c 6f 77 20 33 20 62 69  |status (low 3 bi|
00000390  74 73 3d 62 75 74 74 6f  6e 73 29 20 0d 20 32 2e  |ts=buttons) . 2.|
000003a0  58 31 20 0d 20 33 2e 59  31 20 0d 20 34 2e 58 32  |X1 . 3.Y1 . 4.X2|
000003b0  20 0d 20 35 2e 59 32 20  0d 20 0d 20 20 20 54 68  | . 5.Y2 . .   Th|
000003c0  65 20 61 64 61 70 74 65  72 20 70 6c 75 67 20 79  |e adapter plug y|
000003d0  6f 75 27 6c 6c 20 6e 65  65 64 20 74 6f 20 20 6d  |ou'll need to  m|
000003e0  61 6b 65 2c 61 73 20 6d  6f 73 74 20 73 65 72 69  |ake,as most seri|
000003f0  61 6c 20 6d 69 63 65 20  63 6f 6d 65 20 77 69 74  |al mice come wit|
00000400  68 20 39 20 0d 70 69 6e  20 73 6f 63 6b 65 74 73  |h 9 .pin sockets|
00000410  20 6f 6e 20 69 73 3a 20  0d 0d 20 50 69 6e 31 20  | on is: .. Pin1 |
00000420  2d 3e 20 43 4f 4e 4e 45  43 54 20 54 4f 20 50 49  |-> CONNECT TO PI|
00000430  4e 20 34 20 0d 20 50 69  6e 32 20 2d 3e 20 28 41  |N 4 . Pin2 -> (A|
00000440  29 20 44 41 54 41 20 49  4e 20 0d 20 50 69 6e 33  |) DATA IN . Pin3|
00000450  20 2d 3e 20 28 42 29 20  44 41 54 41 20 4f 55 54  | -> (B) DATA OUT|
00000460  20 0d 20 50 69 6e 34 20  2d 3e 20 43 4f 4e 4e 45  | . Pin4 -> CONNE|
00000470  43 54 20 54 4f 20 50 49  4e 20 38 20 0d 20 50 69  |CT TO PIN 8 . Pi|
00000480  6e 35 20 2d 3e 20 28 43  29 20 47 4e 44 20 0d 20  |n5 -> (C) GND . |
00000490  50 69 6e 36 20 2d 3e 20  4e 43 20 0d 20 50 69 6e  |Pin6 -> NC . Pin|
000004a0  37 20 2d 3e 20 28 44 29  20 52 54 53 20 0d 20 50  |7 -> (D) RTS . P|
000004b0  69 6e 38 20 2d 3e 20 28  45 29 20 43 54 53 20 0d  |in8 -> (E) CTS .|
000004c0  20 50 69 6e 39 20 2d 3e  20 4e 43 20 0d 0d 20 20  | Pin9 -> NC ..  |
000004d0  20 49 20 68 6f 70 65 20  74 68 69 73 20 69 73 20  | I hope this is |
000004e0  72 69 67 68 74 20 61 73  20 49 20 63 61 6e 20 20  |right as I can  |
000004f0  20 6e 65 76 65 72 20 72  65 6d 65 6d 62 65 72 20  | never remember |
00000500  77 68 69 63 68 20 77 61  79 20 72 6f 75 6e 64 20  |which way round |
00000510  74 68 65 20 0d 70 6c 75  67 20 69 73 20 70 72 69  |the .plug is pri|
00000520  6e 74 65 64 20 6f 6e 20  50 35 30 34 20 6f 66 20  |nted on P504 of |
00000530  74 68 65 20 75 73 65 72  20 20 67 75 69 64 65 2e  |the user  guide.|
00000540  20 0d 0d 20 20 20 53 6f  72 72 79 20 49 20 64 69  | ..   Sorry I di|
00000550  64 6e 27 74 20 68 61 76  65 20 74 69 6d 65 20 74  |dn't have time t|
00000560  6f 20 64 72 61 77 20 61  20 20 66 61 6e 63 79 20  |o draw a  fancy |
00000570  64 69 61 67 72 61 6d 2c  62 75 74 20 49 20 68 61  |diagram,but I ha|
00000580  76 65 20 73 65 6e 74 20  79 6f 75 0d 74 68 65 20  |ve sent you.the |
00000590  20 42 41 53 49 43 20 73  6f 66 74 77 61 72 65 20  | BASIC software |
000005a0  74 6f 20 72 65 61 64 20  69 74 2e 50 65 72 68 61  |to read it.Perha|
000005b0  70 73 20 20 6d 61 63 68  69 6e 65 20 63 6f 64 65  |ps  machine code|
000005c0  20 77 6f 75 6c 64 20 61  6c 6c 6f 77 20 75 73 20  | would allow us |
000005d0  74 6f 20 73 65 65 20 0d  73 6f 6d 65 20 62 79 74  |to see .some byt|
000005e0  65 73 20 74 68 61 20 42  41 53 49 43 20 69 73 20  |es tha BASIC is |
000005f0  74 6f 6f 20 73 6c 6f 77  20 74 6f 20 20 72 65 61  |too slow to  rea|
00000600  64 2e 54 68 65 20 41 63  6f 72 6e 20 52 49 53 43  |d.The Acorn RISC|
00000610  20 50 43 20 72 65 74 75  72 6e 65 64 0d 76 61 6c  | PC returned.val|
00000620  75 65 73 20 20 6f 74 68  65 72 20 74 68 61 6e 20  |ues  other than |
00000630  30 30 2c 30 31 2c 46 46  20 77 68 69 63 68 20 69  |00,01,FF which i|
00000640  73 20 77 68 79 20 49 20  20 71 75 65 73 74 69 6f  |s why I  questio|
00000650  6e 20 42 41 53 49 43 2e  20 0d 0d 20 20 20 4c 65  |n BASIC. ..   Le|
00000660  74 20 6d 65 20 6b 6e 6f  77 20 68 6f 77 20 79 6f  |t me know how yo|
00000670  75 20 67 65 74 20 6f 6e  2c 69 66 20 79 6f 75 20  |u get on,if you |
00000680  20 6e 65 65 64 20 61 20  63 68 65 61 70 20 65 78  | need a cheap ex|
00000690  70 65 72 69 6d 65 6e 74  61 6c 20 6d 6f 75 73 65  |perimental mouse|
000006a0  20 74 6f 20 0d 77 6f 72  6b 20 61 73 20 61 20 67  | to .work as a g|
000006b0  75 69 6e 65 61 20 70 69  67 20 74 72 79 3a 20 0d  |uinea pig try: .|
000006c0  0d 20 20 43 43 4c 20 43  6f 6d 70 75 74 65 72 73  |.  CCL Computers|
000006d0  20 0d 20 20 54 65 6c 65  20 30 31 32 37 34 20 36  | .  Tele 01274 6|
000006e0  36 34 31 31 30 20 0d 0d  54 68 65 79 20 61 63 63  |64110 ..They acc|
000006f0  65 70 74 20 73 77 69 74  63 68 20 6f 76 65 72 20  |ept switch over |
00000700  74 68 65 20 70 68 6f 6e  65 20 61 6e 64 20 20 74  |the phone and  t|
00000710  68 65 20 42 52 41 4e 44  20 4e 45 57 20 73 65 72  |he BRAND NEW ser|
00000720  69 61 6c 20 6d 6f 75 73  65 20 49 20 61 6d 20 0d  |ial mouse I am .|
00000730  65 78 70 65 72 69 6d 65  6e 74 69 6e 67 20 6f 6e  |experimenting on|
00000740  20 63 6f 73 74 20 60 33  2e 33 30 20 2b 20 56 41  | cost `3.30 + VA|
00000750  54 20 2b 20 20 50 26 50  20 66 72 6f 6d 20 74 68  |T +  P&P from th|
00000760  65 6d 2e 20 0d 0d 20 20  20 20 20 20 20 20 20 20  |em. ..          |
00000770  20 20 20 20 52 2e 50 2e  53 70 72 6f 77 73 6f 6e  |    R.P.Sprowson|
00000780  2e 20 0d 20 0d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |. . .-----------|
00000790  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
000007b0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 0d  |---------------.|
000007c0  4d 4f 55 53 45 59 20 0d  3d 3d 3d 3d 3d 3d 20 0d  |MOUSEY .====== .|
000007d0  50 6c 75 67 20 73 65 72  69 61 6c 20 6d 6f 75 73  |Plug serial mous|
000007e0  65 20 69 6e 74 6f 20 52  53 34 32 33 20 70 6f 72  |e into RS423 por|
000007f0  74 2e 20 0d 52 75 6e 20  74 68 65 20 70 72 6f 67  |t. .Run the prog|
00000800  72 61 6d 2e 20 0d 4d 6f  76 65 20 74 68 65 20 6d  |ram. .Move the m|
00000810  6f 75 73 65 20 74 6f 20  69 6e 69 74 69 61 6c 69  |ouse to initiali|
00000820  73 65 20 74 68 65 20 0d  64 69 73 70 6c 61 79 2e  |se the .display.|
00000830  20 0d 50 75 7a 7a 6c 65  20 61 62 6f 75 74 20 68  | .Puzzle about h|
00000840  6f 77 20 6f 6e 20 65 61  72 74 68 20 74 6f 20 77  |ow on earth to w|
00000850  72 69 74 65 20 61 20 20  0d 6d 6f 75 73 65 20 64  |rite a  .mouse d|
00000860  72 69 76 65 72 2e 20 0d  43 6c 69 63 6b 20 61 20  |river. .Click a |
00000870  66 65 77 20 62 75 74 74  6f 6e 73 20 6f 6e 20 74  |few buttons on t|
00000880  68 65 20 6d 6f 75 73 65  20 61 6e 64 20 0d 77 61  |he mouse and .wa|
00000890  74 63 68 20 74 68 65 20  62 69 74 73 20 74 6f 67  |tch the bits tog|
000008a0  67 6c 69 6e 67 20 6f 6e  20 74 68 65 20 74 6f 70  |gling on the top|
000008b0  20 6f 66 20 0d 74 68 65  20 73 63 72 65 65 6e 2e  | of .the screen.|
000008c0  20 0d 57 72 69 74 65 20  74 68 65 20 73 6f 66 74  | .Write the soft|
000008d0  77 61 72 65 20 61 6e 64  20 73 75 62 6d 69 74 20  |ware and submit |
000008e0  69 74 20 74 6f 20 0d 45  55 47 21 20 0d 20 20 20  |it to .EUG! .   |
000008f0  20 0d 48 61 70 70 79 20  63 6f 6d 70 75 74 69 6e  | .Happy computin|
00000900  67 2c 20 0d 20 20 20 20  20 20 20 20 20 20 20 20  |g, .            |
00000910  20 20 20 20 52 2e 50 2e  53 70 72 6f 77 73 6f 6e  |    R.P.Sprowson|
00000920  2e 20 0d 20 0d 4e 4f 57  20 54 48 49 53 20 49 53  |. . .NOW THIS IS|
00000930  20 49 4e 54 45 52 45 53  54 49 4e 47 2e 20 49 20  | INTERESTING. I |
00000940  4a 55 53 54 20 48 4f 50  45 20 54 48 41 54 20 53  |JUST HOPE THAT S|
00000950  4f 4d 45 20 45 55 47 20  4d 45 4d 42 45 52 53 20  |OME EUG MEMBERS |
00000960  57 49 4c 4c 20 54 52 59  20 0d 54 48 49 53 20 4f  |WILL TRY .THIS O|
00000970  55 54 20 41 4e 44 20 53  45 4e 44 20 49 4e 20 54  |UT AND SEND IN T|
00000980  48 45 49 52 20 52 45 53  55 4c 54 53 20 46 4f 52  |HEIR RESULTS FOR|
00000990  20 41 4c 4c 20 54 4f 20  52 45 41 44 2e 0d        | ALL TO READ..|
0000099e
P/+MOUSE1.m0
P/+MOUSE1.m1
P/+MOUSE1.m2
P/+MOUSE1.m4
P/+MOUSE1.m5