App. - 49
M100
X1
M300
M800
103
120
125
144
150
164
M200
M700
SM700
Z0K32
=
Z0K50
=
K1
D0
SET
Z0
INC
K4Y60
Z0BCD
M300
PLS
M100RST
D10
K1
-
K4Y40D10
BCD
M600
SET
M200RST
K4Y60MOVP
K0
M800PLS
M400
RST
Searches for ON
devices shifting
32-bit data to right
Searches for
next ON devices
Resets when
search is finished
D10
K0
<
M100
DROR
(1) Searching for ON devices
DSUMP K8F1 D0
DSUMP K8F33 D0
1 1 1 0 0 1 0 0 1 0 0 1 0 0 0 1 1 1 0 0 0 0 1 1 1 1 1 1 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
B15
B0
F
32
F
1
F
2
F
3
F
31
F
4
32 bits
S before
execution (K8F1)
A0 after
execution
The total number of bits with 1 is stored in BIN.
(in this example, 16)
Turning on X2 stores the number of turned-on bits among F1 to F64 to D10 and
display it.