View Single Post
Old July 4th, 2009   #76 (permalink)
serge2k
Registered User
 
Join Date: Sep 2006
Location: surrey
Posts: 45
Quote:
Originally Posted by Entityshadow View Post
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.
serge2k is offline   Reply With Quote