
Shift left and Shift right instruction are used to move bits in a register ,This will used for multiplication and division of registers.
Example Shift left DLX program
1: ;before execution r1=3=0000 0011
2: ;before execution r2=0=0000 0000
3: .start main
4: main:
5: addi r1,r0,3 ;r1=3
6: slai r2,r1,2 ;move 2 bits left from R1 and save it to R2
7: halt...