That's determined by the number specified by XSCREEN. But, the maximum number of sprites for both screens combined is 512.