Sharp OZ-707 Operation Manual - Page 103

Preset, Print

Page 103 highlights

P PRESET D FORMAT: PRESET (expression 1, expression 2) Abbreviation: PRE. See Also: PSET, GCURSOR, POINT PURPOSE: Clears (resets) a dot at the specified coordinates on the display. REMARKS: PRESET clears the dot at the specified (expression 1, expression 2). 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 20: LINE (6,0) - (90,63), BF 30: FOR 1=-1 TO 1 STEP 2 40: FOR X = -25 TO 25 STEP 0.5 50 : Y = I :I( SQR ABS (25 :I( 25 -X :I( X) 60: PRESET (X + 48, Y + 31) 70: NEXT X : NEXT I 80: WAIT: GPRINT Executing this program draws a circle within a solid rectangule. 194 PRINT P D FORMAT: 1. PRINT {esxtnpnrgession} [ , {esxtnpnrgession}] [,J 2. PRINT {esxtnpnrgession} [., {esxtnpnrgession}] [.,J 3. PRINT USING "format"; { estXnpnrgeSSion} [{';} {esxtnpnrgession}] [{';}] 4. PRINT Abbreviation: P. See Also: LPRINT, PAUSE, USING, WAIT, LOCATE PURPOSE: Displays information. REMARKS: PRINT displays prompt information, results of calculations, etc. If the start position is specified by the LOCATE statement, the data will be displayed from the specified location. If a comma (,) or semicolon (;) is at the end of the statement, the contents will be displayed continuously. Format 1 displays as follows: If the expression is numeric, the value is shown from the right margin of the display. If it is a string, it is shown from the left margin of the display. 10: PRINT 1234 20: PRINT "ABCD" RUN A:> BeD 1234 If a numerical value fits on one line of the display, it will be displayed from the right margin. If it does not fit on one line, it will be displayed from the left margin and continued on the following line(s}. Character strings will be displayed from the left margin and continued on the following line(s}. 195

  • 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

PRESET
FORMAT:
PRESET (expression
1,
expression
2)
Abbreviation:
PRE.
See
Also:
PSET, GCURSOR, POINT
PURPOSE:
Clears (resets) a dot
at
the specified coordinates on the display.
REMARKS:
PRESET clears the dot at the specified (expression
1,
expression 2).
P
D
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
20:
LINE (6,0) - (90,63),
BF
30:
FOR
1=-1
TO 1 STEP 2
40:
FOR
X
=
-25
TO
25
STEP 0.5
50
: Y
=
I
:I(
SQR
ABS
(25
:I(
25
-X
:I(
X)
60:
PRESET
(X
+
48
, Y
+
31)
70: NEXT X : NEXT I
80:
WAIT:
GPRINT
Executing this program draws a circle within a solid rectangule.
194
PRINT
FORMAT:
1 PRINT {expression} [ {expression}]
[J
.
stnng
, stnng
,
2
PRINT {expression}
[.
{expression}]
[.J
.
stnng
, stnng
,
3.
PRINT USING "format";
{
eXpreSSion}
[{'}
{expression}]
[{'}]
stnng
;
stnng
;
4.
PRINT
Abbreviation:
P.
See
Also:
LPRINT, PAUSE, USING, WAIT, LOCATE
PURPOSE:
Displays information.
REMARKS:
PRINT displays prompt information, results of calculations, etc.
P
D
If the start position
is
specified by the LOCATE statement, the data will
be displayed from the specified location.
If a comma
(,)
or semicolon (;) is at the end of the statement, the
contents will be displayed continuously.
Format 1 displays as follows:
If the expression is numeric, the value is shown from the right margin
of the display. If it is a string,
it
is shown from the left margin of the
display.
10: PRINT 1234
20: PRINT "ABCD"
RUN
ABeD
:>
1234
If a numerical value fits on one line of the display, it will
be
displayed
from the right margin. If it does not fit on one line, it will
be
displayed
from the left margin and continued on the following line(s}. Character
strings will be displayed from the left margin and continued on the
following line(s}.
195