Quote:
Originally Posted by Entityshadow
How....can you do that........ T.T
|
eliminate the switch?
you can create an array of function pointers.
Code:
void (*operations[256])(Processor *p);
is how I did it.
Then just fill in the table with the appropriate functions.
Unfortunately I have a bug somewhere and am having loads of trouble finding it.
