Kaiyi — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions Symbol: S : Source value Word D : Device in which the conversion result is stored Word/Double word Explanation: 1. The hexadecimal ASCII code in S is con xadecimal binary number, and the conversion result is stored in D . 2. The operand S used in the 16-bit instruction occupies two word devices, and the hexadecimal ASCII code in S should be within the range between 0000 and FFFF. If S is a string, the string should be within the range between “0” and “FFFF”. verted into the he b15 b0 b7 b8 S b15 b0 D If the ASCII code in S ~ S +1 is 5A8D, the conversion result is as follows. S +1 16-bit binary number b15 b0 b7 b8 S b15 b0 D 5A8D 16# S +1 3.

The operand S used in the 32-bit instruction occupies four word devices, and the hexadecimal ASCII code in S should be within the range between 00000000 and FFFFFFFF. If S is a string, the string should be within the range between “0” and “FFFFFFFF”. b15 b0 b7 b8 S D +1 D S +1 32-bit binary number S +2 If the ASCII code in S ~ S +3 is 5CB807E1, the conversion result is as S +3 b15 b0 b7 b8 S follows.

D+1 D D S +1 S +2 S +3 6-456 API Instruction code Operand Function 2104 D HABIN P S, D Converting the hexadecimal ASCII code into the hexadecimal binary number Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S          D          Pulse instruction 16-bit instruction (5-11 steps) 32-bit instruction (5-11 steps) AH AH AH Third AS CII code Fourth ASCII code First ASCII code Second ASCII code 16#41(A) 16#35(5) 16#44(D) 16#38(8) Seventh AS CII code Eighth ASCII code Fifth ASCII code Sixth ASCII code Third ASCII code Fourth ASCII code First ASCII code Second ASCII code 16#43(C) 16#35(5) 16#38(8) 16#42(B) 16#37(7) 16#30(0) 16#31(1) 16#45(E) 16# 5CB8 16# 07E1