Quote Originally Posted by Syscal View Post
And how exactly would I place these functions into the right place in the table. That would seem to take a lot of time too
It'd, but the final size of the object module would be much less than having 256 case labels.
Quote Originally Posted by Syscal View Post
would it be:
Code:
fn Table[256];
Table[opcode] = void (*func_ptr)(reg*);
Or something along those lines, where the opcode indexes into the jump table.
Quote Originally Posted by Syscal View Post
where "func_ptr" equals the name of the function. Would I need to do this for every single one?
Yep!