Question: Your task is to write an assembly level program that permutes the bits of the 1 6 - bit data item stored in the memory

Your task is to write an assembly level
program that permutes the bits of the 16-bit data item stored in the memory location Data. How the bits will be permuted is defined by memory location WriteStep. Starting with the least significant bit of Data, copy that bit value WriteStep bits from the least significant bit (moving left from the least significant bit) of your result. Now, reading from Data, move one bit to the left and copy that bit another WriteStep bits from where you last wrote a bit in your result, being sure to cycle back to the beginning of the word as required. Repeat until all 16 bits have been copied. See below for a visual example where WriteStep ==7. Test your program with the following values stored in Data and WriteStep (respectively):
x0001,3(answer 8 rounds)
xA55A,7(answer 4 rounds)
xA5A5,7(answer 1 rounds)
xA5A5,3(answer 4 rounds)
xBEEF, 11(answer 8 rounds)
xBEEF, 7(answer 4 rounds)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!