I am trying to write a program in SPARC assembly language to display the period of a number.

Now I assume I am going to need to use binary long divisin but my brain has locked up and I am stuck at this point.

I have gone through a few eamples on paper but just can't make the jump to an algorithm to base my assembly code on.

Any hints/help appreciated as my brain hurts.