According to the AGI Specs, at the beginning of the text section, the compiled logic stores how many messages there are in a one-byte value (probably so the message offset list can be compressed significantly in the average case...with that byte, only the messages that actually exist need offsets stored).
So, actually, the limit is 255, not 256.