Home » Archimedes archive » Acorn User » AU 1996-06.adf » Regulars » RTR/JoyMGraph
RTR/JoyMGraph
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 1996-06.adf » Regulars |
Filename: | RTR/JoyMGraph |
Read OK: | ✔ |
File size: | 0212 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM>JoyMGraph 20MODE 15 30PRINT"Analogue PC Joystick test on printer port" 40PRINT"Graphic test" 50PRINT"By Mike Cook" 60PRINT"Press Esc to end - Fire to clear" 70PRINT 80 90PRINT" X Y Buttons" 100RECTANGLE 0,0,534,534 110REPEAT 120SYS &43F40,0 TO J% 130Y%=J% AND &FF 140IF (Y% AND &80)<>0 THEN Y%=Y% OR &FFFFFF00 150X%=(J% >> 8) AND &FF 160IF (X% AND &80)<>0 THEN X%=X% OR &FFFFFF00 170B%=(J% >> 16) AND &F 180PRINTTAB(0,8)X%,Y%,B% 190GX%=(X%+68)*4 200GY%=(Y%+68)*4 210CIRCLEFILL GX%,GY%,4 220IF B%<>0 THEN GCOL 0,0 TINT 0:RECTANGLEFILL 0,0,534,534:GCOL 0,RND(40)+23 230*FX19 240UNTIL FALSE 250END 260
�>JoyMGraph � 15 0�"Analogue PC Joystick test on printer port" (�"Graphic test" 2�"By Mike Cook" <'�"Press Esc to end - Fire to clear" F� P Z*�" X Y Buttons" dȓ 0,0,534,534 n� xș &43F40,0 � J% �Y%=J% � &FF �'� (Y% � &80)<>0 � Y%=Y% � &FFFFFF00 �X%=(J% >> 8) � &FF �'� (X% � &80)<>0 � X%=X% � &FFFFFF00 �B%=(J% >> 16) � &F ��0,8)X%,Y%,B% �GX%=(X%+68)*4 �GY%=(Y%+68)*4 �ȏȐ GX%,GY%,4 �6� B%<>0 � � 0,0 Ȝ 0:ȓȐ 0,0,534,534:� 0,�(40)+23 � *FX19 �� � �� �
00000000 0d 00 0a 0f f4 3e 4a 6f 79 4d 47 72 61 70 68 0d |.....>JoyMGraph.| 00000010 00 14 08 eb 20 31 35 0d 00 1e 30 f1 22 41 6e 61 |.... 15...0."Ana| 00000020 6c 6f 67 75 65 20 50 43 20 4a 6f 79 73 74 69 63 |logue PC Joystic| 00000030 6b 20 74 65 73 74 20 6f 6e 20 70 72 69 6e 74 65 |k test on printe| 00000040 72 20 70 6f 72 74 22 0d 00 28 13 f1 22 47 72 61 |r port"..(.."Gra| 00000050 70 68 69 63 20 74 65 73 74 22 0d 00 32 13 f1 22 |phic test"..2.."| 00000060 42 79 20 4d 69 6b 65 20 43 6f 6f 6b 22 0d 00 3c |By Mike Cook"..<| 00000070 27 f1 22 50 72 65 73 73 20 45 73 63 20 74 6f 20 |'."Press Esc to | 00000080 65 6e 64 20 2d 20 46 69 72 65 20 74 6f 20 63 6c |end - Fire to cl| 00000090 65 61 72 22 0d 00 46 05 f1 0d 00 50 04 0d 00 5a |ear"..F....P...Z| 000000a0 2a f1 22 20 20 20 20 20 20 20 20 20 58 20 20 20 |*." X | 000000b0 20 20 20 20 20 20 59 20 20 20 20 20 20 20 20 42 | Y B| 000000c0 75 74 74 6f 6e 73 22 0d 00 64 12 c8 93 20 30 2c |uttons"..d... 0,| 000000d0 30 2c 35 33 34 2c 35 33 34 0d 00 6e 05 f5 0d 00 |0,534,534..n....| 000000e0 78 14 c8 99 20 26 34 33 46 34 30 2c 30 20 b8 20 |x... &43F40,0 . | 000000f0 4a 25 0d 00 82 0f 59 25 3d 4a 25 20 80 20 26 46 |J%....Y%=J% . &F| 00000100 46 0d 00 8c 27 e7 20 28 59 25 20 80 20 26 38 30 |F...'. (Y% . &80| 00000110 29 3c 3e 30 20 8c 20 59 25 3d 59 25 20 84 20 26 |)<>0 . Y%=Y% . &| 00000120 46 46 46 46 46 46 30 30 0d 00 96 16 58 25 3d 28 |FFFFFF00....X%=(| 00000130 4a 25 20 3e 3e 20 38 29 20 80 20 26 46 46 0d 00 |J% >> 8) . &FF..| 00000140 a0 27 e7 20 28 58 25 20 80 20 26 38 30 29 3c 3e |.'. (X% . &80)<>| 00000150 30 20 8c 20 58 25 3d 58 25 20 84 20 26 46 46 46 |0 . X%=X% . &FFF| 00000160 46 46 46 30 30 0d 00 aa 16 42 25 3d 28 4a 25 20 |FFF00....B%=(J% | 00000170 3e 3e 20 31 36 29 20 80 20 26 46 0d 00 b4 12 f1 |>> 16) . &F.....| 00000180 8a 30 2c 38 29 58 25 2c 59 25 2c 42 25 0d 00 be |.0,8)X%,Y%,B%...| 00000190 11 47 58 25 3d 28 58 25 2b 36 38 29 2a 34 0d 00 |.GX%=(X%+68)*4..| 000001a0 c8 11 47 59 25 3d 28 59 25 2b 36 38 29 2a 34 0d |..GY%=(Y%+68)*4.| 000001b0 00 d2 12 c8 8f c8 90 20 47 58 25 2c 47 59 25 2c |....... GX%,GY%,| 000001c0 34 0d 00 dc 36 e7 20 42 25 3c 3e 30 20 8c 20 e6 |4...6. B%<>0 . .| 000001d0 20 30 2c 30 20 c8 9c 20 30 3a c8 93 c8 90 20 30 | 0,0 .. 0:.... 0| 000001e0 2c 30 2c 35 33 34 2c 35 33 34 3a e6 20 30 2c b3 |,0,534,534:. 0,.| 000001f0 28 34 30 29 2b 32 33 0d 00 e6 09 2a 46 58 31 39 |(40)+23....*FX19| 00000200 0d 00 f0 07 fd 20 a3 0d 00 fa 05 e0 0d 01 04 04 |..... ..........| 00000210 0d ff |..| 00000212