3 ms·
I loved writing Z80 assembly back in the 1980s but it was a bit of as shock to find out from Ken Shirriff [1] that this 'number cruncher' had a 4 bit ALU. [1]
by klelatti 6y ago
I loved writing Z80 assembly back in the 1980s but it was a bit of as shock to find out from Ken Shirriff [1] that this 'number cruncher' had a 4 bit ALU.
[1] http://www.righto.com/2013/09/the-z-80-has-4-bit-alu-heres-how-it.html http://www.righto.com/2013/09/the-z-80-has-4-bit-alu-heres-h...
EDIT: Just to be clear this is in no way intended to be a criticism of the Z80. On the contrary it's a tribute to the ingenuity of Federico Faggin and Masatoshi Shima that they were looking for ways to 'save' transistors in the ALU in a way which no-one would notice, which presumably enabled them to add more features elsewhere.
- ncmncm 6y agoThe Z80 is not above criticism. Its fancy loop instructions were slower than a regular loop. But the 4-bit ALU was the result of a very astute observation that inefficiencies in the 8080 microachitecture would hide an extra ALU cycle.