The project involves an arithmetic keyboard (0-9,*,#) on a device that has a module that can be programmed with parameters.

In fact it is a portable transmitter with a module programmable with power level, frequency etc.

My PIC is the good ol' F886 and since it has 8K of flash I d'rather not spend it with if-then tests.

I would like to have an efficient way for the user to enter commands and parameters for example like this:

*10
responds with a beep
434925
responds with a beep

I know this can be done with lots of if-then or select case but maybe there is a better way.

Ioannis