The MAC shift operations in the simulator that comes with v4.23 need fixing. Shifts of 0 to 7 do nothing. Shifts of 8 to 15 shift by 1. Shifts of 16 to 24 shift by 2. Shifts of 25 to 31 shift by 3. The CoSHR also performs an arithmetic shift rather than logical.
View all questions in Keil forum