Siemens CPU 948 Programming Manual page 96

Simatic s5 s5-155u
Table of Contents

Advertisement

Basic Operations
Example 2:
Fig. 3-7 illustrates the loading/transfer of a byte, word or double word
from/into a memory area organized in
:L DR i load the right byte of data word i into ACCU-1-LL
:L DL j load the left byte of data word j into ACCU-1-LL
:L DW k load data word k into ACCU-1-L
:L DD l load data words l and l+1 into ACCU 1
15
D a t a
Addresses
in
ascending
order
left byte
D a t a w o r d
Fig. 3-7
Load and transfer operations in a word-oriented memory area
3 - 24
0
31
right byte
w o r d
i
31
j
31
k
31
l
l + 1
1 )
only with load operations
Note
Load operations do not affect the condition codes.
Transfer operations clear the OS bit.
When a byte or word is loaded the extra bits are cleared
in ACCU 1.
words .
23
15
1)
1)
0
0
0
23
15
1)
1)
0
0
0
15
1)
0
15
l
7
0
1)
i
ACCU 1
L DR i
T DR i
7
0
1)
j
ACCU 1
L DL j
T DL j
0
k
ACCU 1
L DW k
T DW k
0
l+1
ACCU 1
L DD l
T DD l
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents