347
Floating-point Math Instructions Section 5-24
In this case, the input data word, IR 010, contains #0014, and f(0014) = #0726
is output to R, IR 011.
5-24 Floating-point Math Instructions
The Floating-point Math Instructions convert data and perform floating-point
arithmetic operations. CQM1H-series CPUs support the following instructions.
Data Format Floating-point data expresses real numbers using a sign, exponent, and man-
tissa. When data is expressed in floating-point format, the following formula
applies.
Real number = (–1)
s
2
e–127
(1.f)
s: Sign
e: Exponent
f: Mantissa
X
Y
$1F20
$0F00
$0726
$0402
(0,0)
$0005 $0014 $001A $05F0
(x,y)
Instruction Mnemonic Function code Page
FLOATING TO 16-BIT FIX –– 352
FLOATING TO 32-BIT FIXL –– 353
16-BIT TO FLOATING FLT –– 354
32-BIT TO FLOATING FLTL –– 355
FLOATING-POINT ADD +F –– 355
FLOATING-POINT SUBTRACT –F –– 357
FLOATING-POINT MULTIPLY *F–– 358
FLOATING-POINT DIVIDE /F –– 359
DEGREES TO RADIANS RAD –– 360
RADIANS-TO-DEGREES DEG –– 361
SINE SIN –– 362
COSINE COS –– 363
TANGENT TAN –– 364
ARC SINE ASIN –– 365
ARC COSINE ACOS –– 366
AR C TAN GE NT ATAN – – 3 67
SQUARE ROOT SQRT –– 369
EXPONENT EXP –– 370
LOGARITHM LOG –– 371