I have the following instruction set for a simple computer

There is no remainder or modulus command in the above instruction set. So the last part of my project is to check whether the number n I got from previous calculations, which is maximum 16 bits, is divisible by 10. If it is then I must store the given number n into the data memory, if it isn't then the number is invalid, I have to use the instructions in the above list.
I can't get the logic to go about in checking whether n is divisible by 10 or not. I already know how to check whether n is even or odd, but that doesn't solve the divisibility problem.
 
     
    