RSX: case switch with index update