A short BASIC program that allows you to move the cursor around your C64 screen with a joystick or trackball. A very useful program, since the cursor control keys on the Commodore 64 suck.

5 S=49152
10 FORA=STOS+84:READB:POKEA,B:C=C+B:NEXT
15 IFC<>8486THENPRINT"{CLR}TYPING ERROR!":STOP
20 POKES+7,S/256:POKES+2,S-256*PEEK(S+7)+13
25 SYSS
30 DATA 120,169,13,141,20,3,169,192,141,21,3
35 DATA 88,96,230,2,165,2,41,3,208,61,173
40 DATA 0,220,73,255,168,41,1,240,2,208,28
45 DATA 152,41,2,240,2,208,24,152,41,4,240
50 DATA 2,208,20,152,41,8,240,2,208,16,152
55 DATA 41,16,240,23,208,12,169,145,44,169,17
60 DATA 44,169,157,44,169,29,44,169,13,160,1
65 DATA 132,198,141,119,2,76,49,234

from COMPUTE!'s Gazette, December 1985
The program works with any trackball or joystick plugged into port 2. You can turn Trackmouse off by hitting Run/Stop-Restore and turn it back on by typing SYS49152. Also, pressing the fire button performs the same action as hitting the Return key.

Log in or register to write something here or to contact authors.