Settings

Theme

Multiplying our way out of division

xania.org

10 points by HeliumHydride 24 days ago · 1 comment

Reader

hyperman1 24 days ago

Reversing the numbers as required here is one of the few algorithms thats nicer in assembly than in a high level language:

When you get a digit from the divide, push it on the stack and increment a counter. At the end, do a loop, popping each digit and sending it to the output.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection