115
Floating-point Math Instructions
Section 3-13
3-13 Floating-point Math Instructions
FLOATING
POINT DIVIDE
FDIV
@FDIV
079
Output
Required
BIT COUNTER
BCNT
@BCNT
067
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
FLOATING TO
16-BIT
FIX
@FIX
450
Output
Required
FLOATING TO
32-BIT
FIXL
@FIXL
451
Output
Required
16-BIT TO
FLOATING
FLT
@FLT
452
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
FDIV(079)
Dd
Dr
R
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
R+1 R
Dd+1 Dd
Dr+1 Dr
Quotient
Divides one 7-digit floating-point number by another. The floating-
point numbers are expressed in scientific notation (7-digit mantissa
and 1-digit exponent).
BCNT(067)
N
S
R
N: Number of
words
S: 1st source
word
R: Result word
S+(N 1)−
to
R
Counts the total number of ON bits in the specified word(s).
N words
Counts the number
of ON bits.
Binary result
FIX(450)
S
R
S: 1st source
word
R: Result word
S+1 S
R
Signed binary data
(16 bits)
Floating-point data
(32 bits)
Converts a 32-bit floating-point value to 16-bit signed binary data and
places the result in the specified result word.
FIXL(451)
S
R
S: 1st source
word
R: 1st result word
S+1 S
R+1 R
Signed binary data
(32 bits)
Floating-point data
(32 bits)
Converts a 32-bit floating-point value to 32-bit signed binary data and
places the result in the specified result words.
S
R
FLT(452)
S: Source word
R: 1st result word
R+1 R
S
Signed binary data
(16 bits)
Floating-point data
(32 bits)
Converts a 16-bit signed binary value to 32-bit floating-point data and
places the result in the specified result words.