■
Processing
Example 1) Replacing the DT0 string with three characters from the 1st byte (2nd
character) of DT20
"E"
"E"
"D"
"A"
"C" "B"
"B"
"D" "C"
"A"
5 (No. of characters)
DT0
DT1
DT2
DT3
DT4
DT5
DT6
Byte address High Low
10 (No. of characters)
Byte address High Low
Character string
*In this case, the original data of the first byte to the fourth
byte of DT20 that is the destination is deleted.
DT20
DT21
DT22
DT23
DT24
DT25
DT26
[S1]...DT0 [D]...DT20 [n]...U3[p]...U1
"6"
"8" "7"
"2"
"4" "3"
"1"
8 (No. of characters)
DT20
DT21
DT22
DT23
DT24
DT25
DT26
Byte address High Low
Transfer destination
"5"
"6" "5"
"1"
"8"
"7"
Transfer destination after execution
As a result, the number of characters increases from 8
characters to 10 characters.
Example 2) The number of characters [n] is larger than the number of characters in
the string [S1] as from the position specified by [p].
"5"
"0" "9"
"D" "C"
"E"
"B"
"E"
"A"
"2"
"4" "3"
"B"
"D" "C"
"A"
5 (No. of characters)
DT0
DT1
DT2
DT3
DT4
DT5
DT6
Byte address High Low
9 (No. of characters)
Byte address High Low
Character string
DT20
DT21
DT22
DT23
DT24
DT25
DT26
"6"
"8" "7"
"2"
"4" "3"
"1"
10 (No. of characters)
DT20
DT21
DT22
DT23
DT24
DT25
DT26
Byte address High Low
Transfer destination
"1"
Transfer destination after execution
[S1]...DT0 [D]...DT20 [n]...U8[p]...U4
14.25 SREP (Replacement of a String)
14-102 WUME-FP7CPUPGR-12