News for hackers. Stuff that matters.
Re:Fractals on an IBM 1401 mainframe (2015) by masswerk on Tuesday July 11, 2023 @03:34AM (#36677616)
It's actually bi-quinary; Inside the ALU numbers are represented by two fields, an odd/even field with two dedicated signals and a field of 5 quinary "Q#" signals for 0/1, 2/3, 4/5, 6/7, 8/9. So it's a 7-bit representation as in Q8-Q6-Q4-Q2-Q0-B1-B0. There are two separate adders, one for each field. Apparently, this helps with error checking in the ALU with limited circuitry. (Only one of the Q# bits can be high at any time and the B# field must have exactly one high-bit adhering to XOR.) Negative numbers are represented in 9's complement.

Kenn Shirriff has you covered on this, as well: http://www.righto.com/2015/10/qui-binary-arithmetic-how-1960...

There are no comments on this comment yet.