Appendices
A-38
CJ2 CPU Unit Software User’s Manual
A-1-13 Floating-point Math Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
MOVE
FLOATING-
POINT
(SINGLE)
MOVF 469 Transfers the specified 32-bit floating-point number to the speci-
fied destination words.
Output Required
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
32-BIT TO
FLOATING
FLTL
@FLTL
453 Output Required
FLOATING-
POINT
ADD
+F
@+F
454 Output Required
FLOATING-
POINT
SUBTRACT
−F
@−F
455 Output Required
MOVF(469)
S
D
S: 1st source word
D: 1st destination
word
D+1 D
S
S+1
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.
S
R
FLTL(453)
S: 1st source word
R: 1st result word
R+1 R
S
S+1
Signed binary data
(32 bits)
Floating-point data
(32 bits)
Converts a 32-bit signed binary value to 32-bit floating-point
data and places the result in the specified result words.
+F(454)
Au
Ad
R
Au: 1st augend
word
AD: 1st addend
word
R: 1st result word
R+1 R
Au
Ad
Ad+1
+
Au+1
Adds two 32-bit floating-point numbers and places
the result in the specified result words.
Augend (floating-point
data, 32 bits)
Addend (floating-point
data, 32 bits)
Result (floating-point
data, 32 bits)
−F(455)
Mi
Su
R
Mi: 1st Minuend
word
Su: 1st
Subtrahend word
R: 1st result word
R+1
R
Mi
Mi+1
Su
Su+1
−
Subtracts one 32-bit floating-point number from another
and places the result in the specified result words.
Minuend
(floating-point data,
32 bits)
Subtrahend
(floating-point
data, 32 bits)
Result (floating-point
data, 32 bits)