PSX gains 824 points amid buying spree