Kaiyi — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions 5. th l to 0, the s not executed. If e value in S 3 is equa instruction i Example: When M0 is ON, the data in D0~D7 is “1234ABAB1234AB”, and the data in D10~D11 is “CDEF”. e structio is ec d c ac ~ st ing m e c the alu n D51 are pla ed by the cha 1. The nu wh are pl is indicated by the value in D50, and the res is stored in D20~D2 . When th indicated in by ter aracte v aced n $RP e i LC ex ute , the har ters racte in D0 rs in D1 D7 0~D1 art fro th mbe chara r of ch re c rs ich re ult 7 vely, the execution result is as follows.

If the values in D50 and D51 are 3 and 4 respecti b15 b0 b7 b8 b15 b0 b7 b8 D0 D2 D21 0 D2 D1 D22 D3 D4 After the instruction is executed D23 D24 D5 D6 D25 D26 D7 D27 D1 D10 1 D12 D50 4 Number of characters which are replaced D51 4 Character which is replaced 6-492 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#42(B) 16#41(A) 16#42(B) 16#41(A) 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#42(B) 16#41(A) Ignored 16#00 16#32(2) 16#31(1) 16#43(C) 16#33(3) 16#45(E) 16#44(D) 16#42(B) 16#46(F) 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#42(B) 16#41(A) 16#0000 16#44(D) 16#43(C) 16#45(F) 16#45(E) Ignored 16#00