PROGRAH TITLE:
RECOMP II USERS' PROGRAM NO. 1098
AGC-209 Baudot to Decimal Conversion (Floating or Fixed Point)
PROGRAM CLASSIFICATION: Subroutines AUTHOR:
PURPOSE:
DATE:
Mrs. Marcella J. Wulff Aerojet-General Corporation Sacramento, California
A 5 binary bit baudot code at a scale or 38 is converted to a rixed point number, also at a scale of 38, or to a rloating point number.
1 September 1961
Published by RECOMP USERS' LIBRARY
at
AUTONETICS INDUSThIAL PHODUCTS
A DIVISION OF NORTH AHERICAN AVIATION, INC.
'3400 E. 70th street, Long Beach 5, Calif.
DISCLAIMER
Although tt Is assumed that aU the precautions have been taken to check out this program thoroughly, no responsib:Jity is taken by the originator of this program for any erroneous results, misconceptions, or mi';rcpresentations that may ai'pear in this program. Furthermore, no responsibility is taken by Autonetics Industrial Products for the correct rl..'oroductions of this program. No warranty, express or implied, is .extended by the use or application of the program.
TITLE:
LOCATIONS USED:
INTRODUCTION:
METHOD:
USAGE:
AGC-209 Baudot to Decimal Conversion Subroutine (Floating or Fixed Point)
7000 - 7075
1
Have the 5 binary bit baudot code at a scale of 38 in the A register. The sign of the A register and its remaining contents are immaterial. Transfer to the proper location fox' the decimal format desired.
It floating point format is required, the results will be in the A and R registers. If fixed point forma t is required, tIle results will be in the A register. There is no error return. In case some character other than a number were tested, the resul t would still 'be a number, as only 3 or 4 of the 5 bits are tested.
Up to 4 bits are tested. The corresponding
unnormalized floating point number is brought into the A and R registers. If fixed point format is requested, the A register contains the number at binary 38. If floating point for.mat is requested, the number is normalized.
Calling sequence:
Floating Sequence
SLL or SLR
CLA Baudot @ 38
TRA 70000
.d:;T Decimal in A & R
Fixed Point
SLL or SLR
CLA Baudot @ 38
TrW\ 70030
P£T Decimal in A @ 38
Of 8AtA i) PT
'"
fG f t
~ r "'
, ~ I/o'" ~ ~ <I$' ...
:t ."A ",S ~" ~<\ ~\
0 I 0 I ' " 0
0 I I I
2 I 0 a I I
! 0 0
"
0 I1./ !) I 0 I 0
5 I 0 0 o C
(, I 0 I 0 I
7 0 0 I I I
r 0 0
., , 0
~ I I 0 0 0
L10000 C+1570420+0170430 +4210071
to07 0440· +4270061+5770041 +1570420+0170430 L10040 c+4270061 +6470100 +6670200+5177600 +40
OG000 +5700000 +4500000+5100000 L70100
C~c70420+3370450+5017701+0070420 +3370460+5017661 +0070420+3370470 L7
0140 c+5070320+0070420 + 3370510+5010370 +5770310+0070420 . +3370510+5070330 L102O
OC+5770360+0070420 +3370460+5077760 +0070420+337050G +5
0777 40+5770340 L70240 C+0070420+3370510 +5070400+5770300 +OC70420+3370500 +5070350+5770410 L7
030C c+3070520+577co61 + 3070540+5770061 +3070560+5770061 +3070600+5770061 L7
0340 c+307062Ci+577oc61 +3070640+5770(;61 +3070660+5770061 +307
07
CO+577
oo61 L70400 C+307u720+577oc61 +3070740+5770061. +OOGOOOG-OGCOOOG.
+OOOCCOO-O~COO 1L70440
C+O CX)C 000 -0 07 OC7 (j +GOGGe 00-(;000010+OG()()GOO-OOOOO2G
+ocooow-ooooc4cL7
05
00 C+OOGOOCO-GCCO 1 CO +OGOOCOO-cooo20b +OLOOCOO-GOOOCGO +00000GO-OCOO230L7
05 40
-tD OC (!OG 0-8 CCC 230I
c+ooc;ooo O-Goeoe 1 C +GOOGe C() -OC(;(, 02C +ocOGooo-OOOG230