I have the below code in my program and I'm trying to understand what they are doing.
IC R9,0(RB)
SLL R9,23(RA)
With the IC instruction,We are moving the contents from the zeroth displacement of Register RB to the 24-31st bit position of R9.
Suppose RB has a value of 00001010 00000000 00000000 00000000 ,we would move 00001010 to the 24-31st bit position of R9.
So R9 would now have 00000000 00000000 00000000 00001010.
Now suppose RA has a value of 0.Then SLL R9,23(RA) would shift the contents of R9 by 23 + 0 bits to its left.
so RA would now be 00000101 00000000 00000000 00000000.
So the now the value in register RA is the old contents multiplied by 2 ^ 23.
Can you please confirm if my above analysis is correct?
Thanks,
Ram Kumar