Y
Hacker News
new
|
ask
|
show
|
jobs
by
kevin_thibedeau
254 days ago
You don't need division to convert to decimal, though it will still be slower than using BCD operations.
2 comments
kstenerud
254 days ago
Technically no, but they were also always fighting against the ROM size, trying to keep costs down. Every byte helped.
link
MobiusHorizons
254 days ago
Oh? How do you do it? Some kind of lookup table?
link
kevin_thibedeau
254 days ago
https://en.wikipedia.org/wiki/Double_dabble
A software implementation with masks and shifts will beat traditional CISC dividers.
link