QUESTION

There are many algorithms presented in the text that would lend themselves to be included as subprograms in the utils.asm file. Implement the following into the utils.asm file, properly documenting them, and include programs to test them. (30 points) (Submit two files: utils.asm and testutils.asm)

a. Mult10 - take an input parameter and return that parameter multiplied by 10 using only shift and add operations.

b. RightCircularShift - take an input parameter and return two values. The first is the value that has been shifted 1 bit using a right circular shift, and the second is the value of the bit which has been shifted.

c. LeftCircularShift - take an input parameter and return two values. The first is the value that has been shifted 1 bit using a left circular shift, and the second is the value of the bit which has been shifted.

Public Answer

PASO92 The First Answerer