Write a program that swaps 5th~11th bits in data_a with 25th~31th bits in data_b
please write in ARM UAL and add comment for explanation.. Thank you..
; Write a program that swaps 5th~11th bits in data_a with 25th~31th bits in data_b
; Your program must work for any data given, not just the example below
; In this question, we assmue that the positions of bits count from right to left.
; That is, the first bit is the least significant bit.
data_a DCD 0x77FFD1D1
data_b DCD 0x12345678
Step by step
Solved in 2 steps
Write a program that swaps 5th~11th bits in data_a with 25th~31th bits in data_b
Your program must work for any data given, not just the example below
In this question, we assume that the positions of bits count from right to left.
That is, the first bit is the least significant bit.
data_a DCD 0x77FFD1D1
data_b DCD 0x12345678