Chapter 6 Applied Instructions Symbol: S 1 : Multiplicand Word/Double word S 2 : Multiplier Word/Double word D : Product Double word/Long word Explanation: 1. The binary-coded decimal value in S 1 is multiplied by the binary-coded decimal value in S 2 , and the product is stored in D . 2. Only the instruction DB* can use the 32-bit counter. 3. The binary-coded decimal value is represented by the hexadecimal number, and every digit is within the range between 0 and 9. 4. The multiplication of 16-bit binary-coded decimal values: When the binary-coded decimal values in S 1 and S 2 are 1234 and 5678 respectively, the binary-coded decimal value in D is 07006652.
S D 1 2 D S +1 * = The product is a 32-bit value, and is stored in the register (D+1, D), which is composed of 32 bits. 5. The multiplication of 32-bit binary-coded decimal values: When the binary-coded decimal values in S 1 and S 2 are 99999999 and 99999998 respectively, the binary-coded decimal value in D is 9999999700000002. S 1 1 +1 +1 S S 2 2 S * = D D +1 +2 D +3 D The product is a 64-bit value, and is stored in the register (D+3, D+2, D+1, D), which is composed of 64 bits.
6-57 API Instruction code Operand Function 0110 D B* P S , S , D 1 2 Multiplication of binary-coded decimal numbers Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S 1 S 2 D Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (7 steps) AH500 AH500 AH500