Problem:
Write a program to convert an 8-bit binary number entered from the keyboard to the equivalent Gray code binary number, using the following the algorithm:
[broken image: http://www.harborlandings.com/images/grayAlgm.jpg]
I'm learning assembly (8086, required by class) and not sure how to do this.
Do I convert each character (1 or 0) as I receive it from the keyboard? Or, do I read in the entire 8-bit binary number, loop through it, converting as I go?
I come from Perl/Java, so visualizing how this will work in assembly is a bit daunting. Also, I'm not sure what the symbol is in the algorithm above?
Thank you for your help and critique!