Technical data
Determining the start address and length of data block DB 50
a) Using indirect memory access:
:L RS 34 Load the base address of the DB address list
:L KB 50 Calculate the address of the entry for DB 50
:+F and load the start address in ACCU 1
:LIR 1
:L KB 0 If the block does not exist, jump to the
:!=F NIVO label
:JC =NIVO
:ENT Load the start address of DB 50 in ACCU 3 and
:TAK in ACCU 1
:L KF -1 Decrement the start address by 1 and
:+F load the block length in ACCU 1
:LIR 1
.
.
NIVO : ....... Reaction if the block does not exist
DB 0
0000
0000
010A
0000
15 0
0000
0000
.
.
.
.
15
0104
0105
0106
0107
0108
0109
010A
010B
010C
010D
User memory:
7070
0009
0
DW 0
DW 1
DW 2
DW 4
DB 50
header
.
DB 49
DB 50
DB 51
DB 0
DB 1
DB 2
.
.
.
.
.
RS 34
Fig. 8-5 Example a): start address of DB 50
8
User Memory Organization in the CPU 928B
CPU 928B Programming Guide
C79000-B8576-C898-01
8 - 13