Add spr_ptr increment condition logic.