Graphics Software and Hardware For RT-11 Systems
Graphics Software and Hardware For RT-11 Systems
A general-purpose graphics package is described that allows the user to generate figures with
a supraset of the basic CalComp plotting subroutines. The software runs under RT·ll on an
LSJ.11 with 28K words of memory. The graphics subroutine library is approximately 200 blocks
long. The plotting tasks are passed over an RS 232 line to a simple extension of an inexpensive
and commercially available graphics controller. The controller implements these tasks as plot-
ting instructions to a color television, a vector display, and a digital plotter. The graphics
subroutines are written in FORTRAN and are invoked by the user as subroutine calls from a
FORTRAN program. The graphics controller is a modified Motorola "Micro Chroma 68 Kit."
The board is based on the 6808 microprocessor and 6847 video controller. It provides eight
graphic modes from 64 by 32 eight-color graphics to 128 by 192 four-color graphics to 256 by 192
two-color graphics. The present software and hardware implements the graphics subroutines as
256 by 192 two-color graphics, as 512 by 512 vector graphics, and as stepping instructions for
a digital plotter.
Copyright 1981 Psychonomic Society, Inc. 255 0005 -7878/81 /020255 -07/00.95/0
256 PALYA AND BROWN
COMMERCIAL SOFTWARE
CUSTOM SOFTWARE
~
Ut.r FORTRAN PERIPHERAL
progr •• 10 dr ••
d"lr,d figure PROCESSOR
PROG.SAV MONITOR
PLOTS IN PROM
,j, ,j,
Gr.phlc,
Ee n t r e lle r RS 232
Ln rt r e l r r e t t en
Routln,
1
J. DISPLAY
DISPLAY DEVICE
AXSLIN
DEVICE SPECIFIC
l~:~~_~~.J SPECIFIC CONTROL
DATA PASSER SOFTWARE
TICS
...... --_ .....,
l..:.~_~.~. j ~
r TV
J
AXSLBL ~ VECTOR J
...·····_·····1
j PLOT i
.. _--_ .......:
t-f CONTROllER
~
~ J
61<
INPUT t-
PLOT
IBUFFER XY
OISPLAY J
TICLBL
:--;~'~-~~~"1
: [F.~:~!J_--_ i ~
Y PLOTTER J
~_._--_ .. ...:
ments the graphics input as 256 by 192 two-color raster and generally unacceptable format. The present library
graphics, as 512 by 512 vector graphics to a Megatek superceded AXIS with AXSLIN (draw axis line), TICS
graphics controller, or as stepping instructions for a (draw tic marks), TICLBL (label the tic marks), and
Houston Instruments DP 7 plotter. AXSLBL (label the axis). These routines provide
The library of graphics subroutines is detailed in the complete and convenient control of each element and
Appendix. They are for the most part hierarchical, with allow the user to create figures with a satisfactory
PLOT as the kernel or basic HCBS subroutine. PLOT appearance.
either simply moves the "pen" to some x,y coordinate SYMBOL and NUMBER are the CalComp subroutines
or draws a line while moving the pen. Virtually all other for drawing symbols and numbers. SYMBOL draws
subroutines call PLOT to implement their specific designated characters, and NUMBER draws the char-
functions. We have supplemented PLOT with MOVE, acters that specify the value of a number. SYMBOL
which also allows control of the line type while moving has been modified to contain a character set with a
the pen. better appearance, as well as a character set for the
AXIS is the CalComp HCBS subroutine that draws vector display. TEXT has been added to the library.
axes, adds tic marks, numbers the tics, and labels the It centers a string of characters between specified points
axes. Unfortunately, it provides only a very restricted and provides any desired character rotation.
258 PALYA AND BROWN
APPENDIX
I PLOT I
I MO VE I
/MOVES PEN - MANIPULATES ORIGIN
X.Y COORDINATE OF DESTINATION
L
L
\\
\
\
\
"'"
L
L
PEN UP I PEN DO~N
REESTABLISH ORIGIN
RETURN CURRENT LOCATION
CLEAR SCREEN
MOVES PEN - MANIPULATES ORIGIN
X.Y COORDINATE OF DESTINATION
PEN UP I PEN DO~N
REESTABL ISH ORIGIN
RETURN CURRENT LOCATION
DESIRED PEN
LINE TYPE (SOLID. DOTTED. DASHED.
BROKEN. DOT-DASH)
I HOME I I TICS I
iii iii' i i
L L
CHANGES SIZE OF FIGURE
PROPORTION OF ORIGINAL
1.28
1.\8
1.88
.:
I. 3. 5. 7. 8. \ 2 3 • 5 8 7
I LINE I
W
a:
0:::
1.20
t- I. 10
1.00
rM ~ :-.: . •
, iii i i
1. 3. 5. 123~567
X-AXI5 SESSIONS
DRRWS R LINE
ARRAY OF X COORDINATES
LRBELS THE RXIS ARRAY OF Y COORDINATES
NUMBER OF DATA POINTS
AXIS ANGLE ARRAY INDEX
AXIS LENGTH LINE TYPE
NUMBER OF CHARACTERS CONNECTED I NOT CONNECTED POINTS
DESIRED TEXT SYMBOLS I NO SYMBOLS
CHARACTER SIZE FREOUENCY OF SYMBOLS
CHARACTER ROTATION OESIREO SYMBOL
DISTANCE FROM AXIS
OFFSET FROM CE~TEREO
·1 SCALE I
PREPROCESSES DRTR
FIRST ELEMENT IN ARRAY
I RX I S I NUMBER OF ELEMENTS IN ARRAY
ARRAY INDEX
LENGTH OF AXIS ON TO WHICH ARRAY MUST FIT
I.
DRRWS R NUMBER
DRAWS AXIS. TIC MARKS. AND LABEL X.Y COORDINATE OF START OF NUMBER
HEIGHT OF NUMBER
X.Y COOROINATE OF AXIS ORIGIN VALUE OF NUMBER
AXIS ANGLE ANGLE OF NUMBER STRING
AXIS LENGTH FORPlfH
VALUE OF FIRST TIC
VALUE INCREMENT PER TIC
NUPIBER OF DECIMAL PLACES
DESIRED TEX INTEGER I REAL
NUMBER OF CHARAC TERS TRUNCATION
GRAPHICS SOFTWARE AND HARDWARE 261
TEXT Is YMBOLI
•
RBCDEFGHIJKLMN
RBCDEFGHIJKLMNOPORSTUV~XYZ
obcdofgh'J'lmnopqr.tuYwxyz
TEXT
• • ,,0,!7'·I$];<-·-
• 0123456789~o(-fJn
><=+-.I/\()[){)
O.O.O.6&~*
DRAWS CENTERED TEXT A~(~(F~HIJKLMN¢~QRSTUVUXYZ