Chapter 6 Applied Instructions Example When M0 is ON, the data in D0–D3 is “1234567”, and the data in D10 is “AB”. When the $INS instruction executes, it inserts “AB” into the string in D0–D3 after the character indicated by the value in D30, and stores the result in D20–D24. If the value in D30 is 1, the execution result is as follows. b15 b0 b7 b8 b15 b0 b7 b8 D1 D0 D20 D21 D2 D22 6_ D3 After the instruction is executed D23 D24 D10 D11 D30 1 If the value in D30 is 0, the execution result is as follows.
b15 b0 b7 b8 b15 b0 b7 b8 D0 D1 D21 D20 D2 Af ter execution D22 D3 D23 D10 D24 D11 D30 0 6-679 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#36(6) 16#35(5) 16#00 16#37(7) 16#41(A) 16#31(1) 16#32(2) 16#42(B) 16#34(4) 16#33(3) 16#36(6) 16#35(5) 16#00 16#37(7) 16#42(B) 16#41(A) Ignored 16#00 16#32(2) 16#31(1) 16#34(4) 16#33(3) 16#36(6) 16#35(5) 16#00 16#37(7) 16#42(B) 16 #41(A) 16#32(2 ) 16 #31(1) 16#34(4) 16 #33(3) 16# 36(6) 16 #35(5) 16#00 16 #37(7) 16#42(B) 16#41(A) I gnored 16#00