This is a step-by-step example division. Note that the least significant bit of Q is not necessarily correct unless it is boldface.

  1. S is the 9th bit used in shifting
  2. op is the operation to be performed
  3. Q is the value in the Q register
The operation performed is 110100100011001 / 11110010 (26905/242 in decimal)
op S A (with M beneath) Q Comment
0 11010010 0011001_ Initial Subtraction
- 11110010 M
= 1 11100000 negatiave result
don't load the result
1 10100100 011001_0 Shift (shift in a 0 in the quotient)
- 11110010 Subtract
= 0 10110010
10110010 Load result into A
1 01100100 11001_01 Shift
- 11110010 Subtract
= 0 01110010
01110010 Load Result
0 11100101 1101_011 Shift
- 11110010 Subtract
= 1 11110011 Negative result
Don't load
1 11001011 001_0110 Shift (shift in a 0 into the quotient)
- 11110010 Subtract
= 0 11011001
11011001 Load result
1 10110010 01_01101 Shift (shift in a 1 into the quotient)
- 11110010 Subtract
= 0 11000000
11000000 Load
1 10000000 1_011011 Shift (shift in a 1 into the quotient)
- 11110010 Subtract
= 0 10001110
10001110 Load
1 00011101 _0110111 Shift (shift in a 1 into the quotient)
- 11110010 subtract
= 0 00101011
00101011 Load
00101011 01101111 Shift Q, but not A
00101011 01101111 Final answer
note the final anwer is 111 remainder 43 or 01101111 remainder 00101011 in binary