Manual – IPOSplus®
297
23
General information
Assembler – Commands
23
Assembler – Commands
23.1 General information
• The result of the calculation operation is always assigned to the left-hand argument
(always a variable). The second argument (variable or constant) always remains
unchanged. The result of a mathematical operation is always a whole number.
• The bit instances in the variables and constants have the numbers 0 ... 31. The least
significant bit has the number 0.
23.2 Overview of commands
23.2.1 Arithmetic commands
This program group lists all arithmetic and logical commands.
Command
Key points
Description
see
ADD
H + H
H + K
Arithmetical addition
ADD
(page 302)
AND
H & H
H & K
Logical AND
AND
(page 304)
ASHR
ARITHMETIC SHIFT
RIGHT
H = H (Arithmetic >>) H
H = H (Arithmetic >>) K
Arithmetic shift to the right
ASHR
(page 306)
DIV
DIVISION
H / H
H / K
Division
DIV
(page 303)
MOD
MODULO
H mod H
H mod K
Modulo / Division remainder
MOD
(page 304)
MUL
MULTIPLY
H * H
H * K
Multiplication
MUL
(page 303)
NOT
H = NOT(H)
Bit-by-bit negation
NOT
(page 303)
OR
H ¦ H
H ¦ K
Logical OR
OR
(page 304)
SHL
SHIFT LEFT
H = H << K
H = H << H
Bit-by-bit shift to the left
SHL
(page 305)
SHR
SHIFT RIGHT
H = H >> H
H = H >> K
Bit-by-bit shift to the right
SHR
(page 306)
SUB
SUBTRACT
H - H
H - K
Arithmetical subtraction
SUB
(page 302)
XOR
EXCLUSIVE OR
H XOR H
H XOR K
Exclusive OR
XOR
(page 305)
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n