I have been reading Donald Knuth's The Art of Programming, Volume 1, in which MIX is used as the assembly language. In the section where Knuth talks about arithmetic operations in MIX, I didn't understand how the subtraction, multiplication and division operations are carried out.
For example, the text book has this:
register A has the following word code: -| 1235 | 0 | 3 | 1
and a memory cell, say M, has the following word code: -| 0 | 0 | 0 | 2 | 0
.
The book says on performing DIV 100 the result is: rA(+ | 0 | 617 | ? | ?)
, rX(- | 0 | 0 | 0 | ? | 1)
.
Can anyone help me with this?
As I know, should it be rA(+ | 0 | 617 | 5 | 1)
, rX(- | 0 | 0 | 0 | 1 | 1)
?