Sharp OZ-707 Operation Manual - Page 77
Format, Purpose, Remarks
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
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