• Aucun résultat trouvé

PROGRAM 'CLASSIFICATION:

N/A
N/A
Protected

Academic year: 2022

Partager "PROGRAM 'CLASSIFICATION: "

Copied!
5
0
0

Texte intégral

(1)

RECOMP

II USERS' PROGRAM

NO.

1159

PROGRAM TITLE: POINT PLO'l'rER, FIXED POINT

PROGRAM 'CLASSIFICATION:

Subroutine

AUTHOR:

PURPOSE:

DATE:

R. Doyle

To move the pen

(in

the raised posj. tion)

as

fast

as

possible given the desired number of x and

1

plotter inorements (0.01 inoh) as fixed point integers at b 111

39.

The motion is along the diagonal as far as possible followed by motion along a co- ordinate axis the remainder ot the way.

28 November 1962

Published by RECOMP Users' Librar,r

at

AUTONETICS INDUSTRIAL PRODUCTS

A DIVISION OF NORTH AMERICAN AVIATION, INC.

3400

East 70th Street, Long :Beach

5,

California

DISCLAIMER -

Although It I. assumed that all the precaution. have b~~n tlk.n 10 check out this program thoroughly, no responsibility

10 t.k.n by the origin:')t~r of t1i5 progr,:l!ll for flny orroncCUI ratult" mlsc'oncpptions, or mi 'wprQ::nf~t,ons ,1,~iIt m;ly /i.!~p·)':r In this program. F,;rth-rrr('r~!. roo r!~'ip-.1d,.,·ly In h:,:t:'n 1"1 Autonat;c: Induo;trbl Prociu.:ts br tho.! 'o:',r~.:r.~t r~or('lcJu(;t:t,lI'" <:'\f

this program. No warmnty. (';(pr("')s Gr Impll~dl la (.i)(f6f1dad

bV the use or application of the pro~rClm.

(2)

Program Title: Point Plotter, Fixed Point

1. PU~D0SC: To move the pen (in the raised position) as fast as possible

Give~ the desired number of x and y plotter increments (0.01 inch) as fixed point intpg~rs at b -

39.

The motion is alonG the diagonal as far as po~sible followed by motion along a coordinate axis the re- r..ainrler of the way.

2.

~~strictions: The numbers

X

and

Y

should be consistent with the avail-

a~le plottine space.

3. !·:·:~thod

3.1

This routi~e utilizes the full word alphanumeric output feature of Recomp. Thus, we define

?+x • 'Word consisting of eight +X (02

8) plotter commands

p

-x -

II

"

tI tt

-X

( 018)

"

It

P+y

- "

. It It II +Y

(lOB)

t1 n

P-y

It

"

n It -y (aLB)

"

tI

3.2

If X and Y are both zero return is made immediRtely.

3.3

Define

(p +X if P

x .

\

( P -X i f

,

. ~

Tf 'X; .Iy. interchange

.... : ; 4._ 1 j

Further define

+

X>O

Py

X<: 0

P

x

with P

y

N d N s

- -

/'

- \ P +Y if Y/O

I

\!-y

if Y~O and X with Y

) y

I

} X

1- }y I

3.4 rJivide Nd by 8 so that Nd - 8 q + r where 0 ~ r .c.. B. Output P d using PNC. 7760 commarld q times. If r " 0 output P d with PNC 7760 + r

com~3nd; if r - 0 skip this output. Repeat above using N and P •

s s

3.5

?or a discussion of the plotter output commands see Recomp Technical Bulletin No.

24,

paragraphs

4.2

and

w.3. .

L.

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

ordinarily use the ttFloating Point to Plotter Increment Conversion"

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

(3)

Pro8ra~ Title: Point ?lot~er, Fixed Point Page 2

L.I

I;efinition of coordinates:

, ...

,',ncn fClcjnr the ;:>lotter

+x is the eli re c tio n a line is drawn when the drum p\oves do.m

-x

is the direction a line is drawn when the drum moves up

-+~r is :,he d:'rection a line is drawn when tho carriaee rr.oves left

-y is the direction a line is drawn when the carriage moves right

4.2

Calling Seq~ence: With X in A register and Y in It reGister trLl.n3fer to

o~~2in of the suhroutine. X and Y must be fixed point inteeers at a binary scal'3 of 39. After line has been plotted return will be made to

the next location.

,

GLA Y,)

XAR / or any sequence placing X in A and eLA X

v

Y in R

TRA L

o

·RETLJR.~

5.

8odin~ Information

5.1

Locations used: This routine occupies 60

