Hey so I am kinda new here and to RISC-V.
One of my exercise questions is:
Rotate right by 4 bits the value of 0x0000000000000123. The expected result is 0x3000000000000012, i.e. all hexadecimal digits move right by one position while the rightmost one moves to the front*
So far, I learned a little bit about the Logical Operations: andi, or, and xori
. In my previous exercises I learned add, addi, sub, slli, srli, srai
.
I started off with:
addi x6, 0x, 0x123
However, I am stuck here. My textbook doesn't really describe things properly so any assistance is much appreciated!