331
M D W
I
P
S1
S2
D
1
2
M
3
○
FNC
207
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S1
D
S2
S1 : the head ID of the source character string
D : the head ID of the string for the partial replacement using
S2 : to appoint the replacement patterns
MIDW D0 D10 D20
X0
To read the beginning +1 characters from the string . Then use those to replace a part of the string ,
the replacement starting position is designated by the .
D
D
S1
S2
S2
S1
S2
D0
D1
D2
D3
56H(V)
" LOVE168"
D20
D21
S1
S2
3
4
45H( E)
4CH( L)4FH
O
( )
31H(1 )36H(6 )
38H(8 )
00H
X0=ON
" I LIKE VIGOR"
D10
D11
D12
D13
00H
20H( )
45H( E)
49H
I
( )
49H
I
( )
4CH( L)
4BH K( )
20H( )
4FH
O
( )
49H
I
( )47H(G)
52H R( )
56H(V)
D14
D15
D16
D
" I LOVE VIGOR"
D10
D11
D12
D13
00H
20H( )
45H( E)
49H
I
( )
4CH( L)
20H( )
4FH
O
( )
49H
I
( )47H(G)
52H R( )
56H(V)
D14
D15
D16
D
4FH
O
( )
56H(V)
To extract 4
characters
from the
beginning
To replace starting from the third place
If the D21 ( +1) is equal to 0, the instruction will not execute.
S2
Operand
Devices
Rewrite Characters to Specic Place
of String
Upper
8 bits
Lower
8 bits
Upper
8 bits
Lower
8 bits
Upper
8 bits
Lower
8 bits
When X0 = “ON”, the instruction will be executed as follows: