Advanced turing machine emulator