Delta AH500 — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions b15 b0 b7 b8 D10 D11 ( D101, D100) D12 16#3C4A42AD D14 D13 Floating-point number 1.2345E-2 D15 D16 1 2 3 4 . E - 2 0 4 5 Ignored Ignored Additional remark: 1. If the string in S does not end with 16#00, SM0 is ON, and the error code in SR0 is 16#200E. 2. If the length of the string in S exceeds the range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3. If the sign code in S is not 16#20, 16#30, 16#2B or 16#2D, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 4.

If there is more than one 16#2E (“.”), 16#2B (“+”), or 16#2D (“-”) in the string in S , exclusive of 16#2D (“-”) with which the string starts, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 5. If the characters which constitute the integer part and the characters which constitute the fractional part in the string in S are not within the range between 16#30 (“0”) and 16#39 (“9”), the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 6. The character in the exponent part in the string in S only can be “E” (16#45), “+” (16#2B), “-” (16#2D), or the number between “0” (16#30) and “9” (16#39).

Otherwise, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 7. If the conversion result exceeds the range of values which can be represented by the floating-point numbers, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2013. 6-475 16#20( ) 16#20( ) 16#2E(.) 16#31(1) 16#33(3) 16#32(2) 16#35(5) 16#34(4) 16#2D(-) 16#45(E) 16#32(2) 16#30(0) 16#00