A-1-13 Floating-Point Math Instructions - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents