I'm working through Knuth's The Art of Computer Programming, and I have a question about the MIX assembly language, particularly the DIV operator.
On page 133, he gives an example of how the DIV operator affects the Accumulator and Extension registers, given a particular state of those registers, and the input memory cell. The question is described (and answered, I think) in this Stack Overflow post: How does division work in MIX?
My problem is that the person who answered converted the value of the 10-byte word stored in rAX (registers A and X) into a single number, using a method that I don't understand:
If you do the division by hand, by converting the bytes into a single number you will get -210,501,825 (if you're using the smallest kind of byte - which is 6 bits (!) in Knuths book)
Can somebody walk me through this conversion?
Thanks, Sam