fixed asm emulation