implement asm subcommand