IBM 1620 1 Manual page 42

Table of Contents

Advertisement

5, 2, or 1 in the units zone position is converted by
TNS to a Hag bit over the units digit of the numeric
( Q) field except when the zone 2 is followed by a non-
zerO'
digit in the corresponding numerical position. Any
number other than a 5,2,
ar
1 results in no Hag over the
units digit. A 5 or 1 in a units zone pasition of an alpha-
merically coded number field indicates a negative num-
ber read from an input card or paper tape. A 2 in a units
zane
position occurs when an X alone, representing a
negative zero, is read from an input card. This 2, 0 com-
bination is converted to a Hagged
0
by the instruction.
For example, 71727320 becomes 1230. A 2 in the units
zone position with a nanzero digit in the corresponding
numerical position will be ignored
(71727325
becomes
1235).
The digit in each odd-numbered core storage posi-
tion af the alphameric field is transmitted without
change
to'
the corresponding position of the numeric
field, concluding with the digit transmitted to the
high-arder position of the numeric field containing
the Hag that defines the field. Except for the field
Hag, all previous contents of the numeric field are
erased by the new contents. The erasure includes
any sign Hag contained in the units position to desig-
nate a previous negative value. The alphameric field
remains p.nchanged.
Flag bits in the even-numbered zone positions of
the alphameric field are ignored. However, Hag bits
present in the odd-numbered core storage locations
af the alphameric field are transmitted to the corre-
spanding positions of the numeric field.
Because such Hag bits, when transmitted, may affect
the length or sign of the numeric field, all Hag bit
pasitians of the alphameric field should be cleared by
instructians at the beginning af the program. Such
extraneous Hag bits are the result of a previous use
af the care storage lacations and the fact that the
Read Alphamerically instruction ignores the Hag bits
in the read-in field. If Hags are developed in the alpha-
meric field during th6 program, care should be taken
befare the TNS instruction that the Hags dO' not dis-
turb the numeric field.
Execution Time. T
=
160
+
40D
p
fLsec
Transfer Numerical Fill (TNF-73)
Description. The TNF instruction maves and ex-
pands single-digit numeric data with sign, into two-
38
digit alphameric data. The units numeric positian of
the alphameric field is specified by the P address of
the instruction and must always be an add-numbered
care starage location. The units position af the numer-
ical field is specified by the
Q
address.
Transmissian proceeds from the locatian addressed,
thraugh successively lower-numbered core storage
locations, until a Hag bit is sensed in other than the
units positian of the numeric (Q) field. The digits
in the numeric field, including the digit in the high-
arder ( Hagged) positian, are transmitted without
change
to'
the corresponding odd-numbered positions
af the alphameric field. All of the previous contents
af the alphameric field, including Hag bits, are erased
by the new contents. The numeric field remains
unchanged.
In Figure 45, the numeric digits
7,
8, 9 and
I
fill
in the alphameric field locations 16251, 16253, 16255,
and 16257, respectively. The field Hag bit that termi-
nates the transfer remains in the
Q
field and is neither
transmitted nor converted.
A sign flag in the addressed units position of the
numeric field is converted to a 5 in the even-num-
bered units zone positian of the alphameric (P) field.
Absence af a flag in the units position of the numeric
field results in a 7 being placed in the even-numbered
units zone position. All other even-numbered zone
pasitions of the alphameric field are automatically
filled with 7s.
I nstruct ion:
Storage before
Transfer:
P Field
}7
T
7 2
7
3 7
4{
I
6
Core Storage Addresses:
2
5
1
Storage after
Transfer:
~7
7 7 8 7 9 5
Il
Figure 45.
Transfer Numeric Fill
Q
Field
~7
8 9
T}
I
1
3
9
4

Advertisement

Table of Contents
loading

Table of Contents