Sharp OZ-707 Operation Manual - Page 77

Format, Purpose, Remarks

Page 77 highlights

GPRINT p o FORMAT: 1. GPRINT "string" 2. GPRINT expression [; expression; expression; ...] 3. GPRINT Abbreviation: GP. See Also: GCURSOR, PRINT PURPOSE: Displays the specified dot pattern. REMARKS: The GPRINT command displays the specified dot pattern. Each column of bit image data is represented by 8 vertical dots. In format 1, the 8-dot pattern is divided into an upper group of 4 dots and a lower group of 4 dots. Each group of dots is then represented by a hexadecimal number. The string is enclosed by " ". Hex. Digit Dot Pattem Hex. Digit Dot Pattem Hex. Digit Dot Patt.e.-rn Hex. Digit r-----. Dot Pattern ~ ~ ~ ~ 0 4 8 C - r-- ~ ~ ~ ~ 1 5 9 D ... - ---- j-- -.-- ~ ~ ~ ~ 2 6 A E r------ -- - i ; I 3 ~ 7 B F GPRINT "00 00 00 00" Each pair of hexadecimal numbers represents one vertical dot pattem t (of 8 dots). The first number L represents the upper 4 dots. the second number represents the lower 4 dots. 142 Example: ,,-r", 1"""1"TI-.,--,-, "T,- - Represents the upper GPRINT ·OS1448BF48140S" 4-dot pattem III IIII Represents the lower 4-dotpattem IUppe' 4 dot' l Lower 4 dots I Using format 2, GPRINT 8;20;72;191 ;72;20;8 produces the same dot pattern. Specify a semicolon (;) at the end of the string to automatically move the cursor to the next position. In format 2, the vertical 8-dot pattern is specified using a hexadecimal or decimal value. A "weighf is assigned to each dot in the vertical 8-dot pattern, as shown below. -80 ---40 _20 --10 _ 8 --- 4 2 1 Weight of each dot (hexadecimal) - 128 - 64 --- 32 ---16 8 -4 ------ 2 1 Weight of each dot (decimal) Specify the dot pattern with a numeric value equal to the sum of the "weights" of the dots to be displayed. The value may be any number between 0 and 255. In format 3, the previously specified and displayed pattern is displayed without modification. The dot pattern specified in the GPRINT command will be displayed beginning with the 8 dots on and above the display starting point specified by the GCURSOR command. Note: If the GPRINT command is terminated with U ; ", a subsequent GPRINT command takes effect from the next cursor position (the" ; " concatenates the commands). If the GPRINT command is terminated with" : " or by pressing IENTER I, the horizontal position returns to O. 143

  • 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

GPRINT
FORMAT:
1.
GPRINT "string"
2.
GPRINT expression
[;
expression; expression; ...]
3.
GPRINT
Abbreviation:
GP.
See
Also:
GCURSOR, PRINT
PURPOSE:
Displays the specified dot pattern.
REMARKS:
p
o
The GPRINT command displays the specified dot pattern. Each column
of bit image data is represented by 8 vertical dots.
In format 1, the 8-dot pattern is divided into an upper group of 4 dots and a
lower group of 4 dots. Each group of dots is then represented by a
hexadecimal number. The string
is
enclosed by "
".
Dot
Dot
Hex. Digit
Dot
Hex.
Digit
Dot
Hex. Digit
Pattem
Hex. Digit
Pattem
Pattern
Pattern
..
-
r-----
.
0
~
4
~
8
~
C
~
-
r-
-
1
~
5
~
9
~
D
~
...
-
----
j-
-
-.--
2
~
6
~
A
~
E
~
r------
--
-
3
~
7
i
B
;
F
I
--
----
~
-
---
00 00
"
Each
pair
of
hexadecimal
numbers
GPRINT
"00
00
represents
one
vertical dot pattem
t
(of
8
dots)
.
The
first number
L---'-_
--"----'-
______
represents
the
upper
4
dots.
the
142
second number represents
the
lower
4
dots
.
Example:
1"""1
"TI
-.,--,-,
,,-r",
"T,
--
Represents
the
upper
GPRINT
·OS1448BF48140S"
4-dot pattem
I
I
I
I
I
I
I
Represents
the
lower
4-dotpattem
I
Uppe' 4
dot'
l
Lower
4
dots
I
Using format
2,
GPRINT 8;20;72;191 ;72;20;8 produces the same dot
pattern.
Specify a semicolon
(;)
at the end of the string to automatically move
the cursor to the next position.
In
format
2,
the vertical 8-dot pattern
is
specified using a hexadecimal
or decimal value. A
"weighf
is assigned to each dot
in
the vertical
8-dot pattern, as shown below.
-80
-
1
28
---40
-
64
_20
Weight
of
each
dot
---
32
--1
0
-16
Weight of
each
dot
_
8
(hexadecimal)
-
8
(decimal)
4
---
4
-
2
---
2
--
1
--
1
Specify the dot pattern with a numeric value equal to the sum of the
"weights"
of
the dots to
be
displayed. The value may be any number
between 0 and 255.
In
format
3,
the previously specified and displayed pattern
is
displayed
without modification.
The dot pattern specified
in
the GPRINT command will
be
displayed
beginning with the 8 dots on and above the display starting point
specified by the GCURSOR command.
Note:
If the GPRINT command is terminated with
U
;
",
a subsequent GPRINT
command takes effect from the next cursor position
(the"
; "
concatenates the commands). If the GPRINT command
is
terminated
with"
: " or by pressing
I
ENTER
I,
the horizontal position returns to
O.
143