Radio Shack TRS-80 Operation Manual page 70

Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

Computer Graphics
Operation Manual
- - - - - - - - - - T R S - B O
® - - - - - - - - - -
2.
Assign new values for the "current" (x,y) coordinates as
specified by the arguments supplied. SETXY simply sets the
"current" coordinates to the values of its arguments.
SETXYR adds the values of its arguments to the "current"
coordinates to obtain the new coordinates.
Initialization
Before any calls are made to Graphics, the Graphics library
and board must be initialized. A special initialization
routine (GRPINI) is included in the library. A call to
GRPINI must be made as the first access to the Graphics
library.
Example
SAMPLE INITIALIZATION
DIMENSION
V(3~,3~)
CALL GRP IN I
01>
Linking
The Library (GRPLIB/REL) must be linked to any programs that
access the Graphics Subroutines.
You must use the linker
(L8~)
to generate the load module.
Example
L8~
<ENTER>
*SAMPLE:I-N
*GRPHSAM,GRPLIB-S,FORLIB-S,-U
*-E
This example links both the Graphics Library and the FORTRAN
Subroutine Library to the relocatable file GRPHSAM/REL.
In
this example, SAMPLE:I-N is the file name, drive
specification, and switch, respectively; GRPHSAM, GRPLIB-S,
FORLIB-S, and -U are the names of the relocatable modules to
be linked and their respective switches. -E ends the routine
and creates the executable program SAMPLE. The *'s in the
example are prompts for the user -- not data to be entered.
Note: If there are unresolved external references, the
FORTRAN Library may need to be scanned a second time.
- - - - - - - - - l I a d l e l h a e l i - - - - - - - - -
-92-

Advertisement

Table of Contents
loading

Table of Contents