493
STRINS, STRINSP
1
2
3
4
4
6
7
8
7.11
Char
acter
string processing inst
ructions
7.11.1
8
STRIN
S
, ST
RINSP
F
unct
i
on
(1) This instruction inserts the character string data specified by to the nth device (insert position) from the initial character
string data stored in the devices specified by .
Insert position: n 3
(2) This instruction stores the NULL code (00
H
) into the device (1 word) that positions after the last device where the
character string data are stored, if the character string ( + ) value is even after the insertion.
(3) This instruction stores the NULL code (00
H
) into the last device (high 8 bits) where the character string data are stored, if
the character string ( + ) value is odd after the insertion.
(4) This instruction links the device, where the character string data are stored, specified by with the last device specified
by , if n is specified by the number of devices specified by plus one.
Operat
i
on
E
rror
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into
SD0.
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The number of characters in the devices specified by , , or the
devices specified by ( + ) after the insertion exceeds 16383
characters.
The value specified in n is not within the specified range.
(1
n
16383)
The value specified in n exceeds the number of characters of the
character string + 1.
––
––
––
––
4101
The devices, that store character strings, specified by overlaps with
even one of the devices specified by .
The range of the devices specified by ( + ) in which character strings
data have been inserted exceeds the specified device range.
The NULL code (00
H
) does not exist within the specified device range
after the device specified by or .
The device where the character has been inserted is the same as the
device storing the character strings.
––
––
––
––
S
D
+
1
4
1
H
(A)
4
2
H
(B)
4
3
H
(C)
44
H
(D)
4
5
H
(
E
)
4
6
H
(
F
)
4
7
H
(G)
4
8
H
(
H
)
62
H
(b)
6
4
H
(d)
66
H
(f)
61
H
(a)
63
H
(c)
65
H
(e)
00
H
+
2
+
3
+4
+
5
T
h
i
rd
character
i
nsert
i
on
pos
i
t
i
on
Sh
i
fts
the
th
i
rd
character
and
up
by
the
number
of
characters
spec
i
f
i
ed
by
to
the
l
eft
and
i
nserts
the
character
str
i
ng
data
spec
i
f
i
ed
by
.
T
he
character
data
stored
after
+4 will
be
w
r
i
tten
o
v
er
i
n
accordance
wi
th
the
number
of
characters
to
be
i
nserted
.
b15
b8b7
b0
+
1
30
H
(0)
31
H
(1)
32
H
(2)
33
H
(3)
+
2
3
4
H
(
4
)
00
H
b15
b8b7
b0
S
S
S
S
D
D
D
D
D
D
+
6
D
+
7
D
+
1
4
1
H
(A)
4
2
H
(B)
30
H
(0)
31
H
(1)
32
H
(2)
33
H
(3)
3
4
H
(
4
)
4
3
H
(C)
44
H
(D)
4
5
H
(
E
)
4
7
H
(G)
00
H
66
H
(f)
4
6
H
(
F
)
4
8
H
(
H
)
65
H
(e)
+
2
+
3
+4
+
5
b15
b8b7
b0
D
D
D
D
D
D
D
+
6
D
+
7
D
(
+
1)
(
+
2)
S
(
)
S
S
S
S
D
S
D
S
D
D
S
D
S
D
D
S
D
S
D
S
D