Because the Hack computer does not include multiplication or division hardware, there are no multiplication or division instructions in the assembly language. To solve your problem, you must either write a division algorithm algorithm or you must find an algorithm that that can check divisibility without using division.

The good news is that there is such an algorithm. Research greatest common divisor. There is a version of Euclid's GCD algorithm that only requires subtraction.