i really need some help with this, im trying to write a program in vvm assembly language which will divide two number for example divide number A by number B
I need help on writing a program in vvm that can divide two numbers
1k Views Asked by Salman Naeem At
2
Since vvm doesn't have a divide instruction in hardware, you're going to have to do it "manually". It doesn't even have right-shift or any boolean ops that would let you test the last bit.
However, adding a number to itself is a left-shift, so you can probably still make an algorithm that runs in log(n) time, rather than just repeated subtraction.