A-39
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-13 Floating-point Math Instructions
FLOAT-
ING-
POINT
MULTIPLY
*F
@*F
456 Output Required
FLOAT-
ING-
POINT
DIVIDE
/F
@/F
457 Output Required
DEGREES
TO RADI-
ANS
RAD
@RAD
458 Output Required
RADIANS
TO
DEGREES
DEG
@DEG
459 Output Required
SINE SIN
@SIN
460 Output Required
HIGH-
SPEED
SINE
SINQ
@SINQ
475 Output Required
COSINE COS
@COS
461 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
Md
Mr
R
*F(456)
Md: 1st
Multiplicand word
Mr: 1st Multiplier
word
R: 1st result word
R+1
R
Md
Md+1
Mr
Mr+1
Result (floating-point
data, 32 bits)
Multiplier
(floating-point data,
32 bits)
Multiplicand
(floating-point
data, 32 bits)
Multiplies two 32-bit floating-point numbers and places
the result in the specified result words.
×
/F(457)
Dd
Dr
R
Dd: 1st Dividend
word
Dr: 1st Divisor
word
R: 1st result word
R+1
R
Dd
Dd+1
Dr
Dr+1
÷
Divides one 32-bit floating-point number by another and places
the result in the specified result words.
Dividend
(floating-point data,
32 bits)
Divisor
(floating-point data,
32 bits)
Result
(floating-point data,
32 bits)
RAD(458)
S
R
S: 1st source word
R: 1st result word
R+1 R
S
S+1
Result (radians, 32-bit
floating-point data)
Source (degrees, 32-bit
floating-point data)
Converts a 32-bit floating-point number from degrees to
radians and places the result in the specified result words.
DEG(459)
S
R
S: 1st source word
R: 1st result word
R+1 R
S
S+1
Converts a 32-bit floating-point number from radians to
degrees and places the result in the specified result words.
Source (radians, 32-bit
floating-point data)
Result (degrees, 32-bit
floating-point data)
SIN(460)
S
R
S: 1st source word
R: 1st result word
R+1 R
SS+1SIN
Calculates the sine of a 32-bit floating-point number (in
radians) and places the result in the specified result words.
SINQ (475)
S
R
S: 1st source word
R: 1st result word
R+1 R
S
S+1SIN
Calculates the sine of a 32-bit floating-point number (in
radians) and places the result in the specified result words.
COS(461)
S
R
S: 1st source
word
R: 1st result word
R+1 R
S
S+1
COS
Calculates the cosine of a 32-bit floating-point number (in
radians) and places the result in the specified result words.