I'm working on some interpreter residing in my Atmega8.
This interpreter receives one-byte instructions through it's RS232 interface. There are about 16 different instructions.
In stead of using a switch statement in 'C' casing all 16 instructions I would like to have an array with 16 locations, pointing to 16 different functions to be executed. So if instruction 0x03 is received then the function pointed to by location 0x03 in my array, will be called.
Is this possible and if yes how?