News for hackers. Stuff that matters.
Re:We Who Value Simplicity Have Built Incomprehensible Machines by blue1 on Saturday May 19, 2012 @04:31AM (#3995466)
is BCD really a bad idea? it's 2012 and generally we still have to live with binary-only floats and without a decently fast decimal arithmetic.
Re:We Who Value Simplicity Have Built Incomprehensible Machines by adr_ on Saturday May 19, 2012 @07:47AM (#3995727)
BCD is not a bad idea... It's not great, you can pack arbitrary precision values more tightly, and you rarely need to display them (even when you do, the screen is slower than the maths), but it's useful for a bunch of things and it's nice to think about.

But does it really need an instruction on every modern computer's processor to make it that tiny bit faster?

When was the last time you used a program that used that instruction? I've never run in to it (and I spend a decent amount of time looking at x86 assembly). Nonetheless, it shows up at the top of every instruction reference - you need to implement it if you want to simulate x86 correctly.

But at least I can run some old 8086 code on my computer... Right?

Re:We Who Value Simplicity Have Built Incomprehensible Machines by mmphosis on Saturday May 19, 2012 @12:00PM (#3996223)
It was a bad idea in the 6502. It was a "mode" which meant that you had to clear the decimal flag to make sure it was turned off.

http://en.wikipedia.org/wiki/Ricoh_2A03