My emu was horrible, i had a lot of inaccuracy in timing and it runs slow on a Pentium 3 933mhz. Altought i done it in directX
So i decided to rewrite my cpu core.. and i have a question:
let say that we have a big:
i have a question it isn't faster to have an array of functions pointers and call the appropiate function?
it is supposed that the addressing mode is done in the "OpcodeEmuFunction()";
So i decided to rewrite my cpu core.. and i have a question:
let say that we have a big:
Code:
...
switch(opcode)
{
case X:
OpcodeEmuFunctionX();
break;
...
case N:
OpcodeEmuFunctionN();
break;
}
...
switch(opcode)
{
case X:
OpcodeEmuFunctionX();
break;
...
case N:
OpcodeEmuFunctionN();
break;
}
...
i have a question it isn't faster to have an array of functions pointers and call the appropiate function?
it is supposed that the addressing mode is done in the "OpcodeEmuFunction()";