Add asm file support
Fix bug: expr substr cannot be used under OS X