Sharp OZ-707 Operation Manual - Page 102
Pause, Point
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 102 highlights
PAUSE p o FORMAT: 1. PAUSE {expreSSion} [ {expreSSion}] [] stnng , stnng , 2. PAUSE {expreSSion} [. {expreSSion}] [.J stnng , stnng , 3. PAUSE USING "format"; { eXpreSSion} string [{'} ; {expreSSion}] stnng [{,}] ; 4. PAUSE Abbreviation: PAU. See Also: PRINT PURPOSE: Briefly shows information on the display. REMARKS: PAUSE is used to display prompt information, results of calculations, etc. The operation of PAUSE execution of the program continues following a preset interval of about .85 seconds. This command is provided to ensure compatibility with other PC models. It is recommended that you replace it with the PRINT command wherever possible. For the format with the USING command, see the USING command. 192 POINT p o FORMAT: POINT (expression 1, expression 2) Abbreviation: POI. See Also: GCURSOR, PSET, PRESET PURPOSE: Returns the status of a specified dot. REMARKS: POINT returns 1 if the dot specified by coordinates (expression 1, expression 2) is set, and returns zero if it is cleared. If the specified dot is outside the display boundaries, the command returns -1 . The values of expressions 1 and 2 may be within the range of -32768 to 32767. A dot within the display boundaries is addressed only if the value of expression 1 is 0 to 95 and that of expression 2 is 0 to 63. EXAMPLE: 10: CLS : WAIT 3:A = 45 20: LINE (20,10) - (20,41) 30: LINE (80,10) - (80,41) 40: PSET (A,26) 50: B = POINT (A + 1,2S) SO: IF B THEN 150 70: PSET (A + 1,26) 80: PRESET (A, 26) 90: A = A + 1 100: GOTO 50 150: B = POINT (A - 1,26) 1S0: IF B THEN 50 170: PSET (A - 1,26) 180: PRESET (A,26) 190: A = A - 1 200: GOTO 150 Draws two vertical lines. Sets a dot between the two lines. Tests whether the dot on the right side of the active dot is active or not. If it is set, go to line 150. If it is cleared, set it. Inactivates the dot which was first set. Increments the coordinate to address the next dot position. Returns to line 50. Tests whether the dot on the left side of the active dot is active or not. If it is set, go to line 50. If it is cleared, set it. Clears the dot which was first set. Decrements the coordinate to address the preceding dot position. Go to line 150. Executing this program causes a dot to move back and forth between the two vertical lines. 193