;TRACK1.ACT ;Display the value read from ;port 1 as track-ball values. ;9/87 Written bye Joe McFarland PROC PrintT(BYTE val) ;Binary number print: ;Print byte in base Two. ;Modified to only print 4 LSbits. BYTE mask,n mask=$08 FOR n=0 TO 3 DO IF val&mask THEN Put('1) ELSE Put('0) FI mask==RSH 1 OD RETURN PROC Main() BYTE b,cursor=752,consol=53279 cursor=1 Position(2,3) PrintE("|||LHorizontal Dir 0=left, 1=right") PrintE("||LHorizontal Rate") PrintE("|Vertical Dir 0=up, 1=down") PrintE("Vertical Rate") DO b=Stick(0) Position(2,2) PrintT(b) Until consol<>7 OD cursor=1 RETURN