Sharp OZ-707 Operation Manual - Page 75

Gcursor

Page 75 highlights

GCURSOR p FORMAT: GCURSOR (expression 1, expression 2) Abbreviation: GC. See Also: LOCATE, GPRINT PURPOSE: Specifies the starting point of dot graphics display. REMARKS: GCURSOR specifies the display starting point for the dot pattern to be displayed by the GPRINT command. The screen consists of 96 columns and 64 rows of dots, which can be addressed by column numbers 0 to 95 and row numbers 0 to 63. Any dot on the screen can therefore be addressed as a starting point by specifying the column number with expression 1 and the row number with expression 2. o 95 o _ ~L The values of expressions 1 and 2 may range from -32768 to 32767. It should be noted, however, that if the value of expression 1 is outside the range of 0 to 95 or that of expression 2 is outside the range of 0 to 63, the display starting point will become a virtual point which is outside the screen boundaries. Location (0,7) is automatically assumed as the display starting point if the RUN command is executed or ISHIFT II CeCE I are pressed. If a program is started with GOTO, only the row number specified by this command is maintained, with the column number automatically reset to zero. 138 EXAMPLE: 5: CLS:WAIT 10: GCURSOR (40,30) 20: GPRINT "1824A2F1A22418" This program prints the following dot pattern near the center of the screen (the displlY starting point indicated by the shaded box is not displayed): Display starting point (40.30) 139

  • 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

GCURSOR
FORMAT:
GCURSOR (expression
1,
expression
2)
Abbreviation:
GC.
See
Also:
LOCATE, GPRINT
PURPOSE:
Specifies the starting point of dot graphics display.
REMARKS:
GCURSOR specifies the display starting point for the dot pattern to
be
displayed by the GPRINT command.
The screen consists of 96 columns and 64 rows of dots, which can
be
addressed by column numbers 0
to
95 and row numbers 0 to 63. Any
dot on the screen can therefore
be
addressed as a starting point by
specifying the column number with expression 1
and
the row number
p
with expression
2.
o
95
o
~L-
________________
~
The values of expressions 1 and 2 may range from -32768 to 32767.
It should be noted, however, that if the value of expression 1 is outside
the range of 0 to 95 or that of expression 2
is
outside the range of 0
to
63, the display starting point will become a virtual point which is
outside the screen boundaries.
Location (0,7)
is
automatically assumed as the display starting point
if
the RUN command
is
executed or
I
SHIFT
II
CeCE
I
are pressed.
If a program is started with GOTO, only the row number specified by
this command
is
maintained, with the column number automatically
reset to zero.
138
EXAMPLE:
5:
CLS:WAIT
10:
GCURSOR
(40,30)
20:
GPRINT
"1824A2F1A22418"
This program prints the following dot pattern near the center of the screen (the dis
pllY
starting point indicated
by
the shaded box is not displayed):
Display starting point (40.30)
139