Hi Sheldon,
Why not just try it and find out?
Compile the program, note the size. Add or remove a single character from one of your LOOKUP statements and compile it again, note the difference. That's how much space each character takes.
As far as I can see each character, when used in a LOOKUP statment, "occupies" two bytes when compiled for a 18F device and one word when compiled for a 10,12 and 16F devices. Each occurrence of LOOKUP seems to add ~44 bytes for 18F parts and 17 words for 10, 12 and 16F parts (plus the characters of course).
So, if you have 45 menu groups, each consisting of 5 LOOKUP statements with 40 characters each I count to (45*5*44) + (45*5*40*2) = 27900 bytes.
/Henrik.
Bookmarks