A-1-12 Special Math Instructions; A-1-13 Floating-Point Math Instructions - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
COMPLE-
COM
MENT
DOUBLE
COML
COMPLE-
MENT
A-1-12
Special Math Instructions
Instruction
Mnemonic
ARITHMETIC
APR
PROCESS
BIT COUNTER
BCNT
A-1-13
Floating-point Math Instructions
Instruction
Mnemonic
FLOATING TO
FIX
16-BIT
FLOATING TO
FIXL
32-BIT
16-BIT TO
FLT
FLOATING
CP1E CPU Unit Software User's Manual(W480)
Variations
Symbol/Operand
@
COM(029)
Wd
Wd: Word
@
COML(614)
Wd
Wd: Word
Variations
Symbol/Operand
@
APR(069)
C
S
R
C: Control word
S: Source data
R: Result word
@
BCNT(067)
N
S
R
N: Number of words
S: 1st source word
R: Result word
Variations
Symbol/Operand
@
FIX(450)
S
R
S: 1st source word
R: Result word
@
FIXL(451)
S
R
S: 1st source word
R: 1st result word
@
FLT(452)
S
R
S: Source word
R: 1st result word
Function
Turns OFF all ON bits and turns ON all OFF bits in Wd.
Wd
Wd: 1
0 and 0
1
Turns OFF all ON bits and turns ON all OFF bits in Wd and Wd+1.
(Wd+1, Wd)
(Wd+1, Wd)
Function
Calculates the sine, cosine, or a linear extrapolation of the source
data.
The linear extrapolation function allows any relationship between
X and Y to be approximated with line segments.
Counts the total number of ON bits in the specified word(s).
N words
Counts the number of
ON bits.
to
S+(N
1)
R
N: Number of words
The number of words must be 0001 to FFFF (1 to 65,535 words).
Function
Converts a 32-bit floating-point value to 16-bit signed binary data
and places the result in the specified result word.
S+1
S
R
Converts a 32-bit floating-point value to 32-bit signed binary data
and places the result in the specified result words.
S+1
S
R+1
R
Converts a 16-bit signed binary value to 32-bit floating-point data
and places the result in the specified result words.
S
R+1
R
Appendices
Binary
result
Floating-point data
(32 bits)
Signed binary data
(16 bits)
Floating-point data
(32 bits)
Signed binary data
(32 bits)
Signed binary data
(16 bits)
Floating-point data
(32 bits)
A-27

Advertisement

Table of Contents
loading

Table of Contents