Sharp OZ-707 Operation Manual - Page 102

Pause, Point

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128

PAUSE
FORMAT:
1.
PAUSE {expreSSion} [ {expreSSion}]
[]
stnng
, stnng
,
2.
PAUSE {expreSSion}
[.
{expreSSion}]
[.J
stnng
, stnng
,
3.
PAUSE USING "format";
4.
PAUSE
Abbreviation:
PAU.
See
Also:
PRINT
PURPOSE:
{
eXpreSSion}
[{'}
{expreSSion}]
[{,}]
string
;
stnng
;
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
p
o
POINT
FORMAT:
POINT (expression
1,
expression 2)
Abbreviation:
POI.
See
Also:
GCURSOR, PSET, PRESET
PURPOSE:
Returns the status of a specified dot.
REMARKS:
p
o
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