#!/bin/bash
if [ -z "$1" ]; then
  echo -e "\nPlease call '$0 <argument>' to run this command!\n"
  exit 1
fi

/home/zbyti/Programs/bin/mp $1 -o
name=${1::-4}
fileAsm="${name}.a65"

if [ -f $fileAsm ]; then
  [ ! -d "output" ] && mkdir output
  mv $fileAsm output/ 
fi