move emulation to emu.c + rename