textfiles/computers/ASTRESEARCH/0036.tb

32 lines
1.3 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

AST RESEARCH TECHNICAL BULLETIN TB-0036 7-25-84
TESTING OF THE GAME PORT
Depending on the version and type of IBM Diagnostics used to test
AST multifunction boards, the game port is not always recognized.
If the game port option is not recognized, or you're not able to
add it to the IBM Diagnostics Table, an alternative method of
testing is listed below.
This program requires the use of BASICA.COM
10 DEFINT A-Z : KEY OFF : CLS : STRIG ON : SCREEN 2
20 PRINT "X1","Y1","S1";"S3"
30 X1 = STICK(0) : Y1 = STICK(1)
40 A = STRIG(0) : C = STRIG(5)
50 LOCATE 3 : PRINT X1,Y1,A;C
60 GOTO 30
When running the above program, moving the joystick in the X-
plane (left-right) causes a change in the "X1" readout displayed
on monitor, while moving the joystick in the Y-plane (updown)
causes a change in the "Y1" readout. Pressing the switch (either
one or two, depending on your joystick) causes a change in the
"S1" or "S3" readouts from 0 to -1. Note that, depending on the
quality of your joystick, you may not be able to get a zero
reading in the X and Y planes when running the program.