80-Bus News

  

March-April 1983, Volume 2, Issue 2











Page 29 of 55











GRAPHPAC COMMAND MANUAL Page 1

GRAPHPAC

The documentation for Graphpac is in two parts.

The Command Mannal.

This gives the general description of the commands and features provided by all current versions of Graphpac.

The System Manual.

This gives specific details for implementing Graphpac on your computer and a summary of relevant commands.

Copyright and right to make backup copies

‘On receipt of this computer program and associated documentation, you are granted a non-exclusive license to execute the enclosed software and to make backup copies of the computer program for single user use only. Mbaslink and Graphpac are subject to copyright and all rights are reserved.

Disclaimer No representations or warranties with respect to the contents hereof

are made and any implied warranties of merchantability or fitness for any particular purpose are specifically disclaimed.

INDEX

MANUAL DESCRIPTION AND COPYRIGHT NOTICE INTRODUCTION TO GRAPHPAC GRAPHPAC COMMANDS

PSET

PRESET and PTEST

PEN COMMANDS

LINE DRAWING COMMANDS

CAP COMMAND

SCREEN MANAGEMENT COMMANDS BAR GRAPH COMMANDS

10 DISK HANDLING COMMANDS

10 GRAPHIC OPTION COMMANDS

12 SPOKE

en WN AN EINE OO

GRAPHPAC COMMAND MANUAL (c) 1983 Gemini Microcomputers Ltd.

ste ea

GRAPHPAC COMMAND MANUAL Page 2

GRAPHPAC COMMAND MANUAL

Introduction.

Graphpac allows the user to SET, RESET, INVERT or TEST any pixel on the screen. Routines are also supplied to draw lines using rectangular (based on X,Y values) or polar co-ordinates (described by an angle and distance). This manual gives a general description of Graphpac features and commands in a similar format and notation to Microsoft Mbasic documentation. An entry is given for each command showing the syntax uged.

Plotting on the screen.

The resolution of the graphics is determined by the hardware used and can range from 96 pixels across the screen by 46 pixels down, to 512 X 256 or more.

Graphpac commands control an invisible graphics cursor, the position of this cursor is described by X,Y co-ordinates. Values supplied to Graphpac are treated as signed 16-bit values between -32768 and +32767. A screen X coordinate value of +32767 is the maximum distance to the right of the screen that the graphics cursor may be placed. Negative values are to the left of the screen, -32768 being the maximum. It is not necessary to use the INT function before passing a value to Graphpac.

Note that if Graphpac is used with Microsoft Mbasic or BASIC-80, numbers between +32768 and +65535 will be accepted. Graphpac will interpret these values and all values in between as negative numbers between --32768 and “1.

As a general rule numbers greater then 32767 should not be passed to Graphpac.

GRAPHPAC COMMANDS

Not all the commands described in this document will be available in the software supplied. Some would be unsuitable or impractical on your particular hardware, in other cases they may juat be unnecessary. The documentation specific to your hardware (Graphpac System Manual) will inform you which commands are available.

Graphpac commands are stored in memory usually as normal ASCII

characters and not as one byte tokens which represent normal BASIC reserved words.

The PLOT DRAW and DRAWTO commands may have more than one set of values passed at a time by separating each set with a semi colon.

i-e, 10 DRAWTO 0,0 ; 20,0 3; 20,20 ; 0,20

PSET (pixel set)

Graphpac format: PSET X,Y

Purpose: To SET a pixel.

Remarks:

X and Y are graphic co-ordinates. If a pixel is already bright there will be no change.

29


This is an OCR’d version of the scanned page and likely contains recognition errors.











Page 29 of 55