8 locations (i.e., L It destroys both loops and all reGisters. 0

5.2

Constants

L + 12 P

(

0 +X

13 p ,\p

(Alphanumeric words - see 3.1)

-

.. "

Ih

P+y

\

15

.

'0 - . £ . v

V

L 0 + 45 +1 b - 39

46

+7 b - 39

5.3

Erasable Locations

L +

44

o +

46

+ 47

5.4

Unused Location L + 43

o

5.5

This subroutine is re10catable by the me thod of Ar;-076

to L

o + 57).

(4)

?rog~~~ Title: Point Plotter, Fixed Point Page

3

6. ~C·:-.·l!'~: Chc?rl~'3 of Coo~dinate Sy:3tt~m

T:1e c()ordinate syste;, aR defi:1ed by

L.I

is such that, when faci~G the pll)tter, the x axis is f>0siti'/8 upward and .the yaxis is positive to

t~;~ left. :: t is frequently conveniGnt to have the coordinate syste:n

d~fi:1ed. in such a :naJ1;:er that the y axis is pos:i.ti ve upward and the x axis is positive to the right (i.e., a 90 degree clockwise rotation of

t~e Gta.'1dard plottp.~ coordinato system). This result may be achieved by altering th~ fo11owir.e locations to read (in command for~4t):

L o + 12

13 1h IS

20 41020 0 20 41020 - hI 020LLO 0 hl 02040 - 10 20410 0 10 20410 - 04 10201 0

04

10201

(5)

Yi'Ogl"~'11 Title: Point Plott~!', Fixect Foint

OOJO.O 0040.0

+

C:L OO'JO.O -I ("'AX

7

71(C 0 I . 0

+

(LA

l176.O

+ P:~C

7760.0

+

(TV

0010.0

-t Tr~ t\ 66{'-~ ' - J •

a +

CT L \/)0.0 + CLA 7711~

1 .

+

10 OGOO.O +

Tr~ .A. !, CC). 1 + XAR

0000.0

+ TF<A

66°

1

0

+

AD~

7-rG'2

.0 -I- STO

O{'\,-

"-') ~ ~.

0

+ CLA

0000.0 -

CLA

00.0

+ (LA

7760.0 +

TZ~

77l

u

o

+ CLA

0000.0 -

( LA

0000. 1

+ F~)T

7776• 0

+ TPL

(7)7. 0 +

CLA

DOGDeO -

CLA OOry~ .0

+ CLA

77"13. 0

. + TRA

6106.

/'

1 - 24 5122 • 1 - 24

5122 • 1

+

CLA

1772

.0

-.-

XAR uO

.0

.

-

FAD

1020. 1

FAD

1020. 1

0010.0 0050 •0

+

CTL O~O.O + TPL

1760.0 +

XAR

0000.0

+ PNC

7760.0

+ CLA

7l75.

0 + TRA'

7760. 1 +

CLA

7777. 0

+ XAQ

0000.0

10 2 41.0 - 10 20}ll.0 +

SUB

777,).0

+ TPL

7760.0

-

FAD 1 ~0.1

-

FAD

1020.1 +

ADD

l76 5•

O + TZE

776~. 1

-

ALS

02olt.o -

AL:.

020U..0 +

AL~1

o 1.0

+ ADD

666

.0

-

D~) L l~

1

02 .0

-

[)SL 4102.0

+

STO

7766.0

+

7 0 :)0.0

+

XAR

(:000.0

+

TZE oa~7 .1

+ ~~A 6666:g

+ PNC 7~0.0

+ XAR 0000.0

+ TRA

77 5. 0 + + TRA 3 3. 0

0020.0

+

CLA

777 4 • 0

+ rST

7774 •0 +

+ STO CLA

6

·0)~4

7 ]6.1

.0

+

SUB

7717 • 1

+ TPL

66 5. 0

+

rCA

7774.0 +

XAR

00.0 +

FST

7774'.0

+ TRA

7~l·0

+

FCA

7776.0

+"XAR

o .0 +

FST

l676.O

+ FCA 77~4

.0

+

eTl

3 0 •0

+ TRA

77 0.0 003

0 • 0

ool,~6.

0 +

ADD

7775. 0

+ FST

+

(LA

777'0·1 +

CTv

00

1

:0.0

+

SU3 667 5• 0

+ T~11

7765.

1

+ +

XAR Pi'JC

7760.0

_I().O + CLA x;..~

llIb.o uO.O

+

TRA

-'7/'? 0

( u--..

+ ADn 1.77'j.0

+ TZ [ ~~11 .0

+

.A. LS vOG1 .0 + AOc) I (0.0 + ~:;TO

7770 •

0

Références

Documents relatifs

If the breast is pendulous elevate the breast (infra-mammary area/undersurface of the breast). Notice any changes in the breast skin such as dimpling, puckering, or asymmetry..

_ and related program material, nor shall the fact of distribution constitute any such warranty, and no responsibility is assumed by the contributor or COMMON, in

This routine utilizes the full word alphanumeric output feature of Recomp... After line has been plotted return will be made to the next

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

Design of an FTP server would be simpler if all command verbs were the same length, and design of an FTP user would be simpler if either all command verbs were the same length, or

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

Upon my return from the December meeting of Ministers of Finance, I reported that had the federal government continued the revenue guarantee after 1976 as we expected them to,