Implement shift instructions.