• Aucun résultat trouvé

is II

N/A
N/A
Protected

Academic year: 2022

Partager "is II"

Copied!
5
0
0

Texte intégral

(1)

RECOMP II USERS' PROGRAM NO. 1157

PROGRAM TITLE: PLOT X THEN Y, FIXED POINT

PROGR!M CLASSIFICATION: Subroutine

AUTHOR:

PURPOSE:

DATE:

R.

Doyle

To plot a. step in a. bar graph, given the desired number of x and y plotter increments (0.01 inch) as fixed point.

integers. Firs t the pen is moved the presoribed number of

x

units, and then is moved the prescribed number of y

units.

28 November 1962

Published by RECOMP Users' LibraI7

at

AUTONETICS INDUSTRIAL PRODUCTS

A DIVISION OF NORTH AMERICAN AVIATION, INC.

3400

East 70th Street, Long Beaoh

5,

California

DISClAIMER

Although It Is assumed that aU the precautIons have been t,kln to check out this progrJM thoroughly, no responsibility I~ tlken by the cr!gin:Jt:-:r (.If I~~i~j Pro~I,,~m for llnyorronr:oul rosultll, mls-:o!1::'>~t;r)liS, cJr rr:;r<:::HIJ:::ni.;tiolili ~hflt m;lY ,"!~I>~llr 11'1 this prcgrC)!"1. F,;rth rrr('r.~. I",r.: r:';p' y,h::;!V III !;I'~t:'n h'l AutCi"IOt;C-. lI1du~trj..J1 ProriU(ts hi III: ",rt .(~ r"lrJr(lul,Jtf:t:,'1t; '''f this program. No wllrmnfy, (';;pr'~";"; c,r Ifllpll .. d, la tixfGtlued

by the use or application of the prO\3ram.

(2)

Progrw~ Title: Plot X then Y, Fixed Point

1.

2.

3.

3.1

r~rp03e: To plot a step in a bar graph, given the desired n~~ber of x and y plotter increments (0.01 inch) as fixed point integers. First the pen is moved the prescribed number of x units, and then is moved the prescribed number of y units.

Restrictions: The numbers X and Y should be consistent with the avail- able plotting space.

l-1ethod

This routine utilizes the full word alphanumeric output feature of Recomp. Thus, we define

P +X • word consisting of eight +X

(228)

plotter commands

P-x

" " "

II -X

(21 8 )

n

"

P+y · • II tI

" "

+Y (30

8) "

II

P-y

" "

II II -y

(248)

II

"

if

y

~o

if Y ~ 0

3.4

Di vide J X

I

by

8

so that

f

X

1 • 8

q + r where

a

<::. r ~

8.

Output P

x

usingPNC 7760 command q times. If r ;. 0

Output P

x

with p~C ~760 + r command; if r •

a

skip this output.

R~peat above using

1

y

I

and. P y

3~5 For a discussion of the plotter output commands see Recomp Technical Bulletin No.

24,

paragraphs

4.2

and

4.3.

h.

Use: Although by no means necessary, it is intended that one

ordinarily use the "Floating Point to Plotter Increment Conversion"

subroutine to convert floating point data to the form required by this routine.

4.1

Definition of coordinates:

vfuen facing the plotter

+x is the direction a line is drawn when the drum moves down -x is the direction a line is drawn when the drum moves up

+y. is the direction a line is drawn when the carriage moves left -y is the direction a line is drawn when the carriage moves rieht

(3)

Prqgram Title: Plot X .then.Y, Fixed Point Page 2

4.2

Calling Sequence:

With X

in

A

register and

Y

in

R

register trw,sfer to oriGin of the subroutine. X and Y must be fixed point integers at a binary scale o"f )9. After line has been plotted return will be made to the next location.

5.

Codine Information

5.1

Locations used

This routine occupies .

50

0 () locations (from

L

0 to

L

0 +

47).

It

destroys the L and' V loops and all registers.

5.2

Co'nstants

L + 14

P+X

J

0

+ 15

P-x

l

Alphanwneric words, sea ).1

+

16

P+y

j

+ 17 P-y

L + )2

o +7.

+8.

fixed point, b -

)9

))

5.3

Erasable Locations L +)4 to L + 37

o 0

5.4

Unused Location

L

o +

27

"

It H

5.5

Tnis subroutine is relocatable by the method of

AN-076

6. Remark

It may be desired to change the coordinate system. For this purpose it will be noted that the basic pen com~ands are stored in locations L +

14

to L + 17 as follows (refer to

5.2

and 3.1).

o . 0

Defined Octal Alpha

L0cation Coordinate Direction Code Eg,uivalent

L + 12 +X i 22 L

o· 1)

-X t

21 Z

14 +Y ~- 30 0

15

-y - ? 24 H

(Each of these locations contain a word consisting of eieht of the indicated plotter commands.) One need only interchange the contents of these locations

to conform with the desired coordinate system.

(4)

Program "Title: Plot X then I, Fixed Point "Page 3

i·:ord specifically, it is to be noted that the contents of the acc'..Uilulator, upon entry to the subroutine, determine the length and direction (positive or negative) of the line to be plotted first. The plotter commands sto~ed

in

L

+ 12,

13

determine the coordinate direction of this plot. SL~larly,

the 80ntents of R specify the length and direction of the line to be plotted secondly; and the plotter commands stored in

L

+ 14,

15

determine the co-

ordinate direction of this plot. 0 "

(5)

Prog"raTTl Ti tIe: Plot X then Y, Fixed Point

0000.0 0040.0

66 60 0

+ CTl

OOCC.O

+ :'i.t\X 77621 • 0 + XAF~ 0000.0 + Pi,JC

+ CTV 0010.0 + TRA

6

763 •0 ;- CLA 7776.0" + x!\r~ 00.0 "

+ 70 0000.0 + TRA 000.1 + SUB "77-(3.0. + TPL 7760.0 "

" " + + + ADD CLA 7762.0 7760.0 + + STO FST oo!~ 0031~ J.O .0 + + T7 E ClA 77~5. 77

X.

1 1 + + EXT AlS

ll!·O

1 .0

TPL 7766.1 + ClA 777r-.0

t

ADD 776~.0 + STO

77 66.q

+ TRA

6~6.0

+ CLA

77-{~

.0 + CLA

7ll 6•

O + p~,;c 7660 • 0

+

XAR .0

+

TPl 7771 .0 + 70

o

0.0 + TRA

3

03. 0

0010.0

+ CLA

777l.

0 + TRA

llJ1

.1

+ CLA

ll7

.0 + P:-'JC 0.0

+ FST 36.0 + CTl 0020.0 + CTV 093 0 • 0 + TRA 7J60.0 + TYW 2451 .0 + TYvJ 2451 .0

+

FSB 1430.1 + F~"8 1430. 1 + XAR 0614.0 + XAR 0614.0 + DIV

45

12 • 0 + DIV 4512.0 002"0."0

+ CLA 77~4.1 + SUB

7l73.

0

+ TMI 77 4.0 + XAP.

o

00.0

+ CLA

7b6l.

0

+

Pi'JC 7760.0

+ XAR 0 .0 + "TRA 7760.1 + CLA 7774.1 + EXT 7

66

20

+ TZE 77~0.0 + ALS

o .

1 .0 + ADD

l7

2.0 + STO 7

6 6

7. 0

+ CLA 000.0 - CLA

o

00.0

003 0 • 0

+ CLA

l1;75.

1 + XAR 0000.0

+ + CTl ClA 0000.0

'to.O +

- TRA CLA

66

610'), • 0 1 + (lA 0000.0 - CLA 0004.0 - CLA 0000.0 - ClA OO()l •• 0 - CLA 0000.0 - (LA

ood+

.0 + D I v' If ~ I 2 • 0 + OIV l~-12 .0 + FSB "1 30. 1 + F~"t3 1'30. 1

Références

Documents relatifs

J'ai vécu l'expérience dee run* de té B et 3( H â LVRF avec de* chercheur* qui n'ont par craint d'uiiliter mon matériel et d'accepter ma cet laboration. Tardieu et J.L. Ranck,

To guard against accidental erasure of recorded tape during shipping, tape can be packed with bulk spacing (such as wood) between it and its shipping

subroutine to convert floating point data to the form required by this routine.. After line has been plotted return will be made

Zaprionus indianus is assigned to the subgenus Zaprionus, species group armatus and species subgroup vittiger (Chassagnard, 1988; Chassagnard and Tsacas, 1993).. We provide here

increasingly thought of as bitwise contiguous blocks of the entire address space, rather than a class A,B,C network. For example, the address block formerly known as a Class

Segmentation consists of composing two or more new PDUs (Derived PDUs) from the PDU received. The PDU received may be the Initial PDU, or it may be a Derived PDU. The

The unfortunate outbreak of war made i t im- mediately imperative for my Ministers to take extraordinary measures for the defence of Canada and for the

They also built on the work we've done through the last decade to open up our province, attract new investment and support public services.. Since 2001 capital spending