08.12.2012 Views

Systems Reference Library IBM 1130/1800 Plotter Subroutines

Systems Reference Library IBM 1130/1800 Plotter Subroutines

Systems Reference Library IBM 1130/1800 Plotter Subroutines

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Y<br />

number s of inches per user's unit to be used along<br />

the<br />

i<br />

Y axis.<br />

Xs<br />

specifies 0 a the X value of the present position of the<br />

pen ir<br />

relat iv e to the desired origin, meas ured in the<br />

user's s units.<br />

e<br />

a<br />

Y<br />

specifies sl<br />

o the Y value of the present position of the<br />

pen ici<br />

relat iv e to the desired origin, meas ured in<br />

the<br />

go<br />

s user's units.<br />

n<br />

a<br />

e s<br />

ASSEMBLER<br />

d ti<br />

rag<br />

Standard<br />

e n precision:<br />

at<br />

e<br />

CALL S C A L F<br />

l od<br />

DC A<br />

c r<br />

DC<br />

ov<br />

e<br />

DC<br />

n a<br />

DC<br />

sr<br />

l<br />

tic<br />

Extended precision:<br />

a<br />

o<br />

nb<br />

n<br />

CALL S C A L E<br />

t ls<br />

DC A<br />

oe<br />

tDC<br />

r ta<br />

DC<br />

vh<br />

nDC<br />

a<br />

t<br />

A, rt<br />

oB<br />

, C, and D are the addresses of constants or<br />

idr<br />

variables whose values correspond to X<br />

ae<br />

v<br />

sand<br />

Y<br />

bf<br />

a<br />

,<br />

calls. o Y<br />

lir<br />

s,<br />

Fo r the standard precision c alling sequence,<br />

e ni<br />

, reach e Xconstant<br />

or variable designated by A, B , C,<br />

tea<br />

os<br />

and p D must be two words. T h i s is accomplished<br />

hs<br />

b<br />

, ebest c by using the DEC statement. F o r extended<br />

tprecision, iat l<br />

v eac h constant or variable must be t hree<br />

words. e the<br />

l T h i s is accomplished best by using the<br />

X FL<br />

y et<br />

C statement.<br />

,<br />

a<br />

h<br />

s<br />

a<br />

d<br />

t<br />

GRID e<br />

s<br />

cThe<br />

grid subroutine plots a s t raight line parallel<br />

rto<br />

eit her the X or the Y axis in a positive o r a<br />

inegative<br />

direc t ion with tick marks at regularly<br />

bspaced<br />

intervals. T h e tick marks are 0.10 inch<br />

elong,<br />

wit h one half of the mark on each side of, and<br />

d perpendicular to, t he grid line. T h e programmer<br />

i<br />

n<br />

t<br />

h<br />

e<br />

4<br />

F<br />

O<br />

R<br />

must specify the starting point, t he direction to be<br />

plotted, how f ar to go, and the distance between<br />

tick marks.<br />

It is not required to know eit her the location of<br />

the pen or whether it is up or down when this subroutine<br />

is called. A t the end of the subroutine, t he<br />

pen is lef t in the up position.<br />

— 2 /<br />

Starting<br />

Point 1 1<br />

FORTRAN<br />

Standard precision:<br />

Tick Marks<br />

CA L L F G R I D (I, X, Y, U, N)<br />

Extended precision:<br />

CA L L E G R I D (I, X, Y, U, N)<br />

I is an integer constant or v ariable that specifies<br />

the direc t ion the grid line is to be generated, as<br />

follows:<br />

I = 0 specifies the +X direction<br />

I = 1 specifies the +Y direction<br />

I - 2 specifies the - X direction<br />

I = 3 specifies the - Y direction<br />

Only the last two bits of I are used to det ermine<br />

the direction; therefore, us e of larger numbers<br />

would repeat the instructions. F o r example,<br />

24 or 4 plot the same as 0 (+X direction).<br />

X is a signed real constant or v ariable that<br />

specifies the X value of the grid line starting point,<br />

measured in the us er's units.<br />

Y is a signed real constant or variable that<br />

specifies the Y value of the grid line starting point,<br />

measured in the user's units.<br />

U is a real constant or variable that specifies<br />

the distance between tick marks, measured in the<br />

user's units.<br />

N is an integer constant or v ariable that defines<br />

the length of the gr i d line. N is equal to the number<br />

of tick marks minus one, and must be less than<br />

32768.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!