• Aucun résultat trouvé

is II

N/A
N/A
Protected

Academic year: 2022

Partager "is II"

Copied!
10
0
0

Texte intégral

(1)

RECOMP II USERS' PROGRAM NO. 1109

PROGRAM TITLE: OUTPUT SUBROUTINE

PROGRAM CLASSIFICATION: Subroutines

AUTHOR:

'J. R. Wall

Aurora Gasoline Company

PURPOSE: To provide an output subroutine which has fewer restrictions, is faster, and takes less space than AN-015.l and AN-016.

DATE:

25 October 1961

Published by RECOMP Users' Library

at

AUTONETICS INDUSTRIAL PRODUCTS

A DIVISION OF NORTH AMERICAN AVIATION, INC.

3400 E. 70 Street, Long Beach

5,

Calif.

DISCLAIMER

Alt~ough it is assumed that all the precautions have been taken to chock out this program thoroughly, no responsibility is taken by the originator of this program for any erroneous results, misconceptions, or misrepresentations that may appear In this program. Furthermore, no responsibility is taken by Autonetics Industrial Products for the correct reproductions of this program. No warranty, express or implied, is extended .by the use or appUcation of the proor~

(2)

OUTPUT SUBROt1.l'INE

Purpose

To t'ype, in a variable fixed point format, a rounded decimal number which is located

in

the A and R registers in binary form. If the number in A is floating point then R holds the exponent. If the number in A is fixed point then R holds the scale factor at a binary scale of

39.

The L and V loops are, not destroyed and the subroutine may be entered from the loops.

Calling Sequence

The calling sequence for this subroutine is different than that used for AN-015.1 and AN-016. This change was made so that the subroutine may be used conveniently for SNAP programming. The number must be in the A register with either its exponent. or scale factor in R at a binary scale of

39.

LOCATION ALPHA CODE

LEFT HALF COMMAND

OP ADDR

TRA OUTPUT

PZE LLRR.O

RIGHT HALF COMMAND

OP ADDR

xx

CODE

XX EXIT

ALPHA and CODE are not necessarily sequential, locations. CODE must not be a high speed loop address but ALPHA can be a loop address. LL and RR are two octal digits each and

~pecify the number of digits to be typed to the left of the decimal point and right of the decimal respectively. EXIT is the address of the next instruction to be executed after leaving the subroutine and can be a high speed loop address. The OP codes for the right half commands are immaterial.

Restrictions

LLfRR ~ 11 (Decimal) - This can be changed by extending a table of constants in the sub- routine. See the coding sheets for details.

Error Messages

If LLfRR> 11, computer types: LR TOO BIG

and the subroutine exits back to the main program. (No Halt)

If the number to be typed has more digits to the left of the decimal than LL, computer types: TOO BIG

and the subroutine exits back to the main program. (No Halt) Method

The number is first normalized, rounded depending on the num'Qer of digits to be typed to the right of the decimal point, converted to a fixed point fraction, and then con-' verted to BCD and typed.

Space Required

The subroutine occupies 112 full 'Words of memory including 16 'Words for temporary storage of the L and V loops. If the contents of L and V need not be saved the program can be . modified such that it occupies 96 words of memory.

(3)

Erasable Locations (0050 -0057)8

(0065)8' (0150-0157)8 Timing

For·normalized numbers,. entering the subroutine from the loops, and exiting to the loops, the approxima.te timing, not inc+u~ing the type out time, is given by:

time (milliseconds).

397. t

-30.1 xL

/-.28.9

x R

t 0.9

x'L x R

Typing time can be estimated. by: .

time (seconds):

(~fRf3)

x

tim:a(se~ondS)

c rac er

A eleven digit number takes approximately

750

ms. for conversion to BCD.

Relocation

The subroutine is relocatable and uses a modified AN-004 Subroutine Relocation Utility . Routine • The subroutine must be" relocated mod

8

but cannot be relocated to any address

ending "in 10.0.

If

this is attempted an'appropriate error message is typed. To relo- cate the subroutine see AN-004 for details.

- 2 -

(4)

ANALYST

ABSOLUTE LOCATION

FORM 1498

ABSOLUTE

ADDRESS

AURORA GASOLINE COMrANY 15911 WYOMING

DETROIT 38, MICHIGAN Output Subroutine

J. R. Wall

RECOMP II COD I NG SH EET SYMBOLIC

