Technical data
Example 1 continued:
CONT : . ...after all data words have been
: written to
:BEU
NIVO : . ...if DB 50 does not exist
: or has no data words
:BE
Note: The section of program from the label LOOP can be used to write a
constant to any memory areas (e.g. flags, timers, counters).
TYPE/NO
constant
constant
TYPE/NO
ACCU 4
ACCU 3
ACCU 2
ACCU 1
constant
constant
ACCU 4
ACCU 3
ACCU 2
ACCU 1
L KHA5A5 L KY1.50 ENT
JU OB181
JC =NIVO
TAK ENT +F
1
2
constant
constant
constant
DBL
DBL
DBL
DBA
DBA
DBA
DBA
constant
constant
DBA +.DBL
DBA
1
2
Sequence of events
Fig. 9-7 Occupation of the accumulators during the program
Example 2: Clearing all flag bytes (FY 0 to FY 255)
:L KB 0 constant to be written to
: all flag bytes
:L RS 14 base address of the flag area (= address
: of the first flag byte FY 0)
:ENT
:L KF + 256 + length of the flag area
:ENT = (address of the last flag byte FY 255) + 1
:+F
:
LOOP :ADD BN -1 write the constant contained in ACCU-3-L
:TIR 10 to all 256 flag bytes, beginning with
: flag byte FY 255
:JC =LOOP
:
:
:
9
Access using the Address in ACCU 1
CPU 928B Programming Guide
C79000-B8576-C898-01
9 - 17