Testing Your Programs; Advanced Features - OKIDATA OKIMATE 20 Handbook

Hide thumbs Also See for OKIMATE 20:
Table of Contents

Advertisement

Testing Your Programs
Start function code test
CHR$(34)
When you want to check a program you've writ-
ten, use thi
s
feature to print all the data, Includ-
ing the prin
t
er commands. Enclose the data you
want printed in quotation marks
.
OKIMATE will
print all no n-printing codes in reverse print, ASCII
decimal values from 00 to 31 as decimal values
64 to 95, and ASCII decimal values from 128 to
159 as decimal values 192 to 223
.
60
Advanced Features
Graphics
Graphics lets you "draw" almost anything with
your printer. In the same way that newspapers
re-
produce photographs, OKIMATE produces a
graphic image with a pattern of tiny dots. Your
program or graphics package tells OKIMATE
where to print each dot. Since even a simple
drawing can consist of many individual dots, the
easiest way for you to create illustrations is with a
graphics software package that manages all those
dots for you. A software package usually lets you
create an image on your computer's screen, save
it on a disk, and print it onto a page
.
This section explains how to program graphic
images on your own, without the aid of software
packages. With the methods described here, you
can write programs for drawing charts, illustra-
tions, decorative borders, and other graphic
designs.
In normal text mode, the computer sends OKI-
MATE ASCII codes that are assigned to particular
characters. For example, CHR$(65) in
Uppercase/
graphics mode represents the capital letter
A.

Advertisement

Table of Contents
loading

Table of Contents