asm: implement "-v" option and fix bug