optimised cpu core

changed use opcode table instead of switch statement