|
|
|
|
|
by adr_
5146 days ago
|
|
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? |
|