369
WTOB, WTOBP, BTOW, BTOWP
1
2
3
4
4
6
7
8
7.5
D
ata pr
ocessin
g instru
ctions
7.5.9
W
TOB, W
T
OB
P, BTO
W
, BTO
W
P
(2) Setting the number of bytes with n automatically determines the range of the 16-bit data designated by and the range
of the devices to store the byte data designated by .
(3) No processing will be conducted when the number of bytes designated by n is "0".
(4) The "00
H
" code will automatically be stored at the upper 8 bits of the byte storage device designated by .
(5) Even though the range of the device with the data to be devided ( to +(
-1)) is the same as the range of the device
with the devided data ( to +(n-1)), the instruction operates correctly.
BTOW
(1) Links the lower 8 bits of the 16-bit data in n words stored in the area starting from the device designated by in 1-word
units and stores it into the area starting from the device designated by . The upper 8 bits of n-word data stored in the
area starting from the device designated by will be ignored. Further, if n is an odd number, 0 is stored at the upper 8
bits of the device where the nth byte data is stored.
For example, if n 5, the lower 8 bits of data from to ( +4) are linked and stored at to ( +2).
(2) Setting the number of bytes with n automatically determines the range of the byte data designated by and the range of
the devices to store the linked data designated by .
(3) No processing will be conducted when the number of bytes designated by n is "0".
(4) The upper 8 bits of the byte storage device designated by are ignored, and the lower 8 bits are used.
(5) Linking is correctly processed even when the device range ( to +(n-1)) where the data to be linked is stored overlaps
with the device range ( to +(
-1)) where the linked data will be stored.
For example, the following will take place in a case where the lower 8 bits of D11 to D16 are to be stored at D12 to D14:
S
D
D
31
H
32
H
33
H
34
H
35
H
36
H
D13
D14
31
H
00
H
32
H
00
H
33
H
00
H
34
H
00
H
36
H
00
H
35
H
00
H
D12
D13
D14
D16
D12
D15
D11
b8
b0
Stores 00
H.
b8
b0
b15
b7
b15
b7
S
S
n
2
D
D
S
D
S
b15
b8b7
b0
b15
b8 b7
b0
S
S
S
Data
of
the
1st
b
y
te
n
b
y
tes
Data
of
the
(
n
-
1
)
b
y
te
U
pper
b
y
tes
are
i
gnored
.
S
S
D
D
n
2
+( -
1
)
D
*
1
: Fi
gures
after
the
dec
i
ma
l
po
i
nt
are
rounded
up
.
*
1
+
1
+
2
+
3
+(
n
-
1
)
Data
of
the
2nd
b
y
te
Data
of
the
3rd
b
y
te
Data
of
the
4
th
b
y
te
Data
of
the
nth
b
y
te
Data
of
the
1st
b
y
te
Data
of
the
3rd
b
y
te
Data
of
the
2nd
b
y
te
Data
of
the
4
th
b
y
te
Data
of
the
nth
b
y
te
S
S
D
D
If n = 5
b15
b8b7
b0
b15
b8 b7
b0
S
S
S
S
D
D
12
H
34
H
56
H
78
H
12
H
34
H
56
H
78
H
00
H
00
H
00
H
00
H
FE
H
00
H
FE
H
00
H
00
H
is set.
S
D
+1
+1
+2
+2
+3
+4
S
D
S
S
S
D
D
n
2
D12
31
H
00
H
31
H
32
H
33
H
34
H
D11
D13
D12
D14
31
H
32
H
33
H
34
H
36
H
D13
D16
00
H
00
H
00
H
00
H
00
H
35
H
00
H
D15
D11
35
H
36
H
35
H
00
H
36
H
00
H
D14
D15
D16
b15
b8 b7
b0
b15
b8 b7
b0