Repeat until the counter becomes zero:
a. Check the last two bits (Q₀, Q₋₁):
i. If (Q₀, Q₋₁) = 01, then A ← A + M
ii. If (Q₀, Q₋₁) = 10, then A ← A − M
iii. Else, do nothing
b. Perform arithmetic right shift on (A, Q, Q₋₁)
c. Decrement the counter (n ← n − 1)