OPRN ADDRESS

PAGE

1

OF 7

.,..:...===

JOB NO.

DATE

10-25-61

NOTES REMARKS

(5)

PROGRAM NO.

ANALYST

ABSOLUTE LOCATION

FORM 1498

ITLE

ABSOLUTE

OPRN ADDRESS

AURORA GASOLINE COMPANY 15911 WYOMING

DETROIT 38, MICHIGAN Output Subroutine

. J .. R. Wall

RECOMP II COD I NG SH EEl SYMBOLIC

OPRN ADDRESS

PAGE 2 OF 7

JOB NO.

DATE

10-25-61

NOTES REMARKS

(6)

AURORA GASOLINE COMPANY 15911 WYOMING

DETROIT- 38

I

MICHIGAN

PAGE 3 OF 7

~"--- =======;c==:::==::=====================================;==:=====~=======

~ __ /~--N6-. I TLE JOB NO.

ANALYST

ABSOLUTE LOCATION

FORM 14118

ABSOLUTE

ADDRESS

Output Subroutine

DATE

J. R. Wall 10-25-61

RECOMP II COD I NG SH EET SYMBOLIC

NOTES

ADDRESS REMARKS

(7)

AURORA GASOLINE COMPANY 15911 WYOMING

DETROIT 38, MICHIGAN

PAGE 4 OF 7

P=R=OG=R=AM=NO=.========~IT=LE==================================================='~JO~B~N~O=.=======---- ANALYST

'ABSOLUTE LOCATION

FORM 1498

ABSOLUTE

Output Subroutine

'J. 'R. Hall

RECOMP II COD I NG SH EET

OPRN ADDRESS

DATE

10-25-61

NOTES REMARKS

(8)

AURORA GASOLINE COMPANY

15911

WYOMING

DETROIT

38,

MICHIGAN

PAGE

5

OF

7

=---

pr0\M NO. ITLE JOB NO.

Output Subroutine

ANALYST DATE

J.

R. lval1 10-25-61

RECOMP II CODING SHEET

ABSOLUTE ABSOLUTE

LOCATION NOTES

ADDRESS OPRN ADDRESS REMARKS

FORM 1496

(9)

PROGRAM NO.

ANALYST

ABSOLUTE LOCATION

FORM 1496

ITLE

ABSOLUTE

AURORA riA~oLINE COMPANY

15911 ~YOMING

DETROIT 38, MICHIGAN Output Subroutine

. -J. R. Wall

RECOMP II CODING SHEET

OPRN ADDRESS

PAGE 6

OF

7

JOB NO.

DATE

10-25-61

NOTES REMARKS

(10)

ANALYST

ABSOLUTE LOCATION

FORM 1496

ABSOLUTE

AURORA GASOLINE COMPANY 15911 WYOMING

DETROIT 38, MICHIGAN Output Subroutine

J.

R. Wall

RECOMP II COD I NG SH EET

OPRN ADDRESS

PAGE

7

OF

7

IJOB NO.

,DATE

10-25-61

NOTES REMARKS

Références

Documents relatifs

La transición a la democracia que se intentó llevar en Egipto quedó frustrada en el momento que el brazo militar no quiso despojarse de sus privilegios para entregarlos al

L’objectiu principal és introduir l’art i el procés de creació artística de forma permanent dins l’escola, mitjançant la construcció d’un estudi artístic

L’ inconformisme i la necessitat d’un canvi en la nostra societat, em van dur a estudiar més a fons tot el tema de la meditació, actualment sóc estudiant d’últim curs

Paraules clau—Oracle Database, base de dades relacional, sistemes distribuïts, sistemes de replicació, DataGuard, màquines virtuals, entorn de replicació, arquitectura

Si bien Salem’s Lot parece haber perdido también parte de esta iconografía más clásica, en lo que se refiere a la aparición del lobo como criatura afín al

también disfruto cuando una parte de la clase opina algo mientras la otra opina lo contrario y debatimos mientras llegamos a una conclusión acerca del poema.”; “he

Zelda se dedicó realmente a realizar todas estas actividades, por tanto, mientras que en la novela que ella misma escribió vemos el deseo de Alabama de dedicarse y triunfar, por

Aunque a priori pueda sonar algo complejo e incluso un poco abstracto, este trabajo pretende hacer un análisis de los productos resultantes de la secuencia didáctica