Control Data 3100 Reference Manual page 158

Computer system
Hide thumbs Also See for 3100:
Table of Contents

Advertisement

Example:
LDA
APRESMOI
DATA
CONS
OCT
10, 11, 12, 13
PRG
*
STA
LEDELUGE
A data area named CONS is reserved and the octal constants 10, 11, 12, and 13 are
loaded into the four words in this area. In the source program, STA LEDELUGE would
appear in the next location after LDA APRESMOI.
Constants
Octal, decimal, and BCD constants may be inserted in a COMPASS program by using
the pseudo instructions listed below. Location terms may be used and the address field
may extend to column 72, if necessary.
OCT
ml,m2, ... ,mn-
inserts octal constants into consecutive machine words. A location
term is optional; if present, it will be assigned to the first word. The address field con-
sists of one or more consecutive subterms, separated by commas. Each sub term may
consist of a sign (+or - or none), followed by up to eight octal digits. Each constant is
assigned to a separate word. If a location term is present, it is assigned to the first word.
If less than eight digits are specified, the constant is right-justified in the word and
leading zeros are inserted.
DEC m1,m2, ... , mn-
inserts 24-bit decimal integer constants in consecutive machine
words. The D and B scaling is identical to the DECD scaling, but only positive integer
values less than 2
33
may be used. If a location term is present, it is assigned to the first
constant.
DECO M1,m2, ... ,mn-
converts decimal constants to equivalent 48-bit binary values and
stores them in consecutive groups of two machine words. Each constant may be written
in either fixed or floating point format.
The decimal numbers to be converted are written in the address field of the DE CD
instruction as follows:
Floating Point Constant format consists of a signed or unsigned decimal integer of 14
digits. It is identified as a floating point constant by a decimal point which may appear
anywhere within the digital string. A decimal scale factor indicated by D ± d is per-
mitted. The result after scaling must not exceed the capacity of the hardware (approxi-
mately 10
±308).
Fixed Point Constant format is similar to that of the DEC single precision constants.
Up to 14 decimal digits may be specified, expressing a value the magnitude of which is
less than
247.
Decimal and binary (B± b) scale factors may be used. Low order bits are
not lost; the signed 48-bit binary result is stored in two consecutive computer words.
No spaces may occur within a number, including its associated scale factors, since a space
indicates the end of the constant. Plus signs may be omitted. Any number of constants
may appear in a DE CD instruction. Successive constants are separated by commas.
8-14

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 3100 and is the answer not in the manual?

Questions and answers

Table of Contents