Conceptual

Unsigned and Signed Binary Division Algorithm in MIPS Architecture

Binary division is theoretically defined by a loop invariant ensuring that the product of the quotient and divisor plus the remainder always equals the dividend ($A = Q \times D + R$), with the constraint that the remainder must be non-negative and strictly less than the divisor. This mechanism utilizes iterative algorithms based on shift-add or shift-subtract operations to sequentially approximate the quotient bit by bit, relying on mathematical induction to prove correctness across iterations of unsigned and signed domains using 2's complement arithmetic. The theory establishes distinct sign propagation rules where the remainder retains the dividend's sign while the quotient follows multiplication logic regarding operand signs.