You can find the algorithm anywhere - just Google for it. It should be fairly straightforward to translate that into the appropriate assembler. If you can't do that then you don't really deserve to pass this bit of your course, do you?
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.