Arithmetic operations
Operation
Operand
Function
ENT
–
This causes a stack lift into ACCUs 3 and 4:
<ACCU 4> := <ACCU 3>
<ACCU 3> := <ACCU 2>
<ACCU 2> := <ACCU 2>
<ACCU 1> := <ACCU 1>
ACCUs 1 and 2 are not changed. The old contents
of ACCU 4 are lost.
Example
ACCU 1
ACCU 2
ACCU 3
ACCU 4
L KF +30
d
30
c
a
L KF +3
d
3
c
30
a
Contents of the ACCUs
before the sequence of
arithmetic operations
b
c
d
x F
c
12
c
30
+ F
c
42
c
c
L KF +4
c
4
30
3
ENT
3
30
30
c
c
7
c
c
L KF +6
c
6
c
42
:
F
Table 3-19
Arithmetic operation ENT
The following fraction must be calculated: (30 + 3 * 4) / 6 = 7
Supplementary Operations
CPU 948 Programming Guide
C79000-G8576-C848-04
3 - 57
Summary of Contents for CPU 948
Page 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Page 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Page 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Page 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Page 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Page 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Page 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Page 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Page 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Page 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Page 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Page 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Page 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Page 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Page 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Page 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...