I need to use the switch statement with up to 255 cases?
I keep getting the out of range error
You need to think again about what you need.
Out of range of what variable - what variable type? Or do you not think data types matters to your question?
Is that a question?
No specific limits: http://www.keil.com/support/man/docs/c51/c51_xd.htm