Added some support for ASM (not fully functional).