Delta AH500 — 6.2.2 Explanation of Arithmetic Instructions

Chapter 6 Applied Instructions API 0111 Symbol: S 1 : Dividend Word/Double word S 2 : Divisor Word/Double word D : Quotient; remainder Word/Double word Explanation: 1. The binary-coded decimal value in S 1 is divided by the binary-coded decimal value in S 2 , and the quotient 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 division 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 values in D and D +1 are 0004 and 0742 respectively.

Quotient Remainder S D 1 2 D S +1 / = The operand D occupies two consecutive devices. The quotient is stored in D , and the remainder is stored in D +1. 5. The division of 32-bit binary-coded decimal values:  When the binary-coded decimal values in S 1 and S 2 are 87654321 and 12345678 respectively, the binary-coded decimal values in ( D +1, D ) and ( D +3, D +2) are 00000007 and 01234575 respectively.

6-59 Instruction code Operand Function D B/ P S , S , D 1 2 Division 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