Appendices
A-92
CJ2 CPU Unit Software User’s Manual
A-2-13 Floating-point Math Instructions
Instruction Mnemonic FUN No. Length (steps)
ON execution time (µs)
Conditions
CJ2H
CPU6@(-EIP)
CJ2M-
CPU@@
FLOATING TO 16-BIT FIX 450 3 to 4 0.13 0.24 ---
FLOATING TO 32-BIT FIXL 451 3 to 4 0.13 0.32 ---
16-BIT TO FLOATING FLT 452 3 to 4 0.13 0.30 ---
32-BIT TO FLOATING FLTL 453 3 to 4 0.13 0.32 ---
FLOATING-POINT
ADD
+F 454 4 to 6 0.24 0.66 ---
FLOATING-POINT
SUBTRACT
–F 455 4 to 6 0.24 0.66 ---
FLOATING-POINT
DIVIDE
/F 457 4 to 6 0.4 0.9 ---
FLOATING-POINT
MULTIPLY
*F 456 4 to 6 0.24 0.66 ---
DEGREES TO RADI-
ANS
RAD 458 3 to 4 2.7 3.3 ---
RADIANS TO
DEGREES
DEG 459 3 to 4 3.0 3.2 ---
SINE SIN 460 3 to 4 3.8 4.3 0° specified
4.5 5.4 45° specified
5.0 6.0 90° specified
HIGH-SPEED SINE SINQ 475 8 to 9 0.59 0.86 0°, 45°, or 90°
specified
COSINE COS 461 3 to 4 3.7 4.3 0° specified
4.4 5.2 45° specified
5.3 6.7 90° specified
HIGH-SPEED
COSINE
COSQ 476 8 to 9 0.59 0.86 0°, 45°, or 90°
specified
TANGENT TAN 462 3 to 4 3.9 4.5 0° specified
6.1 8.2 45° specified
HIGH-SPEED TAN-
GENT
TANQ 477 15 to 16 1.2 1.7 0°, 45°, or 90°
specified
ARC SINE ASIN 463 3 to 4 5.8 7.1 0° specified
24.8 33.0 45° specified
5.6 7.0 90° specified
ARC COSINE ACOS 464 3 to 4 5.3 6.8 0° specified
27.2 34.6 45° specified
6.4 7.1 90° specified
ARC TANGENT ATAN 465 3 to 4 4.0 5.0 0° specified
5.6 7.0 45° specified
SQUARE ROOT SQRT 466 3 to 4 0.42 0.66 ---
EXPONENT EXP 467 3 to 4 3.8 4.5 ---
LOGARITHM LOG 468 3 to 4 5.8 6.5 ---
EXPONENTIAL
POWER
PWR 840 4 to 6 35.7 56.6 ---