Usually the SPRITE management number limit is 0-511, but when XSCREEN is set to 2 or 3, the limit changes from 511 to 255.
If you were to do this:
XSCREEN 0 SPSET 511,0.. it works just fine. But if XSCREEN was changed to 2 or 3, then any management number set above 255 gives an Out of range (SPSET:1) error. Is there a way to prevent this, or is this just unavoidable? Also, why does it happen?