Appendix D Use of Application Instructions | DOP-EXIO Series Operands: S 1 : Dividend S 2 : Divisor D : Quotient and remainder Explanations: 1. This instruction divides S 1 and S 2 in BIN format and stores the result in D . Be careful with the positive/negative signs of S 1 , S 2 and D when doing 16-bit and 32-bit operations. 2. This instruction will not be executed when the divisor is 0. 3. In 16-bit BIN division, Quotient Remainder +1 = / When D serves as a bit device, it can designate K1 ~ K8 and construct a 32-bit result, and bringing forth the quotient and remainder. 4.
In 32-bit BIN division, Quotient Remainder +1 +1 +1 +3 +2 / = When D serves as a bit device, it can designate K1 ~ K8 and construct a 32-bit result, and bringing forth only quotient without the remainder. Revision March, 2008, Doc. Name: 2007PDD23000014 D-35 Mnemonic Operands Function DIV D S1 S2 D Divisio n Bit Devi ces Word Device s 16-bit instruction (7 Steps) C D E F Continuous DIV execution ¼ ¼ ¼ ¼ 32-bit instruction (13 Steps) ¼ ¼ ¼ ¼ Continuous DDIV execution ¼ ¼ ¼ y Flags: None uction is applicable. applicable. X Y M S K H KnX KnY KnM KnS T S 1 ¼ ¼ ¼ ¼ ¼ ¼ ¼ S 2 ¼ ¼ ¼ ¼ ¼ ¼ ¼ D ¼ ¼ ¼ ¼ y Note: 1. If S and S are used in device F, only 16-bit instr 1 2 2.
If D is used in device E, only 16-bit instruction is