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 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 bits have been copied. See below for a visual example where WriteStep Test your program with the following values stored in Data and WriteStep respectively:
xanswer rounds
xAAanswer rounds
xAAanswer rounds
xAAanswer rounds
xBEEF, answer rounds
xBEEF, answer rounds
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
